v1
Get Agent Metrics
Return an agent's session distribution, trailing spend, and usage over a window, by id or by name.
samples carries one entry per finished session (duration, cost, tokens) for distributions; spend_windows carries what the agent's sessions cost over the last 1, 7, and 28 days against its budget for each window; buckets splits start to end by interval, chosen from the window's length.
get/v1/agents/{id}/metrics
Request
- Base URLhttps://api.ellipsis.dev
- URLhttps://api.ellipsis.dev/v1/agents/{id}/metrics
- AuthHTTP bearer
Path parameters
idstring required
Query parameters
startstring date-time required
Inclusive start of the usage window. Naive timestamps use UTC.
endstring date-time required
Exclusive end of the usage window. Naive timestamps use UTC.
Headers
user-agentstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.