xiaohui-sun closed pull request #3619:  [TE] get all subscription groups 
endpoint
URL: https://github.com/apache/incubator-pinot/pull/3619
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/DetectionResource.java
 
b/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/DetectionResource.java
index 9a6376a4af..8eea427fc7 100644
--- 
a/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/DetectionResource.java
+++ 
b/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/DetectionResource.java
@@ -17,7 +17,6 @@
 package com.linkedin.thirdeye.detection;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.linkedin.thirdeye.anomaly.detection.DetectionJobSchedulerUtils;
 import com.linkedin.thirdeye.api.Constants;
 import com.linkedin.thirdeye.constant.AnomalyResultSource;
 import com.linkedin.thirdeye.datalayer.bao.DatasetConfigManager;
@@ -138,6 +137,16 @@ public Response getSubscriptionGroups(@ApiParam("the 
detection config id") @Path
     return Response.ok(new ArrayList<>(subscriptionGroupAlertDTOs)).build();
   }
 
+
+  @Path("/subscription-groups")
+  @GET
+  @ApiOperation("get all detection alert configs")
+  public Response getAllSubscriptionGroups(){
+    List<DetectionAlertConfigDTO> detectionAlertConfigDTOs = 
this.detectionAlertConfigDAO.findAll();
+    return Response.ok(detectionAlertConfigDTOs).build();
+  }
+
+
   @POST
   @Path("/preview")
   public Response detectionPreview(


 

----------------------------------------------------------------
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]

Reply via email to