arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get the number of pods by status in namespace

hashtag
Get the number of pods by status in namespace

post

Get the number of pods in the namespace based on their status (Unknown, Failed, Pending, Running, Succeeded).

Body
Responses
chevron-right
200

OK

*/*
post
/v1/monitoring-ns/metric/pod-status/result/current
200

OK

POST /v1/monitoring-ns/metric/pod-status/result/current HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 80

{
  "clusters": [
    {
      "name": "thingcluster",
      "namespaces": [
        {
          "name": "cocktail-system"
        }
      ]
    }
  ]
}
{
  "thingcluster": {
    "cocktail-system": {
      "pod_run": 39,
      "pod_total": 39,
      "pvc_bound": 0,
      "pvc_lost": 0,
      "pvc_pending": 0
    }
  }
}