Pipeline stats snapshot — cumulative counters since
construction plus current window state. Cheap O(1).
eventsObserved: total source events ingested. Includes
events replayed at construction from a non-empty source.
Never decreases.
evictions: total entries removed from the window by
retention. Never decreases.
emissions: total output events fired. Never decreases.
Always <= eventsObserved; for Trigger.event it equals
eventsObserved, for Trigger.count(n) and Trigger.clock
it can be smaller.
windowSize: current live window size (= this.windowSize).
Use case: long-running pipelines that want headline counters
without wiring rolling.on('event', ...) listeners by hand.
Pipeline stats snapshot — cumulative counters since construction plus current window state. Cheap O(1).
eventsObserved: total source events ingested. Includes events replayed at construction from a non-empty source. Never decreases.evictions: total entries removed from the window by retention. Never decreases.emissions: total output events fired. Never decreases. Always<= eventsObserved; forTrigger.eventit equalseventsObserved, forTrigger.count(n)andTrigger.clockit can be smaller.windowSize: current live window size (=this.windowSize).Use case: long-running pipelines that want headline counters without wiring
rolling.on('event', ...)listeners by hand.