我正在使用 Azure 服务总线资源管理器来管理现有 Azure 服务总线主题的订阅。现在我们有了一个新的主题,它将接收来自多个源系统的消息。基于源系统,我需要创建不同的订阅。以下是我们收到的示例消息
消息1:
{
"entity": {
"id": "20190501",
"source": "system1",
"body": "{\r\n \"Addressid\": \"74C9\",\r\n \"Start\": \"2016-07-17T21:06:10.983\",\r\n \"OrgID\": \"7204055\",\r\n \"Email\": \"test@gmail.com\",\r\n \"DeptID\": 998\r\n}",
"createDate": "2019-05-16T12:47:52.4658011Z",
"isDeleted": false
},
"operation": "POST"
}
消息2:
{
"entity": {
"id": "20190501",
"source": "system2",
"body": "{\r\n \"AC_ID\": \"74C9\",\r\n \"Name\": \"Name1\",\r\n \"InventoryID\": \"4055\",\r\n \"OtherID\": 998\r\n}",
"createDate": "2019-05-16T12:47:52.4658011Z",
"isDeleted": false
},
"operation": "POST"
}
我需要创建两个带有过滤条件的订阅
订阅1:with filter as "source": "system1"
订阅2:with filter as "source": "system2"
请帮助我为我需要使用服务总线资源管理器创建的上述服务总线订阅正确过滤表达式。