Dia Channel Datapoint Condition Match
The following payload creates a Dia channel data point condition match alert. This alert type fires when the value reported in a DIA channel matches the condition criteria.
Values:
-
scope.type: One of Group or Device.
-
scope.value: If type is Group, then value is the full group path (with no leading slash). If type is Device, then value is the full device ID. If type is XBeeNode, then the value is the XBee node extended src address.
-
channelName: The dia channel name or wildcard (*) for all channels.
-
instanceName: The dia channel instance name or wildcard (*) for all instances.
-
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": "Dia channel data point condition match",
"scope": {
"type": "Group",
"value": "New York/Sensors"
},
"fire": {
"disabled": false,
"parameters": {
"channelName": "chan1",
"instanceName": "stream",
"operator": ">=",
"thresholdValue": "25",
"timeUnit": "seconds",
"timeout": "30",
"type": "numeric"
}
},
"reset": {
"disabled": false,
"parameters": {
"channelName": "chan1",
"instanceName": "stream",
"operator": "<",
"thresholdValue": "25",
"timeUnit": "seconds",
"timeout": "30",
"type": "numeric"
}
}
}