Hanzo
OpenapiO11y

Returns one metric's attribute keys, each with its unique values and their…

Returns one metric's attribute keys, each with its unique values and their count.

GET /v1/o11y/metrics/attributes

Addresshttps://api.hanzo.ai/v1/o11y/metrics/attributes
MethodGET
OperationGetMetricAttributes
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one metric's attribute keys, each with its unique values and their count.

Request

3 fields.

FieldInTypeRequiredDescription
metricNamequerystringyesMetricName is the metric's name; it may contain slashes.
startqueryintegerStart is the start of the window as a Unix timestamp in milliseconds.
endqueryintegerEnd is the end of the window as a Unix timestamp in milliseconds.

Response

StatusBodyMeaning
200o11y.O11yMetricAttributesOutok

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yMetricAttributes
data.attributesbodyo11y.O11yMetricAttribute[]Attributes are the keys, each with its values.
data.attributes[].keybodystringKey is the attribute's name.
data.attributes[].valueCountbodyintegerValueCount is how many distinct values the attribute has.
data.attributes[].valuesbodystring[]Values are the attribute's distinct values.
data.totalKeysbodyintegerTotalKeys is how many keys the metric has.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

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

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page