Hanzo
OpenapiO11y

Returns the proportional distribution of metrics by sample count or time-series…

Returns the proportional distribution of metrics by sample count or time-series count, as the entries of a treemap.

POST /v1/o11y/metrics/treemap

Addresshttps://api.hanzo.ai/v1/o11y/metrics/treemap
MethodPOST
OperationGetMetricsTreemap
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the proportional distribution of metrics by sample count or time-series count, as the entries of a treemap.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
endbodyintegeryesEnd is the end of the window as a Unix timestamp in milliseconds.
filterbodyo11y.O11yMetricFilter
filter.expressionbodystringExpression is the filter, in the query-builder filter syntax.
limitbodyintegeryesLimit caps how many entries come back, between 1 and 5000.
modebodystringyesMode picks the measure: timeseries or samples.
startbodyintegeryesStart is the start of the window as a Unix timestamp in milliseconds.

Response

StatusBodyMeaning
200o11y.O11yMetricTreemapOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yMetricTreemap
data.samplesbodyo11y.O11yTreemapEntry[]Samples are the entries when measuring by sample count.
data.samples[].metricNamebodystringMetricName is the metric's name.
data.samples[].percentagebodynumberPercentage is the metric's share, in percent.
data.samples[].totalValuebodyintegerTotalValue is the metric's absolute count.
data.timeseriesbodyo11y.O11yTreemapEntry[]TimeSeries are the entries when measuring by time-series count.
data.timeseries[].metricNamebodystringMetricName is the metric's name.
data.timeseries[].percentagebodynumberPercentage is the metric's share, in percent.
data.timeseries[].totalValuebodyintegerTotalValue is the metric's absolute count.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y metrics treemap \
  --end 0 \
  --limit 0 \
  --mode <mode> \
  --start 0

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page