Constructor and Description |
---|
HealthEndpoint(HealthIndicator healthIndicator)
Create a new
HealthEndpoint instance that will use the given
healthIndicator to generate its response. |
Modifier and Type | Method and Description |
---|---|
Health |
health() |
Health |
healthForComponent(String component)
Return the
Health of a particular component or null if such
component does not exist. |
Health |
healthForComponentInstance(String component,
String instance)
Return the
Health of a particular instance managed by the specified
component or null if that particular component is not a
CompositeHealthIndicator or if such instance does not exist. |
public HealthEndpoint(HealthIndicator healthIndicator)
HealthEndpoint
instance that will use the given
healthIndicator
to generate its response.healthIndicator
- the health indicator@ReadOperation public Health health()
@ReadOperation public Health healthForComponent(@Selector String component)
Health
of a particular component or null
if such
component does not exist.component
- the name of a particular HealthIndicator
Health
for the component or null
@ReadOperation public Health healthForComponentInstance(@Selector String component, @Selector String instance)
Health
of a particular instance
managed by the specified
component
or null
if that particular component is not a
CompositeHealthIndicator
or if such instance does not exist.component
- the name of a particular CompositeHealthIndicator
instance
- the name of an instance managed by that componentHealth
for the component instance of null
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.