Add port type to Monitor

This commit is contained in:
Alex Holliday committed 2024-12-27 10:48:44 -08:00
1 parent 955d3c6298
commit 0a68611234
1 file changed
+4 -1
+4 -1
View File
@@ -28,12 +28,15 @@ const MonitorSchema = mongoose.Schema(
type: {
type: String,
required: true,
enum: ["http", "ping", "pagespeed", "hardware", "docker"],
enum: ["http", "ping", "pagespeed", "hardware", "docker", "port"],
},
url: {
type: String,
required: true,
},
port: {
type: Number,
},
isActive: {
type: Boolean,
default: true,