add incidents config box

This commit is contained in:
Alex Holliday committed 2026-01-29 23:39:14 +00:00
1 parent 9a42fb031f
commit 084eed85bf
3 files changed
+63 -3

No files matched your search

+3 -3
View File
@@ -9,11 +9,11 @@ const baseSchema = z.object({
interval: z.number().min(15000, "Interval must be at least 15 seconds"),
notifications: z.array(z.string()),
statusWindowSize: z
.number()
.number({ message: "Status window size is required" })
.min(1, "Status window size must be at least 1")
.max(20, "Status window size must be at most 20"),
.max(25, "Status window size must be at most 25"),
statusWindowThreshold: z
.number()
.number({ message: "Threshold percentage is required" })
.min(1, "Incident percentage must be at least 1")
.max(100, "Incident percentage must be at most 100"),
});