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

FIWARE.Question.Tech.Data.BigData-Analysis.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 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": [

      { "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
        4d 39m 1 Francisco Romero 06/Sep/16 12:45 PM
        In Progress In Progress Answered Answered
        1s 1 Francisco Romero 06/Sep/16 12:45 PM
        Answered Answered Closed Closed
        2s 1 Francisco Romero 06/Sep/16 12:45 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        backlogmanager Backlog Manager made changes -
        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 ]
        frb Francisco Romero made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        frb Francisco Romero made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        frb Francisco Romero made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Assignee Francisco Romero [ frb ]
        backlogmanager Backlog Manager made changes -
        HD-Chapter Unknown [ 10845 ] Data [ 10838 ]
        mev Manuel Escriche made changes -
        HD-Enabler Unknown [ 10910 ] Cosmos [ 10872 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-09-02 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-09-02 12:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: