From f83d8950ae4b506a8ce20c2c504e2a1bdca76b28 Mon Sep 17 00:00:00 2001 From: sriharshakancharla Date: Tue, 8 Aug 2023 12:04:20 +0530 Subject: [PATCH] OP-20851 : Added severity query param --- .../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 f66192b390..f14a3659f4 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 @@ -89,8 +89,9 @@ class OpsmxSsdController { @RequestParam(value = "alertName", required = false) String alertName, @RequestParam(value = "id", required = false) String id, @RequestParam(value = "startTime", required = false) String startTime, - @RequestParam(value = "endTime", required = false) String endTime) { - return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy,typeList, alertName, id, startTime, endTime) + @RequestParam(value = "endTime", required = false) String endTime, + @RequestParam(value = "severity", required = false) String severity) { + 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) } @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 b0a6d45cff..e3ce6b9797 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 @@ -46,7 +46,8 @@ interface OpsmxSsdService { @Query("alertName") String alertName, @Query("id") String id, @Query("startTime") String startTime, - @Query("endTime") String endTime) + @Query("endTime") String endTime, + @Query("severity") String severity) @GET("/ssdservice/{version}/{type}/{source}") Object getSddResponse2(@Path('version') String version,