跳转至

获取指标集列表,支持搜索功能



GET /api/v1/metric_info/measurement/list

概述

获取指标集列表,支持搜索功能

Query 请求参数

参数名 类型 必选 说明
search string 搜索关键字,用于过滤指标集名称
允许为空: True
limit integer 限制返回结果数量,默认100
允许为空: True
$default: 100
offset integer 偏移量,用于分页,默认0
允许为空: True
$default: 0

参数补充说明

通过 DQL 的 SHOW_MEASUREMENT() 函数查询指标集列表,支持搜索过滤

请求例子

curl -k 'https://openapi.guance.com/api/v1/metric_info/measurement/list?search=cpu&limit=10&offset=0' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "description": "",
                "name": "cpu",
                "type": "metric"
            }
        ],
        "declaration": {
            "business": "",
            "organization": "663dbba102482200070bbb02"
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "69ba6c7800000000e49f6333367c804c"
} 

文档评价

文档内容是否对您有帮助? ×