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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]