Skip to content

Commit

Permalink
OP-20635 & OP-20636 : URL mappings for Alerts dropdown and alerts sum…
Browse files Browse the repository at this point in the history
…mary APIs
  • Loading branch information
sriharshakancharla committed Jun 27, 2023
1 parent 448c732 commit 539b4f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ class OpsmxSsdController {
@PathVariable("type") String type,
@RequestParam(value = "appId", required = false) Integer appId,
@RequestParam(value = "image", required = false) String image,
@RequestParam(value = "appName", required = false) String appName) {
return opsMxSsdService.getSddResponse1(version, type, appId, image, appName)
@RequestParam(value = "appName", required = false) String appName,
@RequestParam(value = "typeList", required = false) String typeList) {
return opsMxSsdService.getSddResponse1(version, type, appId, image, appName, typeList)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand All @@ -70,8 +71,9 @@ class OpsmxSsdController {
@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) {
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays)
@RequestParam(value = "noOfDays", required = false) Integer noOfDays,
@RequestParam(value = "alertName", required = false) String alertName) {
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ interface OpsmxSsdService {
@Path('type') String type,
@Query("appId") Integer appId,
@Query("image") String image,
@Query("appName") String appName)
@Query("appName") String appName,
@Query("typeList") String typeList)

@GET("/ssdservice/{version}/{type}/{source}")
Object getSddResponse2(@Path('version') String version,
Expand All @@ -46,7 +47,8 @@ interface OpsmxSsdService {
@Query("sortBy") String sortBy,
@Query("sortOrder") String sortOrder,
@Query("search") String search,
@Query("noOfDays") Integer noOfDays)
@Query("noOfDays") Integer noOfDays,
@Query("alertName") Integer alertName)

@GET("/ssdservice/{version}/{type}/{source}/{source1}")
Object getSddResponse3(@Path('version') String version,
Expand Down

0 comments on commit 539b4f9

Please sign in to comment.