feat(backend): implement service monitor proto & connect it to http /agents
ci-agent / build (push) Has been cancelled

This commit is contained in:
2026-04-04 19:59:32 +03:00
parent 1d75935a08
commit eb2ca590a9
8 changed files with 99 additions and 14 deletions
+18 -4
View File
@@ -23,6 +23,9 @@ const docTemplate = `{
}
],
"description": "Returns a list of all agents currently connected via Collector (log streaming)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
@@ -1966,19 +1969,30 @@ const docTemplate = `{
"type": "object",
"properties": {
"connected_at": {
"type": "string"
"description": "Time when agent connected (RFC3339-like)",
"type": "string",
"example": "2026-04-04 10:30:00"
},
"label": {
"type": "string"
"description": "Human-readable label",
"type": "string",
"example": "web-server-1"
},
"services": {
"description": "List of services with status (format: \"name:status\")",
"type": "array",
"items": {
"type": "string"
}
},
"example": [
"nginx:running",
"redis:up"
]
},
"token": {
"type": "string"
"description": "Unique agent identifier",
"type": "string",
"example": "agent-001"
}
}
},