Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| agg | HeartbeatAgg | - | ✔ | A heartbeat aggregate to get the number of gaps from |
Returns
| Column | Type | Description |
|---|---|---|
| num_gaps | bigint | The number of gaps 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 times the system was down in a particular week: