remove unused validation, update monitors by team ID validation
This commit is contained in:
1 parent
8f572ba01d
commit
87f9c35c74
1 file changed
+2
-24
@@ -136,32 +136,12 @@ const getMonitorByIdQueryValidation = joi.object({
|
|||||||
normalize: joi.boolean(),
|
normalize: joi.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const getMonitorsSummaryByTeamIdParamValidation = joi.object({
|
const getMonitorsByTeamIdParamValidation = joi.object({
|
||||||
teamId: joi.string().required(),
|
|
||||||
});
|
|
||||||
|
|
||||||
const getMonitorsSummaryByTeamIdQueryValidation = joi.object({
|
|
||||||
type: joi
|
|
||||||
.alternatives()
|
|
||||||
.try(
|
|
||||||
joi.string().valid("http", "ping", "pagespeed", "docker", "hardware", "port"),
|
|
||||||
joi
|
|
||||||
.array()
|
|
||||||
.items(
|
|
||||||
joi.string().valid("http", "ping", "pagespeed", "docker", "hardware", "port")
|
|
||||||
)
|
|
||||||
),
|
|
||||||
});
|
|
||||||
|
|
||||||
const getMonitorsByTeamIdValidation = joi.object({
|
|
||||||
teamId: joi.string().required(),
|
teamId: joi.string().required(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const getMonitorsByTeamIdQueryValidation = joi.object({
|
const getMonitorsByTeamIdQueryValidation = joi.object({
|
||||||
status: joi.boolean(),
|
|
||||||
checkOrder: joi.string().valid("asc", "desc"),
|
|
||||||
limit: joi.number(),
|
limit: joi.number(),
|
||||||
normalize: joi.boolean(),
|
|
||||||
type: joi
|
type: joi
|
||||||
.alternatives()
|
.alternatives()
|
||||||
.try(
|
.try(
|
||||||
@@ -467,9 +447,7 @@ export {
|
|||||||
createMonitorBodyValidation,
|
createMonitorBodyValidation,
|
||||||
getMonitorByIdParamValidation,
|
getMonitorByIdParamValidation,
|
||||||
getMonitorByIdQueryValidation,
|
getMonitorByIdQueryValidation,
|
||||||
getMonitorsSummaryByTeamIdParamValidation,
|
getMonitorsByTeamIdParamValidation,
|
||||||
getMonitorsSummaryByTeamIdQueryValidation,
|
|
||||||
getMonitorsByTeamIdValidation,
|
|
||||||
getMonitorsByTeamIdQueryValidation,
|
getMonitorsByTeamIdQueryValidation,
|
||||||
getMonitorStatsByIdParamValidation,
|
getMonitorStatsByIdParamValidation,
|
||||||
getMonitorStatsByIdQueryValidation,
|
getMonitorStatsByIdQueryValidation,
|
||||||
|
|||||||
Reference in new issue
Block a user