arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get namespace CPU/Memory total quota

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

OK

*/*
get
/v1/monitoring-ns/metric/quota/result/transition
200

OK

GET /v1/monitoring-ns/metric/quota/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "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
  }
]