接口 HealthAggregator
public interface HealthAggregator
Strategy interface used byCompositeHealthIndicator
to aggregateHealth
instances into a final one.This is especially useful to combine subsystem states expressed through
Health.getStatus()
into one state for the entire system. The default implementationOrderedHealthAggregator
sortsStatus
instances based on a priority list.It is possible to add more complex
Status
types to the system. In that case either theOrderedHealthAggregator
needs to be properly configured or users need to register a customHealthAggregator
as bean.- 从以下版本开始:
- 1.1.0