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

        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

          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: