Skip to main content

every

Class: sugar · Streaming: accumulating

Time-bucketed aggregation.

Signature

| every <span> <aggs> [by=<field_list>] [fill=<expr>]

Positional Arguments

NameTypeRequiredDescription
spandurationYes-
aggsagg_listYesintroduced by the stats keyword

Options

NameTypeDefaultDescription
byfield_list--
fillexpr--

Desugars To

stats <aggs> by [<keys>,] bin(_time, <span>) [| gapfill span=<span> fill=<fill> by <keys>]

Examples

every 5m by service stats count()
every 5m by service stats count() fill=0

Generated from the LynxFlow registry. See RFC-002 for the full language specification.