功能:补充固定场景助手与GPU健康诊断能力
This commit is contained in:
1 parent
9f05aa20ea
commit
b6026f9759
29 files changed
+1333
-22
No files matched your search
@@ -6537,6 +6537,128 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/resources/gpu-exclusive": {
|
||||
"get": {
|
||||
"operationId": "gpuExclusiveStatus",
|
||||
"security": [
|
||||
{
|
||||
"adminBearer": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "node",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/GPUExclusiveStatus"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"429": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"502": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"503": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/resources/vms": {
|
||||
"get": {
|
||||
"operationId": "discoverVMs",
|
||||
@@ -11754,6 +11876,168 @@
|
||||
"description": "Super administrators and operators only. ZIP of all matching events, up to 2000, with diagnostic JSON and scope notes. Uses the same object/time/source filters, ignores pagination, and records the export audit."
|
||||
}
|
||||
},
|
||||
"/terminal-logs": {
|
||||
"get": {
|
||||
"operationId": "terminalLogArchives",
|
||||
"security": [
|
||||
{
|
||||
"adminBearer": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "terminalId",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "keyword",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"maxLength": 200
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "from",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "pageSize",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TerminalLogArchivePage"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"429": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"502": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"503": {
|
||||
"description": "Request failed",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/audit-logs": {
|
||||
"get": {
|
||||
"operationId": "audits",
|
||||
@@ -14107,6 +14391,59 @@
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GPUHealth": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"observedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"temperatureC": {
|
||||
"type": "number",
|
||||
"nullable": true
|
||||
},
|
||||
"utilizationPercent": {
|
||||
"type": "number",
|
||||
"nullable": true
|
||||
},
|
||||
"memoryUsedBytes": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"memoryTotalBytes": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"driver": {
|
||||
"type": "string"
|
||||
},
|
||||
"driverBinding": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"bound",
|
||||
"unknown"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status",
|
||||
"source",
|
||||
"observedAt",
|
||||
"temperatureC",
|
||||
"utilizationPercent",
|
||||
"memoryUsedBytes",
|
||||
"memoryTotalBytes",
|
||||
"driver",
|
||||
"driverBinding"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GPUItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -14144,6 +14481,9 @@
|
||||
"multiple"
|
||||
]
|
||||
},
|
||||
"health": {
|
||||
"$ref": "#/components/schemas/GPUHealth"
|
||||
},
|
||||
"references": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -14161,6 +14501,7 @@
|
||||
"class",
|
||||
"iommuGroup",
|
||||
"state",
|
||||
"health",
|
||||
"references"
|
||||
],
|
||||
"additionalProperties": false
|
||||
@@ -14215,6 +14556,38 @@
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/GPUIssue"
|
||||
}
|
||||
},
|
||||
"health": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"temperature": {
|
||||
"type": "string"
|
||||
},
|
||||
"utilization": {
|
||||
"type": "string"
|
||||
},
|
||||
"memory": {
|
||||
"type": "string"
|
||||
},
|
||||
"driverBinding": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status",
|
||||
"source",
|
||||
"temperature",
|
||||
"utilization",
|
||||
"memory",
|
||||
"driverBinding"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -14224,7 +14597,8 @@
|
||||
"visibleVmCount",
|
||||
"scannedVmCount",
|
||||
"items",
|
||||
"issues"
|
||||
"issues",
|
||||
"health"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
@@ -17171,6 +17545,203 @@
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"TerminalLogArchive": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"taskId": {
|
||||
"type": "string"
|
||||
},
|
||||
"terminalId": {
|
||||
"type": "string"
|
||||
},
|
||||
"terminalName": {
|
||||
"type": "string"
|
||||
},
|
||||
"capturedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"bootId": {
|
||||
"type": "string"
|
||||
},
|
||||
"agentVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"kioskState": {
|
||||
"type": "string"
|
||||
},
|
||||
"logText": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"taskId",
|
||||
"terminalId",
|
||||
"terminalName",
|
||||
"capturedAt",
|
||||
"bootId",
|
||||
"agentVersion",
|
||||
"kioskState",
|
||||
"logText"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"TerminalLogArchivePage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/TerminalLogArchive"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
"type": "integer"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total": {
|
||||
"type": "integer"
|
||||
},
|
||||
"observedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"retentionDays": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"items",
|
||||
"page",
|
||||
"pageSize",
|
||||
"total",
|
||||
"observedAt",
|
||||
"retentionDays"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GPUExclusiveMember": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"desktopId": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"vmid": {
|
||||
"type": "integer"
|
||||
},
|
||||
"powerState": {
|
||||
"type": "string"
|
||||
},
|
||||
"powerObserved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"activeSessions": {
|
||||
"type": "integer"
|
||||
},
|
||||
"activeTasks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"conflicts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"eligible": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"desktopId",
|
||||
"name",
|
||||
"vmid",
|
||||
"powerState",
|
||||
"powerObserved",
|
||||
"activeSessions",
|
||||
"activeTasks",
|
||||
"conflicts",
|
||||
"eligible"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GPUExclusiveStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"node": {
|
||||
"type": "string"
|
||||
},
|
||||
"vmids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"observedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"lockAvailable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"groupComplete": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"members": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/GPUExclusiveMember"
|
||||
}
|
||||
},
|
||||
"conflicts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"allocationReady": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"releaseReady": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"releasePolicy": {
|
||||
"type": "string"
|
||||
},
|
||||
"activeTasks": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Task"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enabled",
|
||||
"node",
|
||||
"vmids",
|
||||
"observedAt",
|
||||
"lockAvailable",
|
||||
"groupComplete",
|
||||
"members",
|
||||
"conflicts",
|
||||
"allocationReady",
|
||||
"releaseReady",
|
||||
"releasePolicy",
|
||||
"activeTasks"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DesktopList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user