百度智能云

All Product Document

          Cloud Monitor

          Event summary

          Event summary

          An event is a data record of state changes. This document introduces the event parameter details provided of event bus EventBridge. Event sources publishing events to event bus EventBridge must comply with the CloudEvents specification. For more information on the CloudEvents specification, refer to CloudEvents 1.0. Below is an example event that event sources publishing events to event bus EventBridge.

          {
              "data":{
                  "meetingName":"swqd",
                  "groupId":"456",
                  "action":"camera_off",
                  "time":1590592527490,
                  "info":"System exception occurred",
                  "advice":"Please contact the administrator"
              },
              "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
              "source":"BCE_BCC",
              "specversion":"1.0",
              "type":"EDAPMetaDataChangeStatus",
              "subject":"i-xxxxx",
              "time":"2020-11-19T21:04:41+08:00",
              "resourceType":"Instance",
              "level": "WARNING",
              "accountId":"453xxxxxxxxxxxxxxxxxx",
              "eventBusId":"eb-xxxxxx",
              "eventBusName":"cloud",
              "eventSourceAlias":"Cloud Server",
              "eventAlias":"BCC event exception",
              "eventAliasEn":"EDAPMetaDataChangeStatus"
              "region":"bj",
              "recvTimestamp": "2020-11-19T21:04:41+08:00"
          }
          Parameters Types Required or not Example value Description
          data Map<String, Object> No image.png Event content. JSON object. The content is determined by the service initiating the event. CloudEvents may include the context provided by the event producer at the time of occurrence, encapsulated in the Data. It can be empty.
          id String No 45ef4dewdwe1-7c35-447a-bd93-fab**** Event ID. A unique identifier for an event. The sender must ensure that the combination of source and ID is unique. This can be null; if null, the system will automatically generate it.
          source String Yes BCE_BCC Event source. The service providing the event, identifying the nature of the event that occurred.
          specversion String No 1.0 CloudEvents protocol version. It can be empty
          type String Yes EDAPMetaDataChangeStatus Event type. Describes event types associated with the event source.
          datacontenttype String No application/json;charset=utf-8 Data content format. datacontenttype supports only the application/json format. This can be empty.
          subject String No i-CkAFAIam Event subject. JSON data contains identifiers for resources involved in the event. In the publish-subscribe model, subscribers typically subscribe to events sent by the source. When the source contains substructures, using only the source cannot clearly define specific events. The subject parameter provides an explanation for content in the subscription filtering scenario that cannot be interpreted by data. It can be empty.
          time Timestamp No 2020-11-19T21:04:41+08:00 Event occurrence time, e.g., 2020-11-19T21:04:41+08:00. Default value. Refer to the time when the system receives the event. It can be empty.
          resourceType String No Instance Cloud product subtype. This value in the event can be defined by the user. It can be empty.
          level String No WARNING Event level, user-defined. It can be empty.
          accountid String No 123456789098**** Cloud account ID. This can be empty and is retrieved from the request headers by default.
          eventBusId String Yes eb-xxxxxx The event bus ID that receives the events.
          eventBusName String No cloud Event bus name for receiving events.
          eventSourceAlias String No Cloud Server The Chinese alias of the event source. This can be empty.
          eventAlias String No BCC event exception The Chinese alias of the event type. This can be empty.
          eventAliasEn String No EDAPMetaDataChangeStatus The English alias for the event type. This field can be left blank.
          region String No bj Event region.
          recvTimestamp Timestamp No 2020-11-19T21:04:41+08:00 The timestamp when the event was received: 2020-11-19T21:04:41+08:00.
          Previous
          Event Set
          Next
          Overview