Annotation endpoints
API token endpoints
Dataset endpoints
Monitor endpoints
Notifier endpoints
Organization endpoints
Role-based access control endpoints
Starred queries endpoints
User endpoints
Monitor endpoints
Retrieve monitor
Retrieve monitor
Retrieves detailed configuration for a specific monitor by its unique identifier
GET
/
monitors
/
{id}
curl --request GET \
--url https://api.axiom.co/v2/monitors/{id} \
--header 'Authorization: Bearer <token>'
{
"alertOnNoData": true,
"aplQuery": "| where severity = 'error' | count() > 100",
"columnName": "cpu_usage",
"compareDays": 7,
"createdAt": "2024-03-20T10:00:00Z",
"createdBy": "usr_789xyz",
"description": "Monitors CPU usage and alerts when it exceeds 90%",
"disabled": false,
"disabledUntil": "2024-04-01T00:00:00Z",
"intervalMinutes": 5,
"name": "Production CPU Monitor",
"notifierIds": [
"notify_slack_prod",
"notify_email_oncall"
],
"notifyByGroup": false,
"notifyEveryRun": false,
"operator": "Above",
"rangeMinutes": 5,
"resolvable": true,
"secondDelay": 300,
"skipResolved": false,
"threshold": 90,
"tolerance": 10,
"triggerAfterNPositiveResults": 2,
"triggerFromNRuns": 3,
"type": "Threshold",
"id": "mon_xyz789"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Unique identifier of the monitor (format: mon_*)
Response
200 - application/json
Monitor
Monitor configuration with its unique identifier
Was this page helpful?
curl --request GET \
--url https://api.axiom.co/v2/monitors/{id} \
--header 'Authorization: Bearer <token>'
{
"alertOnNoData": true,
"aplQuery": "| where severity = 'error' | count() > 100",
"columnName": "cpu_usage",
"compareDays": 7,
"createdAt": "2024-03-20T10:00:00Z",
"createdBy": "usr_789xyz",
"description": "Monitors CPU usage and alerts when it exceeds 90%",
"disabled": false,
"disabledUntil": "2024-04-01T00:00:00Z",
"intervalMinutes": 5,
"name": "Production CPU Monitor",
"notifierIds": [
"notify_slack_prod",
"notify_email_oncall"
],
"notifyByGroup": false,
"notifyEveryRun": false,
"operator": "Above",
"rangeMinutes": 5,
"resolvable": true,
"secondDelay": 300,
"skipResolved": false,
"threshold": 90,
"tolerance": 10,
"triggerAfterNPositiveResults": 2,
"triggerFromNRuns": 3,
"type": "Threshold",
"id": "mon_xyz789"
}