Class CoreHealthIndicator

java.lang.Object
com.bytedesk.core.config.CoreHealthIndicator
All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

@Component public class CoreHealthIndicator extends Object implements org.springframework.boot.actuate.health.HealthIndicator
Core模块健康检查 监控核心服务依赖:数据库、Redis、应用版本等
  • Field Details

    • appVersion

      @Value("${application.version:unknown}") private String appVersion
    • activeProfile

      @Value("${spring.profiles.active:default}") private String activeProfile
    • dataSource

      @Autowired(required=false) private DataSource dataSource
    • redisConnectionFactory

      @Autowired(required=false) private org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory
    • databaseTypeChecker

      @Autowired(required=false) private DatabaseTypeChecker databaseTypeChecker
  • Constructor Details

    • CoreHealthIndicator

      public CoreHealthIndicator()
  • Method Details

    • health

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