Datapoint Condition Alert
Example: Datapoint condition alert
The following example alert payload represents a DataPoint condition alert. This alert might be used to determine if action (replacing a battery) is needed for a device that is tracking voltage.
The alert fires when the value uploaded to the data stream */drivestats/voltage is less than 10 volts for 30 minutes. The alert resets when the voltage value is greater than or equal to 10 volts for 15 minutes (for example, the battery was replaced or charged).
The wildcard (*) character used in the scope.value field indicates that any device uploading this stream is the target for the alert (the Device ID is always the first component of a stream name and this alert targets data streams.
{
"description": "Fires when a vehicle fleet battery needs replacing",
"enabled": true,
"fire": {
"parameters": {
"thresholdValue": "10",
"type": "numeric",
"operator": "<",
"timeout": "30",
"timeUnit": "minutes"
}
},
"id": 150027,
"name": "Low Voltage",
"priority": "high",
"reset": {
"parameters": {
"thresholdValue": "10",
"type": "numeric",
"operator": ">=",
"timeout": "15",
"timeUnit": "minutes"
}
},
"scope": {
"type": "Resource",
"value": "*/drivestats/voltage"
},
"type": "DataPoint condition"
}