Skip to content

Get history of alarm rule
Stable

Request

⚠️ Android only.

Returns the firing history for a specific alarm rule identified by its UUID alarm_id. Each record in the response represents an instance when the rule's conditions were met, identifying the device that triggered the alert, the group it belongs to, and the timestamps for when the alert fired and when the condition was last observed.

Response fields of note

device_name — Name of the device that triggered the alert

device_id — UUID of the device that triggered the alert

group_id — Array of group UUIDs the triggering device belongs to

group_name — Name of the group the triggering device belongs to

alert_time — Timestamp of when the alert fired

latest_seen — Timestamp of when the triggering condition was last observed on the device

Common use cases

Investigating which specific devices triggered an alarm rule and when, to support troubleshooting or incident response

Auditing alert activity before deleting an alarm rule to preserve a record of its history

Assessing whether a rule is firing too frequently or on unexpected devices, to inform threshold tuning

Generating compliance or operational reports on device health events over time

Best practices

Review this endpoint before deleting an alarm rule — firing history is not recoverable after the rule is deleted

Cross-reference device_id values with GET /enterprise/{enterprise_id}/device/{device_id}/ to retrieve full device context for triggered alerts

alarm_id is a UUID — use GET /alarmrules/ with the name filter to look it up if it is not already known

Security
esper_cloud_api_apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

alarm_idstringrequired

A UUID string identifying the alarm ruleset.

cURL
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/alarmrules/{alarm_id}/alarmhistory/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

successful operation

Bodyapplication/json
device_namestring
device_idstring, (uuid)
group_idArray of any, (string)

lists group id's in uuid format

group_namestring
alert_timestring, (date-time)
latest_seenstring, (date-time)
Response
{ "device_name": "string", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "group_id": [ null ], "group_name": "string", "alert_time": "2019-08-24T14:15:22Z", "latest_seen": "2019-08-24T14:15:22Z" }