arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get workload CPU/Memory total quota

hashtag
Get workload CPU/Memory total quota

get

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
chevron-right
200

OK

*/*
get
/v1/monitoring-workloads/metric/quota/result/current
200

OK

GET /v1/monitoring-workloads/metric/quota/result/current?clusterIds=text&namespaces=text&workloadIds=text HTTP/1.1
Accept: */*
[
  {
    "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
  }
]