类 HealthEndpoint
java.lang.Object
org.springframework.boot.actuate.health.HealthEndpoint
@Endpoint
to expose application health information.- 从以下版本开始:
- 2.0.0
- 作者:
- Dave Syer, Christian Dupuis, Andy Wilkinson, Stephane Nicoll, Scott Frederick
-
字段概要
字段 -
构造器概要
构造器构造器说明HealthEndpoint
(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpoint
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()
healthForPath
(String... path)
-
字段详细资料
-
ID
Health endpoint id.
-
-
构造器详细资料
-
HealthEndpoint
public HealthEndpoint(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold) Create a newHealthEndpoint
instance.- 参数:
registry
- the health contributor registrygroups
- the health endpoint groupsslowIndicatorLoggingThreshold
- duration after which slow health indicator logging should occur- 从以下版本开始:
- 2.6.9
-
-
方法详细资料
-
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)
-