Get delivery metrics
Changed onReturns delivery volume, error rate and destination response time over a window as points: one per hour or day in time_zone, for every destination together, one (endpoint_id), or each one (group_by=endpoint_id). Counts are zero and latencies null for a bucket with no attempts. 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 destination, one series per destination that had attempts (the list-view sparklines). Omit for one point per bucket.
Only this destination's attempts.
Response
OK
Changes
- warning
deleted the
queryrequest parameterrange - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parametergranularity - info
added the new optional
queryrequest parametergroup_by - info
added the new optional
queryrequest parameterperiod_end_at - info
added the new optional
queryrequest parameterperiod_start_at - info
added the new optional
queryrequest parametertime_zone - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
//to the response with the status
- warning
- info
endpoint added
- info