Hanzo
OpenapiO11y

Lists the org's metric volume-control (label reduction) rules, pageable and…

Lists the org's metric volume-control (label reduction) rules, pageable and sortable by name, volume or recency.

GET /v1/o11y/metric_reduction_rules

Addresshttps://api.hanzo.ai/v1/o11y/metric_reduction_rules
MethodGET
OperationListMetricReductionRules
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the org's metric volume-control (label reduction) rules, pageable and sortable by name, volume or recency.

Request

6 fields.

FieldInTypeRequiredDescription
orderByquerystringOrderBy sorts the page: metric, ingested_volume, reduced_volume or last_updated.
orderquerystringOrder is asc or desc.
searchquerystringSearch narrows the page to rules whose metric name contains it.
metricNamequerystringMetricName narrows the page to one metric's rule.
offsetqueryintegerOffset is how many rules to skip, for paging.
limitqueryintegerLimit caps how many rules come back, at most 1000.

Response

StatusBodyMeaning
200o11y.O11yReductionRuleListOutok

200 body — 18 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yReductionRules
data.rulesbodyo11y.O11yReductionRule[]Rules are the rules.
data.rules[].activebodybooleanActive says whether the rule is in force.
data.rules[].createdAtbodystring (date-time)CreatedAt is when the rule was created.
data.rules[].createdBybodystringCreatedBy is who created it.
data.rules[].effectiveFrombodystring (date-time)EffectiveFrom is when the rule took effect.
data.rules[].idbodystringID is the rule's id.
data.rules[].ingestedSamplesbodyintegerIngestedSamples is how many samples arrived while the rule was active.
data.rules[].ingestedSeriesbodyintegerIngestedSeries is how many series arrived while the rule was active.
data.rules[].labelsbodystring[]Labels are the label names the rule matches.
data.rules[].matchTypebodystringMatchType is drop or keep.
data.rules[].metricNamebodystringMetricName is the metric the rule governs.
data.rules[].retainedSamplesbodyintegerRetainedSamples is how many of them were kept.
data.rules[].retainedSeriesbodyintegerRetainedSeries is how many of them were kept.
data.rules[].updatedAtbodystring (date-time)UpdatedAt is when the rule last changed.
data.rules[].updatedBybodystringUpdatedBy is who last changed it.
data.totalbodyintegerTotal is how many rules matched, across all pages.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y metric_reduction_rules list

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page