Get run metrics
Changed onReturns your organization's finished runs over a window as points: one per hour or day in time_zone (and per group with group_by), each with the runs by how they ended, the success rate, the median and 95th percentile duration, what they cost and the model steps they took. A run counts in the bucket it finished in; runs still going are not counted. The window defaults to the last 7 days and may start at most a year back; hour buckets need a window of 7 days or less.
Request
- Base URLhttps://api.axilio.ai/api/v1
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Start of the window (RFC 3339). Defaults to 7 days before period_end_at, and may be at most a year before now.
End of the window (RFC 3339). Defaults to now, and a later time is read as now.
Bucket size: hour or day. hour is allowed for windows of 7 days or less.
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.
Split each bucket by agent, revision, status, trigger, mode, schedule or device_class. Omit for one point per bucket.
Response
OK
Changes
- info
endpoint added
- info