You need to enable JavaScript to run this app.
导航

GetAlarmEventMetaMetric

最近更新时间2023.04.11 16:11:02

首次发布时间2022.11.01 11:26:01

调用GetAlarmEventMetaMetric接口获取指定自定义事件的报警指标。

使用说明

  • 接口名称:GetAlarmEventMetaMetric
  • 请求方式:POST
  • 接口地址:/?Action=GetAlarmEventMetaMetric&Version=2022-10-12

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

GetAlarmEventMetaMetric

请求名称。

Version

String

2022-10-12

请求版本。

ServiceName : apmplus_openapi
Region : cn-beijing 
X-App-Ids : xxx
Content-Type : application/json

Body

参数

类型

是否必填

示例值

说明

common

object of common

-

通用参数。

event_name

string

basic-custo

事件名。调用GetAlarmEventMeta接口查看取值。

common

参数

类型

是否必填

示例值

说明

aid

int64

12345

应用ID。

os

string

webpro

服务类型。

返回参数

参数

类型

示例值

说明

err_detail

string

-

错误详情。

data

object of data

-

返回内容。

error_msg

string

-

错误信息。

error_no

int

0

错误码。0为成功。

data

参数

类型

示例值

说明

measure_meta_list

object of measure_meta_list

-

报警指标列表。

measure_meta_list

参数

类型

示例值

说明

key

string

-

报警类型唯一key。

type

string

basic

指标类型。

label

string

basic-custom/上报量

指标。

measure_name

string

{\"metric\":\"custom.count\",\"event_dimension\":\"event_name\",\"event_name\":\"basic-custom\"}

报警指标名称。

measure_meta_list

object of measure_meta_list

-

报警指标元数据。

measure_meta_list

参数

类型

示例值

说明

event_name

string

basic-custom

自定义事件名。

请求示例

POST https://open.volcengineapi.com/?Action=GetAlarmEventMetaMetric&Version=2022-10-12

{
    "common":{
        "aid":12345,
        "os":"webpro"
    },
    "event_name":"basic-custom"
}

返回示例

{
    "err_detail":"",
    "data":{
        "measure_meta_list":[
            {
                "key":"",
                "type":"basic",
                "label":"basic-custom/上报量",
                "short_label":"",
                "measure_name":"{\"metric\":\"custom.count\",\"event_dimension\":\"event_name\",\"event_name\":\"basic-custom\"}",
                "measure_meta_list":[

                ],
                "comment":{
                    "link":"",
                    "comment":"",
                    "event_comment":"事件basic-custom的上报量"
                },
                "event_name":"basic-custom",
                "unit":{
                    "unit_type":"",
                    "unit":""
                },
                "agg_func_list":[

                ]
            },
            {
                "key":"",
                "type":"basic",
                "label":"basic-custom/fruit/去重计数",
                "short_label":"",
                "measure_name":"{\"metric\":\"custom.categories.uniq\",\"event_dimension\":\"event_name\",\"event_name\":\"basic-custom\",\"map_key\":\"fruit\"}",
                "measure_meta_list":[

                ],
                "comment":{
                    "link":"",
                    "comment":"",
                    "event_comment":"事件basic-custom的category fruit的去重计数"
                },
                "event_name":"basic-custom",
                "unit":{
                    "unit_type":"",
                    "unit":""
                },
                "agg_func_list":[

                ]
            }
        ]
    },
    "error_msg":"",
    "error_no":0
}