chore: necessary updates given the changes in the alert controller

This commit is contained in:
voltsrage
2026-06-25 00:40:47 +08:00
parent 666d683d67
commit 7bb9124230
32 changed files with 353 additions and 40 deletions
+13 -2
View File
@@ -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(