Skip to content

Agent results

List events

What changed, newest first: new objects, status and value changes, alerts, panel updates and a summary of each run.

GET/v1/monitors/{monitor_id}/agent/events

Send your API key as Authorization: Bearer. See Authentication. How each option works: Monitors.

Path parameter

monitor_idstring
The ID of a monitor that has an agent.

Query parameters

since_tickintegerat least 0
Only events from this tick on. A tick is one run of the agent.
kindstringone of new_object, status_change, attr_change, alert, panel_update, tick, promote, demote, restore, shadow_recreated
Only events of this kind.
limitintegerdefault 5001 to 500
How many events to return.

To follow what changes, use List changes: it reads on from a cursor and never shows a change twice.

Response

200

events[]object[]
The events, newest first: new objects, status and value changes, alerts, panel updates and a summary of each tick.
events[].tickinteger
The tick of the event.
events[].kindstring
What kind of event it is.
events[].identity_keystring or null
The object it is about, or null. See Get an object.
events[].payloadobject
The details of the event.

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid.
403forbiddenThe API key cannot read monitors (a GET) or change them (the other methods).
404not_foundThe monitor is not in your key's project, or it has no agent.
422invalid_requestA parameter or the body is not valid. error.param names it.
429rate_limitedYour key or account sent too many requests. Wait for the seconds in Retry-After, then try again.

What each error means and what to do: Errors.

Was this page helpful?