revert individual settings for metrics, now only enable/disable

This commit is contained in:
Daniel Dietzler
2023-12-28 19:49:32 +01:00
parent ac4c57247e
commit 0232655da2
11 changed files with 33 additions and 230 deletions
+2 -62
View File
@@ -3717,19 +3717,9 @@
}
},
"/metrics": {
"put": {
"get": {
"operationId": "getMetrics",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SystemConfigMetricsDto"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
@@ -8103,48 +8093,6 @@
],
"type": "object"
},
"MetricServerInfoConfig": {
"properties": {
"cpuCount": {
"type": "boolean"
},
"cpuModel": {
"type": "boolean"
},
"memory": {
"type": "boolean"
},
"version": {
"type": "boolean"
}
},
"required": [
"cpuCount",
"cpuModel",
"memory",
"version"
],
"type": "object"
},
"MetricsAssetCountConfig": {
"properties": {
"image": {
"type": "boolean"
},
"total": {
"type": "boolean"
},
"video": {
"type": "boolean"
}
},
"required": [
"image",
"video",
"total"
],
"type": "object"
},
"ModelType": {
"enum": [
"facial-recognition",
@@ -9373,20 +9321,12 @@
},
"SystemConfigMetricsDto": {
"properties": {
"assetCount": {
"$ref": "#/components/schemas/MetricsAssetCountConfig"
},
"enabled": {
"type": "boolean"
},
"serverInfo": {
"$ref": "#/components/schemas/MetricServerInfoConfig"
}
},
"required": [
"enabled",
"serverInfo",
"assetCount"
"enabled"
],
"type": "object"
},