Skip to content

Commit

Permalink
OP-12054: Added days parameter (#160)
Browse files Browse the repository at this point in the history
* OP-12054: Fushion-Charts: New API to support fushion charts.

* OP-12054: Fushion-Charts: Removed old apis to resolve ambiguity.

* OP-12054: Fushion-Charts: Removed old apis to resolve ambiguity.

* OP-12054: Fushion-Charts: Renamed to meet standards

* OP-12054: Fushion-Charts: Modified exiting urls to support all versions

* OP-12054: Removed commented parts of code.
  • Loading branch information
rahul-chekuri authored Mar 9, 2022
1 parent 315aab6 commit 4c8e7e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ class OpsmxAuditClientServiceController {

@ApiOperation(value = "Endpoint for audit-client rest services")
@RequestMapping(value = "/{version}/{type}/{source}", method = RequestMethod.GET)
Object getAuditClientResponse2(@PathVariable("version") String version,
Object getDeliveryInsightCharts(@PathVariable("version") String version,
@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)
@RequestParam(value = "endTime", required = false) Long endTime,
@RequestParam(value = "days", required = false) Integer days) {
return opsmxAuditClientService.getDeliveryInsightCharts(version, type, source, chartId, startTime, endTime, days)
}

@ApiOperation(value = "Endpoint for audit-client rest services")
Expand Down Expand Up @@ -160,8 +161,9 @@ class OpsmxAuditClientServiceController {
@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) {
Response response = opsmxAuditClientService.downloadDeliveryInsightsCSVFile(version, type, source, chartId, startTime, endTime)
@RequestParam(value = "endTime", required = false) Long endTime,
@RequestParam(value = "days", required = false) Integer days) {
Response response = opsmxAuditClientService.downloadDeliveryInsightsCSVFile(version, type, source, chartId, startTime, endTime, days)
log.info("response for the delivery insights endpoint:" + response.getHeaders())
if (response.getBody()!=null) {
InputStream inputStream = response.getBody().in()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ interface OpsmxAuditClientService {
@Path('type') String type)

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

@GET("/auditclientservice/{version}/{type}/{source}/{source1}")
Object getAuditClientResponse3(@Path('version') String version,
Expand Down Expand Up @@ -98,6 +99,6 @@ interface OpsmxAuditClientService {
@Path('source') String source,
@Query('chartId') Integer chartId,
@Query('startTime') Long startTime,
@Query('endTime') Long endTime)

@Query('endTime') Long endTime,
@Query('days') Integer days)
}

0 comments on commit 4c8e7e8

Please sign in to comment.