Retrieves spectro clusters resource consumption
POST/v1/dashboard/spectroclusters/resources/consumption
Retrieves spectro clusters resource consumption
Request
Header Parameters
Scope the request to the specified project uid
- application/json
Body
filter
object
Resource consumption 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.
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.
options
object
Resource consumption options
Default value: true
Possible values: [tenant
, project
, workspace
, cluster
, namespace
, cloud
]
Default value: namespace
Default value: 60
Responses
- 200
An array of resource consumption data items
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
resources
object[]
associatedResources
object[]
data
object[]
allotted
object
Resource cosumption data
usage
object
Resource cosumption data
entity
object
total
object
Resource total cosumption data
allotted
object
Resource cosumption data
usage
object
Resource cosumption data
total
object
Resource total cosumption data
allotted
object
Resource cosumption data
usage
object
Resource cosumption data
{
"cpuUnit": "string",
"memoryUnit": "string",
"resources": [
{
"associatedResources": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"data": [
{
"allotted": {
"cpu": 0,
"memory": 0
},
"timestamp": 0,
"usage": {
"cpu": 0,
"memory": 0
}
}
],
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"total": {
"allotted": {
"cpu": 0,
"memory": 0
},
"usage": {
"cpu": 0,
"memory": 0
}
}
}
],
"total": {
"allotted": {
"cpu": 0,
"memory": 0
},
"usage": {
"cpu": 0,
"memory": 0
}
}
}