Class HealthEndpoint
java.lang.Object
org.springframework.boot.actuate.health.HealthEndpoint
@Endpoint
to expose application health information.- Since:
- 2.0.0
- Author:
- Dave Syer, Christian Dupuis, Andy Wilkinson, Stephane Nicoll, Scott Frederick
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHealthEndpoint
(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpoint
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected HealthComponent
aggregateContributions
(ApiVersion apiVersion, Map<String, HealthComponent> contributions, StatusAggregator statusAggregator, boolean showComponents, Set<String> groupNames) protected final CompositeHealth
getCompositeHealth
(ApiVersion apiVersion, Map<String, HealthComponent> components, StatusAggregator statusAggregator, boolean showComponents, Set<String> groupNames) protected HealthComponent
getHealth
(HealthContributor contributor, boolean includeDetails) health()
healthForPath
(String... path)
-
Field Details
-
ID
Health endpoint id.
-
-
Constructor Details
-
HealthEndpoint
public HealthEndpoint(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpoint
instance.- Parameters:
registry
- the health contributor registrygroups
- the health endpoint groupsslowIndicatorLoggingThreshold
- duration after which slow health indicator logging should occur- Since:
- 2.6.9
-
-
Method Details
-
health
-
healthForPath
-
getHealth
-
aggregateContributions
protected HealthComponent aggregateContributions(ApiVersion apiVersion, Map<String, HealthComponent> contributions, StatusAggregator statusAggregator, boolean showComponents, Set<String> groupNames) -
getCompositeHealth
protected final CompositeHealth getCompositeHealth(ApiVersion apiVersion, Map<String, HealthComponent> components, StatusAggregator statusAggregator, boolean showComponents, Set<String> groupNames)
-