Count visible incidents and high-severity incidents from a fixed severity queue.

Incident Queue Reliability Report

incident_queue.js
const minSeverity = 2;
let visible = 0;
let high = 0;

for (const severity of [1, 2, 3, 3]) {
    if (severity >= minSeverity) {
        visible += 1;
    }
    if (severity >= 3) {
        high += 1;
    }
}

console.log(`min=${minSeverity} visible=${visible} high=${high}`);
incident queue A small severity queue keeps replay deterministic while showing how a report threshold changes output.