The guard log: the newest events, a window's quarantine, and a count that keeps going after the oldest events are dropped. Kept in memory only.
How many events to keep; 50 by default.
An empty log.
const log = createGuardLog();kernl.guard.events$.subscribe((event) => log.push(event));log.quarantined$.subscribe((windows) => draw(windows)); Copy
const log = createGuardLog();kernl.guard.events$.subscribe((event) => log.push(event));log.quarantined$.subscribe((windows) => draw(windows));
The guard log: the newest events, a window's quarantine, and a count that keeps going after the oldest events are dropped. Kept in memory only.