Operational Remediation Reports
Incident Owner Report
Assign Follow-Up
A Bash incident remediation report can count visible incidents and assign the next owner from that count.
Program
Play the script to choose minimum severity and inspect the owner assignment.
incident_owner_report.sh
#!/usr/bin/env bash
min_severity=
incidents="1 3 2 3"
visible=0
for severity in $incidents; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
done
if (( visible >= 3 )); then
owner="ops"
else
owner="lead"
fi
echo "min=$min_severity visible=$visible $owner"
#!/usr/bin/env bash
min_severity=
incidents="1 3 2 3"
visible=0
for severity in $incidents; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
done
if (( visible >= 3 )); then
owner="ops"
else
owner="lead"
fi
echo "min=$min_severity visible=$visible $owner"
#!/usr/bin/env bash
min_severity=
incidents="1 3 2 3"
visible=0
for severity in $incidents; do
if (( severity >= min_severity )); then
visible=$((visible + 1))
fi
done
if (( visible >= 3 )); then
owner="ops"
else
owner="lead"
fi
echo "min=$min_severity visible=$visible $owner"
visible incidents
The severity threshold controls which fixed incidents stay visible.
owner assignment
At least three visible incidents stay with operations; fewer move to lead.
fixed fixture
The incident list is a fixed scalar string for deterministic replay.