Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:STH-Comet
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:10:54.199Z", "attrType": "Number", "attrValue": "3.06" } ]
}
],
"id": "Room1",
"isPattern": false,
"type": "Room"
},
"statusCode":
}
]
}
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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
HD-Enabler | STH-Comet [ 11303 ] | |
Description |
Created question in FIWARE Q/A platform on 08-03-2017 at 10:03 {color: red}Please, ANSWER this question AT{color} 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. |
Created question in FIWARE Q/A platform on 08-03-2017 at 10:03
{color: red}Please, ANSWER this question AT{color} 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. |
Assignee | Backlog Manager [ backlogmanager ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 56m | 1 | Backlog Manager | 22/May/17 6:07 PM | |||||
|
3h | 1 | Backlog Manager | 22/May/17 9:07 PM |
2017-05-22 15:11|CREATED monitor | # answers= 1, accepted answer= True