百度智能云

All Product Document

          Cloud Monitor

          Event Alarm History

          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

          GET /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

          {
              "content": [
                  {
                      "serviceName": "BCE_BCC",
                      "policyName": "policy1",
                      "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'}'}",
                      "timestamp": "2025-06-17T08:48:58Z",
                      "region": "bj"
                  },
                  {
                      "serviceName": "BCE_BCC",
                      "policyName": "policy1",
                      "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'}",
                      "timestamp": "2025-06-17T08:48:58Z",
                      "region": "bj"
                  }
              ],
              "query": null,
              "fields": [],
              "orderBy": [],
              "pageNumber": 1,
              "pageSize": 10,
              "pageElements": 10,
              "last": true,
              "first": true,
              "totalPages": 1,
              "totalElements": 10
          }
          Previous
          Error response
          Next
          Event Bus Push