axiom.listMetrics lists observed metric definitions keyed by metric name. Each definition includes its type, aggregation behavior, and unit; the discovery window defaults to the previous 30 minutes.
automations/axiom-list-metrics.automation.ts
Inputs
datasetName is required. Omit startTime and endTime to search the previous 30 minutes, or provide RFC3339 timestamps for a fixed window. edgeUrl 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 dataset; a custom edge URL must use HTTPS on *.edge.axiom.co.
Output
Returns an object keyed by metric name. Each value containstype, temporality, and nullable unit. No metrics observed in the window returns an empty object.
Permission and failures
The API token needs the dataset-levelquery|read capability for datasetName. Axiom returns an error when the metrics dataset is missing or inaccessible, and rejects invalid time windows. Request-rate limits return 429, while exhausted query-cost limits return 430. Automate.ax uses Axiom’s reset timing when available.