feat(kpi): K6 — NotificationOutbox sample source (global/site/node)

This commit is contained in:
Joseph Doherty
2026-06-17 19:53:39 -04:00
parent 9ffa34d3e7
commit 0d6c026dff
4 changed files with 331 additions and 0 deletions
@@ -1,5 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Kpi;
using ZB.MOM.WW.ScadaBridge.NotificationOutbox.Delivery;
using ZB.MOM.WW.ScadaBridge.NotificationOutbox.Kpi;
namespace ZB.MOM.WW.ScadaBridge.NotificationOutbox;
@@ -46,6 +48,10 @@ public static class ServiceCollectionExtensions
services.AddScoped<INotificationDeliveryAdapter>(
sp => sp.GetRequiredService<EmailNotificationDeliveryAdapter>());
// KPI history (M6): the recorder singleton enumerates every IKpiSampleSource each
// sampling pass to snapshot the outbox delivery KPIs into the central history store.
services.AddScoped<IKpiSampleSource, NotificationOutboxKpiSampleSource>();
return services;
}
}