You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2019/01/28 23:55:29 UTC

[GitHub] jihaozh commented on a change in pull request #3755: [TE] detection - report missing anomaly endpoint for pipeline v2

jihaozh commented on a change in pull request #3755: [TE] detection - report missing anomaly endpoint for pipeline v2
URL: https://github.com/apache/incubator-pinot/pull/3755#discussion_r251643130
 
 

 ##########
 File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/DetectionResource.java
 ##########
 @@ -427,4 +423,54 @@ public Response detectionReplay(
 
     return Response.ok(result).build();
   }
+
+
+  /**
+   * Create a user-reported anomaly for a new detection pipeline
+   *
+   * @param detectionConfigId detection config id (must exist)
+   * @param startTime start time utc (in millis)
+   * @param endTime end time utc (in millis)
+   * @param metricUrn the metric urn of the anomaly
+   * @param feedbackType anomaly feedback type
+   * @param comment anomaly feedback comment (optional)
+   * @throws IllegalArgumentException if the anomaly function id cannot be found
+   * @throws IllegalArgumentException if the anomaly cannot be stored
+   */
+  @POST
+  @Path(value = "/report-anomaly/{detectionConfigId}")
+  @ApiOperation("Report a missing anomaly for a detection config")
+  public void createUserAnomaly(
 
 Review comment:
   good idea. changed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org