feat(ops): upload node logs and task traffic [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline was successful

This commit is contained in:
justme committed 2026-10-11 23:57:13 +08:00
1 parent e82b165eb0
commit 6cf6b23585
25 files changed
+714 -13

No files matched your search

+125
View File
@@ -1892,6 +1892,70 @@
"x-moshiro-capability": "fleet.revoke"
}
},
"/api/admin/nodes/{id}/logs": {
"get": {
"tags": [
"admin-nodes"
],
"summary": "Recent Agent or Probe runtime logs",
"operationId": "node_runtime_logs",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"pattern": "^-?(?:0|[1-9]\\d*)$",
"type": [
"integer",
"string"
],
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NodeRuntimeLogsDto"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDto"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDto"
}
}
}
}
},
"x-moshiro-capability": "fleet.read"
}
},
"/api/admin/agents/{id}/approve": {
"post": {
"tags": [
@@ -7606,6 +7670,64 @@
}
}
},
"NodeRuntimeLogDto": {
"required": [
"id",
"at",
"level",
"message",
"fields"
],
"type": "object",
"properties": {
"id": {
"pattern": "^-?(?:0|[1-9]\\d*)$",
"type": [
"integer",
"string"
],
"format": "int64"
},
"at": {
"format": "date-time"
},
"level": {
"type": "string"
},
"message": {
"type": "string"
},
"fields": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"NodeRuntimeLogsDto": {
"required": [
"items",
"dropped"
],
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeRuntimeLogDto"
}
},
"dropped": {
"pattern": "^-?(?:0|[1-9]\\d*)$",
"type": [
"integer",
"string"
],
"format": "int64"
}
}
},
"NodeRuntimeStatus": {
"enum": [
"initializing",
@@ -9963,6 +10085,9 @@
{
"name": "admin-agents"
},
{
"name": "admin-nodes"
},
{
"name": "admin-join-tokens"
},