-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription-Issue3: Support filter option for subscriptions #155
Comments
Hello @shilpa-padgaonkar Let's consider UC as the one we have in Device location about initial event. In this case should be consider instead the In order to discuss on an existing case, if we try to realign our subscription model to CloudsEvent one we are going from:
to
Is it the approach that you looking for? But even with this approach we need to 'standardise' key word as |
@bigludo7 Sorry, I didn't realize that you did not want an example with multiple types. May be an example with subject might be useful. Let me see if I can prepare one. |
decision to not use filters at least for the first meta release |
Problem description
We currently do not have a way to allow event consumers to subscribe to very "specific" events unless we create (very specific) distinct event types. Filters (as defined in CloudEvents subscription spec allow for subscriptions to specify that only a subset of events are to be delivered to the sink based on a set of criteria. The filter property in a subscription is a set of filter expressions, where each expression evaluates to either true or false for each event generated. The filter-dialects indicate which filter expression language is supported by event producers.
Possible evolution
Camara subscriptions could agree to support filters for subscriptions. I have shown 2 (abstract) examples below which make use of extension-context-attributes (for eg. status_types) and then use it in filter expressions:
Alternative solution
Additional context
#149
The text was updated successfully, but these errors were encountered: