Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate to get the number of ranges from |
Returns
| Column | Type | Description |
|---|---|---|
| num_live_ranges | bigint | The number of live ranges in the aggregate |
Samples
Given a table calledliveness containing weekly heartbeat aggregates in column health with timestamp column date,
use this query to see how many intervals the system was up in a given week: