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,
java.time.Duration slowIndicatorLoggingThreshold)
Create a new
HealthEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
protected HealthComponent |
aggregateContributions(ApiVersion apiVersion,
java.util.Map<java.lang.String,HealthComponent> contributions,
StatusAggregator statusAggregator,
boolean showComponents,
java.util.Set<java.lang.String> groupNames) |
protected CompositeHealth |
getCompositeHealth(ApiVersion apiVersion,
java.util.Map<java.lang.String,HealthComponent> components,
StatusAggregator statusAggregator,
boolean showComponents,
java.util.Set<java.lang.String> groupNames) |
protected HealthComponent |
getHealth(HealthContributor contributor,
boolean includeDetails) |
HealthComponent |
health() |
HealthComponent |
healthForPath(java.lang.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, java.time.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) java.lang.String... path)
protected HealthComponent getHealth(HealthContributor contributor, boolean includeDetails)
protected HealthComponent aggregateContributions(ApiVersion apiVersion, java.util.Map<java.lang.String,HealthComponent> contributions, StatusAggregator statusAggregator, boolean showComponents, java.util.Set<java.lang.String> groupNames)
protected final CompositeHealth getCompositeHealth(ApiVersion apiVersion, java.util.Map<java.lang.String,HealthComponent> components, StatusAggregator statusAggregator, boolean showComponents, java.util.Set<java.lang.String> groupNames)