类 PropertiesAutoTimer

java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.PropertiesAutoTimer
所有已实现的接口:
AutoTimer

public class PropertiesAutoTimer extends Object implements AutoTimer
AutoTimer whose behavior is configured by AutoTimeProperties.
从以下版本开始:
3.0.0
作者:
Andy Wilkinson
  • 构造器详细资料

    • PropertiesAutoTimer

      public PropertiesAutoTimer(AutoTimeProperties properties)
      Create a new PropertiesAutoTimer configured using the given properties.
      参数:
      properties - the properties to configure auto-timing
  • 方法详细资料

    • apply

      public void apply(io.micrometer.core.instrument.Timer.Builder builder)
      从接口复制的说明: AutoTimer
      Called to apply any auto-timer settings to the given Timer.Builder.
      指定者:
      apply 在接口中 AutoTimer
      参数:
      builder - the builder to apply settings to
    • isEnabled

      public boolean isEnabled()
      从接口复制的说明: AutoTimer
      Return if the auto-timer is enabled and metrics should be recorded.
      指定者:
      isEnabled 在接口中 AutoTimer
      返回:
      if the auto-timer is enabled