Hanzo
OpenapiO11y

Returns the distinct values a given label key has taken across a rule's history…

Returns the distinct values a given label key has taken across a rule's history entries.

GET /v1/o11y/rules/{id}/history/filter_values

Addresshttps://api.hanzo.ai/v1/o11y/rules/{id}/history/filter_values
MethodGET
OperationGetRuleHistoryFilterValues
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the distinct values a given label key has taken across a rule's history entries. Viewer gate.

Request

7 fields.

FieldInTypeRequiredDescription
idpathstringyes
startUnixMilliqueryinteger
endUnixMilliqueryinteger
searchTextquerystring
limitqueryinteger
namequerystringyesName is the label key whose values to list.
existingQueryquerystringExistingQuery is a filter expression scoping which values appear.

Response

StatusBodyMeaning
200o11y.O11yRuleHistoryFilterValuesOutok

200 body — 8 fields.

FieldInTypeAlwaysDescription
databodyo11y.GettableFieldValues
data.completebodyboolean
data.valuesbodyo11y.TelemetryFieldValues
data.values.boolValuesbodyboolean[]
data.values.numberValuesbodynumber[]
data.values.relatedValuesbodystring[]
data.values.stringValuesbodystring[]
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y rules history filter_values <id> --name <name>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page