更新时间:2023.04.11 16:11:02
调用GetAlarmEventMetaMetric接口获取指定自定义事件的报警指标。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 请求名称。 |
Version | String | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
common | object of common | 是 | - | 通用参数。 |
event_name | string | 是 |
| 事件名。调用 |
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
aid | int64 | 是 |
| 应用ID。 |
os | string | 是 |
| 服务类型。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
err_detail | string | - | 错误详情。 |
data | object of data | - | 返回内容。 |
error_msg | string | - | 错误信息。 |
error_no | int |
| 错误码。0为成功。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
measure_meta_list | object of measure_meta_list | - | 报警指标列表。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
key | string | - | 报警类型唯一key。 |
type | string |
| 指标类型。 |
label | string |
| 指标。 |
measure_name | string |
| 报警指标名称。 |
measure_meta_list | object of measure_meta_list | - | 报警指标元数据。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
event_name | string |
| 自定义事件名。 |
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 }