Event are another main part in ThingScale. All the processing(notification or HTTP_POST) happens based on streams.
Here,Event need to be define as ThingScale Event definition.All the created events are mapping to the channel of the ThingScale.
event types are currently available as follows:
Notify_type | Description |
---|---|
push email if stream matched the operator. | |
http | push HTTP_POST to another systems if stream matched the operator. |
"email" option is TEST PURPOSE only.Not use for production.For production,you can use "http" webhook option. |
operators are currently available as follows:
= | Equal |
< | Less than |
> | Greater than |
<= | Less than equal |
>= | Greater than equal |
!= | Not equal |
If event fired and notify_type = http,then event status send to post_url as JSON as follows: |
{ "event_id":26, "description":"EMAIL & POST", "mapped_ch":1, "channel_name":"NEW_CH1_HOGEHOGE", "status":"value1 was consistent with the threshold. Current:13 = Threshold:13"} } |