Samples
Calculate the per-second rate of change for each 15-minute interval, using interpolation to get the values at the interval boundaries if they don’t exist in the data.Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
summary | GaugeSummary | - | ✔ | A gauge aggregate created using gauge_agg |
start | TIMESTAMPTZ | - | ✔ | The start of the time period to compute the rate over |
interval | INTERVAL | - | ✔ | The length of the time period to compute the rate over |
prev | GaugeSummary | - | The gauge aggregate from the previous interval, used to interpolate the value at start. If NULL, the first timestamp in summary is used as the start of the interval. | |
next | GaugeSummary | - | The gauge aggregate from the next interval, used to interpolate the value at start + interval. If NULL, the last timestamp in summary is used as the end of the interval. |
Returns
| Column | Type | Description |
|---|---|---|
| interpolated_rate | DOUBLE PRECISION | The per-second rate of change of the counter between the specified bounds. If exact values are missing in the raw data for the first and last points, these values are interpolated linearly from the neighboring counter aggregates. |