@Path(value="/") @RequestScoped public class HealthEndpoint extends java.lang.Object
| Constructor and Description |
|---|
HealthEndpoint(Instance<HealthCheck> healthCheckSource,
java.util.List<java.lang.String> includedHealthChecks,
java.util.List<java.lang.String> excludedHealthChecks)
Creates a new HealthEndpoint.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
getHealth()
Gets an HTTP Response in the form of JSON to a request for health.
|
@Inject public HealthEndpoint(@Health Instance<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.