chore: necessary updates given the changes in the alert controller
This commit is contained in:
@@ -47,6 +47,13 @@ public static class SimulatorConsole
|
||||
table.AddRow("Orders placed", r.OrdersPlaced.ToString());
|
||||
table.AddRow("Orders resulted", r.OrdersResulted.ToString());
|
||||
table.AddRow("Wall-clock time", $"{r.Duration.TotalSeconds:F1}s");
|
||||
if (r.HadExpectedOutcomes)
|
||||
{
|
||||
table.AddRow("Expected outcomes",
|
||||
r.OutcomeFailures.Count > 0
|
||||
? $"[red]{r.OutcomeFailures.Count} failed[/]"
|
||||
: "[green]passed[/]");
|
||||
}
|
||||
AnsiConsole.Write(table);
|
||||
}
|
||||
|
||||
@@ -88,8 +95,12 @@ public static class SimulatorConsole
|
||||
$"[cyan][[{simTime}]][/] qSOFA screen = {poll.Qsofa.ActiveCriteria}/3");
|
||||
|
||||
foreach (var alert in poll.NewAlerts)
|
||||
AnsiConsole.MarkupLine(
|
||||
$"[red][[{simTime}]][/] ALERT {alert.AlertType} ({alert.Severity})");
|
||||
{
|
||||
var line = $"[red][[{simTime}]][/] ALERT {alert.AlertType} ({alert.Severity})";
|
||||
if (!string.IsNullOrWhiteSpace(alert.Explanation?.NarrativeSummary))
|
||||
line += $" — {Markup.Escape(alert.Explanation.NarrativeSummary)}";
|
||||
AnsiConsole.MarkupLine(line);
|
||||
}
|
||||
|
||||
if (poll.SepsisBundle is not null)
|
||||
AnsiConsole.MarkupLine(
|
||||
|
||||
Reference in New Issue
Block a user