From 2351c4be2e648bd12e5477fe738aa6190df162bd Mon Sep 17 00:00:00 2001 From: sriharshakancharla Date: Thu, 12 Oct 2023 09:30:04 +0530 Subject: [PATCH] OP-21271 : Added new query param for tags for the alerts APIs --- .../spinnaker/gate/controllers/OpsmxSsdController.groovy | 5 +++-- .../spinnaker/gate/services/internal/OpsmxSsdService.groovy | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy index badb404f42..9e0d91297d 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxSsdController.groovy @@ -95,8 +95,9 @@ class OpsmxSsdController { @RequestParam(value = "endTime", required = false) String endTime, @RequestParam(value = "severity", required = false) String severity, @RequestParam(value = "scope", required = false) String scope, - @RequestParam(value = "current", required = false) String current){ - return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy,typeList, alertName, id, startTime, endTime, severity,scope, current) + @RequestParam(value = "current", required = false) String current, + @RequestParam(value = "tag", required = false) String tag) { + return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy, typeList, alertName, id, startTime, endTime, severity, scope, current, tag) } @ApiOperation(value = "Endpoint for ssd services") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy index 24933af526..0930a2055e 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxSsdService.groovy @@ -49,7 +49,8 @@ interface OpsmxSsdService { @Query("endTime") String endTime, @Query("severity") String severity, @Query("scope") String scope, - @Query("current") String current) + @Query("current") String current, + @Query("tag") String tag) @GET("/ssdservice/{version}/{type}/{source}") Object getSddResponse2(@Path('version') String version,