always

Type of operation: Filter

Description

Select data for resources that matched the predicate at all times

Usage

always predicate [ , frame ]

Argument

Type

Required

Multiple

predicate

bool

Required

Only one

frame

frame

Optional

Only one

Accelerable

always is accelerable if there is a frame() argument. A dataset that only uses accelerable verbs, can be accelerated, making queries on the dataset respond faster.

Examples

always string(status_code) ~ /^2.*/

Select only resources where the status_code column, converted to string, always started with 2, at all points of the query time window. This formulation is not accelerable.

always string(status_code) ~ /^2.*/, frame(back: 30m)

Select only resources where the status_code column, converted to string, started with 2, at all times in the last half hour. This formulation is accelerable because the frame(back:30m) argument specifies a relative time range to check.