FIWARE Orion Context Broker 订阅的几个要点

FIWARE Orion Context Broker subscription to several points

我将 Orion 与 Keyrock、PEPproxy、Cygnus 和 STH-comet 一起使用,但我在订阅部分遇到了很多问题。我只想向 orion 发送一个请求,以订阅许多服务(如 Cygnus 和 STH)中所有实体的所有属性。我正在使用此正文,但我不知道如何添加其他通知 URL。

{  
  "subject":{
    "entities": [
        {
           "type": "Nodo_aire",
            "idPattern": ".*"
        }
    ],
    "condition":{
    "attrs": []      
    }
  },
  "notification":{
    "http":{"url":"http://192.168.1.51:5050/notify"},
    "attrs": [],
    "attrsFormat":"legacy"
  },
  "expires": "2099-12-31T23:00:00.00Z",
  "throttling": 5
}

我正在阅读 Orion 文档和 NGSIv2,但我没有在这些文档中找到相关部分或解决方案。

Orion 不支持(至少在最新版本中)multi-URL 订阅。但是,有一个简单的解决方法:为每个 URL 实施订阅。