Read an alarm's timeline
const url = 'https://example.com/api/v1/components/example/alarms/example:timeline';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/components/example/alarms/example:timelineThe alarm’s history in one list, oldest first: the events that carry it (an event rule’s fire event, which opened it, and its clear event, which resolved it) merged by time with its audit rows (the raise, each acknowledgement, the clear, each snooze, unsnooze and snooze-end, and a rule edit that opened or resolved it, naming the editor) and the notifications its transitions queued, each at the moment it was queued with its status as it stands (#618). At one instant an event comes before the audit row it caused, and that before a notification. Gated by alarm:read; a component outside the caller’s component read scope, and an alarm not on the component, are a non-disclosing 404.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1)
The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1)
The alarm id
The alarm id
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Oldest first; at one instant an event comes before the audit row it caused
object
The action rule that queued a notification, by name
Who acted, by name; absent when the platform acted for a rule
When it happened (a notification: when it was queued, the transition’s own moment)
A notification’s attempts so far
How a notification travels: webhook, a person’s inbox, or email
Why a notification’s last attempt failed, or why a suppressed one was held back
The series instance (an endpoint) an event is about
An event carrying the alarm (a rule’s fire or clear event), an audit row about it, or a notification about it (#618)
The event’s message, the message the alarm was raised with, or a notification’s rendered subject
A notification’s uuid, what :retry names
The person a notification is addressed to, by username: shown to that person and to holders of user:read:admin
True when a notification is addressed to a person whose name the caller may not see
The event rule the entry belongs to, by name: the rule that wrote the event, or the rule the platform acted for
The target a notification goes to, by name
The alarm edge a notification is about: raised or cleared
The event’s type (e.g. rule-fired), the audit action (raise, acknowledge, clear, snooze, unsnooze, or snooze-end when a snooze reached its deadline), or a notification’s status as it stands (queued, sent, failed, or suppressed when its alarm was snoozed)
Example
{ "$schema": "/api/v1/schemas/AlarmTimelineOutputBody.json", "entries": [ { "channel": "webhook", "kind": "event" } ]}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}