Datapoint Condition
The following payload creates a DataPoint condition alert. This alert type fires when a data stream value matches the condition criteria.
Values:
-
scope.type: Always Resource.
-
scope.value: The stream with wildcard (*) for device id or path components.
-
timeout: Fire or reset if the value matches for this amount of time.
-
timeUnit: One of seconds, minutes, hours.
-
operator: One of <, <=, >, >=, =, <>.
-
type: One of string or numeric.
-
thresholdValue: The target value for the condition.
{
"type": "DataPoint condition",
"name": "Voltage check",
"description": "Watch for low voltage on fleet vehicles",
"scope": {
"type": "Resource",
"value": "*/drivestats/voltage"
},
"fire": {
"parameters": {
"operator": "<",
"thresholdValue": "10",
"timeUnit": "minutes",
"timeout": "60",
"type": "numeric"
}
},
"reset": {
"parameters": {
"operator": ">=",
"thresholdValue": "10",
"timeUnit": "minutes",
"timeout": "60",
"type": "numeric"
}
}
}