Hanzo
OpenapiO11y

Returns ingestion usage counts bucketed over the requested window, optionally…

Returns ingestion usage counts bucketed over the requested window, optionally narrowed to one service.

GET /v1/o11y/usage

Addresshttps://api.hanzo.ai/v1/o11y/usage
MethodGET
Operationget_o11y_usage
AuthAuthorization: Bearer $HANZO_API_KEY

Returns ingestion usage counts bucketed over the requested window, optionally narrowed to one service.

Callers need the viewer role; the runtime's own gate enforces it.

Request

4 fields.

FieldInTypeRequiredDescription
startquerystringyesStart is the window start, as epoch nanoseconds.
endquerystringyesEnd is the window end, as epoch nanoseconds.
stepqueryintegerStep is the bucket width in seconds.
servicequerystringService narrows usage to one service.

Response

StatusBodyMeaning
200o11y.O11yUsageItem[]ok

200 body — 3 fields.

FieldInTypeAlwaysDescription
[].countbodyintegerCount is how many spans were ingested in the bucket.
[].timebodystring (date-time)Time is the bucket start.
[].timestampbodyintegerTimestamp is the bucket start, as epoch nanoseconds.

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y usage \
  --start <start> \
  --end <end>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page