[ https://jira.fiware.org/browse/HELP-8360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez reassigned HELP-8360: ------------------------------------ Assignee: Francisco Romero > [fiware-stackoverflow] Fiware STH: row data API not exposing metadata > --------------------------------------------------------------------- > > Key: HELP-8360 > URL: https://jira.fiware.org/browse/HELP-8360 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Francisco Romero > Labels: fiware, fiware-cygnus > > Created question in FIWARE Q/A platform on 08-03-2017 at 10:03 > {color: red}Please, ANSWER this question AT{color} http://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. -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy