alerting for gateways and relays

This commit is contained in:
x032205
2025-10-08 23:46:47 -04:00
parent 12b59fc2c0
commit c6696d4fde
12 changed files with 365 additions and 18 deletions
+19 -2
View File
@@ -1121,7 +1121,11 @@ export const registerRoutes = async (
relayDAL,
kmsService,
licenseService,
permissionService
permissionService,
orgDAL,
notificationService,
smtpService,
userDAL
});
const gatewayV2Service = gatewayV2ServiceFactory({
@@ -1131,7 +1135,10 @@ export const registerRoutes = async (
orgGatewayConfigV2DAL,
gatewayV2DAL,
relayDAL,
permissionService
permissionService,
orgDAL,
notificationService,
smtpService
});
const secretSyncQueue = secretSyncQueueFactory({
@@ -2330,6 +2337,16 @@ export const registerRoutes = async (
cronJobs.push(configSyncJob);
}
const gatewayHealthcheckNotifyJob = await gatewayV2Service.initializeHealthcheckNotify();
if (gatewayHealthcheckNotifyJob) {
cronJobs.push(gatewayHealthcheckNotifyJob);
}
const relayHealthcheckNotifyJob = await relayService.initializeHealthcheckNotify();
if (relayHealthcheckNotifyJob) {
cronJobs.push(relayHealthcheckNotifyJob);
}
const oauthConfigSyncJob = await initializeOauthConfigSync();
if (oauthConfigSyncJob) {
cronJobs.push(oauthConfigSyncJob);