interpolated_downtime().
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate to get the liveness data from |
Returns
| Column | Type | Description |
|---|---|---|
| downtime | INTERVAL | The sum of all the dead ranges in the aggregate |
Samples
Given a table calledliveness containing weekly heartbeat aggregates in column health with timestamp column date,
use the following to get the total downtime of the system during the week of Jan 9, 2022.