This commit is contained in:
@@ -55,7 +55,7 @@ steps:
|
|||||||
path: /shared
|
path: /shared
|
||||||
commands:
|
commands:
|
||||||
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
||||||
#- find .
|
- find .
|
||||||
- nfpm package --config vctp-service.yml --packager rpm --target ./build/
|
- nfpm package --config vctp-service.yml --packager rpm --target ./build/
|
||||||
- ls -lah ./build/
|
- ls -lah ./build/
|
||||||
|
|
||||||
|
|||||||
@@ -896,7 +896,7 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
"/vcenters/totals": {
|
"/vcenters/totals": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "Shows per-snapshot totals for a vCenter.",
|
"description": "Redirect-style handler for compatibility; use /vcenters/totals/daily or /vcenters/totals/hourly.",
|
||||||
"produces": [
|
"produces": [
|
||||||
"text/html"
|
"text/html"
|
||||||
],
|
],
|
||||||
@@ -914,13 +914,13 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "hourly|daily|monthly (default: hourly)",
|
"description": "hourly|daily|monthly",
|
||||||
"name": "type",
|
"name": "type",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Limit results (default 200)",
|
"description": "Limit results",
|
||||||
"name": "limit",
|
"name": "limit",
|
||||||
"in": "query"
|
"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": {
|
"/vm/trace": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "Shows VM resource history across snapshots, with chart and table.",
|
"description": "Shows VM resource history across snapshots, with chart and table.",
|
||||||
|
|||||||
@@ -885,7 +885,7 @@
|
|||||||
},
|
},
|
||||||
"/vcenters/totals": {
|
"/vcenters/totals": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "Shows per-snapshot totals for a vCenter.",
|
"description": "Redirect-style handler for compatibility; use /vcenters/totals/daily or /vcenters/totals/hourly.",
|
||||||
"produces": [
|
"produces": [
|
||||||
"text/html"
|
"text/html"
|
||||||
],
|
],
|
||||||
@@ -903,13 +903,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "hourly|daily|monthly (default: hourly)",
|
"description": "hourly|daily|monthly",
|
||||||
"name": "type",
|
"name": "type",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Limit results (default 200)",
|
"description": "Limit results",
|
||||||
"name": "limit",
|
"name": "limit",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
}
|
}
|
||||||
@@ -930,6 +930,82 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/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": {
|
"/vm/trace": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "Shows VM resource history across snapshots, with chart and table.",
|
"description": "Shows VM resource history across snapshots, with chart and table.",
|
||||||
|
|||||||
@@ -884,18 +884,19 @@ paths:
|
|||||||
- vcenters
|
- vcenters
|
||||||
/vcenters/totals:
|
/vcenters/totals:
|
||||||
get:
|
get:
|
||||||
description: Shows per-snapshot totals for a vCenter.
|
description: Redirect-style handler for compatibility; use /vcenters/totals/daily
|
||||||
|
or /vcenters/totals/hourly.
|
||||||
parameters:
|
parameters:
|
||||||
- description: vCenter URL
|
- description: vCenter URL
|
||||||
in: query
|
in: query
|
||||||
name: vcenter
|
name: vcenter
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- description: 'hourly|daily|monthly (default: hourly)'
|
- description: hourly|daily|monthly
|
||||||
in: query
|
in: query
|
||||||
name: type
|
name: type
|
||||||
type: string
|
type: string
|
||||||
- description: Limit results (default 200)
|
- description: Limit results
|
||||||
in: query
|
in: query
|
||||||
name: limit
|
name: limit
|
||||||
type: integer
|
type: integer
|
||||||
@@ -913,6 +914,57 @@ paths:
|
|||||||
summary: vCenter totals
|
summary: vCenter totals
|
||||||
tags:
|
tags:
|
||||||
- vcenters
|
- vcenters
|
||||||
|
/vcenters/totals/daily:
|
||||||
|
get:
|
||||||
|
description: Shows daily aggregated VM count/vCPU/RAM totals for a vCenter.
|
||||||
|
parameters:
|
||||||
|
- description: vCenter URL
|
||||||
|
in: query
|
||||||
|
name: vcenter
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- description: Limit results (default 400)
|
||||||
|
in: query
|
||||||
|
name: limit
|
||||||
|
type: integer
|
||||||
|
produces:
|
||||||
|
- text/html
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: HTML page
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
"400":
|
||||||
|
description: Missing vcenter
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
summary: vCenter daily totals
|
||||||
|
tags:
|
||||||
|
- vcenters
|
||||||
|
/vcenters/totals/hourly:
|
||||||
|
get:
|
||||||
|
description: Shows detailed hourly VM count/vCPU/RAM totals for the latest 45
|
||||||
|
days.
|
||||||
|
parameters:
|
||||||
|
- description: vCenter URL
|
||||||
|
in: query
|
||||||
|
name: vcenter
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
produces:
|
||||||
|
- text/html
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: HTML page
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
"400":
|
||||||
|
description: Missing vcenter
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
summary: vCenter hourly totals (45 days)
|
||||||
|
tags:
|
||||||
|
- vcenters
|
||||||
/vm/trace:
|
/vm/trace:
|
||||||
get:
|
get:
|
||||||
description: Shows VM resource history across snapshots, with chart and table.
|
description: Shows VM resource history across snapshots, with chart and table.
|
||||||
|
|||||||
Reference in New Issue
Block a user