@Path("/")
@RequestScoped
public class HealthEndpoint
extends java.lang.Object
| Constructor | Description |
|---|---|
HealthEndpoint(javax.enterprise.inject.Instance<org.eclipse.microprofile.health.HealthCheck> healthCheckSource,
java.util.List<java.lang.String> includedHealthChecks,
java.util.List<java.lang.String> excludedHealthChecks) |
Creates a new HealthEndpoint.
|
| Modifier and Type | Method | Description |
|---|---|---|
javax.ws.rs.core.Response |
getHealth() |
Gets an HTTP Response in the form of JSON to a request for health.
|
@Inject
public HealthEndpoint(@Health
javax.enterprise.inject.Instance<org.eclipse.microprofile.health.HealthCheck> healthCheckSource,
java.util.List<java.lang.String> includedHealthChecks,
java.util.List<java.lang.String> excludedHealthChecks)
healthCheckSource - The health checks as discovered by CDIincludedHealthChecks - The list of health checks that should be included. Anything not in this list is
automatically excluded. Can have splat ('*')excludedHealthChecks - The list of health checks to exclude.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.