Class EtaPlusApiHealthIndicator

java.lang.Object
energy.eddie.regionconnector.de.eta.health.EtaPlusApiHealthIndicator
All Implemented Interfaces:
org.springframework.boot.health.contributor.HealthContributor, org.springframework.boot.health.contributor.HealthIndicator

@Component public class EtaPlusApiHealthIndicator extends Object implements org.springframework.boot.health.contributor.HealthIndicator
Health indicator reporting the reachability of the ETA Plus PA/MDA API. Delegates to EtaPlusApiClient.isAlive(): a reachable API is reported as UP, an unreachable one (5xx, connection failure or timeout) as DOWN.
  • Constructor Details

    • EtaPlusApiHealthIndicator

      public EtaPlusApiHealthIndicator(EtaPlusApiClient api)
  • Method Details

    • health

      public org.springframework.boot.health.contributor.Health health()
      Specified by:
      health in interface org.springframework.boot.health.contributor.HealthIndicator