Skip to content

Open-source status page, incident response and uptime monitoring

😱 add missing field api (#1040)

Thibault Le Ouay789a55d85db6
diff --git a/apps/server/src/v1/monitors/schema.ts b/apps/server/src/v1/monitors/schema.ts
index 3fecc7792..7aacdeaab 100644
--- a/apps/server/src/v1/monitors/schema.ts
+++ b/apps/server/src/v1/monitors/schema.ts
@@ -199,6 +199,12 @@ export const MonitorSchema = z
.boolean()
.default(false)
.openapi({ description: "If the monitor is public" }),
+ degratedAfter: z.number().optional().openapi({
+ description: "The time after the monitor is considered degrated",
+ }),
+ timeout: z.number().optional().openapi({
+ description: "The timeout of the request",
+ }),
})
.openapi({
description: "The monitor",