Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8953

[fiware-stackoverflow] cygnus mongo sink and meta data storing

    Details

      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": [

      { "name": "accuracy", "type": "float", "value": "1" }

      ]
      }
      ]
      }
      ],
      "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": [

      { "type": "ONCHANGE", "condValues": [ "dummy" ] }

      ],
      "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
        Open Open In Progress In Progress
        2h 56m 1 Backlog Manager 22/May/17 6:07 PM
        In Progress In Progress Closed Closed
        3h 1 Backlog Manager 22/May/17 9:07 PM

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: