server(alarms): monitor resolves watch-list, sends ForcedMode/failover, reflects provider mode into feed + metrics

This commit is contained in:
Joseph Doherty
2026-06-13 10:20:03 -04:00
parent 3ccf0b5f9e
commit ebf1d95f72
3 changed files with 574 additions and 3 deletions
@@ -13,6 +13,7 @@ public static class AlarmsServiceCollectionExtensions
/// <returns>The service collection for chaining.</returns>
public static IServiceCollection AddGatewayAlarms(this IServiceCollection services)
{
services.AddSingleton<IAlarmWatchListResolver, AlarmWatchListResolver>();
services.AddSingleton<GatewayAlarmMonitor>();
services.AddSingleton<IGatewayAlarmService>(provider => provider.GetRequiredService<GatewayAlarmMonitor>());
services.AddHostedService(provider => provider.GetRequiredService<GatewayAlarmMonitor>());