feat(backend): add customUpCodes support for HTTP monitors

Adds a customUpCodes field to the monitor schema to allow users to specify which HTTP status codes should be treated as UP instead of DOWN. Includes core logic in HttpProvider and unit tests.

Refs #3657
This commit is contained in:
harsh-aghara committed 2026-06-01 00:10:55 +05:30
1 parent b9e8a6dbc8
commit 4e31499f78
8 files changed
+86 -8

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ export interface Monitor {
uptimePercentage?: number;
notifications: string[];
tags: string[];
customUpCodes: number[];
secret?: string;
cpuAlertThreshold: number;
cpuAlertCounter: number;