property.summary Action
This trigger action will return a summary of property values for the key and time range specified.
Action
This trigger action is found under the Property heading.
Canvas
When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.
The left routing point (red) is the failure route. This route will be taken if there is an error during execution.
The right routing point (green) is the success route. This route will be taken if action executes successfully.
Form
Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
Thing Key |
String |
Yes |
Identifies the thing to which the published property is to be associated. It can be the thing key associated with the trigger event: $(event.thing.key). |
Property Key |
String |
Yes |
The property key to be summarized. |
Start Time |
String |
Yes |
The start time of the range. |
End Time |
String |
|
The end time of the range. Current time will be used by default if not provided. |
Action variables
Name |
Type |
Description |
---|---|---|
$(action.X.avg) |
Float |
The average of the property values within the time range. |
$(action.X.count) |
Integer |
The number of property values within the time range. |
$(action.X.max) |
Float |
The maximum property value within the time range. |
$(action.X.min) |
Float |
The minimum property value within the time range. |
$(action.X.sum) |
Float |
The sum of property values within the time range. |