Hanzo
OpenapiAgents

Serves the invocations-over-time histogram for the org's Agents dashboard.

Serves the invocations-over-time histogram for the org's Agents dashboard.

GET /v1/agents/metrics

Addresshttps://api.hanzo.ai/v1/agents/metrics
MethodGET
Operationget_agents_metrics
AuthAuthorization: Bearer $HANZO_API_KEY

Serves the invocations-over-time histogram for the org's Agents dashboard. Every point is a REAL count of recorded runs in that time bucket — one series line per agent that ran in the window. The Resource Usage rollup is all-null because this store meters no CPU/memory/storage/cost; the console renders those as "—" rather than a fabricated figure. No runs => empty series (an honest "not connected / no activity yet"), never a synthesized trend.

Request

1 field.

FieldInTypeRequiredDescription
rangequerystringRange is the window to bucket: 24H, 7D or 30D.

Response

StatusBodyMeaning
200metricsViewok

200 body — 11 fields.

FieldInTypeAlwaysDescription
rangebodystringechoes the requested window (24H|7D|30D)
resourcebodyresourceUsage
resource.costCentsbodynumberCostCents would be the window's spend in cents.
resource.cpuVcpuHoursbodynumberCPUVcpuHours would be vCPU-hours over the window. Always null: this store holds agent definitions and run I/O, and nothing here meters a CPU.
resource.memGbHoursbodynumberMemGbHours would be gigabyte-hours of memory.
resource.storageIoBytesbodynumberStorageIoBytes would be bytes moved to and from storage.
seriesbodyseriesLine[]per-agent invocation histogram (real)
series[].keybodystringagent name
series[].pointsbodyseriesPoint[]Points is one bucket per interval across the whole window, in time order and never sparse: a bucket with no runs is present with v 0, so two lines drawn from…
series[].points[].tbodystringbucket start, RFC3339 UTC
series[].points[].vbodyintegerreal invocation count in the bucket

Failure carries the platform error shape — see Errors.

Examples

hanzo agents metrics

Agents API · All Hanzo APIs · Interactive reference

How is this guide?

On this page