Skip to main content

append

Function append 

Source
pub fn append(
    store: &Store,
    op: &str,
    tick: Option<&Tick>,
    verdict: Option<&str>,
    masked_stale: Option<&str>,
)
Expand description

Append one event line: {ts, op, tick_id?, source_ref?, age?, verdict?, masked_stale?}. When a deciding tick is given it contributes the join key (source_ref) and a coarse decision-AGE bucket — together the prior-decision discriminator the metrics framework needs: a check firing on an OLD decision is a prior-decision resurface; on a just-written one it is not. masked_stale carries a stale sub-kind that the (worse) per-tick verdict hides, so a staleness-mask never silently drops.