Count incidents visible at a minimum severity and summarize high-severity work.

Incident Queue Reliability Report

IncidentQueue.kt
fun main() {
    val minSeverity = 
    var visible = 0
    var high = 0

    for (severity in listOf(1, 2, 3, 3)) {
        if (severity >= minSeverity) {
            visible += 1
        }
        if (severity >= 3) {
            high += 1
        }
    }

    println("min=$minSeverity visible=$visible high=$high")
}
fun main() {
    val minSeverity = 
    var visible = 0
    var high = 0

    for (severity in listOf(1, 2, 3, 3)) {
        if (severity >= minSeverity) {
            visible += 1
        }
        if (severity >= 3) {
            high += 1
        }
    }

    println("min=$minSeverity visible=$visible high=$high")
}
fun main() {
    val minSeverity = 
    var visible = 0
    var high = 0

    for (severity in listOf(1, 2, 3, 3)) {
        if (severity >= minSeverity) {
            visible += 1
        }
        if (severity >= 3) {
            high += 1
        }
    }

    println("min=$minSeverity visible=$visible high=$high")
}
incident queue A deterministic incident queue can be filtered into visible and high-severity counts without modeling live tickets.