Skip to content
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

Introduce expression filters for events #1224

Closed
VaibhavPage opened this issue May 22, 2021 · 0 comments · Fixed by #1226
Closed

Introduce expression filters for events #1224

VaibhavPage opened this issue May 22, 2021 · 0 comments · Fixed by #1226
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@VaibhavPage
Copy link
Contributor

VaibhavPage commented May 22, 2021

Is your feature request related to a problem? Please describe.
The sensor event dependencies currently have data, context, and time filters which offer a limited set of filtering capabilities. Introduce a more powerful filter where the user can define an expression/s that are flexible enough to address every usecase.

Describe the solution you'd like
Add a new filter called exprFilters

exprFilters:
    - fields:
        - path: height
          name: field1
          type: number
        - path: weight
          name: field2
          type: number
      expr: (field2 / (field1 * field1)) > 20
    - fields:
        - path: weight
          name: field1
          type: number
      expr: field1 > 70
      name: filter2
  circuit: filter1 || filter2

Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

@VaibhavPage VaibhavPage added the enhancement New feature or request label May 22, 2021
@VaibhavPage VaibhavPage self-assigned this May 22, 2021
@VaibhavPage VaibhavPage added this to the v1.4 milestone May 22, 2021
@VaibhavPage VaibhavPage linked a pull request May 24, 2021 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant