-
Notifications
You must be signed in to change notification settings - Fork 36
Adding RestActions support for Detector Stats API #237
Conversation
Adding Unit Tests in the coming commit. |
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
============================================
+ Coverage 71.97% 72.08% +0.11%
- Complexity 1284 1294 +10
============================================
Files 143 146 +3
Lines 5980 6005 +25
Branches 469 469
============================================
+ Hits 4304 4329 +25
- Misses 1462 1463 +1
+ Partials 214 213 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -20,7 +20,7 @@ | |||
|
|||
public class SearchAnomalyDetectorAction extends ActionType<SearchResponse> { | |||
public static final SearchAnomalyDetectorAction INSTANCE = new SearchAnomalyDetectorAction(); | |||
public static final String NAME = "cluster:admin/opendistro/ad/detector/search"; | |||
public static final String NAME = "cluster:admin/ad/search/detector"; |
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.
The old name sound more reasonable.
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, that was some merge issue which showed up here.
Cleaned it up with another commit.
@@ -249,6 +249,7 @@ List<String> jacocoExclusions = [ | |||
'com.amazon.opendistroforelasticsearch.ad.AnomalyDetectorRunner', | |||
'com.amazon.opendistroforelasticsearch.ad.indices.AnomalyDetectionIndices', | |||
'com.amazon.opendistroforelasticsearch.ad.util.ParseUtils', | |||
'com.amazon.opendistroforelasticsearch.ad.transport.StatsAnomalyDetectorTransportAction' |
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.
As we are already covering them in our IntegTests, its getting complicated to unit test it.
*Issue #195 *
Description of changes:
Adding RestActions support Detector Stats API which is needed for FGAC support.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.