We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Provide a easy way of filtering events. Filters should be configurable and capable of filtering on multiple values.
filters
event
data
false
true
isString
isString(event.data.foo)
isNumber
isNumber(event.data.foo)
isBoolean
isBoolean(event.data.foo)
Event
{ "event": "someEventType", "id": "66dfc31d-6844-42fd-b1a7-a489a49f65f3", "received": 1500897327098, "data": "{\"foo\": \"bar\"}", "encoding": "json" }
Subscription that matches event sdk usage
fdk.subscribe("someFunction", { event: "someEventType", filters: [ "event.data.foo == 'bar'" ] })
Subscription - framework usage
functions: sendEmail: handler: index.sendEmail events: - myapp.user.created: filters: - "event.data.validEmail != true"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a Feature Request
Description
Provide a easy way of filtering events. Filters should be configurable and capable of filtering on multiple values.
Use-cases
Concepts
filters
property.filters
property is expected to be an array.Variables
event
event
variable represents the current event that is being compared.data
field in the event should be lazily deserialized (if possible)Literals
false
false
true
true
Functions
isString
isNumber
isBoolean
Operators
Examples
Event
Subscription that matches event sdk usage
Subscription - framework usage
The text was updated successfully, but these errors were encountered: