private WebEndpointResponse<Health> createWebEndpointResponse(Health health) { Integer status = this.statusHttpMapper.mapStatus(health.getStatus()); return new WebEndpointResponse<>(health, status); }
@GetMapping("/health") public ResponseEntity<Map> getHealth() { Health health = healthEndpoint.health(); Map body = new HashMap(); body.put("status", health.getStatus().getCode()); body.put("zipkin", health.getDetails().get("zipkin")); return ResponseEntity.status(statusMapper.mapStatus(health.getStatus())).body(body); }