当我在Orion服务器中创建实体时,我可以按ID搜索平面或使用正则表达式:
http://<localhost>:1026/v1/queryContext
内容:
{
"entities": [
{
"type": "Sensor",
"isPattern": "true",
"id": "sensor_1.*"
}
],
"attributes": ["temperature","humidity"]
}
在上面的示例中,我将获得“Sensor”类型的所有对象,其ID以“sensor_1”开头,其属性为“temperature”和“humidity” . 我想知道是否有任何方法可以让我按特定属性值进行搜索,例如获取湿度超过“60.2”的传感器,或者必须对ID查询的检索数据进行选择 .
1 回答
不是目前的Orion版本(0.19.0),但将来可能会有 . 使用
=
运算符in this document查看attribute::<name>
过滤器 .