-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new filters allowing FLP-based dedup (#640)
* Add new filters allowing FLP-based dedup - New "remove_entry_all_satisfied" filter type: entry is removed only if all the conditions (represented by nested rules) are satisfied. This allows to have logical AND in filter conditions, whereas previously it was only possible to have logical OR - New "conditional_sampling" filter type: allows to have random sampling based on conditions. For example, a flow matching conditions A and B may have a sampling ratio of 1:10 whereas a flow matching condition C has 1:100 sampling and all other flows are 1:1 - Introduced a "preprocess" function on rules; currently it's only used to be able to cast the `Value interface{}` as an int (otherwise it comes as a float64); but could be also used in the future for other purpose, e.g. regex pre-compiling - Add tests * Fix tests
- Loading branch information
Showing
6 changed files
with
344 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.