Class HealthEndpointWebExtension
java.lang.Object
org.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtension
@EndpointWebExtension(endpoint=HealthEndpoint.class)
@ImportRuntimeHints(org.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtensionRuntimeHints.class)
public class HealthEndpointWebExtension
extends Object
@EndpointWebExtension for the HealthEndpoint.- Since:
- 4.0.0
- Author:
- Christian Dupuis, Dave Syer, Andy Wilkinson, Phillip Webb, EddĂș MelĂ©ndez, Madhura Bhave, Stephane Nicoll, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionHealthEndpointWebExtension(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthEndpointGroups groups, @Nullable Duration slowContributorLoggingThreshold) Create a newHealthEndpointWebExtensioninstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected HealthDescriptoraggregateDescriptors(ApiVersion apiVersion, Map<String, HealthDescriptor> contributions, StatusAggregator statusAggregator, boolean showComponents, @Nullable Set<String> groupNames) health(ApiVersion apiVersion, @Nullable WebServerNamespace serverNamespace, SecurityContext securityContext, boolean showAll, String... path) health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext) health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, String... path)
-
Constructor Details
-
HealthEndpointWebExtension
public HealthEndpointWebExtension(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthEndpointGroups groups, @Nullable Duration slowContributorLoggingThreshold) Create a newHealthEndpointWebExtensioninstance.- Parameters:
registry- the health contributor registryfallbackRegistry- the fallback registry ornullgroups- the health endpoint groupsslowContributorLoggingThreshold- duration after which slow health indicator logging should occur
-
-
Method Details
-
health
@ReadOperation public WebEndpointResponse<HealthDescriptor> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext) -
health
@ReadOperation public WebEndpointResponse<HealthDescriptor> health(ApiVersion apiVersion, WebServerNamespace serverNamespace, SecurityContext securityContext, @Selector(match=ALL_REMAINING) String... path) -
health
public WebEndpointResponse<HealthDescriptor> health(ApiVersion apiVersion, @Nullable WebServerNamespace serverNamespace, SecurityContext securityContext, boolean showAll, String... path) -
aggregateDescriptors
protected HealthDescriptor aggregateDescriptors(ApiVersion apiVersion, Map<String, HealthDescriptor> contributions, StatusAggregator statusAggregator, boolean showComponents, @Nullable Set<String> groupNames)
-