Bucket script aggregation

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 over params.<name>.
  • format
    (Optional, string) Output number format.
  • gap_policy
    (Optional, string) skip (default) or insert_zeros.
Calendar September 27, 2026
Edit Edit this page