最近更新时间:2024.04.17 17:39:51
首次发布时间:2024.04.03 17:37:05
调用MiniProAlarmMetaMeasure获取事件详细指标。
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 接口名称。当前 API 的名称为 |
Version | String | 是 |
| 接口版本。当前 API 的版本为 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
common | Object of Common | 是 |
| 通用参数。 |
event_name | String | 是 |
| 事件名。调用 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
aid | Long | 是 |
| 应用ID。 |
os | String | 否 |
| 服务类型。取值支持app、webpro、minipro。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | Object of Data |
| 返回内容。 |
error_msg | String |
| 错误信息。 |
error_no | Integer |
| 错误码。0为成功。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
measure_meta_list | Array of Measure_meta_list |
| 报警指标列表。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
key | String |
| 报警类型唯一key。 |
type | String |
| 指标类型。 |
label | String |
| 指标。 |
measure_name | String |
| 报警指标名称。 |
measure_meta_list | Array of Measure_meta_list |
| 报警指标元数据。 |
POST ?Action=MiniProAlarmMetaMeasure&Version=2024-03-12 { "common": { "aid": 12345, "os": "minipro" }, "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 }