true, false, and null).[ ]. Values in [ ] are in OR relationship, and keys are in AND relationship.
Assumes that the following COS event is received: {"specversion": "1.0","id": "13a3f42d-7258-4ada-da6d-023a333b4662","type": "cos:created:object","source": "cos.cloud.tencent","subject": "qcs::cos:ap-guangzhou:uid1250000000:bucketname","time": "1615430559146","region": "ap-guangzhou","datacontenttype": "application/json;charset=utf-8","resource": ["qcs::eb:ap-guangzhou:uid1250000000:eventbusid/eventruleid"],"data": {"name": "testname","scope": 100}}
name in the data field, the rule should be:{"data": {"name": ["testname"]}}
name values in the data field, the statement should be:{"data": {"name": ["testname","test"]}}
{ "prefix": "2021-10-02" }.
Assumes that the following COS event is received: {"specversion": "1.0","id": "13a3f42d-7258-4ada-da6d-023a333b4662","type": "cos:created:object","source": "cos.cloud.tencent","subject": "qcs::cos:ap-guangzhou:uid1250000000:bucketname","time": "1615430559146","region": "ap-guangzhou","datacontenttype": "application/json;charset=utf-8","resource": ["qcs::eb:ap-guangzhou:uid1250000000:eventbusid/eventruleid"],"data": {"name": "testname","scope": 100}}
name, the statement should be:{"data":{"name":[{"prefix":"te"}]}}
{ "suffix": ".txt" }.
Assumes that the following TDMQ event is received: {"specversion": "1.0","id": "13a3f42d-7258-4ada-da6d-023a333b4662","type": "connector:tdmq","source": "tdmq.cloud.tencent","subject": "qcs::tdmq:$region:$account:topicName/$topicSets.clusterId/$topicSets.environmentId/$topicSets.topicName/$topicSets.subscriptionName","time": "1615430559146","region": "ap-guangzhou","datacontenttype": "application/json;charset=utf-8","data": {"topic": "persistent://appid/namespace/topic-1","tags": "testtopic","TopicType": "0","subscriptionName": "xxxxxx","toTimestamp": "1603352765001","partitions": "0","msgId": "123345346","msgBody": "Hello from TDMQ!"}}
{"data": {"topic": [{"suffix":"/topic-1"}]}}
{ "anything-but": "initializing" }.
Assumes that the following COS event is received: {"specversion":"1.0","id":"13a3f42d-7258-4ada-da6d-023a333b4662","type":"cos:created:object","source":"cos.cloud.tencent","subject":"qcs::cos:ap-guangzhou:uid1250000000:bucketname","time":"1615430559146","region":"ap-guangzhou","datacontenttype": "application/json;charset=utf-8","resource":["qcs::eb:ap-guangzhou:uid1250000000:eventbusid/eventruleid"],"data":{"name":"testname","scope":100}}
teset1 in the name of data, the statement should be:{"data": {"name": [{"anything-but":"test1"}]}}
name of data, the statement should be: {"data": {"name": [{"anything-but":"testname"}]}}
data by using a statement like { "contain": ".txt" }.
Assumes that the following TDMQ event is received: {"specversion": "1.0","id": "13a3f42d-7258-4ada-da6d-023a333b4662","type": "connector:tdmq","source": "tdmq.cloud.tencent","subject": "qcs::tdmq:$region:$account:topicName/$topicSets.clusterId/$topicSets.environmentId/$topicSets.topicName/$topicSets.subscriptionName","time": "1615430559146","region": "ap-guangzhou","datacontenttype": "application/json;charset=utf-8","data": {"topic": "persistent://appid/namespace/topic-1","tags": "testtopic","TopicType": "0","subscriptionName": "xxxxxx","toTimestamp": "1603352765001","partitions": "0","msgId": "123345346","msgBody": "Hello from TDMQ!"}}
topic value in data, the statement should be:{"data": {"topic": [{"contain":"topic-1"}]}}
topic values in data, the statement should be: {"data": {"topic": [{"contain":["topic-1","appid"]}]}}
{"array": "{\\"key1\\":\\"value1\\"}"}.
Assumes that the following DTS event is received:{"id": "13a3f42d-7258-4ada-da6d-023a33******","type": "dts:mysql:update","specversion": "1.0","source": "dts.cloud.tencent","subject": "cdb-xxx","time": 1660013278609,"region": "ap-guangzhou","dataContentType": "application/json;charset=utf-8","tags": {"key1": "value1","key2": "value2"},"data": {"topic": "topic-subs-xxx-cdb-xxx","partition": 0,"offset": 72235,"partition_seq": 72236,"event": {"dmlEvent": {"dmlEventType": 1,"columns": [{"name": "time","originalType": "time"},{"name": "id","originalType": "int(11)","isKey": true}],"rows": [{"oldColumns": [{"dataType": 13,"charset": "utf8","bv": "c3NzYWFhcWFxMTEx"}],"newColumns": [{"dataType": 13,"charset": "utf8","bv": "MjA6MTI6MjI="}]}]}},"header": {"sourceType": 1,"messageType": 2,"timestamp": 1648555949,"serverId": 109741,"fileName": "mysql-bin.000005","position": 11172920,"gtid": "38cecd93-a9c2-11ec-b952-043f72d8da53:55","schemaName": "dts","tableName": "dts_mysql","seqId": 72286,"isLast": true},"eb_consumer_time": "2022-03-29T20:12:29+08:00","eb_connector": "cdb-xxx"}}
columns fields, the statement should be: {"source": "dts.cloud.tencent","type": "dts:mysql:update","data": {"event": {"dmlEvent": {"columns": [{"array": "{\\"name\\":\\"time\\"}"}]}}}}
{"source": "dts.cloud.tencent","type": "dts:mysql:update","data": {"event": {"dmlEvent": {"columns": [{"array": "{\\"name\\":\\"id\\",\\"originalType\\":\\"int(11)\\"}"}]}}}}
data field as a match condition. For example, if the statement is { "cidr": "10.0.0.0/24" }, events whose IP is within the 10.0.0.0/24 IP range are returned.
Assumes that the following COS event is received: {"specversion": "1.0","id": "13a3f42d-7258-4ada-da6d-023a333b4662","type": "cos:created:object","source": "cos.cloud.tencent","subject": "qcs::cos:ap-guangzhou:uid1250000000:bucketname","time": "1615430559146","region": "ap-guangzhou","datacontenttype": "application/json;charset=utf-8","resource": ["qcs::eb:ap-guangzhou:uid1250000000:eventbusid/eventruleid"],"data": {"name": "testname","scope": 100,"source-ip": "10.0.0.123"}}
source-ip, the statement should be:{"data": {"source-ip": [{"cidr": "10.0.0.0/24"}]}}
{"data": {"name": [{"anything-but": {"prefix": "init"}}]}}
{"data": {"topic": [{"prefix":"pre"},{"suffix":"suf"}]}}
Feedback