仅限于未终止的作业。

基本信息

Action:/qai/aicp/monitoring/namespaces/{namespace}/pods

Method: GET

Content-Type:application/json

请求参数

参数 类型 描述 是否必须

namespance

string

命名空间。

yes

uuid

string

分布式训练任务、容器实例或资源组的 UUID。

no

metrics_filter

string

过滤指标。
包括 pod_cpu_usage, pod_memory_usage, pod_memory_usage_wo_cache, pod_net_bytes_transmitted, pod_net_bytes_received, pod_gpu_util, pod_gpu_mem_usage, pod_tensor_core_util

no

start_at

interger

开始时间,timestamp 格式。

no

end_at

integer

结束时间,timestamp 格式。

no

step

string

采样时间间隔。

no

响应参数

此接口包含的公共响应参数,可参见前文内容,其他参数说明如下:

参数 类型 描述

data.resultType

string

监控指标类型,一般为 matrix

data.result

array

监控指标各项数据结果,包括最大值 (max_value)、平均值 (avg_value)以及最小值 (min_value) 等。

data.metric_name

string

监控指标名称,

请求示例

curl -X 'GET' \
  'https://ai.coreshub.cn/qai/aicp/monitoring/namespaces/nb-efl8ti8ve51c/pods?metrics_filter=string&step=5m' \
  -H 'accept: application/json'

响应示例

{
    "message": "success",
    "meta": {
        "X_REQUEST_ID": "782c9b72",
        "X_REQUEST_USER": "usr-5HY8cBJF"
    },
    "data": [
        {
            "resultType": "matrix",
            "result": [],
            "metric_name": "pod_net_bytes_received"
        }
    ],
    "counts": 0,
    "ret_code": 0
}