Event content conversion

BCM

  • Function Release Records
  • Product Announcement
    • Site Monitor Billing Announcement
  • Product Description
    • Product Introduction
    • Core concepts
    • Product advantages
    • Product features
  • Product pricing
    • Product pricing
    • Site Monitor Pricing
  • Quick Start
  • Operation guide
    • Enter Cloud Monitor
    • Dashboard
      • Overview
      • Management Dashboard Charts
      • Management Dashboard
    • Alarm Service
      • Overview
      • Alarm strategy
      • Alarm history
      • Alarm Template
      • Alarm Notification Template
      • Alarm callback
    • Cloud product monitor
      • Instance monitor
      • Instance Group
      • View Metrics
    • Site Monitor
      • Timed Detection (Formerly Site Monitor)
        • Overview
        • Manage Timed Probe Tasks
        • Purchase Guide
        • View timed probe tasks
      • IP advanced fault diagnosis
        • Manage IP Advanced Fault Diagnosis Tasks
        • View IP Advanced Fault Diagnosis Tasks
      • Instant probe
        • Overview
        • Manage instant probe tasks
    • Event Monitor
    • Event Bus
      • Event Delivery History
      • Overview
      • Event summary
      • Event Set
      • Event Rules
        • Event Rules
        • Event content conversion
        • Event pattern
  • API Reference
    • Overview
    • Service domain
    • Error response
    • Query Monitoring Data for Partial Dimensions
    • Dashboard API
    • Common Request and Response Headers
    • Alarm Management API
    • Alarm Management Interface V2
    • Alarm history
    • Push Data API
    • Event Bus Push
    • Application Monitor
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Instance Group Interface
    • Site Monitor
    • Query Latest Metric Data for Partial Dimensions
    • General Description
    • Query Data API
    • Event Monitor
    • Instant Probe
    • Event Alarm History
    • Notification Template
  • Java-SDK
    • Overview
    • Initialization
    • Install the SDK Package
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy-related APIs
    • Batch Query Data Interface
    • Alarm History-related APIs
  • Python-SDK
    • Overview
    • Initialization
    • Install SDK
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy List API
    • Batch Data Query Interface
  • Go-SDK
    • Overview
    • Initialization
    • Install the SDK Package
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy-related APIs
    • Alarm History-related APIs
    • Batch Data Query Interface
  • BCM-Agent
    • Functions
    • Monitoring Trend Chart
    • BCM-Agent-Frequently Asked Questions
    • Appendix
  • FAQs
    • Common Questions Overview
    • Fault-related questions
    • Configuration-related questions
    • Performance-related questions
  • Cloud Product Monitor List
    • Cloud Product Metric List (Legacy Version Hidden)
    • Cloud Product Monitor Object Type List
    • Cloud Product Event List
    • Cloud Product Metric List
      • Database
        • Cloud Database TableStorage
        • Cloud Database DocDB for MongoDB
        • Data transmission service (DTS)
        • Cloud native database GaiaDB
        • Vector Database (VectorDB)
        • Dedicated Database Cluster (DDC)
        • Cloud Database Redis
        • Cloud database RDS
        • Cloud Database HBase
      • Enterprise Application
        • Message Service for RabbitMQ
      • Network
        • Service Network Interface Card (SNIC)
        • Peering Connections
        • IPv6 gateway
        • NAT Gateway
        • Load Balancer Dedicated Cluster LBDC
        • Baidu Load Balance (BLB)
        • Network probe NP
        • Dedicated channel
        • Elastic IP EIP
        • Elastic Network Interface Card (ENIC)
        • Cloud Smart Network (CSN)
        • Dedicated gateway
        • Virtual Private Network (VPN) Gateway
        • Layer 2 Gateway LTGW
        • Physical dedicated line
      • Intelligent Big Data
        • MapReduce BMR
        • Message service for Kafka-dedicated
        • Message Service for RocketMQ
        • Baidu Stream Computing (BSC)
        • Baidu Elasticsearch
        • Log Service BLS
        • Data warehouse DORIS
      • Cloud native
        • Cloud Function Computing
        • Baidu container instance (BCI)
      • Compute
        • Baidu Cloud Compute (BCC)
        • Elastic Baremetal Compute BBC
      • Storage and CDN
        • Parallel Filesystem Service (PFS)
        • Cloud File System (CFS)
        • Content delivery network (CDN)
        • Baidu object storage (BOS)
        • Cloud Disk Server (CDS)
        • Baidu edge computing (BEC)
      • Website service
        • Baidu Cloud Virtual Host (BCH)
      • Large Model Platform
        • Qianfan Large Model Platform ModelBuilder
  • Typical Practices
    • Scenarios for Batch Creation of Alarm Strategies
    • Usage Scenarios for Different Notification Channels
  • Service Level Agreement (SLA)
    • Site Monitor Service Level Agreement SLA
  • BCM-Tool
    • Uninstallation Method
    • Installation method
    • BCM-Tool-Frequently Asked Questions
    • Functions
    • Multi-Region Service
    • Application method
All documents
menu
No results found, please re-enter

BCM

  • Function Release Records
  • Product Announcement
    • Site Monitor Billing Announcement
  • Product Description
    • Product Introduction
    • Core concepts
    • Product advantages
    • Product features
  • Product pricing
    • Product pricing
    • Site Monitor Pricing
  • Quick Start
  • Operation guide
    • Enter Cloud Monitor
    • Dashboard
      • Overview
      • Management Dashboard Charts
      • Management Dashboard
    • Alarm Service
      • Overview
      • Alarm strategy
      • Alarm history
      • Alarm Template
      • Alarm Notification Template
      • Alarm callback
    • Cloud product monitor
      • Instance monitor
      • Instance Group
      • View Metrics
    • Site Monitor
      • Timed Detection (Formerly Site Monitor)
        • Overview
        • Manage Timed Probe Tasks
        • Purchase Guide
        • View timed probe tasks
      • IP advanced fault diagnosis
        • Manage IP Advanced Fault Diagnosis Tasks
        • View IP Advanced Fault Diagnosis Tasks
      • Instant probe
        • Overview
        • Manage instant probe tasks
    • Event Monitor
    • Event Bus
      • Event Delivery History
      • Overview
      • Event summary
      • Event Set
      • Event Rules
        • Event Rules
        • Event content conversion
        • Event pattern
  • API Reference
    • Overview
    • Service domain
    • Error response
    • Query Monitoring Data for Partial Dimensions
    • Dashboard API
    • Common Request and Response Headers
    • Alarm Management API
    • Alarm Management Interface V2
    • Alarm history
    • Push Data API
    • Event Bus Push
    • Application Monitor
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Instance Group Interface
    • Site Monitor
    • Query Latest Metric Data for Partial Dimensions
    • General Description
    • Query Data API
    • Event Monitor
    • Instant Probe
    • Event Alarm History
    • Notification Template
  • Java-SDK
    • Overview
    • Initialization
    • Install the SDK Package
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy-related APIs
    • Batch Query Data Interface
    • Alarm History-related APIs
  • Python-SDK
    • Overview
    • Initialization
    • Install SDK
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy List API
    • Batch Data Query Interface
  • Go-SDK
    • Overview
    • Initialization
    • Install the SDK Package
    • BcmClient
    • Query Monitoring Data for Partial Dimensions
    • Dimension Value TopN and Monitoring Data Query Interface
    • Batch Query Monitoring Data Interface V2
    • Dimension Value TopN Query Interface
    • Query Latest Metric Data for Partial Dimensions
    • Query Data API
    • Alarm Strategy-related APIs
    • Alarm History-related APIs
    • Batch Data Query Interface
  • BCM-Agent
    • Functions
    • Monitoring Trend Chart
    • BCM-Agent-Frequently Asked Questions
    • Appendix
  • FAQs
    • Common Questions Overview
    • Fault-related questions
    • Configuration-related questions
    • Performance-related questions
  • Cloud Product Monitor List
    • Cloud Product Metric List (Legacy Version Hidden)
    • Cloud Product Monitor Object Type List
    • Cloud Product Event List
    • Cloud Product Metric List
      • Database
        • Cloud Database TableStorage
        • Cloud Database DocDB for MongoDB
        • Data transmission service (DTS)
        • Cloud native database GaiaDB
        • Vector Database (VectorDB)
        • Dedicated Database Cluster (DDC)
        • Cloud Database Redis
        • Cloud database RDS
        • Cloud Database HBase
      • Enterprise Application
        • Message Service for RabbitMQ
      • Network
        • Service Network Interface Card (SNIC)
        • Peering Connections
        • IPv6 gateway
        • NAT Gateway
        • Load Balancer Dedicated Cluster LBDC
        • Baidu Load Balance (BLB)
        • Network probe NP
        • Dedicated channel
        • Elastic IP EIP
        • Elastic Network Interface Card (ENIC)
        • Cloud Smart Network (CSN)
        • Dedicated gateway
        • Virtual Private Network (VPN) Gateway
        • Layer 2 Gateway LTGW
        • Physical dedicated line
      • Intelligent Big Data
        • MapReduce BMR
        • Message service for Kafka-dedicated
        • Message Service for RocketMQ
        • Baidu Stream Computing (BSC)
        • Baidu Elasticsearch
        • Log Service BLS
        • Data warehouse DORIS
      • Cloud native
        • Cloud Function Computing
        • Baidu container instance (BCI)
      • Compute
        • Baidu Cloud Compute (BCC)
        • Elastic Baremetal Compute BBC
      • Storage and CDN
        • Parallel Filesystem Service (PFS)
        • Cloud File System (CFS)
        • Content delivery network (CDN)
        • Baidu object storage (BOS)
        • Cloud Disk Server (CDS)
        • Baidu edge computing (BEC)
      • Website service
        • Baidu Cloud Virtual Host (BCH)
      • Large Model Platform
        • Qianfan Large Model Platform ModelBuilder
  • Typical Practices
    • Scenarios for Batch Creation of Alarm Strategies
    • Usage Scenarios for Different Notification Channels
  • Service Level Agreement (SLA)
    • Site Monitor Service Level Agreement SLA
  • BCM-Tool
    • Uninstallation Method
    • Installation method
    • BCM-Tool-Frequently Asked Questions
    • Functions
    • Multi-Region Service
    • Application method
  • Document center
  • arrow
  • BCM
  • arrow
  • Operation guide
  • arrow
  • Event Bus
  • arrow
  • Event Rules
  • arrow
  • Event content conversion
Table of contents on this page
  • Overview
  • Event content conversion
  • Complete event
  • Partial events
  • Constant
  • Variable templates

Event content conversion

Updated at:2025-11-03

Overview

The event bus EventBridge supports event content conversion, which converts standard events into event types compatible with event targets before routing them to their destination. This document details the types of event conversions provided by event bus EventBridge.

Event content conversion

The event content conversion types supported by event bus EventBridge are as follows: complete event, partial event, constant, variable template

Complete event

When the conversion type is "Complete Event," event bus EventBridge directly routes the native CloudEvents structure to event targets without alteration. The following table illustrates examples before and after complete event conversion.

  • Before conversion
Plain Text
1{
2    "data": {
3 "info": "System exception",
4 "advice": "Please contact the administrator"
5    },
6    "id": "*****",
7    "source": "BCE_BCC",
8    "specversion": "1.0",
9    "type": "driverInstallError",
10    "subject": "*****",
11    "time": "2020-11-19T21:04:41+08:00",
12    "level": "WARNING",
13    "accountId": "*****",
14    "eventBusId": "eb-1b63902d",
15    "eventBusName": "defualt",
16 “eventAlias”: “Driver installation failed”,
17    "eventAliasEn": "driverInstallError",
18    "region": "bj",
19    "recvTimestamp": "2020-11-19T21:04:41+08:00"
20}
  • Conversion type
Plain Text
1  Complete event
  • Conversed event
Plain Text
1{
2    "data": {
3 "info": "System exception",
4 "advice": "Please contact the administrator"
5    },
6    "id": "*****",
7    "source": "BCE_BCC",
8    "specversion": "1.0",
9    "type": "driverInstallError",
10    "subject": "*****",
11    "time": "2020-11-19T21:04:41+08:00",
12    "level": "WARNING",
13    "accountId": "*****",
14    "eventBusId": "eb-1b63902d",
15    "eventBusName": "defualt",
16 “eventAlias”: “Driver installation failed”,
17    "eventAliasEn": "driverInstallError",
18    "region": "bj",
19    "recvTimestamp": "2020-11-19T21:04:41+08:00"
20}

Partial events

When the conversion type is "Partial Events," event bus EventBridge uses JSONPath to extract event parameters from CloudEvents and routes the specified event content to event targets. Examples of before and after partial event conversion are illustrated in the table below.

  • Before conversion
Plain Text
1{
2    "data": {
3 "info": "System exception",
4 "advice": "Please contact the administrator"
5    },
6    "id": "*****",
7    "source": "BCE_BCC",
8    "specversion": "1.0",
9    "type": "driverInstallError",
10    "subject": "*****",
11    "time": "2020-11-19T21:04:41+08:00",
12    "level": "WARNING",
13    "accountId": "*****",
14    "eventBusId": "eb-1b63902d",
15    "eventBusName": "defualt",
16 “eventAlias”: “Driver installation failed”,
17    "eventAliasEn": "driverInstallError",
18    "region": "bj",
19    "recvTimestamp": "2020-11-19T21:04:41+08:00"
20}
  • Conversion type
Plain Text
1 Partial events: $.eventBusId
  • Conversed event
Plain Text
1 eb-1b63902d

Constant

When the conversion type is "Constant," the event serves solely as a trigger. Regardless of the event's content, event bus EventBridge routes the constant to event targets. The table below demonstrates examples before and after constant conversion.

  • Before conversion
Plain Text
1{
2    "data": {
3 "info": "System exception",
4 "advice": "Please contact the administrator"
5    },
6    "id": "*****",
7    "source": "BCE_BCC",
8    "specversion": "1.0",
9    "type": "driverInstallError",
10    "subject": "*****",
11    "time": "2020-11-19T21:04:41+08:00",
12    "level": "WARNING",
13    "accountId": "*****",
14    "eventBusId": "eb-1b63902d",
15    "eventBusName": "defualt",
16 “eventAlias”: “Driver installation failed”,
17    "eventAliasEn": "driverInstallError",
18    "region": "bj",
19    "recvTimestamp": "2020-11-19T21:04:41+08:00"
20}
  • Conversion type
Plain Text
1 Constant: test
  • Conversed event
Plain Text
1 test

Variable templates

When the conversion type is "Template," variables are defined in the template using a custom format. Event bus EventBridge extracts event parameters via JSONPath from CloudEvents, stores these values in variables, and routes them to event targets in the predefined template format. Examples of before and after template conversion are provided in the table below.

  • Before conversion
Plain Text
1{
2    "data": {
3 "info": "System exception",
4 "advice": "Please contact the administrator"
5    },
6    "id": "id1",
7    "source": "BCE_BCC",
8    "specversion": "1.0",
9    "type": "driverInstallError",
10    "subject": "*****",
11    "time": "2020-11-19T21:04:41+08:00",
12    "level": "WARNING",
13    "accountId": "*****",
14    "eventBusId": "eb-1b63902d",
15    "eventBusName": "defualt",
16 “eventAlias”: “Driver installation failed”,
17    "eventAliasEn": "driverInstallError",
18    "region": "bj",
19    "recvTimestamp": "2020-11-19T21:04:41+08:00"
20}
  • Conversion type
Plain Text
1Variables: Values extracted by JSONPath can be either variables or constants.
2{
3    "id":"$.id",
4 “constant”: “Please handle it promptly.”
5}
6 Template
7 'Instance ${id} is normal, ${constant}’
  • Conversed event
Plain Text
1Instance id1 is normal, please handle it timely.

Previous
Event Rules
Next
Event pattern