Skip to main content

Module aggs

Module aggs 

Source
Expand description

Aggregator factory namespace.

Each function returns the string template the server’s Aggregators.parse accepts inside window.aggregations (e.g. "avg(temperature)").

Functions§

avg
Average of a numeric field.
collect_list
Collect every value of field into a list.
count
Event count — no field required.
distinct_count
Cardinality of distinct values of field.
max
Maximum value of a numeric field.
min
Minimum value of a numeric field.
sum
Sum of a numeric field: aggs::sum("amount").