feat(client): add customUpCodes to Monitor type and validation schema

This commit is contained in:
harsh-aghara committed 2026-06-18 21:37:14 +05:30
1 parent 158d976ccb
commit 603bd1d814
2 files changed
+5

No files matched your search

+1
View File
@@ -71,6 +71,7 @@ export interface Monitor {
uptimePercentage?: number;
notifications: string[];
tags: string[];
customUpCodes?: number[];
secret?: string;
cpuAlertThreshold: number;
cpuAlertCounter: number;
+4
View File
@@ -64,6 +64,10 @@ const httpSchema = baseSchema.extend({
.register(monitorStepRegistry, { step: 2 }),
expectedValue: z.string().optional().register(monitorStepRegistry, { step: 2 }),
jsonPath: z.string().optional().register(monitorStepRegistry, { step: 2 }),
customUpCodes: z
.array(z.number().min(100).max(599))
.optional()
.register(monitorStepRegistry, { step: 2 }),
...geoCheckFields,
});