Hanzo
OpenapiO11y

Returns one metric's headline numbers: data points, total and active time…

Returns one metric's headline numbers: data points, total and active time series, and when it was last received.

GET /v1/o11y/metrics/highlights

Addresshttps://api.hanzo.ai/v1/o11y/metrics/highlights
MethodGET
OperationGetMetricHighlights
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one metric's headline numbers: data points, total and active time series, and when it was last received.

Request

1 field.

FieldInTypeRequiredDescription
metricNamequerystringyesMetricName is the metric's name; it may contain slashes, e.g.

Response

StatusBodyMeaning
200o11y.O11yMetricHighlightsOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yMetricHighlights
data.activeTimeSeriesbodyintegerActiveTimeSeries is how many of them are active.
data.dataPointsbodyintegerDataPoints is how many data points the metric has.
data.lastReceivedbodyintegerLastReceived is when the metric last arrived, as a Unix timestamp in milliseconds.
data.totalTimeSeriesbodyintegerTotalTimeSeries is how many time series the metric has ever had.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y metrics highlights --metric-name <metric-name>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page