Skip to content

Read an alarm's timeline

GET
/components/{name}/alarms/{id}:timeline
curl --request GET \
--url https://example.com/api/v1/components/example/alarms/example:timeline

The 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.

name
required

The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

string

The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

id
required

The alarm id

string

The alarm id

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
alarm_id
required
string
component
required
string
entries
required

Oldest first; at one instant an event comes before the audit row it caused

Array<object> | null
object
action_rule

The action rule that queued a notification, by name

string
actor

Who acted, by name; absent when the platform acted for a rule

string
at
required

When it happened (a notification: when it was queued, the transition’s own moment)

string format: date-time
attempts

A notification’s attempts so far

integer format: int64
channel

How a notification travels: webhook, a person’s inbox, or email

string
Allowed values: webhook inbox email ""
error

Why a notification’s last attempt failed, or why a suppressed one was held back

string
instance

The series instance (an endpoint) an event is about

string
kind
required

An event carrying the alarm (a rule’s fire or clear event), an audit row about it, or a notification about it (#618)

string
Allowed values: event audit notification
message

The event’s message, the message the alarm was raised with, or a notification’s rendered subject

string
notification

A notification’s uuid, what :retry names

string
recipient

The person a notification is addressed to, by username: shown to that person and to holders of user:read:admin

string
recipient_withheld

True when a notification is addressed to a person whose name the caller may not see

boolean
rule

The event rule the entry belongs to, by name: the rule that wrote the event, or the rule the platform acted for

string
target

The target a notification goes to, by name

string
transition

The alarm edge a notification is about: raised or cleared

string
what
required

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)

string

Example

{
"$schema": "/api/v1/schemas/AlarmTimelineOutputBody.json",
"entries": [
{
"channel": "webhook",
"kind": "event"
}
]
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

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"
}