类 CompositeHealthIndicator
- java.lang.Object
- org.springframework.boot.actuate.health.CompositeHealthIndicator
- 所有已实现的接口:
HealthIndicator
public class CompositeHealthIndicator extends Object implements HealthIndicator
HealthIndicator
that returns health indications from all registered delegates.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 CompositeHealthIndicator(HealthAggregator healthAggregator)
Create a newCompositeHealthIndicator
.CompositeHealthIndicator(HealthAggregator healthAggregator, Map<String,HealthIndicator> indicators)
Create a newCompositeHealthIndicator
from the specified indicators.
构造器详细资料
CompositeHealthIndicator
public CompositeHealthIndicator(HealthAggregator healthAggregator)
Create a newCompositeHealthIndicator
.- 参数:
healthAggregator
- the health aggregator
CompositeHealthIndicator
public CompositeHealthIndicator(HealthAggregator healthAggregator, Map<String,HealthIndicator> indicators)
Create a newCompositeHealthIndicator
from the specified indicators.- 参数:
healthAggregator
- the health aggregatorindicators
- a map ofHealthIndicator
s with the key being used as an indicator name.
方法详细资料
addHealthIndicator
public void addHealthIndicator(String name, HealthIndicator indicator)
health
public Health health()
从接口复制的说明:HealthIndicator
Return an indication of health.- 指定者:
health
在接口中HealthIndicator
- 返回:
- the health for