+ @ApiOperation(value = "Gets the kibana metrics URL for the specified app.", response = SuccessTransport.class)
+ @GetMapping(XAPPMETRICS_METHOD)
+ public IDashboardResponse getAppMetricsUrl(@RequestParam String app, HttpServletResponse response) {
+ if (DashboardConstants.APP_NAME_AC.equals(app)) {
+ logger.debug("getAppMetricsUrl: acAppMetricsUrl {}", acAppMetricsUrl);
+ return new SuccessTransport(200, acAppMetricsUrl);
+ } else {
+ response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
+ return new ErrorTransport(400, "Client provided app name is invalid as: " + app);
+ }
+ }