Struct elasticsearch_dsl::search::aggregations::metrics::RateAggregation [−][src]
pub struct RateAggregation { /* fields omitted */ }
Expand description
A rate
metrics aggregation can be used only inside a date_histogram
and calculates a rate of
documents or a field in each date_histogram
bucket. The field values can be generated extracted
from specific numeric or histogram fields
in the documents.
Implementations
Calculate sum or number of values of the field
The rate
aggregation supports all rate that can be used calendar_intervals parameter
of date_histogram
aggregation. The specified rate should compatible with the date_histogram
aggregation interval, i.e. it should be possible to convert the bucket size into the rate.
By default the interval of the date_histogram
is used.
There is also an additional limitations if the date histogram is not a direct parent of the
rate histogram. In this case both rate interval and histogram interval have to be in the
same group: [second, minute
, hour, day, week] or [month, quarter, year]. For example,
if the date histogram is month based, only rate intervals of month, quarter or year are
supported. If the date histogram is day
based, only second
, minute
, hour
, day, and
week` rate intervals are supported.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RateAggregation
impl Send for RateAggregation
impl Sync for RateAggregation
impl Unpin for RateAggregation
impl UnwindSafe for RateAggregation
Blanket Implementations
Mutably borrows from an owned value. Read more