Operational Reliability Reports
Incident Queue Reliability
Count Severity
A Bash incident report can count visible severities and keep high-severity incidents visible.
Program
Play the script to choose the minimum severity and inspect the queue count report.
incident_queue_reliability_report.sh
#!/usr/bin/env bash
min_severity=
severities="1 3 2 3"
visible=0
high=0
for severity in $severities; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
if (( severity == 3 )); then
high=$((high + 1))
fi
done
echo "min=$min_severity visible=$visible high=$high"
#!/usr/bin/env bash
min_severity=
severities="1 3 2 3"
visible=0
high=0
for severity in $severities; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
if (( severity == 3 )); then
high=$((high + 1))
fi
done
echo "min=$min_severity visible=$visible high=$high"
#!/usr/bin/env bash
min_severity=
severities="1 3 2 3"
visible=0
high=0
for severity in $severities; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
if (( severity == 3 )); then
high=$((high + 1))
fi
done
echo "min=$min_severity visible=$visible high=$high"
severity threshold
`min_severity` controls which incident values count as visible.
loop counters
The script uses scalar counters so every update is replayable.
high count
Severity 3 incidents stay visible in a separate total.