This real-time api provides an endpoint for users to subscribe to the alarm messages. The messages were buffered in a queue when users disconnected from the server and will be retrived once reconnected.
Subscribe to this channel to receive the alarm message. NOTE that the username must match the username you used while acquring the token!
Accepts one of the following messages:
{
"uuid": "b107fe58-6e2d-4f18-bae6-767e2a30c9c7",
"tenant_uuid": "f9a86182-3b41-4964-1111-149f083b11d6",
"alarm_reason": "Alarm condition is violated",
"alarm_status": "Alarm",
"last_status_change_time": "2023-04-29T01:35:37Z",
"alarm_condition_type": "Upper limit",
"alarm_severity": "Warning",
"alarm_time": "2023-04-29T06:25:00Z",
"alarm_time_local": "2023-04-29T08:25:00+02:00",
"serial_number": "56000000",
"alarm_source_uuid": "f1aa6496-abe8-4920-1111-7ee5f529a321",
"alarm_type": "measurement alarm",
"processed_at": "2023-04-29T06:27:25Z",
"alarm_delay": "300000",
"alarm_value": "22.015625",
"physical_unit": "°C",
"physical_value": "Temperature",
"physical_value_extension": "Air Temperature"
}
{
"content-length": "832",
"timestamp": "1682749648090",
"content-type": "application/json",
"message-id": "cb-4d60f416-7083-406c-9476-6d166c21bf72-1-39009-1682707981501-3",
"priority": "4",
"subscription": "sub-0",
"destination": "/queue/username/alarms",
"expires": "0"
}
device/sensor system alarm event
Detailed information about the alarm.
{
"uuid": "b107fe58-6e2d-4f18-bae6-767e2a30c9c7",
"tenant_uuid": "f9a86182-3b41-4964-1111-149f083b11d6",
"alarm_reason": "Alarm condition is violated",
"alarm_status": "Alarm",
"last_status_change_time": "2023-04-29T01:35:37Z",
"alarm_condition_type": "Upper limit",
"alarm_severity": "Warning",
"alarm_time": "2023-04-29T06:25:00Z",
"alarm_time_local": "2023-04-29T08:25:00+02:00",
"serial_number": "56000000",
"alarm_source_uuid": "f1aa6496-abe8-4920-1111-7ee5f529a321",
"alarm_type": "measurement alarm",
"processed_at": "2023-04-29T06:27:25Z"
}
{
"content-length": "832",
"timestamp": "1682749648090",
"content-type": "application/json",
"message-id": "cb-4d60f416-7083-406c-9476-6d166c21bf72-1-39009-1682707981501-3",
"priority": "4",
"subscription": "sub-0",
"destination": "/queue/username/alarms",
"expires": "0"
}
device/sensor system alarm event
Detailed information about the alarm.
fields that only exist in measurement alarm type