Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate to get the liveness data from |
Returns
| Column | Type | Description |
|---|---|---|
| dead_ranges | TABLE (start TIMESTAMPTZ, end TIMESTAMPTZ) | The (start, end) pairs of when the system was down |
Samples
Given a table calledliveness containing weekly heartbeat aggregates in column health with timestamp column date,
use the following to get the intervals where the system was down during the week of Jan 9, 2022.