stats
Class: core · Streaming: accumulating
Grouped aggregation. count() requires parens; conditional aggregates via count(where p) / sum(x, where p).
Signature
| stats <aggs> [by=<field_list>]
Positional Arguments
| Name | Type | Required | Description |
|---|---|---|---|
aggs | agg_list | Yes | - |
Options
| Name | Type | Default | Description |
|---|---|---|---|
by | field_list | - | group keys; bin(_time, dur) allowed and emits as _time |
Examples
stats count(), avg(dur) by service
stats count(where status >= 500) as errors, count() as total by service
Generated from the LynxFlow registry. See RFC-002 for the full language specification.