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) 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
Create a newHealthEndpoint
instance.- Parameters:
registry
- the health contributor registrygroups
- the health endpoint groups
-
-
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)
-