Hanzo
OpenapiO11y

Returns the label combinations that contributed most to a rule firing, for the…

Returns the label combinations that contributed most to a rule firing, for the posted query range.

POST /v1/o11y/rules/{id}/history/top_contributors

Addresshttps://api.hanzo.ai/v1/o11y/rules/{id}/history/top_contributors
MethodPOST
OperationGetRuleStateHistoryTopContributors
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the label combinations that contributed most to a rule firing, for the posted query range. Viewer gate.

Request

18 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
endbodyinteger
filtersbodyo11y.FilterSet
filters.itemsbodyo11y.FilterItem[]
filters.items[].keybodyo11y.AttributeKey
filters.items[].key.dataTypebodystring
filters.items[].key.isColumnbodyboolean
filters.items[].key.isJSONbodyboolean
filters.items[].key.keybodystring
filters.items[].key.typebodystring
filters.items[].opbodystring
filters.items[].valuebodyobject
filters.opbodystring
limitbodyinteger
offsetbodyinteger
orderbodystring
startbodyinteger
statebodystring

Response

StatusBodyMeaning
200o11y.O11yRuleStateContributorsOutok

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodyo11y.RuleStateHistoryContributor[]Data holds the contributors.
data[].countbodyinteger
data[].fingerprintbodyinteger
data[].labelsbodyany
data[].relatedLogsLinkbodystring
data[].relatedTracesLinkbodystring
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y rules history top_contributors create <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page