Hanzo
OpenapiO11y

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

Returns the label combinations that contributed most to a rule firing over the selected range.

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

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

Returns the label combinations that contributed most to a rule firing over the selected range. Viewer gate.

Request

3 fields.

FieldInTypeRequiredDescription
idpathstringyes
startqueryintegerStart is the window start, unix milliseconds.
endqueryintegerEnd is the window end, unix milliseconds.

Response

StatusBodyMeaning
200o11y.O11yRuleHistoryContributorsOutok

200 body — 15 fields.

FieldInTypeAlwaysDescription
databodyo11y.GettableRuleStateHistoryContributor[]Data holds the contributors.
data[].countbodyinteger
data[].fingerprintbodyinteger
data[].labelsbodyo11y.Label[]
data[].labels[].keybodyo11y.TelemetryFieldKey
data[].labels[].key.descriptionbodystring
data[].labels[].key.fieldContextbodyany
data[].labels[].key.fieldDataTypebodyany
data[].labels[].key.namebodystringyes
data[].labels[].key.signalbodyany
data[].labels[].key.unitbodystring
data[].labels[].valuebodyobject
data[].relatedLogsLinkbodystring
data[].relatedTracesLinkbodystring
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y rules history top_contributors get <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page