Connect Axiom
Create an API token in Axiom and connect it from your Automate.ax project. Advanced tokens must grant every capability used by your automation. Query and ingestion actions need dataset and query access; resource actions need matching datasets, monitors, notifiers, saved queries, or dashboards permissions. Monitor triggers need read and write access to monitors and notifiers.automations/investigate-axiom-alerts.automation.ts
axiomAccount declares a named static project binding when an automation uses more than one Axiom account. Every action and trigger also accepts an optional account binding.
Query and ingest endpoints
APL, MPL, metrics discovery, and ingest actions accept an optionaledgeUrl. It defaults to the US East 1 (AWS) edge at https://us-east-1.aws.edge.axiom.co; set it to the edge that stores the target dataset. Automate.ax accepts only HTTPS *.edge.axiom.co origins and never follows redirects. Query windows default to the 30 minutes before execution. Metrics discovery accepts fixed RFC3339 timestamps because Axiom’s discovery endpoints require them.
Monitor triggers
Automate.ax creates one custom webhook notifier, attaches it without replacing the monitor’s existing notifier IDs, authenticates deliveries with a managed secret header, and emits an ordinary root event. When no deployment needs the source, Automate.ax detaches and deletes only its managed notifier. Axiom API errors include the HTTP status and provider details. Automate.ax retries429 request-rate limits and 430 ingest or query limits using Axiom’s reset timing when available.
Exports
axiomcontains the packaged Axiom actions and triggers.axiomAccount("name")selects a named Axiom connection.
Triggers
Actions
- Ingest events
- Query data
- Query metrics
- List metrics
- Search metrics
- List metric tags
- List metric tags for a metric
- List metric tag values
- List metric tag values for a metric
- List datasets
- Create dataset
- Get dataset
- Update dataset
- Delete dataset
- Trim dataset
- Vacuum dataset
- List dataset fields
- Get dataset field
- Update dataset field
- List map fields
- Replace map fields
- Create map field
- Delete map field
- List annotations
- Create annotation
- Get annotation
- Update annotation
- Delete annotation
- List monitors
- Create monitor
- Get monitor
- Update monitor
- Delete monitor
- List monitor history
- List notifiers
- Create notifier
- Get notifier
- Update notifier
- Delete notifier
- List saved queries
- Create saved query
- Get saved query
- Update saved query
- Delete saved query
- List dashboards
- Create dashboard
- Get dashboard
- Update dashboard
- Delete dashboard
- Update dashboard chart