Details

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

      Description

      Dear Fiware tech team,

      We have some questions about Orion. We'll be very glad if you could help us.

      • Can we subscribe to an entity type instead of to a given entity with
        its id? So that when an entity of a given type is created or updated, a
        request is sent to notify a service.
      • Related to the previous one: it is possible to save an entity and a
        subscription in the same request? Must we send the two requests separately?
      • Can we add more than one url to one subscription? Should we create a
        different subscription for each url?

      Thank you in advance,


      VĂ­ctor M. Campello
      CTO

      __________________________________________________________________________________________

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

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

      [Created via e-mail received from: =?UTF-8?Q?V=C3=ADctor_Campello?= <victor.campello@correyvuela.com>]

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 22h 17m 1 Jose Manuel Cantera 24/Aug/18 8:34 AM
        In Progress In Progress Answered Answered
        3s 1 Jose Manuel Cantera 24/Aug/18 8:34 AM
        Answered Answered Closed Closed
        18d 23h 52m 1 Jose Manuel Cantera 12/Sep/18 8:26 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jmcantera Jose Manuel Cantera made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        jmcantera Jose Manuel Cantera made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        jmcantera Jose Manuel Cantera made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        jmcantera Jose Manuel Cantera added a comment -

        Can we subscribe to an entity type instead of to a given entity with
        its id? So that when an entity of a given type is created or updated, a
        request is sent to notify a service.

        here is an example:

        {
        "description": "One subscription to rule them all",
        "subject": {
        "entities": [

        { "idPattern": ".*", "type": "Room" }

        ],
        "condition": {
        "attrs": [
        "temperature"
        ],
        "expression":

        { "q": "temperature>40" }

        }
        },
        "notification": {
        "http":

        { "url": "http://localhost:1234" }

        ,
        "attrs": [
        "temperature",
        "humidity"
        ]
        },
        "expires": "2016-04-05T14:00:00.00Z",
        "throttling": 5
        }

        Related to the previous one: it is possible to save an entity and a
        subscription in the same request? Must we send the two requests separately?

        They are separate resources on the API so you would need two different subscriptions.

        Can we add more than one url to one subscription? Should we create a
        different subscription for each url?

        A different subscription for each URL

        I hope this helps

        Thanks

        Show
        jmcantera Jose Manuel Cantera added a comment - Can we subscribe to an entity type instead of to a given entity with its id? So that when an entity of a given type is created or updated, a request is sent to notify a service. here is an example: { "description": "One subscription to rule them all", "subject": { "entities": [ { "idPattern": ".*", "type": "Room" } ], "condition": { "attrs": [ "temperature" ], "expression": { "q": "temperature>40" } } }, "notification": { "http": { "url": "http://localhost:1234" } , "attrs": [ "temperature", "humidity" ] }, "expires": "2016-04-05T14:00:00.00Z", "throttling": 5 } Related to the previous one: it is possible to save an entity and a subscription in the same request? Must we send the two requests separately? They are separate resources on the API so you would need two different subscriptions. Can we add more than one url to one subscription? Should we create a different subscription for each url? A different subscription for each URL I hope this helps Thanks
        veronika Veronika Vlnkova made changes -
        Assignee Jose Manuel Cantera [ jmcantera ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fw.ext.user FW External User created issue -

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: