From f749ed46a6ff8bd788d7808aedbeeffacf509853 Mon Sep 17 00:00:00 2001 From: mannilakash Date: Wed, 18 Mar 2026 16:11:36 -0400 Subject: [PATCH] fix: updating swagger - schema changes monitor/{monitorId} --- server/openapi.json | 130 ++++++++++++++++++++++++++++---------------- 1 file changed, 83 insertions(+), 47 deletions(-) diff --git a/server/openapi.json b/server/openapi.json index f4404871c..75bad0dd9 100644 --- a/server/openapi.json +++ b/server/openapi.json @@ -3661,21 +3661,32 @@ "type": "object", "properties": { "name": { + "type": "string" + }, + "type": { "type": "string", - "minLength": 1, - "maxLength": 100 + "enum": ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "grpc", "websocket", "unknown"] + }, + "url": { + "type": "string" + }, + "statusWindowSize": { + "type": "integer", + "minimum": 1, + "maximum": 20, + "default": 5 + }, + "statusWindowThreshold": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 60 }, "description": { - "type": "string", - "maxLength": 500 + "type": "string" }, "interval": { - "type": "integer", - "minimum": 30, - "maximum": 3600 - }, - "isActive": { - "type": "boolean" + "type": "integer" }, "notifications": { "type": "array", @@ -3683,47 +3694,72 @@ "type": "string" } }, - "httpOptions": { - "type": "object", - "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 - } - } + "secret": { + "type": "string" }, - "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", "items": { - "type": "object", - "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" - } - } + "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 } } },