Overview

Retrieve monitor history

Get monitor history

GET/v2/monitors/{id}/history
Features

Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.

Input3
Authorizationheaderrequired
Sent from your browser straight to the API — never to Docsbook, never stored.
idstring · pathrequired
(path)
startTimestring · queryrequired
(query) Start time (ISO 8601 format) for filtering alert history.
endTimestring · queryrequired
(query) End time (ISO 8601 format) for filtering alert history.
Output4
checkIdstring
Unique identifier of the check that triggered the alert
namestring
The name of the alert
statestring
Current state of the alert One of: open, closed.
timestampstring
ISO 8601 timestamp when the alert state changed
Responses
200AlertHistory
Example input
curl 'https://api.axiom.co/v2/monitors/{id}/history?startTime=<startTime>&endTime=<endTime>' \
  -H 'Authorization: Bearer API_TOKEN'
Example output
[
  {
    "checkId": "chk_abc123",
    "name": "High CPU Usage Alert",
    "state": "open",
    "timestamp": "2024-03-20T15:30:00Z"
  }
]

Updated

Was this page helpful?