Event Alarm History
Updated at:2025-11-03
Event alarm history API
Cloud product event alarm history query API
API description
This API retrieves the cloud product event alarm history list information
Request structure
- method: GET
- URL: /event-api/v1/accounts/{accoundId}/services/{serviceName}/alarm-histories
Request parameters
| Name | Types | Description | Required or not | Parameter location |
|---|---|---|---|---|
| accountId | String | User ID | Yes | Path parameter |
| serviceName | String | Cloud product name; to query all cloud products, enter BCE_ALL | Yes | Path parameter |
| pageNo | Integer | Page number, starting from 1 | Yes | RequestBody |
| pageSize | Integer | Number of items per page, maximum: 100 | Yes | RequestBody |
| startTime | String | Query start time, UTC format | Yes | RequestBody |
| endTime | String | Query end time, UTC format | Yes | RequestBody |
| region | String | Region, optional. Return alarm history of all regions if not set | No | RequestBody |
| policyName | String | Alarm policy name filter; if not set, return alarm history for all policies | No | RequestBody |
| resourceId | String | Alarm resource filter; if not set, return alarm history for all resources | No | RequestBody |
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| pageNumber | int | Pagination page number |
| pageSize | int | Page size |
| pageElements | int | Count of results returned per page |
| last | boolean | Whether it is the last page |
| first | boolean | Whether it is the first page |
| totalPages | int | Total number of pages |
| totalElements | int | Total count of results |
| content | List |
Response result |
EventAlarm
| Parameter name | Types | Description |
|---|---|---|
| serviceName | String | Cloud product name |
| policyName | String | Belonging alarm policy name |
| content | String | Alarm content |
| timestamp | String | Alarm time |
| region | String | Region |
Request example
Plain Text
1GET /event-api/v1/accounts/7c202************7b6752ce/services/BCE_ALL/alarm-histories?pageNo=1&pageSize=10&resourceId=i-qa****asds&endTime=2025-06-19T03:11:19Z&startTime=2025-06-12T03:11:19Z
Response example
Plain Text
1{
2 "content": [
3 {
4 "serviceName": "BCE_BCC",
5 "policyName": "policy1",
6 "content": "[Event Alarm] Baidu Cloud Compute (BCC) of your account triggered an event alarm. Alarm event: BCC status change notification. Monitor object: . Time: 2025-06-17 16:48:58. Additional content: {'info': 'BCC instance status change', 'advice': 'Your BCC instance status has changed to running'}'}",
7 "timestamp": "2025-06-17T08:48:58Z",
8 "region": "bj"
9 },
10 {
11 "serviceName": "BCE_BCC",
12 "policyName": "policy1",
13 "content": "[Event Alarm] Baidu Cloud Compute (BCC) of your account triggered an event alarm. Alarm event: BCC status change notification. Monitor object: . Time: 2025-06-17 16:48:58. Additional content: {'info': 'BCC instance status change', 'advice': 'Your BCC instance status has changed to running'}",
14 "timestamp": "2025-06-17T08:48:58Z",
15 "region": "bj"
16 }
17 ],
18 "query": null,
19 "fields": [],
20 "orderBy": [],
21 "pageNumber": 1,
22 "pageSize": 10,
23 "pageElements": 10,
24 "last": true,
25 "first": true,
26 "totalPages": 1,
27 "totalElements": 10
28}
