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