Queries the abnormal Insights events within a specified period of time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
arms:GetAlert | none |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
Pid | string | No | The ID of the application. | aokcdqn3ly@a195c6d6421**** |
StartTime | string | Yes | The start of the time range to query. The value is a timestamp. | 1595174400000 |
EndTime | string | Yes | The end of the time range to query. The value is a timestamp. | 1480607940000 |
InsightsTypes | string | No | The types of the events that you want to query. Separate multiple event types with commas (,). If you do not specify this parameter, all events are queried.
| errorIncrease,topErrorIncrease,topExceptionIncrease,topRtIncrease,rtIncrease |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6F1174DC-6085-5353-AAE7-D4ADCD******",
"InsightsEvents": [
{
"Title": "Average response-time spikes of application services\n",
"Desc": "The overall response time of the \\[HTTP] service of the application \\[sd] spikes at \\[2022-07-27 10:57:00]\n",
"Type": "rtIncrease",
"Pid": "dsv9zcel92@7da413b******",
"Level": "P3",
"Date": 1658890560,
"ProblemId": "erep3o9zue@01ebe697ab70566|@1499161100890550|@cn-hangzhou|@1701841800000|@1701842040000|@daa6c51a-3c44-4d57-9548-4e212c******"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-10-19 | The response structure of the API has changed | View Change Details |