Add port type to Monitor
This commit is contained in:
1 parent
955d3c6298
commit
0a68611234
1 file changed
+4
-1
@@ -28,12 +28,15 @@ const MonitorSchema = mongoose.Schema(
|
|||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
enum: ["http", "ping", "pagespeed", "hardware", "docker"],
|
enum: ["http", "ping", "pagespeed", "hardware", "docker", "port"],
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
port: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
isActive: {
|
isActive: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
|||||||
Reference in new issue
Block a user