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:Cosmos
Description
Created question in FIWARE Q/A platform on 02-09-2016 at 10:09
Please, ANSWER this question AT http://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!
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
4d 39m | 1 | Francisco Romero | 06/Sep/16 12:45 PM | |||||
|
1s | 1 | Francisco Romero | 06/Sep/16 12:45 PM | |||||
|
2s | 1 | Francisco Romero | 06/Sep/16 12:45 PM |
Fix Version/s | 2021 [ 12600 ] |
Summary | [fiware-stackoverflow] cygnus mongo sink and meta data storing | FIWARE.Question.Tech.Data.BigData-Analysis.cygnus mongo sink and meta data storing |
HD-Node | Unknown [ 10852 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Francisco Romero [ frb ] |
HD-Chapter | Unknown [ 10845 ] | Data [ 10838 ] |
HD-Enabler | Unknown [ 10910 ] | Cosmos [ 10872 ] |
HD-Enabler | Unknown [ 10910 ] | |
HD-Chapter | Unknown [ 10845 ] | |
HD-Node | Unknown [ 10852 ] |
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
2016-09-02 12:05|CREATED monitor | # answers= 0, accepted answer= False