Get workload CPU Usage (Cores)

Get workload CPU Usage (Cores)

get

Get the CPU usage of the workload.

Query parameters
clusterIdsstringRequired
namespacesstringRequired
workloadIdsstringRequired
Responses
200
OK
*/*
get
GET /v1/monitoring-workloads/metric/cpu/result/current?clusterIds=text&namespaces=text&workloadIds=text HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-cpu",
      "namespace": "cocktail-system",
      "workload": "cocktail-api-cmdb"
    },
    "timestamp": 1688001180,
    "value": 0.0030703215323597726
  }
]

Was this helpful?