Skip to content

Commit

Permalink
address Tyler's comments; add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaituo committed Jul 8, 2021
1 parent 0dee272 commit 69490ff
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*
*/
public class CompositeRetriever extends AbstractRetriever {
private static final String AGG_NAME_COMP = "comp_agg";
public static final String AGG_NAME_COMP = "comp_agg";
private static final Logger LOG = LogManager.getLogger(CompositeRetriever.class);

private final long dataStartEpoch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ private Entity buildEntity(RestRequest request, String detectorId) throws IOExce

if (entityName != null && entityValue != null) {
// single-stream profile request:
// GET _opendistro/_anomaly_detection/detectors/<detectorId>/_profile/init_progress?category_field=<field-name>&entity=<value>
// GET _plugins/_anomaly_detection/detectors/<detectorId>/_profile/init_progress?category_field=<field-name>&entity=<value>
return Entity.createSingleAttributeEntity(detectorId, entityName, entityValue);
} else if (request.hasContent()) {
/* HCAD profile request:
* GET _opendistro/_anomaly_detection/detectors/<detectorId>/_profile/init_progress
* GET _plugins/_anomaly_detection/detectors/<detectorId>/_profile/init_progress
* {
* "entity": [{
* "name": "clientip",
Expand Down
Loading

0 comments on commit 69490ff

Please sign in to comment.