Modifier and Type | Field and Description |
---|---|
static EndpointId |
ID
Health endpoint id.
|
Constructor and Description |
---|
HealthEndpoint(HealthContributorRegistry registry,
HealthEndpointGroups groups)
Deprecated.
since 2.6.9 for removal in 3.0.0 in favor of
HealthEndpoint(HealthContributorRegistry, HealthEndpointGroups, Duration) |
HealthEndpoint(HealthContributorRegistry registry,
HealthEndpointGroups groups,
Duration slowIndicatorLoggingThreshold)
Create a new
HealthEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
protected HealthComponent |
aggregateContributions(ApiVersion apiVersion,
Map<String,HealthComponent> contributions,
StatusAggregator statusAggregator,
boolean showComponents,
Set<String> groupNames) |
protected CompositeHealth |
getCompositeHealth(ApiVersion apiVersion,
Map<String,HealthComponent> components,
StatusAggregator statusAggregator,
boolean showComponents,
Set<String> groupNames) |
protected HealthComponent |
getHealth(HealthContributor contributor,
boolean includeDetails) |
HealthComponent |
health() |
HealthComponent |
healthForPath(String... path) |
public static final EndpointId ID
@Deprecated public HealthEndpoint(HealthContributorRegistry registry, HealthEndpointGroups groups)
HealthEndpoint(HealthContributorRegistry, HealthEndpointGroups, Duration)
HealthEndpoint
instance.registry
- the health contributor registrygroups
- the health endpoint groupspublic HealthEndpoint(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold)
HealthEndpoint
instance.registry
- the health contributor registrygroups
- the health endpoint groupsslowIndicatorLoggingThreshold
- duration after which slow health indicator
logging should occur@ReadOperation public HealthComponent health()
@ReadOperation public HealthComponent healthForPath(@Selector(match=ALL_REMAINING) String... path)
protected HealthComponent getHealth(HealthContributor contributor, boolean includeDetails)
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)