Hanzo
OpenapiO11y

Returns one metric's raw time series over a window of at most thirty minutes —…

Returns one metric's raw time series over a window of at most thirty minutes — each series with its labels and timestamp/value pairs.

POST /v1/o11y/metrics/inspect

Addresshttps://api.hanzo.ai/v1/o11y/metrics/inspect
MethodPOST
OperationInspectMetrics
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one metric's raw time series over a window of at most thirty minutes — each series with its labels and timestamp/value pairs.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
endbodyintegeryesEnd is the end of the window as a Unix timestamp in milliseconds, at most thirty minutes after start.
filterbodyo11y.O11yMetricFilter
filter.expressionbodystringExpression is the filter, in the query-builder filter syntax.
metricNamebodystringyesMetricName is the metric to inspect.
startbodyintegeryesStart is the start of the window as a Unix timestamp in milliseconds.

Response

StatusBodyMeaning
200o11y.O11yMetricInspectOutok

200 body — 17 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yMetricSeriesSet
data.seriesbodyo11y.O11yMetricSeries[]Series are the time series.
data.series[].labelsbodyo11y.O11yMetricLabel[]Labels identify the series.
data.series[].labels[].keybodyo11y.O11yMetricField
data.series[].labels[].key.descriptionbodystringDescription describes the field.
data.series[].labels[].key.fieldContextbodystringFieldContext is the context the field lives in, e.g.
data.series[].labels[].key.fieldDataTypebodystringFieldDataType is the field's data type.
data.series[].labels[].key.namebodystringName is the field's name.
data.series[].labels[].key.signalbodystringSignal is the telemetry signal the field belongs to.
data.series[].labels[].key.unitbodystringUnit is the field's unit.
data.series[].labels[].valuebodyobjectValue is the label's value.
data.series[].valuesbodyo11y.O11yMetricPoint[]Values are the series' points, in time order.
data.series[].values[].partialbodybooleanPartial marks a point whose bucket the window only partly covers.
data.series[].values[].timestampbodyintegerTimestamp is the point's time as a Unix timestamp in milliseconds.
data.series[].values[].valuebodynumberValue is the point's value.
data.series[].values[].valuesbodynumber[]Values carries the bucket values of a heatmap point.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y metrics inspect \
  --end 0 \
  --metric-name <metricName> \
  --start 0

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page