Interface HealthEndpointGroup
public interface HealthEndpointGroup
A logical grouping of
health contributors
that can be exposed
by the HealthEndpoint
.- Since:
- 2.2.0
- Author:
- Phillip Webb, Madhura Bhave
-
Method Summary
Modifier and TypeMethodDescriptionReturn an additional path that can be used to map the health group to an alternative location.Returns theHttpCodeStatusMapper
that should be used for this group.Returns the status aggregator that should be used for this group.boolean
Returnstrue
if the given contributor is a member of this group.boolean
showComponents
(SecurityContext securityContext) Returns ifhealth components
should be shown in the response.boolean
showDetails
(SecurityContext securityContext) Returns ifhealth details
should be shown in the response.
-
Method Details
-
isMember
Returnstrue
if the given contributor is a member of this group.- Parameters:
name
- the contributor name- Returns:
true
if the contributor is a member of this group
-
showComponents
Returns ifhealth components
should be shown in the response.- Parameters:
securityContext
- the endpoint security context- Returns:
true
to shown details orfalse
to hide them
-
showDetails
Returns ifhealth details
should be shown in the response.- Parameters:
securityContext
- the endpoint security context- Returns:
true
to shown details orfalse
to hide them
-
getStatusAggregator
StatusAggregator getStatusAggregator()Returns the status aggregator that should be used for this group.- Returns:
- the status aggregator for this group
-
getHttpCodeStatusMapper
HttpCodeStatusMapper getHttpCodeStatusMapper()Returns theHttpCodeStatusMapper
that should be used for this group.- Returns:
- the HTTP code status mapper
-
getAdditionalPath
AdditionalHealthEndpointPath getAdditionalPath()Return an additional path that can be used to map the health group to an alternative location.- Returns:
- the additional health path or
null
- Since:
- 2.6.0
-