public class HealthCheckMetricsAspect
extends java.lang.Object
| Constructor and Description |
|---|
HealthCheckMetricsAspect(io.micrometer.core.instrument.MeterRegistry registry)
Autowired constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.actuate.health.Health |
aroundHealthIndicatorGetHealth(org.aspectj.lang.ProceedingJoinPoint joinPoint)
Aspect around join point for
HealthIndicator::getHealth(..). |
void |
healthIndicatorGetHealth()
Pointcut that matches invocations of
HealthIndicator::getHealth(..). |
public HealthCheckMetricsAspect(io.micrometer.core.instrument.MeterRegistry registry)
registry - metrics registrypublic void healthIndicatorGetHealth()
HealthIndicator::getHealth(..).public org.springframework.boot.actuate.health.Health aroundHealthIndicatorGetHealth(org.aspectj.lang.ProceedingJoinPoint joinPoint)
throws java.lang.Throwable
HealthIndicator::getHealth(..).
Measures the turnaround time for the indicator call and publishes it as metric, tagged with indicator class
and the status reported.joinPoint - the join pointjava.lang.Throwable - in case of exception in the join point