Operational Remediation Reports
Countdown Barrier Remediation Report
Compare arrivals at a barrier against the expected parties and turn the pending count into a release, wait, or escalate remediation action.
Countdown Barrier Remediation Report
CountdownBarrierRemediationReport.cs
using System;
class Program
{
static void Main()
{
int arrivals = ;
int parties = 3;
int done = arrivals;
if (done > parties)
{
done = parties;
}
int pending = parties - done;
string action;
if (pending == 0)
{
action = "release";
}
else if (pending <= 1)
{
action = "wait";
}
else
{
action = "escalate";
}
Console.WriteLine("parties=" + parties + " done=" + done + " pending=" + pending + " " + action);
}
}
using System;
class Program
{
static void Main()
{
int arrivals = ;
int parties = 3;
int done = arrivals;
if (done > parties)
{
done = parties;
}
int pending = parties - done;
string action;
if (pending == 0)
{
action = "release";
}
else if (pending <= 1)
{
action = "wait";
}
else
{
action = "escalate";
}
Console.WriteLine("parties=" + parties + " done=" + done + " pending=" + pending + " " + action);
}
}
using System;
class Program
{
static void Main()
{
int arrivals = ;
int parties = 3;
int done = arrivals;
if (done > parties)
{
done = parties;
}
int pending = parties - done;
string action;
if (pending == 0)
{
action = "release";
}
else if (pending <= 1)
{
action = "wait";
}
else
{
action = "escalate";
}
Console.WriteLine("parties=" + parties + " done=" + done + " pending=" + pending + " " + action);
}
}
barrier pending
The expected parties and arrivals are scalars, so the pending work that drives the remediation action stays deterministic without waiting on a live barrier.