Get workload CPU/Memory total quota
Get the total requested and limit amounts of CPU (Core) and Memory (Byte) allocated to pods deployed by the workload.
Query parameters
clusterIdsstringRequired
namespacesstringRequired
workloadIdsstringRequired
Responses
200
OK
*/*
get
/v1/monitoring-workloads/metric/quota/result/currentGET /v1/monitoring-workloads/metric/quota/result/current?clusterIds=text&namespaces=text&workloadIds=text HTTP/1.1
Host:
Accept: */*
200
OK
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "limit-cpu",
"namespace": "cocktail-system",
"workload": "cocktail-api-cmdb"
},
"timestamp": 1688004660,
"value": 1
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "limit-memory",
"namespace": "cocktail-system",
"workload": "cocktail-api-cmdb"
},
"timestamp": 1688004660,
"value": 2147483648
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "request-cpu",
"namespace": "cocktail-system",
"workload": "cocktail-api-cmdb"
},
"timestamp": 1688004660,
"value": 0.5
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "request-memory",
"namespace": "cocktail-system",
"workload": "cocktail-api-cmdb"
},
"timestamp": 1688004660,
"value": 1073741824
}
]Was this helpful?
