接口 HealthEndpointGroup
public interface HealthEndpointGroup
A logical grouping of
health contributors
that can be exposed
by the HealthEndpoint
.- 从以下版本开始:
- 2.2.0
- 作者:
- Phillip Webb, Madhura Bhave
-
方法概要
修饰符和类型方法说明Return 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.
-
方法详细资料
-
isMember
Returnstrue
if the given contributor is a member of this group.- 参数:
name
- the contributor name- 返回:
true
if the contributor is a member of this group
-
showComponents
Returns ifhealth components
should be shown in the response.- 参数:
securityContext
- the endpoint security context- 返回:
true
to shown details orfalse
to hide them
-
showDetails
Returns ifhealth details
should be shown in the response.- 参数:
securityContext
- the endpoint security context- 返回:
true
to shown details orfalse
to hide them
-
getStatusAggregator
StatusAggregator getStatusAggregator()Returns the status aggregator that should be used for this group.- 返回:
- the status aggregator for this group
-
getHttpCodeStatusMapper
HttpCodeStatusMapper getHttpCodeStatusMapper()Returns theHttpCodeStatusMapper
that should be used for this group.- 返回:
- 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.- 返回:
- the additional health path or
null
- 从以下版本开始:
- 2.6.0
-