You need to enable JavaScript to run this app.
文档中心
应用性能监控全链路版

应用性能监控全链路版

复制全文
下载 pdf
报警
GetAlarmRelatedMetricTrend
复制全文
下载 pdf
GetAlarmRelatedMetricTrend
获取报警任务相关的指标趋势图。​
请求说明​
客户端监控已在全球多个地域部署服务,旨在为您提供更稳定、低延迟的访问体验。您可以通过查阅 服务地址 文档,根据业务所在地选择最合适的接入点。​
  • 请求方式:POST​
  • 请求地址:https://apmplus-openapi.cn-beijing.volcengineapi.com?Action=GetAlarmRelatedMetricTrend&Version=2022-10-12​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数,更多详细信息参见 公共参数 。​
​
参数​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
GetAlarmRelatedMetricTrend​
接口名称。当前 API 的名称为 GetAlarmRelatedMetricTrend。​
Version​
String​
是​
2022-10-12​
接口版本。当前 API 的版本为 2022-10-12。​
common​
Object of Common​
否​
-​
通用参数。​
time_filter​
Object of TimeFilter​
否​
-​
时间区间。​
id​
Long​
否​
302​
报警任务ID。​
​
Common​
​
参数​
类型​
是否必选​
示例值​
描述​
aid​
Long​
否​
12345​
应用ID。​
os​
String​
否​
webpro​
服务类型。​
​
TimeFilter​
​
参数​
类型​
是否必选​
示例值​
描述​
start_time​
Integer​
否​
1665849600​
起始时间。​
granularity​
Integer​
否​
60​
聚合时间粒度。​
end_time​
Integer​
否​
1666011403​
终止时间。​
​
请求示例​
​
POST https://apmplus-openapi.cn-beijing.volcengineapi.com?Action=GetAlarmRelatedMetricTrend&Version=2022-10-12​
{​
"common":{​
"aid":312541,​
"os":"webpro"​
},​
"id":302,​
"time_filter":{​
"start_time":1665849600,​
"end_time":1666011403,​
"granularity":3600​
}​
}
​
返回参数​
​
参数​
类型​
示例值​
描述​
data​
Object of Data​
-​
返回内容。​
error_msg​
String​
""​
错误信息。成功为""。​
error_no​
Integer​
0​
错误码。成功为0。​
​
Data​
​
参数​
类型​
示例值​
描述​
metric_trends​
JSON Map​
-​
报警任务相关的指标趋势。​
​
MetricTrends​
​
参数​
类型​
示例值​
描述​
key​
String​
-​
指标的key。​
value​
Object of Value​
-​
指标key的取值。​
​
Value​
​
参数​
类型​
示例值​
描述​
fields​
Array of Fields​
-​
指标。​
source​
Array of String​
[ "2022-10-11 08:00:00", "0" ]​
field对应的值。​
​
Fields​
​
参数​
类型​
示例值​
描述​
id​
String​
date​
报警时间,为source[i][0]值的含义。​
dataType​
String​
string​
数据类型。​
name​
String​
date​
指标名称。​
​
返回示例​
​
{​
"err_detail":"",​
"data":{​
"alarm_trend":{​
"fields":[​
{​
"id":"date",​
"dataType":"string",​
"name":"date"​
},​
{​
"id":"slow query count",​
"dataType":"number",​
"name":"slow query count"​
}​
],​
"source":[​
[​
"2022-10-12 00:00:00",​
"0",​
"10818"​
],​
[​
"2022-10-13 00:00:00",​
"156",​
"9232"​
]​
]​
}​
},​
"error_msg":"",​
"error_no":0​
}
​
错误码​
当前接口暂无独立错误码,若接口调用返回异常,可参考 公共错误码 进行故障排查。​
最近更新时间:2026.08.28 16:25:32
这个页面对您有帮助吗?
有用
有用
无用
无用