Alerts
Optional filter to get alerts for a single sensor by its MAC address (e.g. C5:2A:E7:4D:CE:7F).
C5:2A:E7:4D:CE:7FPattern: ^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$Alerts fetched successfully
UNAUTHORIZED - Auth token missing
FORBIDDEN - User does not have access to the requested sensor
MAC address of the sensor (e.g. C5:2A:E7:4D:CE:7F)
^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$Type of alert condition
Whether the alert is active. If missing, defaults to false. If value was already existing, it will not be changed.
Lower limit for the alert condition. If missing, defaults to 0. If value was already existing, it will not be changed.
Upper limit for the alert condition. If missing, defaults to 0. If value was already existing, it will not be changed.
Movement counter threshold (relevant for movement type alerts). If missing, defaults to 0. If value was already existing, it will not be changed.
User-provided description of the alert. If missing, defaults to empty string. If value was already existing, it will not be changed.
Delay in minutes before triggering the alert. If missing, defaults to 0. If value was already existing, it will not be changed.
Optional epoch timestamp for the alert. If missing, it is assumed to be the current time.
Alert stored or updated successfully
BAD REQUEST - Missing or malformed fields (sensor, type, or enabled missing; sensor not MAC address; type not valid)
UNAUTHORIZED - Auth token missing
FORBIDDEN - User does not have permission to set alerts for this sensor
CONFLICT - Alert with same or newer timestamp already exists
Last updated