获取作业的磁盘数据(GetNotebookDiskMeter)
      更新时间:2025-04-09 09:33:51
    
    
    
    
    
    
    
      
    
    
  仅限于未终止的作业。
基本信息
Action:/qai/aicp/monitoring/namespaces/{namespace}/notebook/disk
Method: GET
Content-Type:application/json
请求参数
| 参数 | 类型 | 描述 | 是否必须 | 
|---|---|---|---|
| namespance | string | 命名空间。 | yes | 
| uuid | string | 分布式训练、容器实例或资源组的 UUID。 | 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/usr-5HY8cxxx/notebook/disk?uuid=tn-egz5xguxi1a8' \
  -H 'accept: application/json'响应示例
{
    "message": "success",
    "meta": {
        "X_REQUEST_ID": "a14c5863",
        "X_REQUEST_USER": "usr-5HY8xxxx"
    },
    "data": [
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "notebook_zfs_used_bytes"
        },
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "notebook_zfs_pvc_capacity_bytes"
        },
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "notebook_zfs_pvc_available_bytes"
        },
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "pod_system_disk_limit_bytes"
        },
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "pod_system_disk_usage_bytes"
        },
        {
            "resultType": "vector",
            "result": [],
            "metric_name": "pod_system_disk_available_bytes"
        }
    ],
    "counts": 0,
    "ret_code": 0
}