Annotation Type ConditionalOnEnabledHealthIndicator


  • @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    @Documented
    @Conditional(org.springframework.boot.actuate.autoconfigure.health.OnEnabledHealthIndicatorCondition.class)
    public @interface ConditionalOnEnabledHealthIndicator
    Conditional that checks whether or not a default health indicator is enabled. Matches if the value of the management.health.<name>.enabled property is true. Otherwise, matches if the value of the management.health.defaults.enabled property is true or if it is not configured.
    Since:
    2.0.0
    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired ElementDescription
      Stringvalue
      The name of the health indicator.
    • Element Detail

      • value

        String value
        The name of the health indicator.
        Returns:
        the name of the health indicator