Skip to main content

baseline

Class: sugar · Streaming: row-at-a-time

Rolling baseline, delta, and z-score from previous rows.

Signature

| baseline <field> window=<int> [by=<field_list>]

Positional Arguments

NameTypeRequiredDescription
fieldfieldYes-

Options

NameTypeDefaultDescription
windowint--
byfield_list--

Desugars To

streamstats current=false window=<n> avg(<f>) as baseline_<f>, stdev(<f>) as stdev_<f> [by <keys>] | extend delta_<f> = <f> - baseline_<f>, z_<f> = if(stdev_<f> > 0, delta_<f> / stdev_<f>, null)

Examples

baseline error_rate window=12 by service

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