You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When currently subscribing for Events/change notifications via
WebSocket
SSE
Connectivity
the consumer always gets all change notifications it is allowed to see.
On SSE this can be reduced by providing specific thingIds and fields so that changes are only published if the thingId match or a change was affected by a specified field.
The subscription should and could be more fine-grained.
The idea is to support adding an optional filter defined via Ditto's RQL syntax it already uses for the search.
That way the following subscription rules could be applied:
notify me of a change only if the thingId starts with org.eclipse.ditto:* : like(thingId,"org.eclipse.ditto:*")
notify me of a change only if the feature temperature was affected by this change: exists(feature/temperature)
notify me of a change only if in one change the temperature was greater 25: gt(feature/temperature/properties/value,25)
notify me of changes in the namespace org.eclipse.ditto:* affecting the temperature: and(like(thingId,"org.eclipse.ditto:*"),exists(feature/temperature))
The text was updated successfully, but these errors were encountered:
When currently subscribing for Events/change notifications via
the consumer always gets all change notifications it is allowed to see.
On SSE this can be reduced by providing specific
thingId
s andfields
so that changes are only published if thethingId
match or a change was affected by a specifiedfield
.The subscription should and could be more fine-grained.
The idea is to support adding an optional
filter
defined via Ditto's RQL syntax it already uses for the search.That way the following subscription rules could be applied:
thingId
starts withorg.eclipse.ditto:*
:like(thingId,"org.eclipse.ditto:*")
temperature
was affected by this change:exists(feature/temperature)
temperature
was greater 25:gt(feature/temperature/properties/value,25)
org.eclipse.ditto:*
affecting thetemperature
:and(like(thingId,"org.eclipse.ditto:*"),exists(feature/temperature))
The text was updated successfully, but these errors were encountered: