Skip to content

Commit

Permalink
Merge pull request #387 from OpsMx/Feature/OP-20624-v4.0
Browse files Browse the repository at this point in the history
OP_20624 : Added url mapping for Alerts summary api
  • Loading branch information
srikanthopsmx authored Jun 29, 2023
2 parents 3141211 + f60a126 commit d522cb4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,22 @@ class OpsmxSsdController {
@RequestMapping(value = "/{version}/{type}", method = RequestMethod.GET)
Object getSsdResponse(@PathVariable("version") String version,
@PathVariable("type") String type,
@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 = "pageNo", required = false) Integer pageNo,
@RequestParam(value = "pageLimit", required = false) Integer pageLimit,
@RequestParam(value = "sortBy", required = false) String sortBy,
@RequestParam(value = "sortOrder", required = false) String sortOrder,
@RequestParam(value = "search", required = false) String search,
@RequestParam(value = "noOfDays", required = false) Integer noOfDays,
@RequestParam(value = "policy", required = false) String policy,
@RequestParam(value = "typeList", required = false) String typeList) {
return opsMxSsdService.getSddResponse1(version, type, appId, image, appName, typeList)
return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy,typeList)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ import retrofit.http.Path
import retrofit.http.Query

interface OpsmxSsdService {

@GET("/ssdservice/{version}/{type}")
Object getSddResponse1(@Path('version') String version,
@Path('type') String type,
@Query("appId") Integer appId,
@Query("account") Integer account,
@Query("appId") String appId,
@Query("image") String image,
@Query("imageTag") String imageTag,
@Path('stage') String stage,
@Query("deployedAt") Integer deployedAt,
@Query("appName") String appName,
@Query("pageNo") String pageNo,
@Query("pageLimit") String pageLimit,
@Query("sortBy") Integer sortBy,
@Query("sortOrder") String sortOrder,
@Query("search") String search,
@Query("noOfDays") String noOfDays,
@Query("policy") String policy,
@Query("typeList") String typeList)

@GET("/ssdservice/{version}/{type}/{source}")
Expand Down

0 comments on commit d522cb4

Please sign in to comment.