Retrieve monitor history
Lists the notifications sent for the monitor between startTime and endTime. Each delivery is a separate item: one per notifier, and one per recipient for email notifiers. Failed deliveries are included. State changes that sent no notification, for example while the monitor had no notifiers, aren't listed. To list the runs of the monitor, set kind to run. The caller needs query access to the monitor's datasets.
Parameters
| Property | Type | Location | Description |
|---|---|---|---|
id | stringRequired | path | Monitor ID. |
start | stringRequired | query | Start of the time range (RFC 3339). |
end | stringRequired | query | End of the time range (RFC 3339). Must not be before startTime. |
kind | string[] | query | Kinds of item to list. notification lists the notifications sent. run lists the runs of the monitor, whether or not they sent a notification: one item per run, or one item per group for a monitor that groups its results, limited to the newest 1,000 in the time range. If you pass both, the items are merged and sorted from newest to oldest. |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Notifications and runs in the time range, as selected by `kind`.400Bad Request403Forbidden404Not Found| Property | Type | Description |
|---|---|---|
check | stringRequired | ID of the monitor |
kind | stringRequired | notification for a notification sent for the monitor, run for the result of one run |
name | stringRequired | For a notification, its title: Triggered: or Resolved: followed by the monitor name. For a run, the monitor name. |
run | object | Details of a run. Only returned for items of kind run. |
error | string | Error of the run, if it failed |
group | string | Values of the fields the monitor groups by, for the group of this item. Not returned for a monitor that doesn't group its results. |
matching | numberRequired | Value the run compared against the monitor's condition |
query | string | End of the time range the run queried, if the run recorded one |
query | string | Start of the time range the run queried, if the run recorded one |
run | stringRequired | ID of the run. A monitor that groups its results returns one item per group, and the items of one run share this ID. |
state | stringRequired | For a notification, open if it reported that the monitor triggered and closed if it reported that the monitor resolved. For a run, the alert state after the run, or error if the run failed. |
timestamp | stringRequired | For a notification, the time the delivery was recorded, after any retries. For a run, the time of the run. |