Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
cs | CounterSummary | - | ✔ | A counter aggregate created using counter_agg |
bounds | TSTZRANGE | - | ✔ | A range of timestamptz giving the smallest and largest allowed times in the counter aggregate |
Returns
CounterSummary: A new counter aggregate with the bounds applied
Samples
Create a counter aggregate for eachid and each 15-minute interval. Then add bounds to the counter aggregate, so you
can calculate the extrapolated rate.