Docs
DocumentationQuery ReferenceAPI Reference
Open Console→→
DocumentationQuery ReferenceAPI Reference

Get started

IntroductionSend dataQuery dataPaginationAPI limits

Annotations

List all annotationsGETRetrieve annotationGETCreate annotationPOSTUpdate annotationPUTDelete annotationDELETE

API tokens

List all API tokensGETRetrieve API tokenGETCreate API tokenPOSTRegenerate API tokenPOSTDelete API tokenDELETE

Dashboards

Dashboard JSONList all dashboardsGETRetrieve dashboardGETCreate dashboardPOSTUpdate dashboardPUTPatch dashboard elementPATCHDelete dashboardDELETE

Datasets

List all datasetsGETRetrieve datasetGETList all fields in datasetGETRetrieve field in datasetGETCreate datasetPOSTIngest data (legacy)POSTRun APL query (legacy)POSTRun query (legacy)POSTTrim datasetPOSTUpdate datasetPUTUpdate fieldPUTVacuum datasetPOSTDelete fieldsPOSTDelete fieldDELETEDelete datasetDELETE

Edge

Ingest data to edge deploymentIngest Splunk HEC eventsIngest raw Splunk HEC eventsCheck Splunk HEC healthRun APL query to edge deploymentRun batch query to edge deploymentRun MPL query to edge deploymentGet metrics for a datasetFind metrics by tag valueGet metric tags for a datasetGet metric tag values for a datasetGet tags for a datasetGet tag values for a dataset

Labels

List all labelsGETRetrieve labelGETCreate labelPOSTUpdate labelPUTDelete labelDELETEList label assignmentsPOSTReplace label assignmentsPUT

Map fields

List all map fieldsGETCreate map fieldPOSTUpdate list of map fieldsPUTDelete map fieldsDELETE

Monitors

List all monitorsGETRetrieve monitorGETRetrieve monitor historyGETCreate monitorPOSTUpdate monitorPUTDelete monitorDELETE

Notifiers

List all notifiersGETRetrieve notifierGETCreate notifierPOSTUpdate notifierPUTDelete notifierDELETE

Organizations

List all orgsGETRetrieve orgGETCreate orgPOSTUpdate orgPUTProvision orgPOST

Role-based access control

List all rolesGETRetrieve roleGETList all groupsGETRetrieve groupGETCreate rolePOSTCreate groupPOSTUpdate rolePUTUpdate groupPUTDelete roleDELETEDelete groupDELETE

Saved queries

List all saved queriesGETRetrieve saved queryGETCreate saved queryPOSTUpdate saved queryPUTDelete saved queryDELETE

Users

Retrieve current userGETList all usersGETRetrieve userGETCreate userPOSTUpdate current userPUTUpdate user rolePUTDelete user from orgDELETE

Views

List all viewsGETRetrieve viewGETCreate viewPOSTUpdate viewPUTDelete viewDELETE

Virtual fields

List all virtual fieldsGETRetrieve virtual fieldGETCreate virtual fieldPOSTUpdate virtual fieldPUTDelete virtual fieldDELETE
Monitors

Retrieve monitor history

GET/v2/monitors/{id}/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

PropertyTypeLocationDescription
idstringRequiredpathMonitor ID.
startTimestring<date-time>RequiredqueryStart of the time range (RFC 3339).
endTimestring<date-time>RequiredqueryEnd of the time range (RFC 3339). Must not be before startTime.
kindstring[]queryKinds 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

curl -X GET 'https://api.axiom.co/v2/monitors/ID/history' \
  -H 'Authorization: Bearer API_TOKEN'
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`.
application/json
400Bad Request
403Forbidden
404Not Found
PropertyTypeDescription
checkIdstringRequiredID of the monitor
kindstringRequirednotification for a notification sent for the monitor, run for the result of one run
namestringRequiredFor a notification, its title: Triggered: or Resolved: followed by the monitor name. For a run, the monitor name.
runobjectDetails of a run. Only returned for items of kind run.
└errorstringError of the run, if it failed
└groupValuesstringValues of the fields the monitor groups by, for the group of this item. Not returned for a monitor that doesn't group its results.
└matchingValuenumber<double>RequiredValue the run compared against the monitor's condition
└queryEndTimestring<date-time>End of the time range the run queried, if the run recorded one
└queryStartTimestring<date-time>Start of the time range the run queried, if the run recorded one
└runIdstringRequiredID of the run. A monitor that groups its results returns one item per group, and the items of one run share this ID.
statestringRequiredFor 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.
timestampstring<date-time>RequiredFor a notification, the time the delivery was recorded, after any retries. For a run, the time of the run.
Was this page helpful?
Suggest edits on GitHub
PreviousRetrieve monitorNextCreate monitor
On this page
ParametersRequestResponse