Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› trigger alerting (#473)

authored by

Thibault Le Ouay and committed by
GitHub
5e887fcb 4d213e8f

+6 -2
+4 -1
apps/server/src/checker/alerting.ts
··· 12 12 monitorId, 13 13 region, 14 14 statusCode, 15 + message, 15 16 }: { 16 17 monitorId: string; 17 18 region: keyof typeof flyRegionsDict; 18 - statusCode: number; 19 + statusCode?: number; 20 + message?: string; 19 21 }) => { 20 22 console.log(`๐Ÿ’Œ triggerAlerting for ${monitorId}`); 21 23 const notifications = await db ··· 38 40 notification: selectNotificationSchema.parse(notif.notification), 39 41 region: flyRegionsDict[region].location, 40 42 statusCode, 43 + message, 41 44 }); 42 45 } 43 46 };
+2 -1
apps/server/src/checker/checker.ts
··· 107 107 await triggerAlerting({ 108 108 monitorId: data.monitorId, 109 109 region: env.FLY_REGION, 110 - statusCode: res?.status || 0, 110 + statusCode: res?.status, 111 + message, 111 112 }); 112 113 } 113 114 }