Merge pull request #3426 from bluewave-labs/fix/swagger-put-monitor
fix: updating swagger - /PUT to /PATCH monitor/{monitorId}
This commit is contained in:
1 file changed
+84
-48
+84
-48
@@ -756,7 +756,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"put": {
|
"patch": {
|
||||||
"tags": ["monitors"],
|
"tags": ["monitors"],
|
||||||
"summary": "Update monitor",
|
"summary": "Update monitor",
|
||||||
"description": "Update an existing monitor",
|
"description": "Update an existing monitor",
|
||||||
@@ -3661,21 +3661,32 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"minLength": 1,
|
"enum": ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "grpc", "websocket", "unknown"]
|
||||||
"maxLength": 100
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"statusWindowSize": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 20,
|
||||||
|
"default": 5
|
||||||
|
},
|
||||||
|
"statusWindowThreshold": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 60
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"maxLength": 500
|
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
"type": "integer",
|
"type": "integer"
|
||||||
"minimum": 30,
|
|
||||||
"maximum": 3600
|
|
||||||
},
|
|
||||||
"isActive": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@@ -3683,47 +3694,72 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"httpOptions": {
|
"secret": {
|
||||||
"type": "object",
|
"type": "string"
|
||||||
"properties": {
|
|
||||||
"method": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["GET", "POST", "PUT", "DELETE", "HEAD"]
|
|
||||||
},
|
|
||||||
"headers": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"timeout": {
|
|
||||||
"type": "integer",
|
|
||||||
"minimum": 1000,
|
|
||||||
"maximum": 30000
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"assertions": {
|
"ignoreTlsErrors": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"useAdvancedMatching": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"jsonPath": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"expectedValue": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"matchMethod": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["equal", "include", "regex", ""]
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 65535
|
||||||
|
},
|
||||||
|
"cpuAlertThreshold": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"memoryAlertThreshold": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"diskAlertThreshold": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"tempAlertThreshold": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"gameId": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"grpcServiceName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"selectedDisks": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "string"
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["status-code", "response-time", "body-contains", "header-contains"]
|
|
||||||
},
|
|
||||||
"comparison": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["equals", "not-equals", "greater-than", "less-than", "contains", "not-contains"]
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true,
|
||||||
|
"maxLength": 50
|
||||||
|
},
|
||||||
|
"geoCheckEnabled": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"geoCheckLocations": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["northAmerica", "southAmerica", "europe", "asia", "africa", "oceania"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"geoCheckInterval": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 300000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user