Get namespace CPU/Memory total quota

Get namespace CPU/Memory total quota

get

Get the total requested and limited CPU (cores) and memory (bytes) amounts for pods deployed in the namespace.

Query parameters
clusterIdsstringRequired
namespacesstringOptional
startstringRequired
endstringRequired
Responses
200
OK
*/*
get
GET /v1/monitoring-ns/metric/quota/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "limit-cpu",
      "namespace": "cocktail-system"
    },
    "samples": [
      0,
      0,
      0
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "limit-memory",
      "namespace": "cocktail-system"
    },
    "samples": [
      4760535040,
      4760535040,
      4760535040
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "request-cpu",
      "namespace": "cocktail-system"
    },
    "samples": [
      4.215,
      4.215,
      4.215
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "request-memory",
      "namespace": "cocktail-system"
    },
    "samples": [
      1293547520,
      1293547520,
      1293547520
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

Was this helpful?