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

FIWARE.Request.Tech.Data.CEP.Input event json format

    Details

    • Type: extRequest
    • Status: Closed
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Dear Tali,

      A quick question regarding posting events to CEP, I know that the format
      for input events is :

      {"Name":"TrafficReport", "volume":"1000"}

      But, the Orion context broker do generate JSON objects in this format:

      {
      "subscriptionId" : "51c04a21d714fb3b37d7d5a7",
      "originator" : "localhost",
      "contextResponses" : [
      {
      "contextElement" : {
      "attributes" : [
      {
      "name" : "temperature",
      "type" : "float",
      "value" : "26.5"
      }
      ],
      "type" : "Room",
      "isPattern" : "false",
      "id" : "Room1"
      },
      "statusCode" : {
      "code" : "200",
      "reasonPhrase" : "OK"
      }
      }
      ]
      }

      So is there a way to make CEP accept this input event and check that the
      temperature value is between certain threshold this condition:
      TR1.value>0 AND TR1.value<30

      Currently, I am getting this error :

      Could not parse json event org.apache.wink.json4j.JSONException: The
      key [Name] was not in the map, reason: The key [Name] was not in the
      map

      Since there is no Name of course.

      Please let me know if you have a solution or suggestions.

      Best,
      Ahmed Sadek

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Ahmed Sadek <don1559@gmail.com>]

        Activity

        mev Manuel Escriche created issue -
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        mev Manuel Escriche made changes -
        Assignee Tali Yatzkar Haham [ tali ]
        mev Manuel Escriche made changes -
        Reporter FW External User [ fwexternaluser ] FW External User [ fw.external.urser ]
        TALI Fabiana Fournier made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        fw.ext.user FW External User added a comment -

        Dear Ahmed,

        Sorry to hear you encountered a problem in the interaction between the two
        components. Therefore, I am addressing your issue to the tech group to see
        how we solve this.

        Regards,

        Fabiana

        From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
        To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL, Fabiana
        Fournier/Haifa/IBM@IBMIL
        Date: 19/05/2015 10:10 AM
        Subject: [FI-WARE-JIRA] (HELP-2844) [Fiware-tech-help] Regarding
        CEP input event json format

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

        Manuel Escriche reassigned HELP-2844:
        -------------------------------------

        Assignee: Tali Yatzkar Haham


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

        Show
        fw.ext.user FW External User added a comment - Dear Ahmed, Sorry to hear you encountered a problem in the interaction between the two components. Therefore, I am addressing your issue to the tech group to see how we solve this. Regards, Fabiana From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL, Fabiana Fournier/Haifa/IBM@IBMIL Date: 19/05/2015 10:10 AM Subject: [FI-WARE-JIRA] ( HELP-2844 ) [Fiware-tech-help] Regarding CEP input event json format [ https://jira.fiware.org/browse/HELP-2844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manuel Escriche reassigned HELP-2844 : ------------------------------------- Assignee: Tali Yatzkar Haham – This message was sent by Atlassian JIRA (v6.4.1#64016)
        TALI Fabiana Fournier made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        TALI Fabiana Fournier made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        TALI Fabiana Fournier made changes -
        Summary [Fiware-tech-help] Regarding CEP input event json format FIWARE.Request.Lab.Data.CEP.Input event json format
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.Data.CEP.Input event json format FIWARE.Request.Tech.Data.CEP.Input event json format
        mev Manuel Escriche made changes -
        Sender Email don1559@gmail.com
        mev Manuel Escriche made changes -
        HD-Enabler CEP [ 10869 ]
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        13d 9h 48m 1 Fabiana Fournier 20/May/15 9:29 AM
        In Progress In Progress Answered Answered
        6h 5m 1 Fabiana Fournier 20/May/15 3:35 PM
        Answered Answered Closed Closed
        15d 21m 1 Fabiana Fournier 04/Jun/15 3:57 PM

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: