Axiom

App · 25 actions

Send events to Axiom, run APL queries, manage datasets, monitors, notifiers and annotations, and follow new events, triggered and resolved monitors, new datasets and annotations.

Actions

ActionWhat it does
Create annotationMark an event, such as a deployment, on the charts of some datasets.
Create datasetCreate a dataset to send events to.
Create monitorCreate a monitor that runs an APL query on a schedule and notifies when its result crosses a threshold, matches, or looks unusual.
Create notifierCreate a notifier that emails people or posts to a Slack, Teams, Discord or other webhook.
Delete annotationDelete an annotation.
Delete datasetDelete a dataset and, permanently, its events.
Delete monitorDelete a monitor.
Delete notifierDelete a notifier.
Get annotationGet an annotation's type, title, time and datasets.
Get datasetGet a dataset's description, kind, retention and edge deployment.
Get monitorGet a monitor's query, type, threshold, schedule and notifiers.
Get monitor historyList when a monitor triggered and resolved in a time range.
Get notifierGet a notifier's name, channel and whether failed deliveries turned it off.
List annotationsList annotations, the deployments and other events marked on charts, optionally for some datasets or a time range.
List dataset fieldsList a dataset's fields with their types, to write queries with.
List datasetsList the datasets the token can read, with their kind and retention.
List monitorsList the organization's monitors with their query, schedule and notifiers.
List notifiersList the notifiers monitors can alert: email addresses, Slack, Teams, webhooks and more.
Run APL queryRun an APL query and get its rows, such as ['web-logs'] | where status >= 500 | take 100.
Send eventsSend one event, or several as JSON, to a dataset.
Trim datasetPermanently delete a dataset's events older than a number of days.
Update annotationChange an annotation.
Update datasetChange a dataset's description or retention.
Update monitorChange a monitor.
Update notifierRename a notifier or change its email addresses or webhook address.

Create annotation

Mark an event, such as a deployment, on the charts of some datasets.

Inputs

TypetypetextRequired
The kind of event, in letters, numbers and hyphens, such as `production-deployment`.
DatasetsdatasetslistRequired
The datasets whose charts show it.
Titletitletext
A short summary.
Descriptiondescriptiontext
What happened, up to 512 characters.
Linkurltext
A link about it, such as the pull request.
Timetimedate and time
When it happened. Leave empty for now.
End timeend_timedate and time
When it ended, for an event that lasted a while.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "datasets": [
      "example"
    ],
    "description": "example",
    "endTime": "example",
    "id": "example",
    "time": "example",
    "title": "example",
    "type": "example",
    "url": "example"
  }
}

Create dataset

Create a dataset to send events to.

Inputs

NamenametextRequired
The dataset's name, unique in the organization, such as `web-logs`.
Descriptiondescriptiontext
What the dataset holds.
Kinddataset_kindtext
What the dataset holds. Leave empty for events.One of: axiom:events:v1 (Events), otel:logs:v1 (OpenTelemetry logs), otel:traces:v1 (OpenTelemetry traces), otel:metrics:v1 (OpenTelemetry metrics).
Retention (days)retention_daysnumber
How many days to keep events. Leave empty for the plan's retention.At least 1.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "canWrite": true,
    "created": "example",
    "description": "example",
    "edgeDeployment": "example",
    "id": "example",
    "kind": "example",
    "labelNames": [
      "example"
    ],
    "name": "example",
    "retentionDays": 1,
    "updatedAt": "example",
    "who": "example"
  }
}

Create monitor

Create a monitor that runs an APL query on a schedule and notifies when its result crosses a threshold, matches, or looks unusual.

Inputs

NamenametextRequired
The monitor's name.
TypetypetextRequired
Threshold compares a number with a threshold, Match event alerts on every matching event, Anomaly detection on unusual values and New values on values not seen before.One of: Threshold, MatchEvent (Match event), AnomalyDetection (Anomaly detection), NewValues (New values).
APL queryapl_querytextRequired
The APL query the monitor runs, such as `['logs'] | where status >= 500 | summarize count()`.
Comparisonoperatortext
For a threshold or anomaly monitor: how the result compares with the threshold.One of: Above, AboveOrEqual (Above or equal), Below, BelowOrEqual (Below or equal), AboveOrBelow (Above or below).
Thresholdthresholdnumber
For a threshold monitor: the value to compare with.
Run every (minutes)interval_minutesnumber
How often the monitor runs, in minutes.At least 1.
Look back (minutes)range_minutesnumber
How many minutes of data each run looks at.At least 1.
Notifiersnotifier_idslist
Who is told when the monitor triggers.
Descriptiondescriptiontext
What the monitor watches.
Columncolumn_nametext
The column of the query's result to compare, when it has more than one.
Alert on no dataalert_on_no_datatrue/false
Also trigger when the query returns no data.
Notify per groupnotify_by_grouptrue/false
Notify once per group of the query's result rather than once in all.
Turned offdisabledtrue/false
Turn the monitor off.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "alertOnNoData": true,
    "aplQuery": "example",
    "columnName": "example",
    "createdAt": "example",
    "createdBy": "example",
    "description": "example",
    "disabled": true,
    "id": "example",
    "intervalMinutes": 1,
    "name": "example",
    "notifierIds": [
      "example"
    ],
    "notifyByGroup": true,
    "operator": "example",
    "rangeMinutes": 1,
    "threshold": 1,
    "type": "example"
  }
}

Create notifier

Create a notifier that emails people or posts to a Slack, Teams, Discord or other webhook.

Inputs

NamenametextRequired
The notifier's name.
ChannelchanneltextRequired
Where it notifies.One of: email, slack (Slack (incoming webhook)), webhook, microsoftTeams (Microsoft Teams), discordWebhook (Discord (webhook)).
Email addressesemailslist
For an email notifier: the addresses to notify.
Webhook addressurltext
For a Slack, Teams, Discord or webhook notifier: the incoming webhook address, starting with https://.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "disabled": true,
    "disabledUntil": "example",
    "id": "example",
    "lastError": "example",
    "name": "example",
    "properties": {}
  }
}

Delete annotation

Delete an annotation.

Inputs

Annotationannotation_idtextRequired
The annotation's ID.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {}
}

Delete dataset

Delete a dataset and, permanently, its events.

Inputs

DatasetdatasettextRequired
The dataset.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "jobID": "example"
  }
}

Delete monitor

Delete a monitor.

Inputs

Monitormonitor_idtextRequired
The monitor.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {}
}

Delete notifier

Delete a notifier. Monitors stop notifying it.

Inputs

Notifiernotifier_idtextRequired
The notifier.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {}
}

Get annotation

Get an annotation's type, title, time and datasets.

Inputs

Annotationannotation_idtextRequired
The annotation's ID.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "datasets": [
      "example"
    ],
    "description": "example",
    "endTime": "example",
    "id": "example",
    "time": "example",
    "title": "example",
    "type": "example",
    "url": "example"
  }
}

Get dataset

Get a dataset's description, kind, retention and edge deployment.

Inputs

DatasetdatasettextRequired
The dataset.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "canWrite": true,
    "created": "example",
    "description": "example",
    "edgeDeployment": "example",
    "id": "example",
    "kind": "example",
    "labelNames": [
      "example"
    ],
    "name": "example",
    "retentionDays": 1,
    "updatedAt": "example",
    "who": "example"
  }
}

Get monitor

Get a monitor's query, type, threshold, schedule and notifiers.

Inputs

Monitormonitor_idtextRequired
The monitor.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "alertOnNoData": true,
    "aplQuery": "example",
    "columnName": "example",
    "createdAt": "example",
    "createdBy": "example",
    "description": "example",
    "disabled": true,
    "id": "example",
    "intervalMinutes": 1,
    "name": "example",
    "notifierIds": [
      "example"
    ],
    "notifyByGroup": true,
    "operator": "example",
    "rangeMinutes": 1,
    "threshold": 1,
    "type": "example"
  }
}

Get monitor history

List when a monitor triggered and resolved in a time range.

Inputs

Monitormonitor_idtextRequired
The monitor.
Fromstart_timedate and time
From this time. Leave empty for a day before Until.
Untilend_timedate and time
Until this time. Leave empty for now.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "checkId": "example",
      "name": "example",
      "state": "example",
      "timestamp": "example"
    }
  ]
}

Get notifier

Get a notifier's name, channel and whether failed deliveries turned it off.

Inputs

Notifiernotifier_idtextRequired
The notifier.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "disabled": true,
    "disabledUntil": "example",
    "id": "example",
    "lastError": "example",
    "name": "example",
    "properties": {}
  }
}

List annotations

List annotations, the deployments and other events marked on charts, optionally for some datasets or a time range.

Inputs

Datasetsdatasetslist
Only annotations on these datasets.
Fromstartdate and time
Only annotations after this time.
Untilenddate and time
Only annotations before this time.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "datasets": [
        "example"
      ],
      "description": "example",
      "endTime": "example",
      "id": "example",
      "time": "example",
      "title": "example",
      "type": "example",
      "url": "example"
    }
  ]
}

List dataset fields

List a dataset's fields with their types, to write queries with.

Inputs

DatasetdatasettextRequired
The dataset.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "description": "example",
      "hidden": true,
      "name": "example",
      "type": "example",
      "unit": "example"
    }
  ]
}

List datasets

List the datasets the token can read, with their kind and retention.

Inputs

None.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "canWrite": true,
      "created": "example",
      "description": "example",
      "edgeDeployment": "example",
      "id": "example",
      "kind": "example",
      "labelNames": [
        "example"
      ],
      "name": "example",
      "retentionDays": 1,
      "updatedAt": "example",
      "who": "example"
    }
  ]
}

List monitors

List the organization's monitors with their query, schedule and notifiers.

Inputs

None.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "alertOnNoData": true,
      "aplQuery": "example",
      "columnName": "example",
      "createdAt": "example",
      "createdBy": "example",
      "description": "example",
      "disabled": true,
      "id": "example",
      "intervalMinutes": 1,
      "name": "example",
      "notifierIds": [
        "example"
      ],
      "notifyByGroup": true,
      "operator": "example",
      "rangeMinutes": 1,
      "threshold": 1,
      "type": "example"
    }
  ]
}

List notifiers

List the notifiers monitors can alert: email addresses, Slack, Teams, webhooks and more.

Inputs

None.

Outputs

datalist
The response from Axiom.
Example output
{
  "data": [
    {
      "createdAt": "example",
      "createdBy": "example",
      "disabled": true,
      "disabledUntil": "example",
      "id": "example",
      "lastError": "example",
      "name": "example",
      "properties": {}
    }
  ]
}

Run APL query

Run an APL query and get its rows, such as ['web-logs'] | where status >= 500 | take 100.

Inputs

APL queryapltextRequired
The APL query. It names the dataset, such as `['web-logs'] | summarize count() by status`.
Fromstart_timedate and time
Only events at or after this time. Leave empty for the query's own range.
Untilend_timedate and time
Only events before this time. Leave empty for now.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "fields": [
      {
        "name": "example",
        "type": "example"
      }
    ],
    "rows": [
      {}
    ],
    "status": {
      "elapsedTime": 1,
      "isPartial": true,
      "maxCursor": "example",
      "minCursor": "example",
      "rowsExamined": 1,
      "rowsMatched": 1
    }
  }
}

Send events

Send one event, or several as JSON, to a dataset. Each is stamped with the time it arrives unless Timestamp field names one of its own.

Inputs

DatasetdatasettextRequired
The dataset to send to.
Eventeventobject
One event, as its fields, such as `level` and `error`. Fill in this or Events as JSON.
Events as JSONevents_jsontext
Several events at once, as a JSON list of objects, such as `[{"level": "error"}, {"level": "info"}]`.
Timestamp fieldtimestamp_fieldtext
The field holding each event's own time. Leave empty to use `_time`, or the time it arrives.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "failed": 1,
    "failures": [
      {
        "error": "example",
        "timestamp": "example"
      }
    ],
    "ingested": 1,
    "processedBytes": 1
  }
}

Trim dataset

Permanently delete a dataset's events older than a number of days.

Inputs

DatasetdatasettextRequired
The dataset.
Days to keepkeep_daysnumberRequired
Keep the events of this many most recent days; older ones are deleted.At least 1.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "jobID": "example"
  }
}

Update annotation

Change an annotation. Only the fields filled in change.

Inputs

Annotationannotation_idtextRequired
The annotation's ID.
Typetypetext
The kind of event.
Datasetsdatasetslist
The datasets whose charts show it.
Titletitletext
A short summary.
Descriptiondescriptiontext
What happened, up to 512 characters.
Linkurltext
A link about it.
Timetimedate and time
When it happened.
End timeend_timedate and time
When it ended.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "datasets": [
      "example"
    ],
    "description": "example",
    "endTime": "example",
    "id": "example",
    "time": "example",
    "title": "example",
    "type": "example",
    "url": "example"
  }
}

Update dataset

Change a dataset's description or retention. Only the fields filled in change.

Inputs

DatasetdatasettextRequired
The dataset.
Descriptiondescriptiontext
The dataset's new description.
Retention (days)retention_daysnumber
How many days to keep events. Leave empty for the plan's retention.At least 1.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "canWrite": true,
    "created": "example",
    "description": "example",
    "edgeDeployment": "example",
    "id": "example",
    "kind": "example",
    "labelNames": [
      "example"
    ],
    "name": "example",
    "retentionDays": 1,
    "updatedAt": "example",
    "who": "example"
  }
}

Update monitor

Change a monitor. Only the fields filled in change.

Inputs

Monitormonitor_idtextRequired
The monitor.
Namenametext
The monitor's name.
Typetypetext
Threshold compares a number with a threshold, Match event alerts on every matching event, Anomaly detection on unusual values and New values on values not seen before.One of: Threshold, MatchEvent (Match event), AnomalyDetection (Anomaly detection), NewValues (New values).
APL queryapl_querytext
The APL query the monitor runs, such as `['logs'] | where status >= 500 | summarize count()`.
Comparisonoperatortext
For a threshold or anomaly monitor: how the result compares with the threshold.One of: Above, AboveOrEqual (Above or equal), Below, BelowOrEqual (Below or equal), AboveOrBelow (Above or below).
Thresholdthresholdnumber
For a threshold monitor: the value to compare with.
Run every (minutes)interval_minutesnumber
How often the monitor runs, in minutes.At least 1.
Look back (minutes)range_minutesnumber
How many minutes of data each run looks at.At least 1.
Notifiersnotifier_idslist
Who is told when the monitor triggers.
Descriptiondescriptiontext
What the monitor watches.
Columncolumn_nametext
The column of the query's result to compare, when it has more than one.
Alert on no dataalert_on_no_datatrue/false
Also trigger when the query returns no data.
Notify per groupnotify_by_grouptrue/false
Notify once per group of the query's result rather than once in all.
Turned offdisabledtrue/false
Turn the monitor off.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "alertOnNoData": true,
    "aplQuery": "example",
    "columnName": "example",
    "createdAt": "example",
    "createdBy": "example",
    "description": "example",
    "disabled": true,
    "id": "example",
    "intervalMinutes": 1,
    "name": "example",
    "notifierIds": [
      "example"
    ],
    "notifyByGroup": true,
    "operator": "example",
    "rangeMinutes": 1,
    "threshold": 1,
    "type": "example"
  }
}

Update notifier

Rename a notifier or change its email addresses or webhook address. Only the fields filled in change.

Inputs

Notifiernotifier_idtextRequired
The notifier.
Namenametext
The notifier's new name.
Email addressesemailslist
For an email notifier: the addresses to notify.
Webhook addressurltext
For a Slack, Teams, Discord or webhook notifier: the incoming webhook address, starting with https://.

Outputs

dataobject
The response from Axiom.
Example output
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "disabled": true,
    "disabledUntil": "example",
    "id": "example",
    "lastError": "example",
    "name": "example",
    "properties": {}
  }
}

On this page