Add get monitor stats by ID to docs

This commit is contained in:
Alex Holliday committed 2024-09-24 15:20:45 +08:00
1 parent 8cccc58d39
commit bd03964ab6
4 files changed
+54 -53

No files matched your search

+54
View File
@@ -738,8 +738,62 @@
}
]
}
},
"/monitors/stats/{monitorId}": {
"get": {
"tags": ["monitors"],
"description": "Get monitor stats",
"parameters": [
{
"name": "monitorId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessResponse"
}
}
}
},
"422": {
"description": "Unprocessable Content",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"security": [
{
"bearerAuth": []
}
]
}
}
},
"components": {
"securitySchemes": {
"bearerAuth": {