update monitor validation to allow for threshold values
This commit is contained in:
1 parent
d392317f13
commit
7d8c0d298b
1 file changed
+5
@@ -222,6 +222,11 @@ const createMonitorBodyValidation = joi.object({
|
||||
url: joi.string().required(),
|
||||
isActive: joi.boolean(),
|
||||
interval: joi.number(),
|
||||
thresholds: joi.object().keys({
|
||||
usage_cpu: joi.number(),
|
||||
usage_memory: joi.number(),
|
||||
usage_disk: joi.number(),
|
||||
}),
|
||||
notifications: joi.array().items(joi.object()),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user