Shared aggregation helpers for the actor engine.
Extracted from TimelessMetrics.Query — bucket_to_seconds, compute_aggregate,
and bucket_points are needed by both the sharded query engine and the actor
engine's in-process aggregation.
Summary
Functions
Group points into time buckets and compute an aggregate per bucket.
Convert a bucket spec to seconds.
Compute an aggregate value from a list of values.
Functions
Group points into time buckets and compute an aggregate per bucket.
Returns [{bucket_timestamp, aggregate_value}, ...] sorted by timestamp.
Convert a bucket spec to seconds.
Compute an aggregate value from a list of values.