Bucket script aggregation #
A parent pipeline aggregation computing arithmetic on a bucket’s own
metrics — the script references sibling metrics by name through
params and its result becomes a new per-bucket value.
Parameters for bucket_script
#
buckets_path
(Required, object) Map of script variable names to sibling metric paths ({ "r": "revenue" }).script
(Required, string) Expression overparams.<name>.format
(Optional, string) Output number format.gap_policy
(Optional, string)skip(default) orinsert_zeros.