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

[fiware-stackoverflow] Fiware STH: row data API not exposing metadata

    Details

      Description

      Created question in FIWARE Q/A platform on 08-03-2017 at 10:03
      Please, ANSWER this question AT https://stackoverflow.com/questions/42667222/fiware-sth-row-data-api-not-exposing-metadata

      Question:
      Fiware STH: row data API not exposing metadata

      Description:
      I am using Cygnus with Mongo and sth sink to retrieve historical data.

      In the current implementation of cygnus mongo sink the attribute metadata is not stored in the data base. So I updated cygnus to be able to store the attribute metadata.
      But when I use the STH-comet to retrieve the history, the API appreantly does not support retrieveing the attribute metadata.

      Am I missing some kind of configuration or the API is not supporting the attribute metadata since the response that I am getting from STH-comet is:

      {
      "contextResponses": [
      {
      "contextElement": {
      "attributes": [
      {
      "name": "humidity",
      "values": [

      { "recvTime": "2017-03-08T08:06:11.463Z", "attrType": "Number", "attrValue": "999" }

      ,

      { "recvTime": "2017-03-08T08:10:54.199Z", "attrType": "Number", "attrValue": "3.06" }

      ]
      }
      ],
      "id": "Room1",
      "isPattern": false,
      "type": "Room"
      },
      "statusCode":

      { "code": "200", "reasonPhrase": "OK" }

      }
      ]
      }

      In the mongoDB data base I have this content:

      { "_id" : ObjectId("58bfbb7c973c5c22d258cffc"), "recvTime" : ISODate("2017-03-08T08:06:11.463Z"), "attrName" : "humidity", "attrType" : "Number", "attrValue" : "999", "attrMetadata" : [ ] }

      { "_id" : ObjectId("58bfbc93973c5c22d258cffd"), "recvTime" : ISODate("2017-03-08T08:10:54.199Z"), "attrName" : "humidity", "attrType" : "Number", "attrValue" : "3.06", "attrMetadata" : [

      { "name" : "unit", "type" : "Text", "value" : "voltage" }

      ] }

      In case the API is not supporting the retrieval of the attribute metadata, can this feature be added?

      Thanks & Best regards.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:11|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:11|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          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: