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:Orion
Description
Created question in FIWARE Q/A platform on 13-06-2019 at 13:06
Please, ANSWER this question AT https://stackoverflow.com/questions/56579182/attribute-as-name-context-broker
Question:
Attribute as name context broker
Description:
I'm working with ContextBroker by inserting the data I retrieve from an API.
My problem is the following:
These attribute names are numeric and CB behaves strangely for example when I create this:
{
"id": "pruebas999",
"type": "typopruebas99",
"2000": {
"type": "float",
"value": 2.4,
"metadata": {
"timestamp":
}
}
}
The information returns it in the following way, everything above the id and the type this is normal?
{
"2000": {
"type": "float",
"value": 2.4,
"metadata": {
"timestamp":
}
},
"id": "pruebas999",
"type": "typopruebas99"
}
On the other hand to be numerical values I do not know the name of those sensors I have thought to create another entity with the name of the sensors and make reference in it to each id then you can retrieve the information of that entity with the value of each sensor and the first name? as an aggregation?
Greetings and thank you.
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Jose Manuel Cantera [ jmcantera ] |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 13-06-2019 at 13:06 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/56579182/attribute-as-name-context-broker +Question:+ Attribute as name context broker +Description:+ I'm working with ContextBroker by inserting the data I retrieve from an API. My problem is the following: These attribute names are numeric and CB behaves strangely for example when I create this: { "id": "pruebas999", "type": "typopruebas99", "2000": { "type": "float", "value": 2.4, "metadata": { "timestamp": { "type": "Integer", "value": 1550804920 } } } } The information returns it in the following way, everything above the id and the type this is normal? { "2000": { "type": "float", "value": 2.4, "metadata": { "timestamp": { "type": "Integer", "value": 1550804920 } } }, "id": "pruebas999", "type": "typopruebas99" } On the other hand to be numerical values I do not know the name of those sensors I have thought to create another entity with the name of the sensors and make reference in it to each id then you can retrieve the information of that entity with the value of each sensor and the first name? as an aggregation? Greetings and thank you. |
Created question in FIWARE Q/A platform on 13-06-2019 at 13:06
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/56579182/attribute-as-name-context-broker +Question:+ Attribute as name context broker +Description:+ I'm working with ContextBroker by inserting the data I retrieve from an API. My problem is the following: These attribute names are numeric and CB behaves strangely for example when I create this: { "id": "pruebas999", "type": "typopruebas99", "2000": { "type": "float", "value": 2.4, "metadata": { "timestamp": { "type": "Integer", "value": 1550804920 } } } } The information returns it in the following way, everything above the id and the type this is normal? { "2000": { "type": "float", "value": 2.4, "metadata": { "timestamp": { "type": "Integer", "value": 1550804920 } } }, "id": "pruebas999", "type": "typopruebas99" } On the other hand to be numerical values I do not know the name of those sensors I have thought to create another entity with the name of the sensors and make reference in it to each id then you can retrieve the information of that entity with the value of each sensor and the first name? as an aggregation? Greetings and thank you. |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
12h | 1 | Backlog Manager | 14/Jun/19 12:06 PM | |||||
|
2h 59m | 1 | Backlog Manager | 14/Jun/19 3:06 PM | |||||
|
74d 23h 24m | 1 | Jose Manuel Cantera | 28/Aug/19 2:30 PM |
2019-06-14 00:06|CREATED monitor | # answers= 0, accepted answer= False