Skip to main content
axiom.listMonitorHistory lists open and closed alert history. When you omit the window, Automate.ax computes RFC3339 timestamps for the previous 30 minutes at execution time. Each item includes check ID, monitor name, state, and timestamp.
automations/axiom-list-monitor-history.automation.ts

Inputs

monitorId is required. startTime and endTime accept RFC3339 timestamps. At execution, an omitted startTime defaults to the current time minus 30 minutes and an omitted endTime defaults to the current time. Automate.ax serializes both defaults as RFC3339 timestamps. Provide both inputs for a custom fixed window.

Output

Returns an array of alert-history items. Each contains checkId, name, a state of "open" or "closed", and timestamp. No state changes in the window returns [].

Permission and failures

The API token needs the organization-level monitors|read capability. Axiom returns an error for missing monitors, invalid RFC3339 timestamps, and reversed time windows.