Merge pull request #3690 from harsh-aghara/feat/accept-status-codes-backend

Add customUpCodes support for HTTP monitors (Backend)
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-06-08 12:04:42 -07:00
commit ce4cb63035
13 files changed
+346 -60

No files matched your search

@@ -548,6 +548,7 @@ class MongoMonitorsRepository implements IMonitorsRepository {
uptimePercentage: doc.uptimePercentage ?? undefined,
notifications: notificationIds,
tags: tagIds,
customUpCodes: doc.customUpCodes ?? [],
secret: doc.secret ?? undefined,
cpuAlertThreshold: doc.cpuAlertThreshold,
cpuAlertCounter: doc.cpuAlertCounter,
@@ -612,6 +613,7 @@ class MongoMonitorsRepository implements IMonitorsRepository {
uptimePercentage: doc.uptimePercentage ?? undefined,
notifications: notificationIds,
tags: tagIds,
customUpCodes: doc.customUpCodes ?? [],
secret: doc.secret ?? undefined,
cpuAlertThreshold: doc.cpuAlertThreshold,
cpuAlertCounter: doc.cpuAlertCounter,