Class DiscoveryClientHealthIndicatorConfiguration

  • All Implemented Interfaces:
    io.micronaut.core.util.Toggleable

    @ConfigurationProperties("endpoints.health.discovery-client")
    @Requires(property="endpoints.health.discovery-client.enabled",
              notEquals="false")
    public class DiscoveryClientHealthIndicatorConfiguration
    extends java.lang.Object
    implements io.micronaut.core.util.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
    • Constructor Detail

      • DiscoveryClientHealthIndicatorConfiguration

        public DiscoveryClientHealthIndicatorConfiguration()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Health indicator is enabled. Default is true.
        Specified by:
        isEnabled in interface io.micronaut.core.util.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.