0 handling
This commit is contained in:
1 parent
f2779160a1
commit
9283890b5f
1 file changed
+24
-4
@@ -42,10 +42,30 @@ export const settingsSchema = z.object({
|
|||||||
.optional(),
|
.optional(),
|
||||||
globalThresholds: z
|
globalThresholds: z
|
||||||
.object({
|
.object({
|
||||||
cpu: z.number().int().min(0).max(100),
|
cpu: z
|
||||||
memory: z.number().int().min(0).max(100),
|
.number()
|
||||||
disk: z.number().int().min(0).max(100),
|
.int()
|
||||||
temperature: z.number().int().min(0).max(150),
|
.min(1, "Please enter a value")
|
||||||
|
.max(100, "Maximum value is 100")
|
||||||
|
.optional(),
|
||||||
|
memory: z
|
||||||
|
.number()
|
||||||
|
.int()
|
||||||
|
.min(1, "Please enter a value")
|
||||||
|
.max(100, "Maximum value is 100")
|
||||||
|
.optional(),
|
||||||
|
disk: z
|
||||||
|
.number()
|
||||||
|
.int()
|
||||||
|
.min(1, "Please enter a value")
|
||||||
|
.max(100, "Maximum value is 100")
|
||||||
|
.optional(),
|
||||||
|
temperature: z
|
||||||
|
.number()
|
||||||
|
.int()
|
||||||
|
.min(1, "Please enter a value")
|
||||||
|
.max(150, "Maximum value is 150")
|
||||||
|
.optional(),
|
||||||
})
|
})
|
||||||
.optional(),
|
.optional(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user