Operational Reliability Reports
Incident Queue Reliability Report
Count visible incidents at or above a selected severity threshold.
incident queue
Filtering incidents by severity keeps the report focused on the queue entries that need immediate operator attention.
Incident Queue Reliability Report
IncidentQueueReliabilityReport.cs
Replay: real traced execution (multi-file project)
using System;
class Program
{
static void Main()
{
int minimumSeverity = 2;
int[] severities = { 1, 2, 3, 3 };
int visible = 0;
int high = 0;
foreach (int severity in severities)
{
if (severity >= minimumSeverity)
{
visible++;
}
if (severity >= 3)
{
high++;
}
}
Console.WriteLine("minimum=" + minimumSeverity);
Console.WriteLine("visible=" + visible);
Console.WriteLine("high=" + high);
}
}
using System;
class Program
{
static void Main()
{
int minimumSeverity = 1;
int[] severities = { 1, 2, 3, 3 };
int visible = 0;
int high = 0;
foreach (int severity in severities)
{
if (severity >= minimumSeverity)
{
visible++;
}
if (severity >= 3)
{
high++;
}
}
Console.WriteLine("minimum=" + minimumSeverity);
Console.WriteLine("visible=" + visible);
Console.WriteLine("high=" + high);
}
}
using System;
class Program
{
static void Main()
{
int minimumSeverity = 3;
int[] severities = { 1, 2, 3, 3 };
int visible = 0;
int high = 0;
foreach (int severity in severities)
{
if (severity >= minimumSeverity)
{
visible++;
}
if (severity >= 3)
{
high++;
}
}
Console.WriteLine("minimum=" + minimumSeverity);
Console.WriteLine("visible=" + visible);
Console.WriteLine("high=" + high);
}
}
minimumSeverity ← 2, visible ← 0, high ← 0
4{5 static void Main()6 {7 int minimumSeverity→ 2 = 2; //@minimumSeverity=1, 38 int[] severities = { 1, 2, 3, 3 };9 int visible→ 0 = 0;10 int high→ 0 = 0;foreach (int severity in severities)
pass 1 of 412foreach (int severity1 in severities)13{14 if (severity >= minimumSeverity)All 4 passes — pass 1 is the card above pass severityhigh1 1 — 2 2 — 3 3 0 → 1 4 3 1 → 2 visible ← 1
pass 1 of 313{14 if (severity2 >= minimumSeverity2)15 {16 visible→ 1++;17 }All 3 passes — pass 1 is the card above pass severityvisiblehigh1 2 0 → 1 — 2 3 1 → 2 0 → 1 3 3 2 → 3 1 → 2 high ← 1
pass 1 of 219if (severity3 >= 3)20{21 high→ 1++;22}high ← 2
pass 2 of 219if (severity3 >= 3)20{21 high→ 2++;22}Console.WriteLine("minimum=" + minimumSeverity);
25 Console.WriteLine("minimum=" + minimumSeverity2);26 Console.WriteLine("visible=" + visible3);27 Console.WriteLine("high=" + high2);28}outputminimum=2 visible=3 high=2
minimumSeverity ← 1, visible ← 0, high ← 0
4{5 static void Main()6 {7 int minimumSeverity→ 1 = 1;8 int[] severities = { 1, 2, 3, 3 };9 int visible→ 0 = 0;10 int high→ 0 = 0;foreach (int severity in severities)
pass 1 of 412foreach (int severity1 in severities)13{14 if (severity >= minimumSeverity)All 4 passes — pass 1 is the card above pass severityhigh1 1 — 2 2 — 3 3 0 → 1 4 3 1 → 2 visible ← 1
pass 1 of 413{14 if (severity1 >= minimumSeverity1)15 {16 visible→ 1++;17 }All 4 passes — pass 1 is the card above pass severityvisiblehigh1 1 0 → 1 — 2 2 1 → 2 — 3 3 2 → 3 0 → 1 4 3 3 → 4 1 → 2 high ← 1
pass 1 of 219if (severity3 >= 3)20{21 high→ 1++;22}high ← 2
pass 2 of 219if (severity3 >= 3)20{21 high→ 2++;22}Console.WriteLine("minimum=" + minimumSeverity);
25 Console.WriteLine("minimum=" + minimumSeverity1);26 Console.WriteLine("visible=" + visible4);27 Console.WriteLine("high=" + high2);28}outputminimum=1 visible=4 high=2
minimumSeverity ← 3, visible ← 0, high ← 0
4{5 static void Main()6 {7 int minimumSeverity→ 3 = 3;8 int[] severities = { 1, 2, 3, 3 };9 int visible→ 0 = 0;10 int high→ 0 = 0;foreach (int severity in severities)
pass 1 of 412foreach (int severity1 in severities)13{14 if (severity >= minimumSeverity)All 4 passes — pass 1 is the card above pass severityminimumSeverityvisiblehigh1 1 — — — 2 2 — — — 3 3 3 0 → 1 0 → 1 4 3 3 1 → 2 1 → 2 visible ← 1
pass 1 of 213{14 if (severity3 >= minimumSeverity3)15 {16 visible→ 1++;17 }high ← 1
pass 1 of 219if (severity3 >= 3)20{21 high→ 1++;22}visible ← 2
pass 2 of 213{14 if (severity3 >= minimumSeverity3)15 {16 visible→ 2++;17 }high ← 2
pass 2 of 219if (severity3 >= 3)20{21 high→ 2++;22}Console.WriteLine("minimum=" + minimumSeverity);
25 Console.WriteLine("minimum=" + minimumSeverity3);26 Console.WriteLine("visible=" + visible2);27 Console.WriteLine("high=" + high2);28}outputminimum=3 visible=2 high=2