Was this helpful?
Get the current CPU (Core) and Memory (Byte) usage of pods created by the workload.
/v1/monitoring-workloads/metric/pod-usage/result/current
curl -L \ --url '/v1/monitoring-workloads/metric/pod-usage/result/current?clusterIds=text&namespaces=text&workloadIds=text'
[ { "timestamp": 1688004480, "value": 0.004003636393767266, "metrics": { "cluster": "thingcluster", "measure": "usage-cpu", "namespace": "cocktail-system", "node": "apps-gpu-v100", "pod": "cocktail-api-cmdb-0", "workload": "cocktail-api-cmdb" } }, { "timestamp": 1688004480, "value": 1673150464, "metrics": { "cluster": "thingcluster", "measure": "usage-memory", "namespace": "cocktail-system", "node": "apps-gpu-v100", "pod": "cocktail-api-cmdb-0", "workload": "cocktail-api-cmdb" } } ]