You need to enable JavaScript to run this app.
Application Performance Management Plus

Application Performance Management Plus

Copy page
Download PDF
Alert
GetAppAlarmTrend
Copy page
Download PDF
GetAppAlarmTrend
Get the app alert trend.​
Request description​
RUM is deployed across multiple regions worldwide to provide more stable and low-latency access. You can refer to the Service addresses topic to choose the most suitable access point based on your business location.​
  • Request method: POST​
  • Request URL: https://apmplus-openapi.cn-beijing.volcengineapi.com?Action=GetAppAlarmTrend&Version=2022-10-12​
Request parameters​
The following table lists only the request parameters specific to this API and some public parameters. For details, see Public parameters.​
​
Parameters​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
GetAppAlarmTrend​
The API name. The current API name is GetAppAlarmTrend.​
Version​
String​
Yes​
2022-10-12​
The API version. The current API version is 2022-10-12.​
aid​
Long​
Yes​
123456​
Application ID.​
monitor_types​
Array of String​
No​
["crash"]​
Monitoring type.​
  • crash: Crash​
  • crash_defend: Crash protection​
  • lag: Lag​
  • app_page_js_err: Page monitoring / JS error​
  • app_page_ajax_err: Page monitoring / Request error​
  • app_page_perf: Page monitoring / Performance​
  • app_event: Event alert​
  • net_err: Network error​
  • custom_exception: Custom error​
  • traffic_exception: Traffic​
  • disk_exception: Disk​
  • battery_trace: Battery​
  • cpu_exception:CPU​
filters​
Object of Condition​
No​
-​
The filter condition. You can specify multiple key‑value pairs to filter data.​
start_time​
Long​
Yes​
1665417600​
Start time.​
end_time​
Long​
Yes​
1666417600​
The end time.​
granularity​
Long​
Yes​
1440​
The aggregation granularity. Unit: minutes.​
group_by_field​
String​
No​
rule_id​
The grouping field. An empty string is passed if no grouping is required.​
​
Condition​
​
Parameters​
Type​
Required​
Sample value​
Description​
op​
String​
No​
in​
The operator.​
  • gt: greater than​
  • gte: greater than or equal to​
  • lt: less than​
  • lte: less than or equal to​
  • eq: equal to​
  • neq: not equal to​
  • in: contains​
  • not_in: does not contain​
  • lk: Matches data that fits a specific pattern.​
  • nlk: Excludes data that fits a specific pattern.​
type​
String​
No​
expression​
The type of the filter condition.​
  • expression: The current condition is an expression.​
  • and: The current condition is a compound expression, and multiple sub-conditions are in an AND logical relationship.​
  • or: The current condition is a compound expression, and multiple sub-conditions are in an OR logical relationship.​
  • map: The current condition is of map type.​
value​
String​
No​
123456​
The filter value.​
values​
Array of String​
No​
[123456]​
The filter value. Multiple filter values are supported.​
map_key​
String​
No​
key_1​
The key of the map type. It is required when the type is set to map.​
dimension​
String​
No​
aid​
The name of the condition.​
sub_conditions​
Array of Condition​
No​
-​
The sub-condition.​
​
Sample request​
​
POST https://apmplus-openapi.cn-beijing.volcengineapi.com?Action=GetAppAlarmTrend&Version=2022-10-12​
{​
"aid": 123456,​
"start_time": 1665417600,​
"end_time": 1666417600,​
"granularity": 1440,​
"monitor_types": [​
"crash"​
],​
"filters": {​
"sub_conditions": [​
{​
"op": "in",​
"values": [​
"717"​
],​
"type": "expression",​
"dimension": "aid"​
}​
],​
"type": "expression"​
},​
"group_by_field": "rule_id"​
}
​
Response parameters​
​
Parameters​
Type​
Sample value​
Description​
data​
Array of TrendLine​
-​
Alert trend.​
error_msg​
String​
-​
Error message. It is empty if the request succeeds.​
error_no​
Long​
0​
Error code. If the request was successful, its value is 0.​
​
TrendLine​
​
Parameters​
Type​
Sample value​
Description​
name​
String​
"test​
The name of the line. When grouped, the name needs to be set to the value of the grouping dimension. For example, it is used as the legend label for the curve.​
points​
Array of TrendPoint​
-​
The data points on the curve.​
​
TrendPoint​
​
Parameters​
Type​
Sample value​
Description​
value​
Double​
0​
The metric value.​
timestamp​
Long​
1653696000​
The time when the metric occurred (Unix timestamp).​
readable_timestamp​
String​
2022-05-28 08:00:00​
The time when the metric occurred (natural time).​
​
Sample response​
​
{​
"err_detail":"",​
"error_msg": "",​
"error_no": 0,​
"data": [​
{​
"name": "test",​
"points": [​
{​
"readable_timestamp": "2022-05-28 08:00:00",​
"timestamp": 1653696000,​
"value": 915​
}​
]​
}​
]​
}
​
Error codes​
No error codes are specific to this API. If the API call returns an error code, refer to Public error codes for troubleshooting.​
Last updated: 2026.09.16 17:47:39