arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Get workload network usage (bps)

hashtag
Get workload network usage (bps)

get

Get the Network usage, categorized by inbound and outbound, for the workload.

Query parameters
clusterIdsstringRequired
namespacesstringRequired
workloadIdsstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-workloads/metric/network/result/current
200

OK

GET /v1/monitoring-workloads/metric/network/result/current?clusterIds=text&namespaces=text&workloadIds=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "inbound",
      "namespace": "cocktail-system",
      "workload": "cocktail-api-cmdb"
    },
    "timestamp": 1688001420,
    "value": 595.1208098322701
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "outbound",
      "namespace": "cocktail-system",
      "workload": "cocktail-api-cmdb"
    },
    "timestamp": 1688001420,
    "value": 2675.7099578828106
  }
]