event-ruler
event-ruler copied to clipboard
Introduce option to detect and fail on path overriding in rule definitions
Issue #22
Description of changes:
Detect and fail in case of path overriding in rule definition which causes the undefined behavior as described in issue #22. Note that in case of OR explicit operators we do not need to fail, as the resulting patterns are being copied and therefore not overridden.
- Tests are added to
JsonRuleCompileras well asRuleCompiler. - The
GenericMachineclass and related builder has been modified to be configured.- By default, the previous behavior is maintained, where the override is happening to avoid breaking compatibility.
- No breaking changes are introduced.
Benchmark / Performance (for source code changes):
<replace this with output from /src/test/software/amazon/event/ruler/Bechmarks.java here.
The benchmark results can be fetched from "Pull request checks -> Java build -> build (ubuntu-X.Y, 8) -> Run benchmarks".>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.