This commit is contained in:
@@ -896,7 +896,7 @@ const docTemplate = `{
|
||||
},
|
||||
"/vcenters/totals": {
|
||||
"get": {
|
||||
"description": "Shows per-snapshot totals for a vCenter.",
|
||||
"description": "Redirect-style handler for compatibility; use /vcenters/totals/daily or /vcenters/totals/hourly.",
|
||||
"produces": [
|
||||
"text/html"
|
||||
],
|
||||
@@ -914,13 +914,13 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "hourly|daily|monthly (default: hourly)",
|
||||
"description": "hourly|daily|monthly",
|
||||
"name": "type",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Limit results (default 200)",
|
||||
"description": "Limit results",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
@@ -941,6 +941,82 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/vcenters/totals/daily": {
|
||||
"get": {
|
||||
"description": "Shows daily aggregated VM count/vCPU/RAM totals for a vCenter.",
|
||||
"produces": [
|
||||
"text/html"
|
||||
],
|
||||
"tags": [
|
||||
"vcenters"
|
||||
],
|
||||
"summary": "vCenter daily totals",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "vCenter URL",
|
||||
"name": "vcenter",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Limit results (default 400)",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "HTML page",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Missing vcenter",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/vcenters/totals/hourly": {
|
||||
"get": {
|
||||
"description": "Shows detailed hourly VM count/vCPU/RAM totals for the latest 45 days.",
|
||||
"produces": [
|
||||
"text/html"
|
||||
],
|
||||
"tags": [
|
||||
"vcenters"
|
||||
],
|
||||
"summary": "vCenter hourly totals (45 days)",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "vCenter URL",
|
||||
"name": "vcenter",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "HTML page",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Missing vcenter",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/vm/trace": {
|
||||
"get": {
|
||||
"description": "Shows VM resource history across snapshots, with chart and table.",
|
||||
|
||||
Reference in New Issue
Block a user