【发布时间】:2017-03-10 10:31:23
【问题描述】:
我正在尝试使用 subscribeContext 并通知(请参阅链接 https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv1/index.html#ngsi10-standard-operations)
和 mongodb 一样,有 creDate 和 modDate 属性,但在 notifyContextRequest payload 中没有这两个属性。
是否可以在 notifyContextRequest 负载中包含 creDate 和 modDate 属性?
有没有什么方法可以使用 Orion 方法获取这些属性?
详情请见下文: 一行一个mongodb:
{
"_id" : {
"id" : "sb1_dv1_5",
"type" : "Call",
"servicePath" : "/"
},
"attrNames" : [
"status",
"type",
"to"
],
"attrs" : {
"status" : {
"type" : "string",
"creDate" : 1488876118,
"modDate" : 1488876118,
"value" : "open",
"mdNames" : []
},
"type" : {
"type" : "string",
"creDate" : 1488876118,
"modDate" : 1488876118,
"value" : "video",
"mdNames" : []
},
"to" : {
"type" : "string",
"creDate" : 1488876118,
"modDate" : 1488876118,
"value" : "police",
"mdNames" : []
}
},
"creDate" : 1488876118,
"modDate" : 1488876118
}
非常感谢。
【问题讨论】:
标签: mongodb fiware fiware-orion