Learn how to manage Axiom monitors via API.
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.monitors
endpoint. In the body of the request, specify the following:
name
of your monitor.aplQuery
is the APL query that the monitor periodically runs to aggregate data. Axiom alerts you when the results from your query cross the threshold.threshold
is the value to compare the results of the query to. This can be any numeric value.operator
is the rule to apply when comparing the results to the threshold. The possible values are Below
, BelowOrEqual
, Above
, and AboveOrEqual
.intervalMinutes
is how often the monitor runs. This is a positive integer number of minutes.rangeMinutes
is the time range for your query. This is a positive integer number of minutes. The end time is the time the monitor runs.alertOnNoData
triggers the monitor when your query doesn’t return any data. Your query returns no data if no events match your filters and an aggregation used in the query is undefined. For example, you take the average of a field not present in any matching events.description
explains what your monitor does.notifierIds
is a list of notifier IDs. The related notifiers define how you want to receive notifications for this monitor. For more information, see Manage notifiers.notifyByGroup
to true. At most one trigger notification is sent per monitor run. This option only has an effect if the monitor’s query groups by a non-time field.AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.monitors
endpoint. For example:
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.monitors/MONITOR_ID
endpoint where MONITOR_ID
is the unique ID of the monitor. For example:
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.monitors/MONITOR_ID
endpoint where MONITOR_ID
is the unique ID of the monitor. In the body of the request, specify the properties you want to update. For example:
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.monitors/MONITOR_ID
endpoint where MONITOR_ID
is the unique ID of the monitor. For example:
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.