类 ServiceMonitorProperties

java.lang.Object
top.codef.properties.servicemonitor.ServiceMonitorProperties
所有已实现的接口:
org.springframework.beans.factory.InitializingBean

@ConfigurationProperties(prefix="prometheus.service-monitor") public class ServiceMonitorProperties extends Object implements org.springframework.beans.factory.InitializingBean
  • 构造器详细资料

    • ServiceMonitorProperties

      public ServiceMonitorProperties()
  • 方法详细资料

    • getMonitorServices

      public Map<String,ServiceCheck> getMonitorServices()
    • setMonitorServices

      public void setMonitorServices(Map<String,ServiceCheck> monitorServices)
    • getServiceExistCheckInterval

      public Duration getServiceExistCheckInterval()
    • setServiceExistCheckInterval

      public void setServiceExistCheckInterval(Duration serviceExistCheckInterval)
    • getServiceCheckNoticeInterval

      public Duration getServiceCheckNoticeInterval()
    • setServiceCheckNoticeInterval

      public void setServiceCheckNoticeInterval(Duration serviceCheckNoticeInterval)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • isAutoDiscovery

      public boolean isAutoDiscovery()
    • setAutoDiscovery

      public void setAutoDiscovery(boolean autoDiscovery)
    • getRefreshServiceCheckNoticeInterval

      public Duration getRefreshServiceCheckNoticeInterval()
      返回:
      the refreshServiceCheckNoticeInterval
    • setRefreshServiceCheckNoticeInterval

      public void setRefreshServiceCheckNoticeInterval(Duration refreshServiceCheckNoticeInterval)
      参数:
      refreshServiceCheckNoticeInterval - the refreshServiceCheckNoticeInterval to set
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception
    • getServiceNoticeInitialDelay

      public Duration getServiceNoticeInitialDelay()
    • setServiceNoticeInitialDelay

      public void setServiceNoticeInitialDelay(Duration serviceNoticeInitialDelay)