@RequestMapping(value = "os", method = RequestMethod.GET) public String os(@RequestParam String node) { try { XContentBuilder result = monitorService.os(node.toLowerCase()); return result.string(); } catch (IOException e) { throw new uContentException(e, HttpStatus.INTERNAL_SERVER_ERROR); } }
@RequestMapping(value = "nodes", method = RequestMethod.GET) public String nodes() { try { XContentBuilder result = monitorService.nodes(); return result.string(); } catch (IOException e) { throw new uContentException(e, HttpStatus.INTERNAL_SERVER_ERROR); } }