interpolated_uptime().
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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the total time live during a heartbeat aggregate
interpolated_uptime().
liveness 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.
SELECT uptime(health)
FROM liveness
WHERE date = '01-9-2022 UTC'
uptime
-----------------
6 days 23:55:35
uptime(
agg HEARTBEATAGG
) RETURNS INTERVAL
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate to get the liveness data from |
| Column | Type | Description |
|---|---|---|
| uptime | INTERVAL | The sum of all the live ranges in the aggregate. |