[Backlogmanager] [FIWARE-JIRA] (HELP-15921) [fiware-stackoverflow] Attribute as name context broker

Jose Manuel Cantera (JIRA) jira-help-desk at jira.fiware.org
Wed Aug 28 14:31:00 CEST 2019


     [ https://jira.fiware.org/browse/HELP-15921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Manuel Cantera resolved HELP-15921.
----------------------------------------
    Resolution: Done

> [fiware-stackoverflow] Attribute as name context broker
> -------------------------------------------------------
>
>                 Key: HELP-15921
>                 URL: https://jira.fiware.org/browse/HELP-15921
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Jose Manuel Cantera
>              Labels: fiware, fiware-orion
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy