Class HealthResultFilter
java.lang.Object
io.micronaut.management.endpoint.health.filter.HealthResultFilter
@ServerFilter(value={"/?${endpoints.all.path:/}/?${endpoints.health.id:health}","/?${endpoints.all.path:/}/?${endpoints.health.id:health}/?liveness","/?${endpoints.all.path:/}/?${endpoints.health.id:health}/?readiness"},
patternStyle=REGEX)
@Requires(beans=HealthEndpoint.class)
@Internal
public class HealthResultFilter
extends Object
A filter that matches the
HealthEndpoint
and returns an appropriate HTTP status code.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHealthResultFilter(HealthEndpoint healthEndpoint) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(MutableHttpResponse<?> response) Set response status by health result.
-
Field Details
-
DEFAULT_MAPPING
-
LIVENESS_PROBE_MAPPING
- See Also:
-
READINESS_PROBE_MAPPING
- See Also:
-
-
Constructor Details
-
HealthResultFilter
Default constructor.- Parameters:
healthEndpoint- The health endpoint
-
-
Method Details
-
doFilter
Set response status by health result.- Parameters:
response- http response
-