Rate aggregation #
A single-value metrics aggregation that sums a numeric field, intended
for counters and rates inside
date_histogram
buckets (per-interval totals).
Example #
Outside a histogram, rate equals
sum — here the total
amount, 6750. Inside a date_histogram it returns each bucket’s
total.
Parameters for rate
#
field
(Required, string) Numeric field you wish to aggregate.unit
(Optional, string) Date histogram unit used to normalize per-bucket values (e.g.day).