Class HealthEndpoint
java.lang.Object
org.springframework.boot.health.actuate.endpoint.HealthEndpoint
@Endpoint to expose application health information.- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.boot.actuate.endpoint.EndpointIdHealth endpoint id. -
Constructor Summary
ConstructorsConstructorDescriptionHealthEndpoint(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthEndpointGroups groups, @Nullable Duration slowContributorLoggingThreshold) Create a newHealthEndpointinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected HealthDescriptoraggregateDescriptors(org.springframework.boot.actuate.endpoint.ApiVersion apiVersion, Map<String, HealthDescriptor> contributions, StatusAggregator statusAggregator, boolean showComponents, @Nullable Set<String> groupNames) health()@Nullable HealthDescriptorhealthForPath(String... path)
-
Field Details
-
ID
public static final org.springframework.boot.actuate.endpoint.EndpointId IDHealth endpoint id.
-
-
Constructor Details
-
HealthEndpoint
public HealthEndpoint(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthEndpointGroups groups, @Nullable Duration slowContributorLoggingThreshold) Create a newHealthEndpointinstance.- 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
-
healthForPath
@ReadOperation public @Nullable HealthDescriptor healthForPath(@Selector(match=ALL_REMAINING) String... path) -
aggregateDescriptors
protected HealthDescriptor aggregateDescriptors(org.springframework.boot.actuate.endpoint.ApiVersion apiVersion, Map<String, HealthDescriptor> contributions, StatusAggregator statusAggregator, boolean showComponents, @Nullable Set<String> groupNames)
-