Hanzo
OpenapiO11y

Returns the logs aggregate buckets for the query window.

Returns the logs aggregate buckets for the query window. The runtime currently answers the empty set; the shape is the contract.

GET /v1/o11y/logs/aggregate

Addresshttps://api.hanzo.ai/v1/o11y/logs/aggregate
MethodGET
Operationget_o11y_logs_aggregate
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the logs aggregate buckets for the query window. The runtime currently answers the empty set; the shape is the contract.

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

Request

GET /v1/o11y/logs/aggregate takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200o11y.O11yLogAggregateOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
itemsbodyobjectItems are the buckets, keyed by bucket timestamp.
items.*bodyo11y.O11yLogAggregateBucket
items.*.groupBybodyobjectGroupBy carries the group's key values when the aggregate grouped.
items.*.groupBy.*bodyany
items.*.timestampbodyintegerTimestamp is the start of the bucket.
items.*.valuebodyanyValue is the bucket's aggregated value.

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y logs aggregate

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page