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

[fiware-stackoverflow] Aattribute as name context broker

    Details

      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/aattribute-as-name-context-broker

      Question:
      Aattribute 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.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-06-13 15:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-06-13 15:06|CREATED monitor | # answers= 0, accepted answer= False

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: