Skip to main content
Since 1.16.0 Return the number of live periods from a heartbeat aggregate.

Samples

Given a table called liveness 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:
Returns:

Arguments

The syntax is:

Returns