Get trend of restarted pods count in namespace

Get trend of restarted pods count in namespace

get

Get the trend of the number of pods restarted per minute in the namespace.

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

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "container": "kube-scheduler",
      "namespace": "cocktail-system",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "samples": [
      0,
      0,
      0
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

Was this helpful?