From adae9be6ad0182d9a71fa6f99f220d5db5cc8a13 Mon Sep 17 00:00:00 2001 From: sriharshakancharla Date: Tue, 23 Jan 2024 11:50:29 +0530 Subject: [PATCH] OP-21655 : Added query param for application data --- .../spinnaker/gate/controllers/OpsmxSsdController.groovy | 5 ++++- .../spinnaker/gate/services/internal/OpsmxSsdService.groovy | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 2f3fc4eaf2..5306e79735 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 @@ -214,6 +214,9 @@ class OpsmxSsdController { @RequestParam(value = "account", required = false) String account, @RequestParam(value = "appId", required = false) Integer appId, @RequestParam(value = "image", required = false) String image, + @RequestParam(value = "imageTag", required = false) String imageTag, + @RequestParam(value = "stage", required = false) String stage, + @RequestParam(value = "deployedAt", required = false) String deployedAt, @RequestParam(value = "appName", required = false) String appName, @RequestParam(value = "noOfDays", required = false) Integer noOfDays, @RequestParam(value = "pageNo", required = false) Integer pageNo, @@ -225,7 +228,7 @@ class OpsmxSsdController { @RequestParam(value = "sortOrder", required = false) String sortOrder, @RequestParam(value = "id", required = false) String id, @RequestParam(value = "dbomType", required = false) String dbomType) { - return opsMxSsdService.getSddResponse3(version, type, source, source1,account , appId, image, appName, noOfDays, pageNo, pageLimit, kind, search, service,sortBy,sortOrder, id, dbomType) + return opsMxSsdService.getSddResponse3(version, type, source, source1,account , appId, image, imageTag, stage, deployedAt, appName, noOfDays, pageNo, pageLimit, kind, search, service,sortBy,sortOrder, id, dbomType) } @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 5923b5c6ca..47f9569c40 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 @@ -99,6 +99,9 @@ interface OpsmxSsdService { @Query("account") String account, @Query("appId") Integer appId, @Query("image") String image, + @Query("imageTag") String imageTag, + @Query("stage") String stage, + @Query("deployedAt") String deployedAt, @Query("appName") String appName, @Query("noOfDays") Integer noOfDays, @Query("pageNo") Integer pageNo,