@EndpointWebExtension(endpoint=HealthEndpoint.class) public class HealthEndpointWebExtension extends Object
@EndpointWebExtension
for the HealthEndpoint
.Constructor and Description |
---|
HealthEndpointWebExtension(HealthContributorRegistry registry,
HealthEndpointGroups groups)
Deprecated.
since 2.6.9 for removal in 3.0.0 in favor of
HealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups, Duration) |
HealthEndpointWebExtension(HealthContributorRegistry registry,
HealthEndpointGroups groups,
Duration slowIndicatorLoggingThreshold)
Create a new
HealthEndpointWebExtension instance. |
@Deprecated public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups)
HealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups, Duration)
HealthEndpointWebExtension
instance.registry
- the health contributor registrygroups
- the health endpoint groupspublic HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups, Duration slowIndicatorLoggingThreshold)
HealthEndpointWebExtension
instance.registry
- the health contributor registrygroups
- the health endpoint groupsslowIndicatorLoggingThreshold
- duration after which slow health indicator
logging should occur@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext)
@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, @Selector(match=ALL_REMAINING) String... path)
public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, boolean showAll, 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)