Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate containing liveness data for a particular interval |
| pred | HeartbeatAgg | - | The heartbeat aggregate for the preceding interval, if one exists |
Returns
| Column | Type | Description |
|---|---|---|
| interpolate | HeartbeatAgg | A copy of agg which has been updated to include any heartbeat intervals extending past the end of pred |
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 unhealthy during the week of Jan 9, 2022. This correctly
excludes any ranges covered by a heartbeat at the end of the Jan 2 week.