ListAlerts
Queries a list of alerts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListAlerts |
get |
*All Resource
|
None | None |
Request syntax
POST /alerts/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| alertLevel |
string |
No |
The alert level. |
P1 |
| relatedServiceId |
integer |
No |
The ID of the associated service. |
1 |
| alertName |
string |
No |
The alert name. |
报警 |
| pageNumber |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The page size. |
10 |
| alertSourceName |
string |
No |
The alert source. |
流转规则A |
| startTime |
string |
No |
The start time. |
2020-09-10 13:00:00 |
| endTime |
string |
No |
The end time. |
2020-09-10 21:00:00 |
| ruleName |
string |
No |
The name of the alert rule. |
规则名称 |
| monitorSourceId |
string |
No |
The ID of the monitoring source. |
C4BE3837 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| data |
array<object> |
The list of alerts. |
|
|
object |
The list of alerts. |
||
| alertId |
integer |
The alert ID. |
20000 |
| createTime |
string |
The time when the alert was created. |
2020-03-05 15:53:55 |
| relatedServiceName |
string |
The name of the associated service. |
冲上云霄 |
| alertLevel |
string |
The alert priority level. The levels are listed in descending order of priority:
|
P1 |
| title |
string |
The alert title. |
报警 |
| sourceEventCount |
integer |
The number of converged events. |
10 |
| alertSourceName |
string |
The alert source. |
流转规则A |
| firstEventTime |
string |
The time when the first alert was reported. |
2021-09-08 18:30:00 |
| routeRuleId |
integer |
The ID of the associated stream rule. |
10000 |
| alertNumber |
string |
The alert number. |
A123123123 |
| routeRuleName |
string |
The name of the stream rule. |
流转规则 |
| relServiceDeleteType |
integer |
Indicates whether the associated service is deleted. Valid values:
|
1 |
| routeRuleDeleteType |
integer |
Indicates whether the rule is deleted. Valid values:
|
1 |
| monitorSourceName |
string |
The name of the source data. |
name |
| totalCount |
integer |
The total number of entries. |
100 |
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The page size. |
10 |
Examples
Success response
JSON format
{
"requestId": "C4BE3837-1A13-413B-A225-2C88188E8A43",
"data": [
{
"alertId": 20000,
"createTime": "2020-03-05 15:53:55",
"relatedServiceName": "冲上云霄",
"alertLevel": "P1",
"title": "报警",
"sourceEventCount": 10,
"alertSourceName": "流转规则A",
"firstEventTime": "2021-09-08 18:30:00",
"routeRuleId": 10000,
"alertNumber": "A123123123",
"routeRuleName": "流转规则",
"relServiceDeleteType": 1,
"routeRuleDeleteType": 1,
"monitorSourceName": "name"
}
],
"totalCount": 100,
"pageNumber": 1,
"pageSize": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.