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
| Action | What it does |
|---|---|
| Create annotation | Mark an event, such as a deployment, on the charts of some datasets. |
| Create dataset | Create a dataset to send events to. |
| 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. |
| Create notifier | Create a notifier that emails people or posts to a Slack, Teams, Discord or other webhook. |
| Delete annotation | Delete an annotation. |
| Delete dataset | Delete a dataset and, permanently, its events. |
| Delete monitor | Delete a monitor. |
| Delete notifier | Delete a notifier. |
| Get annotation | Get an annotation's type, title, time and datasets. |
| Get dataset | Get a dataset's description, kind, retention and edge deployment. |
| Get monitor | Get a monitor's query, type, threshold, schedule and notifiers. |
| Get monitor history | List when a monitor triggered and resolved in a time range. |
| Get notifier | Get a notifier's name, channel and whether failed deliveries turned it off. |
| List annotations | List annotations, the deployments and other events marked on charts, optionally for some datasets or a time range. |
| List dataset fields | List a dataset's fields with their types, to write queries with. |
| List datasets | List the datasets the token can read, with their kind and retention. |
| List monitors | List the organization's monitors with their query, schedule and notifiers. |
| List notifiers | List the notifiers monitors can alert: email addresses, Slack, Teams, webhooks and more. |
| Run APL query | Run an APL query and get its rows, such as ['web-logs'] | where status >= 500 | take 100. |
| Send events | Send one event, or several as JSON, to a dataset. |
| Trim dataset | Permanently delete a dataset's events older than a number of days. |
| Update annotation | Change an annotation. |
| Update dataset | Change a dataset's description or retention. |
| Update monitor | Change a monitor. |
| Update notifier | Rename 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
- Type
typetextRequired - The kind of event, in letters, numbers and hyphens, such as `production-deployment`.
- Datasets
datasetslistRequired - The datasets whose charts show it.
- Title
titletext - A short summary.
- Description
descriptiontext - What happened, up to 512 characters.
- Link
urltext - A link about it, such as the pull request.
- Time
timedate and time - When it happened. Leave empty for now.
- End time
end_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
- Name
nametextRequired - The dataset's name, unique in the organization, such as `web-logs`.
- Description
descriptiontext - What the dataset holds.
- Kind
dataset_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
- Name
nametextRequired - The monitor's name.
- Type
typetextRequired - 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 query
apl_querytextRequired - The APL query the monitor runs, such as `['logs'] | where status >= 500 | summarize count()`.
- Comparison
operatortext - 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). - Threshold
thresholdnumber - 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.
- Notifiers
notifier_idslist - Who is told when the monitor triggers.
- Description
descriptiontext - What the monitor watches.
- Column
column_nametext - The column of the query's result to compare, when it has more than one.
- Alert on no data
alert_on_no_datatrue/false - Also trigger when the query returns no data.
- Notify per group
notify_by_grouptrue/false - Notify once per group of the query's result rather than once in all.
- Turned off
disabledtrue/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
- Name
nametextRequired - The notifier's name.
- Channel
channeltextRequired - Where it notifies.One of:
email,slack(Slack (incoming webhook)),webhook,microsoftTeams(Microsoft Teams),discordWebhook(Discord (webhook)). - Email addresses
emailslist - For an email notifier: the addresses to notify.
- Webhook address
urltext - 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
- Annotation
annotation_idtextRequired - The annotation's ID.
Outputs
dataobject- The response from Axiom.
Example output
{
"data": {}
}Delete dataset
Delete a dataset and, permanently, its events.
Inputs
- Dataset
datasettextRequired - The dataset.
Outputs
dataobject- The response from Axiom.
Example output
{
"data": {
"jobID": "example"
}
}Delete monitor
Delete a monitor.
Inputs
- Monitor
monitor_idtextRequired - The monitor.
Outputs
dataobject- The response from Axiom.
Example output
{
"data": {}
}Delete notifier
Delete a notifier. Monitors stop notifying it.
Inputs
- Notifier
notifier_idtextRequired - The notifier.
Outputs
dataobject- The response from Axiom.
Example output
{
"data": {}
}Get annotation
Get an annotation's type, title, time and datasets.
Inputs
- Annotation
annotation_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
- Dataset
datasettextRequired - 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
- Monitor
monitor_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
- Monitor
monitor_idtextRequired - The monitor.
- From
start_timedate and time - From this time. Leave empty for a day before Until.
- Until
end_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
- Notifier
notifier_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
- Datasets
datasetslist - Only annotations on these datasets.
- From
startdate and time - Only annotations after this time.
- Until
enddate 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
- Dataset
datasettextRequired - 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 query
apltextRequired - The APL query. It names the dataset, such as `['web-logs'] | summarize count() by status`.
- From
start_timedate and time - Only events at or after this time. Leave empty for the query's own range.
- Until
end_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
- Dataset
datasettextRequired - The dataset to send to.
- Event
eventobject - One event, as its fields, such as `level` and `error`. Fill in this or Events as JSON.
- Events as JSON
events_jsontext - Several events at once, as a JSON list of objects, such as `[{"level": "error"}, {"level": "info"}]`.
- Timestamp field
timestamp_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
- Dataset
datasettextRequired - The dataset.
- Days to keep
keep_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
- Annotation
annotation_idtextRequired - The annotation's ID.
- Type
typetext - The kind of event.
- Datasets
datasetslist - The datasets whose charts show it.
- Title
titletext - A short summary.
- Description
descriptiontext - What happened, up to 512 characters.
- Link
urltext - A link about it.
- Time
timedate and time - When it happened.
- End time
end_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
- Dataset
datasettextRequired - The dataset.
- Description
descriptiontext - 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
- Monitor
monitor_idtextRequired - The monitor.
- Name
nametext - The monitor's name.
- Type
typetext - 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 query
apl_querytext - The APL query the monitor runs, such as `['logs'] | where status >= 500 | summarize count()`.
- Comparison
operatortext - 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). - Threshold
thresholdnumber - 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.
- Notifiers
notifier_idslist - Who is told when the monitor triggers.
- Description
descriptiontext - What the monitor watches.
- Column
column_nametext - The column of the query's result to compare, when it has more than one.
- Alert on no data
alert_on_no_datatrue/false - Also trigger when the query returns no data.
- Notify per group
notify_by_grouptrue/false - Notify once per group of the query's result rather than once in all.
- Turned off
disabledtrue/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
- Notifier
notifier_idtextRequired - The notifier.
- Name
nametext - The notifier's new name.
- Email addresses
emailslist - For an email notifier: the addresses to notify.
- Webhook address
urltext - 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": {}
}
}