Rate aggregation
/ Rate, / AggregationRate aggregation #
A single-value metrics aggregation that reduces a numeric field inside
date_histogram buckets (per-interval
totals), intended for counters that accumulate over time.
How it works #
rate reads one field and reduces it per bucket, with three reduction
modes selected by mode:
sum(default) — the bucket’s total of the field; identical tosum.value_count— how many values the field has in the bucket.avg— the bucket’s mean of the field.
If field is omitted entirely, the aggregation counts the documents in
the bucket (the value_count shape over _doc).