@RequestMapping(value = "/{appName}", method = RequestMethod.GET) public HttpEntity<AutoscaledAppResource> get(@PathVariable String appName) throws InterruptedException, ExecutionException { AppInfo app = autoscalingManager.getApp(appName).get(); AutoscaledAppResource ar = new AutoscaledAppResource(appName); ar.setMetrics(app.getMetrics()); ar.setInstanceCount(app.getInstanceCount()); ar.setScalingEvents(app.getScalingEvents()); ar.setActiveAlarms(app.getActiveAlarms()); ar.add(linkTo(AutoscaledAppController.class).slash(appName).withSelfRel()); ar.add(linkTo(AutoscaledAppController.class).slash(appName).slash("rules").withRel("rules")); return new HttpEntity<AutoscaledAppResource>(ar); }