Moving fn aggregation #
A parent pipeline aggregation computing a window statistic over the
last N buckets’ metrics — MovingFunctions.max(values),
MovingFunctions.sum(values), MovingFunctions.min(values) and
friends, with the window sliding bucket by bucket.
moving_avg is the same aggregation with a fixed averaging script.
Parameters for moving_fn
#
buckets_path
(Required, string) Path to the consumed metric in the same bucket.window
(Required, integer) Number of buckets in the sliding window.script
(Required, string) Window function, e.g.MovingFunctions.max(values).gap_policy
(Optional, string)skip(default) orinsert_zeros.format
(Optional, string) Output number format.