allow 'port' field in edit monitor schema

This commit is contained in:
Vishnu Sreekumaran Nair
2025-05-01 13:47:10 -04:00
parent b7b6724ce5
commit 2fb20bfff9

View File

@@ -210,6 +210,7 @@ const editMonitorBodyValidation = joi.object({
jsonPath: joi.string().allow(""),
expectedValue: joi.string().allow(""),
matchMethod: joi.string(),
port: joi.number().min(1).max(65535),
thresholds: joi.object().keys({
usage_cpu: joi.number(),
usage_memory: joi.number(),