-
Notifications
You must be signed in to change notification settings - Fork 36
Adding RestActions support for Get Detector API #242
Conversation
Codecov Report
@@ Coverage Diff @@
## master #242 +/- ##
============================================
- Coverage 72.86% 71.57% -1.29%
- Complexity 1329 1350 +21
============================================
Files 149 153 +4
Lines 6194 6406 +212
Branches 480 490 +10
============================================
+ Hits 4513 4585 +72
- Misses 1456 1589 +133
- Partials 225 232 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
public XContentBuilder toXContent(XContentBuilder builder) throws IOException { | ||
return toXContent(builder, ToXContent.EMPTY_PARAMS); | ||
} | ||
|
||
public void writeTo(StreamOutput output) throws IOException { |
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 we override Writeable.writeTo
method like Feature
class?
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.
Sure thats a good point.
Will make changes for both AnomalyDetector and AnomalyDetectorJob
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.
LGTM, thanks for adding
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.
LGTM. Thanks for the change!
*Issue #195 *
Description of changes:
Adding RestActions support for Get Detector API
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.