Skip to main content
GET
Get run metrics
Minimum role required: Viewer

Authorizations

X-Axilio-Api-Key
string
header
required

Customer API key (axl_ prefix).

Query Parameters

period_start_at
string<date-time>

Start of the window (RFC 3339). Defaults to 7 days before period_end_at, and may be at most a year before now.

period_end_at
string<date-time>

End of the window (RFC 3339). Defaults to now, and a later time is read as now.

granularity
enum<string>
default:day

Bucket size: hour or day. hour is allowed for windows of 7 days or less.

Available options:
hour,
day
time_zone
string
default:UTC

IANA time zone the buckets follow, such as America/Los_Angeles: a day starts at local midnight and an hour on the local hour. An unknown name is an error.

group_by
enum<string>

Split each bucket by agent, revision, status, trigger, mode, schedule or device_class. Omit for one point per bucket.

Available options:
agent,
revision,
status,
trigger,
mode,
schedule,
device_class

Response

OK

Finished runs over the window, one point per bucket (and per group with group_by).

points
object[] | null
required

One point per bucket, oldest first, and per group within a bucket when grouped. The first bucket starts at or before period_start_at.