Operational Reliability Reports
Incident Queue Reliability Report
Count visible incidents from a fixed severity queue and selected threshold.
Incident Queue Reliability Report
incident_queue_reliability_report.go
package main
import "fmt"
func main() {
var minSeverity =
severities := []int{1, 2, 3, 3}
visible := 0
high := 0
for _, severity := range severities {
if severity >= minSeverity {
visible++
}
if severity >= 3 {
high++
}
}
fmt.Printf("min=%d visible=%d high=%d\n", minSeverity, visible, high)
}
package main
import "fmt"
func main() {
var minSeverity =
severities := []int{1, 2, 3, 3}
visible := 0
high := 0
for _, severity := range severities {
if severity >= minSeverity {
visible++
}
if severity >= 3 {
high++
}
}
fmt.Printf("min=%d visible=%d high=%d\n", minSeverity, visible, high)
}
package main
import "fmt"
func main() {
var minSeverity =
severities := []int{1, 2, 3, 3}
visible := 0
high := 0
for _, severity := range severities {
if severity >= minSeverity {
visible++
}
if severity >= 3 {
high++
}
}
fmt.Printf("min=%d visible=%d high=%d\n", minSeverity, visible, high)
}
severity threshold
A queue report can stay deterministic by keeping severities in a local slice and deriving counts from a selected threshold.