Skip to content

Commit

Permalink
Merge pull request #58 from OpsMx/OP-7631_gate_charts_api
Browse files Browse the repository at this point in the history
Op 7631 gate charts api
  • Loading branch information
sriharshakancharla authored Oct 11, 2021
2 parents 8203c0a + 87e6172 commit af50266
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ class OpsmxAuditClientServiceController {
@ApiOperation(value = "Endpoint for audit-client rest services")
@RequestMapping(value = "/{version}/{type}/{source}", method = RequestMethod.GET)
Object getAuditClientResponse2(@PathVariable("version") String version,
@PathVariable("type") String type,
@PathVariable("source") String source) {
return opsmxAuditClientService.getAuditClientResponse2(version, type, source)
@PathVariable("type") String type,
@PathVariable("source") String source,
@RequestParam(value = "chartId", required = false) Integer chartId,
@RequestParam(value = "startTime", required = false) Long startTime,
@RequestParam(value = "endTime", required = false) Long endTime) {
return opsmxAuditClientService.getAuditClientResponse2(version, type, source, chartId, startTime, endTime)
}

@ApiOperation(value = "Endpoint for audit-client rest services")
Expand Down Expand Up @@ -145,4 +148,5 @@ class OpsmxAuditClientServiceController {
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ interface OpsmxAuditClientService {

@GET("/auditclientservice/{version}/{type}/{source}")
Object getAuditClientResponse2(@Path('version') String version,
@Path('type') String type,
@Path('source') String source)
@Path('type') String type,
@Path('source') String source,
@Query('chartId') Integer chartId,
@Query('startTime') Long startTime,
@Query('endTime') Long endTime)

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

0 comments on commit af50266

Please sign in to comment.