@ConfigurationProperties(prefix="endpoints.health") public class HealthEndpoint extends AbstractEndpoint<Health>
Endpoint
to expose application health.Constructor and Description |
---|
HealthEndpoint(HealthAggregator healthAggregator,
Map<String,HealthIndicator> healthIndicators)
Create a new
HealthEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
long |
getTimeToLive()
Time to live for cached result.
|
Health |
invoke()
Invoke all
HealthIndicator delegates and collect their health information. |
void |
setTimeToLive(long ttl) |
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
public HealthEndpoint(HealthAggregator healthAggregator, Map<String,HealthIndicator> healthIndicators)
HealthEndpoint
instance.healthAggregator
- the health aggregatorhealthIndicators
- the health indicatorspublic long getTimeToLive()
public void setTimeToLive(long ttl)
public Health invoke()
HealthIndicator
delegates and collect their health information.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.