@ReadOperation public WebEndpointResponse<Health> healthForComponent(SecurityContext securityContext, @Selector String component) { Supplier<Health> health = () -> this.delegate.healthForComponent(component); return this.responseMapper.mapDetails(health, securityContext); }
@SshdShellCommand(value = "component", description = "Health for component") public String healthForComponent(String arg) { if (StringUtils.isEmpty(arg)) { return "Usage: health component <component>"; } return JsonUtils.asJson(healthEndpoint.healthForComponent(arg)); }