@EndpointWebExtension(endpoint=HealthEndpoint.class) public class HealthEndpointWebExtension extends Object
@EndpointWebExtension
for the HealthEndpoint
.Constructor and Description |
---|
HealthEndpointWebExtension(HealthContributorRegistry registry,
HealthEndpointGroups groups)
Create a new
HealthEndpointWebExtension 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) |
WebEndpointResponse<HealthComponent> |
health(ApiVersion apiVersion,
SecurityContext securityContext) |
WebEndpointResponse<HealthComponent> |
health(ApiVersion apiVersion,
SecurityContext securityContext,
boolean showAll,
String... path) |
WebEndpointResponse<HealthComponent> |
health(ApiVersion apiVersion,
SecurityContext securityContext,
String... path) |
public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups)
HealthEndpointWebExtension
instance.registry
- the health contributor registrygroups
- the health endpoint groups@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, SecurityContext securityContext)
@ReadOperation public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, SecurityContext securityContext, @Selector(match=ALL_REMAINING) String... path)
public WebEndpointResponse<HealthComponent> health(ApiVersion apiVersion, 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)