Operational Remediation Reports
Incident Owner Report
Assign Visible Tickets
An incident remediation report can count visible tickets at a selected severity threshold and assign the queue to a fixed owner group.
Program
Play the program to choose minimum severity and inspect the owner report.
incident_owner_report.f90
Replay: real traced execution (multi-file project)
program incident_owner_report_demo
implicit none
integer :: severities(4)
integer :: min_severity
integer :: visible_count
integer :: i
character(len=8) :: owner
severities = [1, 2, 3, 3]
min_severity = 2
visible_count = 0
do i = 1, 4
if (severities(i) >= min_severity) then
visible_count = visible_count + 1
end if
end do
if (visible_count >= 3) then
owner = 'ops'
else
owner = 'lead'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)
end program incident_owner_report_demo
program incident_owner_report_demo
implicit none
integer :: severities(4)
integer :: min_severity
integer :: visible_count
integer :: i
character(len=8) :: owner
severities = [1, 2, 3, 3]
min_severity = 1
visible_count = 0
do i = 1, 4
if (severities(i) >= min_severity) then
visible_count = visible_count + 1
end if
end do
if (visible_count >= 3) then
owner = 'ops'
else
owner = 'lead'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)
end program incident_owner_report_demo
program incident_owner_report_demo
implicit none
integer :: severities(4)
integer :: min_severity
integer :: visible_count
integer :: i
character(len=8) :: owner
severities = [1, 2, 3, 3]
min_severity = 3
visible_count = 0
do i = 1, 4
if (severities(i) >= min_severity) then
visible_count = visible_count + 1
end if
end do
if (visible_count >= 3) then
owner = 'ops'
else
owner = 'lead'
end if
print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)
end program incident_owner_report_demo
severities ← [1, 2, 3, 3]
9severities = [1, 2, 3, 3]10min_severity = 2values this step[1, 2, 3, 3]severitiesmin_severity ← 2
9severities = [1, 2, 3, 3]10min_severity = 211visible_count = 0values this step2min_severityvisible_count ← 0
10min_severity = 211visible_count = 012do i = 1, 4values this step0visible_counti ← 1
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step1iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.false.severities(1) >= min_severityi ← 2
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step2iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(2) >= min_severityvisible_count ← 1
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step1visible_counti ← 3
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step3iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(3) >= min_severityvisible_count ← 2
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step2visible_counti ← 4
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step4iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(4) >= min_severityvisible_count ← 3
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step3visible_countif (visible_count >= 3) then
16end do17if (visible_count >= 3) then18 owner = 'ops'values this step3visible_countowner ← ops
17if (visible_count >= 3) then18 owner = 'ops'19elsevalues this stepopsownerprint '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', v…
21 end if22 print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)23end program incident_owner_report_demooutputmin=2 visible=3 opsvalues this step2min_severity3visible_countopsowner
severities ← [1, 2, 3, 3]
9severities = [1, 2, 3, 3]10min_severity = 1values this step[1, 2, 3, 3]severitiesmin_severity ← 1
9severities = [1, 2, 3, 3]10min_severity = 111visible_count = 0values this step1min_severityvisible_count ← 0
10min_severity = 111visible_count = 012do i = 1, 4values this step0visible_counti ← 1
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step1iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(1) >= min_severityvisible_count ← 1
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step1visible_counti ← 2
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step2iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(2) >= min_severityvisible_count ← 2
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step2visible_counti ← 3
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step3iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(3) >= min_severityvisible_count ← 3
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step3visible_counti ← 4
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step4iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(4) >= min_severityvisible_count ← 4
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step4visible_countif (visible_count >= 3) then
16end do17if (visible_count >= 3) then18 owner = 'ops'values this step4visible_countowner ← ops
17if (visible_count >= 3) then18 owner = 'ops'19elsevalues this stepopsownerprint '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', v…
21 end if22 print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)23end program incident_owner_report_demooutputmin=1 visible=4 opsvalues this step1min_severity4visible_countopsowner
severities ← [1, 2, 3, 3]
9severities = [1, 2, 3, 3]10min_severity = 3values this step[1, 2, 3, 3]severitiesmin_severity ← 3
9severities = [1, 2, 3, 3]10min_severity = 311visible_count = 0values this step3min_severityvisible_count ← 0
10min_severity = 311visible_count = 012do i = 1, 4values this step0visible_counti ← 1
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step1iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.false.severities(1) >= min_severityi ← 2
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step2iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.false.severities(2) >= min_severityi ← 3
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step3iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(3) >= min_severityvisible_count ← 1
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step1visible_counti ← 4
11visible_count = 012do i = 1, 413 if (severities(i) >= min_severity) thenvalues this step4iif (severities(i) >= min_severity) then
12do i = 1, 413 if (severities(i) >= min_severity) then14 visible_count = visible_count + 1values this step.true.severities(4) >= min_severityvisible_count ← 2
13if (severities(i) >= min_severity) then14 visible_count = visible_count + 115end ifvalues this step2visible_countif (visible_count >= 3) then
16end do17if (visible_count >= 3) then18 owner = 'ops'values this step2visible_countowner ← lead
19else20 owner = 'lead'21end ifvalues this stepleadownerprint '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', v…
21 end if22 print '(A, I0, 1X, A, I0, 1X, A)', 'min=', min_severity, 'visible=', visible_count, trim(owner)23end program incident_owner_report_demooutputmin=3 visible=2 leadvalues this step3min_severity2visible_countleadowner
visible count
The loop counts incidents at or above the selected severity threshold.
owner label
The owner is derived from the visible workload rather than from host state.
remediation row
The final output keeps threshold, count, and owner in one report line.