Sensor Alerts Webhook Object

A Sensor Alerts webhook object contains the following fields:

AttributeTypeDescription
webhook_typeStringsensor_alert
webhook_idStringThe unique identifier of the webhook.
org_idStringThe unique identifier of the organization.
created_atIntegerThe creation time of the webhook. Formatted as a Unix timestamp in seconds.
dataObjectThe data associated with the notification. See the following attribute for sub-fields.
data.alert_event_idStringThe unique identifier of the alert.
data.start_timeDoubleThe start time of the alert. Formatted as a Unix timestamp in seconds.
data.end_timeDoubleThe end time of the alert. Formatted as a Unix timestamp in seconds.
data.most_extreme_valueDoubleThe most extreme value for the sensor that was detected during the alert window.
data.is_above_max_eventBooleanIf the alert can be configured with a low/high threshold, this value will be true if the value that triggered the alert was above the high threshold. This only applies to temperature and humidity alerts.
data.thresholdDoubleUser-defined threshold of the alert.
data.readingStringThe sensor type of the alert.
data.device_idStringThe unique identifier of the device that generated the alert.
data.device_nameStringThe name of the device that generated the alert.
data.device_serialStringThe serial number of the device that generated the alert.

Sample Sensor Webhook Object

{
  org_id: '3c85f39b-0d3d-4288-9c7e-cdec0b5b4ac5',
  webhook_type: 'sensor_alert',
  created_at: 1641230332,
  webhook_id: 'bafdfe28-abcc-478c-a5cc-b465e293bc43',
  data: {
    alert_event_id: 'e006ef1c-e039-43e0-88f5-093b17ccc2dc',
    start_time: 1641230330.845883,
    end_time: null,
    most_extreme_value: 38.725012367437245,
    is_above_max_event: true,
    threshold: 35,
    reading: 'calibrated_temperature',
    device_id: 'e637120c-09bb-4601-a8bf-dcf54d46aece',
    device_name: "Lobby Sensor",
    device_serial: 'JQ9E-R9CG-RF6X'
  }
}