refactor(kpi): shared public KpiMetrics catalog — source consts + UI pages key off one symbol (#178)

This commit is contained in:
Joseph Doherty
2026-06-19 02:04:10 -04:00
parent 47f5ca687c
commit e51104af5f
9 changed files with 135 additions and 30 deletions
@@ -293,9 +293,9 @@ public partial class AuditLogPage : IDisposable
/// <summary>The metrics rendered in the panel, in display order.</summary>
private static readonly (string Metric, string Title, string? Unit)[] TrendMetrics =
{
("totalEventsLastHour", "Events / hour", null),
("errorEventsLastHour", "Error events / hour", null),
("backlogTotal", "Backlog", null),
(KpiMetrics.AuditLog.TotalEventsLastHour, "Events / hour", null),
(KpiMetrics.AuditLog.ErrorEventsLastHour, "Error events / hour", null),
(KpiMetrics.AuditLog.BacklogTotal, "Backlog", null),
};
/// <summary>Per-metric series state, keyed by the metric name.</summary>