@ConfigurationProperties(prefix="endpoints.health", ignoreUnknownFields=true) public class HealthEndpoint extends AbstractEndpoint<Health>
Endpoint
to expose application health.Constructor and Description |
---|
HealthEndpoint(HealthAggregator healthAggregator,
Map<String,HealthIndicator> healthIndicators)
Create a new
HealthIndicator 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) |
getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
public HealthEndpoint(HealthAggregator healthAggregator, Map<String,HealthIndicator> healthIndicators)
HealthIndicator
instance.public long getTimeToLive()
public void setTimeToLive(long ttl)
public Health invoke()
HealthIndicator
delegates and collect their health information.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.