Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Cygnus
Description
Created question in FIWARE Q/A platform on 02-09-2016 at 10:09
Please, ANSWER this question AT https://stackoverflow.com/questions/39287361/cygnus-mongo-sink-and-meta-data-storing
Question:
cygnus mongo sink and meta data storing
Description:
I tried to stored this meta data entity but seems like cygnus is only storing entity data no meta data was stored in the data base.
Here is how I update my entity using NGSI v1 updateContext
{
"contextElements": [
{
"type": "dummyMeta",
"isPattern": "false",
"id": "dummyMeta",
"attributes": [
{
"name": "dummy",
"type": "float",
"value": "26.5",
"metadatas": [
]
}
]
}
],
"updateAction": "APPEND"
}
Here is the payload subscription:
{
"entities": [
{ "id": "dummyMeta", "type": "dummyMeta", "isPattern": "false" }],
"attributes": [
"dummy"
]
,
"reference": "http://cygnusserver.ddns.net:5050/notify",
"duration":"P1M",
"notifyConditions": [
],
"throttling": "PT5S"
}
here is how it is stored in the data base
> db['kura_/egmmqtt_dummyMeta_dummyMeta'].find().sort({$natural:-1})
{ "_id" : ObjectId("57c929d8902531258a3c6ed0"), "recvTime" : ISODate("2016-09-02T07:27:18.331Z"), "attrName" : "dummy", "attrType" : "float", "attrValue" : "26.5" } { "_id" : ObjectId("57c92990902531258a3c6ecc"), "recvTime" : ISODate("2016-09-02T07:26:04.148Z"), "attrName" : "dummy", "attrType" : "float", "attrValue" : "26.5" }What am I missing to be able to store the whole information (data and metadata) about the attribute?
Thanks in advance for your help!
2017-05-22 15:13|CREATED monitor | # answers= 1, accepted answer= True