Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
🚑 (#589)
Thibault Le Ouayc93f038370ed
diff --git a/apps/server/src/checker/index.ts b/apps/server/src/checker/index.tsindex 24fc47e36..4e2f198db 100644--- a/apps/server/src/checker/index.ts+++ b/apps/server/src/checker/index.ts@@ -58,7 +58,7 @@ checkerRoute.post("/updateStatus", async (c) => {);// if we are in error- if (statusCode && statusCode < 200 && statusCode > 300) {+ if (!statusCode || (statusCode < 200 && statusCode > 300)) {// create incident// trigger alertingawait checkerAudit.publishAuditLog({@@ -114,7 +114,7 @@ checkerRoute.post("/updateStatus", async (c) => {}}}-+ // When the status is okif (statusCode && statusCode >= 200 && statusCode < 300) {await upsertMonitorStatus({monitorId: monitorId,