Add validation and status messages
This commit is contained in:
1 parent
6ff1cd0b5d
commit
f155b8ceb8
2 files changed
+7
No files matched your search
@@ -59,6 +59,9 @@ const errorMessages = {
|
||||
// Docker
|
||||
DOCKER_FAIL: "Failed to fetch Docker container information",
|
||||
DOCKER_NOT_FOUND: "Docker container not found",
|
||||
|
||||
// Port
|
||||
PORT_FAIL: "Failed to connect to port",
|
||||
};
|
||||
|
||||
const successMessages = {
|
||||
@@ -129,6 +132,9 @@ const successMessages = {
|
||||
|
||||
// Docker
|
||||
DOCKER_SUCCESS: "Docker container status fetched successfully",
|
||||
|
||||
// Port
|
||||
PORT_SUCCESS: "Port connected successfully",
|
||||
};
|
||||
|
||||
export { errorMessages, successMessages };
|
||||
@@ -199,6 +199,7 @@ const createMonitorBodyValidation = joi.object({
|
||||
description: joi.string().required(),
|
||||
type: joi.string().required(),
|
||||
url: joi.string().required(),
|
||||
port: joi.number(),
|
||||
isActive: joi.boolean(),
|
||||
interval: joi.number(),
|
||||
thresholds: joi.object().keys({
|
||||
|
||||
Reference in new issue
Block a user