Hanzo
OpenapiO11y

Returns a project's event-rate timeseries: one bucket per interval over the…

Returns a project's event-rate timeseries: one bucket per interval over the requested period, counting the events in it.

GET /v1/o11y/sentinel/stats

Addresshttps://api.hanzo.ai/v1/o11y/sentinel/stats
MethodGET
Operationget_o11y_sentinel_stats
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a project's event-rate timeseries: one bucket per interval over the requested period, counting the events in it.

Request

3 fields.

FieldInTypeRequiredDescription
projectquerystringyesProject is the project to read, as its id.
fieldquerystringField is the dimension to count over.
periodquerystringPeriod is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d.

Response

StatusBodyMeaning
200o11y.O11yStatsOutok

200 body — 5 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yStats
data.itemsbodyo11y.O11yStat[]Items are the buckets, oldest first.
data.items[].timebodystring (date-time)Time is the start of the bucket.
data.items[].valuebodyintegerValue is how many events fell in it.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page