-
Notifications
You must be signed in to change notification settings - Fork 74
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
Adding feature direction rules #1358
base: main
Are you sure you want to change the base?
Conversation
edaf73f
to
cb12ac4
Compare
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
cb12ac4
to
de8061a
Compare
if (condition.getThresholdType() != ThresholdType.ACTUAL_IS_BELOW_EXPECTED | ||
|| condition.getThresholdType() != ThresholdType.ACTUAL_IS_OVER_EXPECTED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be AND instead of OR?
break; | ||
case VALUE_FIELD: | ||
value = parser.doubleValue(); | ||
if (parser.currentToken() == XContentParser.Token.VALUE_NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: add same comment as line 75?
@@ -89,7 +90,7 @@ public boolean shouldSave() { | |||
} | |||
|
|||
public abstract List<IndexableResultType> toIndexableResults( | |||
String configId, | |||
Config configId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - Config config
Description
This PR expands on the custom supression rules that we have added in 2.17. Users now have the ability to configures rules which have x number of conditions in them regarding the feature.
Rules can look like this:
This rule means that we will ignore anomalies if the actual value is less than or equal too 30% higher than the expected.
For example: "Ignore anomalies for feature logVolume when the actual value is no more than 30% above the expected value."
These first sets of threshold are based on either ration or value margin between the actual and expected value compared to a given value by the user. These rules are given to the RCF model and RCF code takes care of applying these.
In this PR we are adding two more generic rules that are simply checking if the actual value is below or above the expected value. These rules wont need a value or operator as they are more absolute comparison. Currently RCF doesn’t have the logic to handles such rules so we decided to go with the approach of overriding the anomaly grade in the Anomaly Result. This takes care of both historical, real time and preview results.
Newly accepted payloads:
or
Edge cases:
Related Issues
#616
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.