Skip to content

rollup()

Combine multiple counter aggregates

Since 1.3.0

This function combines multiple counter aggregates into one. This can be used to combine aggregates from adjacent intervals into one larger interval, such as rolling daily aggregates into a weekly or monthly aggregate.

The syntax is:

rollup(
cs CounterSummary
) RETURNS CounterSummary
NameTypeDefaultRequiredDescription
csCounterSummary-A counter aggregate created using counter_agg
ColumnTypeDescription
rollupCounterSummaryA new counter aggregate created by combining the input counter aggregates