-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add custom result index lifecycle management condition fields to config #1215
Add custom result index lifecycle management condition fields to config #1215
Conversation
Signed-off-by: Jackie Han <[email protected]>
Signed-off-by: Jackie Han <[email protected]>
@@ -268,14 +277,23 @@ public AnomalyDetector(StreamInput input) throws IOException { | |||
if (input.readBoolean()) { | |||
this.rules = input.readList(Rule::new); | |||
} | |||
if (input.readBoolean()) { |
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.
You can use readOptionalInt now.
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.
good catch! forgot to update this part
@@ -294,6 +306,21 @@ public Config(StreamInput input) throws IOException { | |||
this.recencyEmphasis = input.readInt(); | |||
this.seasonIntervals = input.readInt(); | |||
this.historyIntervals = input.readInt(); | |||
if (input.readBoolean()) { |
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.
You can use readOptionalInt now.
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.
Updated
Signed-off-by: Jackie Han <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1215 +/- ##
============================================
- Coverage 80.39% 71.69% -8.70%
- Complexity 4589 4844 +255
============================================
Files 336 517 +181
Lines 19118 22731 +3613
Branches 1993 2248 +255
============================================
+ Hits 15369 16296 +927
- Misses 2796 5407 +2611
- Partials 953 1028 +75
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Jackie Han <[email protected]>
…ig (#1215) * Add custom result index lifecycle management condition fields to config Signed-off-by: Jackie Han <[email protected]> * add more tests Signed-off-by: Jackie Han <[email protected]> * utilizing readOptionalInt() method when reading nullable value Signed-off-by: Jackie Han <[email protected]> * add more tests Signed-off-by: Jackie Han <[email protected]> --------- Signed-off-by: Jackie Han <[email protected]> (cherry picked from commit 05b04b9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ig (#1215) (#1216) * Add custom result index lifecycle management condition fields to config * add more tests * utilizing readOptionalInt() method when reading nullable value * add more tests --------- (cherry picked from commit 05b04b9) Signed-off-by: Jackie Han <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Add custom result index lifecycle management condition fields to config
Issues Resolved
#1213
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.