Class HealthEndpointWebExtension
java.lang.Object
org.springframework.boot.actuate.health.HealthEndpointWebExtension
@EndpointWebExtension(endpoint=HealthEndpoint.class)
@ImportRuntimeHints(org.springframework.boot.actuate.health.HealthEndpointWebExtensionRuntimeHints.class)
public class HealthEndpointWebExtension
extends Object
@EndpointWebExtension
for the HealthEndpoint
.- Since:
- 2.0.0
- Author:
- Christian Dupuis, Dave Syer, Andy Wilkinson, Phillip Webb, EddĂș MelĂ©ndez, Madhura Bhave, Stephane Nicoll, Scott Frederick
-
Constructor Summary
ConstructorDescriptionHealthEndpointWebExtension
(HealthContributorRegistry registry, HealthEndpointGroups groups) Deprecated.HealthEndpointWebExtension
(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpointWebExtension
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
(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext) health
(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, boolean showAll, String... path) health
(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, String... path)
-
Constructor Details
-
HealthEndpointWebExtension
@Deprecated public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups) Deprecated.since 2.6.9 for removal in 3.0.0 in favor ofHealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups, Duration)
Create a newHealthEndpointWebExtension
instance.- Parameters:
registry
- the health contributor registrygroups
- the health endpoint groups
-
HealthEndpointWebExtension
public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpointWebExtension
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
@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext) -
health
@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, @Selector(match=ALL_REMAINING) String... path) -
health
public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, boolean showAll, String... path) -
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)
-
HealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups, Duration)