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:
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE
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
- All
- Comments
- History
- Activity
- Transitions
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:
{
{ "idPattern": ".*", "type": "Room" }"description": "One subscription to rule them all",
"subject": {
"entities": [
],
{ "q": "temperature>40" }"condition": {
"attrs": [
"temperature"
],
"expression":
}
{ "url": "http://localhost:1234" }},
"notification": {
"http":
,
"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