类 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
.- 从以下版本开始:
- 2.0.0
- 作者:
- Christian Dupuis, Dave Syer, Andy Wilkinson, Phillip Webb, Eddú Meléndez, Madhura Bhave, Stephane Nicoll, Scott Frederick
-
构造器概要
构造器构造器说明HealthEndpointWebExtension
(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpointWebExtension
instance. -
方法概要
修饰符和类型方法说明protected 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)
-
构造器详细资料
-
HealthEndpointWebExtension
public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpointWebExtension
instance.- 参数:
registry
- the health contributor registrygroups
- the health endpoint groupsslowIndicatorLoggingThreshold
- duration after which slow health indicator logging should occur- 从以下版本开始:
- 2.6.9
-
-
方法详细资料
-
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)
-