Orion是否支持订阅限制?防爆 . 我希望仅在温度> 30时才接收上下文更新
该功能未在NGSIv1中实施,但计划用于NGSIv2(请参见"Subscriptions"中的 conditions 字段the NGSIv2 draft specification) . 但是,在编写本文时(0.25.0),它还没有在最后的Orion版本中实现 .
conditions
EDIT :此功能最终在Orion 0.27.0中实现,例如:
POST /v2/subscriptions ... { "subject": { "entities": [ { "idPattern": ".*", "type": "device" } ], "condition": { "attributes": [ "temperature" ], "expression": { "q": "temperature>30" } } }, "notification": { "callback": "http://foo.bar:5050/notify", "attributes": [ ] }, "expires": "2050-04-05T14:00:00.00Z" }
1 回答
该功能未在NGSIv1中实施,但计划用于NGSIv2(请参见"Subscriptions"中的
conditions
字段the NGSIv2 draft specification) . 但是,在编写本文时(0.25.0),它还没有在最后的Orion版本中实现 .EDIT :此功能最终在Orion 0.27.0中实现,例如: