Automate Axiom with TypeScript
Ingest and query telemetry, manage datasets, annotations, monitors, notifiers, saved queries, and dashboards, and start automations when Axiom monitors open or close.
import { automation } from "automate.ax"
import { axiom } from "automate.ax/axiom"
export default automation("Investigate Axiom alerts", () => {
const alert = axiom.onMonitorOpened({ monitorId: "monitor-id" })
axiom.queryData({
apl: "['production'] | where severity == 'error' | take 20",
startTime: alert.event.queryStartTime,
endTime: alert.event.queryEndTime,
})
})What you can do
Actions
- Ingest events and query APL or MPL data
- Manage datasets, fields, map fields, and annotations
- Manage monitors, notifiers, and saved queries
- Create and update dashboards and charts
Triggers
- Any monitor notification
- Monitor opened
- Monitor closed