Class DiscoveryClientHealthIndicatorConfiguration

java.lang.Object
io.micronaut.management.health.indicator.discovery.DiscoveryClientHealthIndicatorConfiguration
All Implemented Interfaces:
Toggleable

@ConfigurationProperties("endpoints.health.discovery-client") @Requires(property="endpoints.health.discovery-client.enabled", notEquals="false") public class DiscoveryClientHealthIndicatorConfiguration extends Object implements Toggleable
Enables the user to enable or disable the health indicator.

The default value is true. If you want to disable the indicator add the configuration value discovery-client.indicator.enabled = false

Since:
1.1.0
Author:
rvanderwerf
  • Constructor Details

    • DiscoveryClientHealthIndicatorConfiguration

      public DiscoveryClientHealthIndicatorConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Health indicator is enabled. Default is true.
      Specified by:
      isEnabled in interface Toggleable
      Returns:
      true If health indicator should be enabled. Default is true.
    • setEnabled

      public void setEnabled(boolean enabled)
      If health indicator should be enabled. Default is true.
      Parameters:
      enabled - True If health indicator should be enabled. Default is true.