Skip to content

Commit

Permalink
add missing field api
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultleouay committed Oct 7, 2024
1 parent 5b798e1 commit 77116f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/server/src/v1/monitors/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const MonitorSchema = z
]);
}
},
z.array(z.enum(flyRegions)),
z.array(z.enum(flyRegions))
)
.default([])
.openapi({
Expand Down Expand Up @@ -161,7 +161,7 @@ export const MonitorSchema = z
]);
}
},
z.array(z.object({ key: z.string(), value: z.string() })).default([]),
z.array(z.object({ key: z.string(), value: z.string() })).default([])
)
.nullish()
.openapi({
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 77116f1

Please sign in to comment.