@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 timeToLive)
Set the time to live for cached results.
|
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 timeToLive)
timeToLive
- the time to live in millisecondspublic Health invoke()
HealthIndicator
delegates and collect their health information.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.