Hanzo
OpenapiO11y

Lists the values one attribute key has taken — string, number and bool values…

Lists the values one attribute key has taken — string, number and bool values in their own lists — for completing a filter.

GET /v1/o11y/autocomplete/attribute_values

Addresshttps://api.hanzo.ai/v1/o11y/autocomplete/attribute_values
MethodGET
Operationget_o11y_autocomplete_attribute_values
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the values one attribute key has taken — string, number and bool values in their own lists — for completing a filter.

Callers need the viewer role; the runtime's own gate enforces it.

Request

8 fields.

FieldInTypeRequiredDescription
dataSourcequerystringDataSource is the telemetry the values come from — traces, logs or metrics.
aggregateOperatorquerystringAggregateOperator is the aggregation the values will be used under.
aggregateAttributequerystringAggregateAttribute is the metric the values must appear on.
attributeKeyquerystringAttributeKey is the key whose values to list.
filterAttributeKeyDataTypequerystringFilterAttributeKeyDataType is the key's data type — string, int64, float64 or bool.
searchTextquerystringSearchText narrows the values to those containing it.
tagTypequerystringTagType narrows the search to one kind of key — tag or resource.
limitqueryintegerLimit caps how many values come back.

Response

StatusBodyMeaning
200o11y.O11yAttributeValuesOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.FilterAttributeValueResponse
data.boolAttributeValuesbodyboolean[]
data.numberAttributeValuesbodyobject[]
data.relatedValuesbodyo11y.FilterAttributeValueResponse
data.stringAttributeValuesbodystring[]
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y autocomplete attribute_values

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page