Retrieves spectro clusters resources usage summary information
POST/v1/dashboard/spectroclusters/resources/usage
Retrieves spectro clusters resources usage summary information
Request
Header Parameters
Scope the request to the specified project uid
- application/json
Body
filter
object
Resource usage summary filter
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Deprecated. Use includeControlPlaneMachines
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
workload
object
Workload resource filter
Possible values: [deployment
, statefulset
, daemonset
, all
]
Default value: all
options
object
Resource usage summary options
Default value: true
Possible values: [tenant
, project
, workspace
, cluster
, namespace
, deployment
, statefulset
, daemonset
, pod
, cloud
]
Default value: cluster
Default value: false
Default value: 60
Responses
- 200
An array of resources usage summary items
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
resources
object[]
associatedResources
object[]
data
object[]
baremetal
object
min and max count for machines & edgehost for the given period
edgehost
object
min and max count for machines & edgehost for the given period
entity
object
{
"cpuUnit": "string",
"memoryUnit": "string",
"resources": [
{
"associatedResources": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"data": [
{
"baremetal": {
"activeEdgehosts": 0,
"activeMachines": 0,
"maxEdgehosts": 0,
"maxMachines": 0
},
"cpu": 0,
"edgehost": {
"activeEdgehosts": 0,
"activeMachines": 0,
"maxEdgehosts": 0,
"maxMachines": 0
},
"memory": 0,
"timestamp": 0
}
],
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
}
}
]
}