add vcenter totals line graph
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-16 12:36:53 +11:00
parent 268919219e
commit 871904f63e
14 changed files with 1841 additions and 132 deletions

View File

@@ -854,6 +854,73 @@ const docTemplate = `{
}
}
}
},
"/vcenters": {
"get": {
"description": "Lists all vCenters with recorded snapshot totals.",
"produces": [
"text/html"
],
"tags": [
"vcenters"
],
"summary": "List vCenters",
"responses": {
"200": {
"description": "HTML page",
"schema": {
"type": "string"
}
}
}
}
},
"/vcenters/totals": {
"get": {
"description": "Shows per-snapshot totals for a vCenter.",
"produces": [
"text/html"
],
"tags": [
"vcenters"
],
"summary": "vCenter totals",
"parameters": [
{
"type": "string",
"description": "vCenter URL",
"name": "vcenter",
"in": "query",
"required": true
},
{
"type": "string",
"description": "hourly|daily|monthly (default: hourly)",
"name": "type",
"in": "query"
},
{
"type": "integer",
"description": "Limit results (default 200)",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "HTML page",
"schema": {
"type": "string"
}
},
"400": {
"description": "Missing vcenter",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {