Class DiscoveryClientHealthIndicatorConfiguration
- java.lang.Object
-
- io.micronaut.management.health.indicator.discovery.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.ToggleableEnables 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 Summary
Constructors Constructor Description DiscoveryClientHealthIndicatorConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()Health indicator is enabled.voidsetEnabled(boolean enabled)If health indicator should be enabled.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Health indicator is enabled. Default is true.- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
trueIf 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.
-
-