speed up vm trace pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-09 14:19:24 +11:00
parent c4097ca608
commit 59b16db04f
12 changed files with 702 additions and 208 deletions

View File

@@ -876,7 +876,7 @@ const docTemplate = `{
},
"/vcenters": {
"get": {
"description": "Lists all vCenters with recorded snapshot totals.",
"description": "Lists all vCenters with recorded snapshot totals, linking to the fast daily aggregated totals page.",
"produces": [
"text/html"
],
@@ -943,7 +943,7 @@ const docTemplate = `{
},
"/vcenters/totals/daily": {
"get": {
"description": "Shows daily aggregated VM count/vCPU/RAM totals for a vCenter.",
"description": "Shows daily aggregated VM count/vCPU/RAM totals for a vCenter (cache-backed for fast loading).",
"produces": [
"text/html"
],
@@ -1019,7 +1019,7 @@ const docTemplate = `{
},
"/vm/trace": {
"get": {
"description": "Shows VM resource history across snapshots, with chart and table.",
"description": "Shows VM resource history with an hourly detail view and a daily aggregated view, with chart and table output.",
"produces": [
"text/html"
],
@@ -1045,6 +1045,12 @@ const docTemplate = `{
"description": "VM name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "hourly|daily (default: hourly)",
"name": "view",
"in": "query"
}
],
"responses": {

View File

@@ -865,7 +865,7 @@
},
"/vcenters": {
"get": {
"description": "Lists all vCenters with recorded snapshot totals.",
"description": "Lists all vCenters with recorded snapshot totals, linking to the fast daily aggregated totals page.",
"produces": [
"text/html"
],
@@ -932,7 +932,7 @@
},
"/vcenters/totals/daily": {
"get": {
"description": "Shows daily aggregated VM count/vCPU/RAM totals for a vCenter.",
"description": "Shows daily aggregated VM count/vCPU/RAM totals for a vCenter (cache-backed for fast loading).",
"produces": [
"text/html"
],
@@ -1008,7 +1008,7 @@
},
"/vm/trace": {
"get": {
"description": "Shows VM resource history across snapshots, with chart and table.",
"description": "Shows VM resource history with an hourly detail view and a daily aggregated view, with chart and table output.",
"produces": [
"text/html"
],
@@ -1034,6 +1034,12 @@
"description": "VM name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "hourly|daily (default: hourly)",
"name": "view",
"in": "query"
}
],
"responses": {

View File

@@ -871,7 +871,8 @@ paths:
- snapshots
/vcenters:
get:
description: Lists all vCenters with recorded snapshot totals.
description: Lists all vCenters with recorded snapshot totals, linking to the
fast daily aggregated totals page.
produces:
- text/html
responses:
@@ -916,7 +917,8 @@ paths:
- vcenters
/vcenters/totals/daily:
get:
description: Shows daily aggregated VM count/vCPU/RAM totals for a vCenter.
description: Shows daily aggregated VM count/vCPU/RAM totals for a vCenter (cache-backed
for fast loading).
parameters:
- description: vCenter URL
in: query
@@ -967,7 +969,8 @@ paths:
- vcenters
/vm/trace:
get:
description: Shows VM resource history across snapshots, with chart and table.
description: Shows VM resource history with an hourly detail view and a daily
aggregated view, with chart and table output.
parameters:
- description: VM ID
in: query
@@ -981,6 +984,10 @@ paths:
in: query
name: name
type: string
- description: 'hourly|daily (default: hourly)'
in: query
name: view
type: string
produces:
- text/html
responses: