mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
* feat: add numeric range aggregation support to Scripting API Add support for numeric range aggregations in the Scripting API, allowing users to group search results into custom numeric buckets (e.g., response times 0-100ms, 100-500ms, 500ms+). New classes: - NumberRange: value class holding optional from/to Double bounds - RangeBucket: BucketSpec implementation for numeric range buckets - ESRangeHandler, OSRangeHandler (OS2/OS3): storage backend handlers Modified: - Grouping: new "ranges" field, mutually exclusive with limit/timeunit/scaling - GroupingToBucketSpecMapper: produces RangeBucket when ranges are present - AggregationSpecToPivotMapper: respects ranges in auto-interval logic - All three ViewsBackendModule classes: register RangeBucket handlers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add integration tests for range aggregation in ScriptingApiResourceIT Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * adding changelog * using more idiomatic code regarding the Optionals * improving conditional * records instead of Autovalue --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>