Class PropertiesAutoTimer

java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.PropertiesAutoTimer
All Implemented Interfaces:
AutoTimer

public class PropertiesAutoTimer extends Object implements AutoTimer
AutoTimer whose behavior is configured by AutoTimeProperties.
Since:
3.0.0
Author:
Andy Wilkinson
  • Constructor Details

    • PropertiesAutoTimer

      public PropertiesAutoTimer(AutoTimeProperties properties)
      Create a new PropertiesAutoTimer configured using the given properties.
      Parameters:
      properties - the properties to configure auto-timing
  • Method Details

    • apply

      public void apply(io.micrometer.core.instrument.Timer.Builder builder)
      Description copied from interface: AutoTimer
      Called to apply any auto-timer settings to the given Timer.Builder.
      Specified by:
      apply in interface AutoTimer
      Parameters:
      builder - the builder to apply settings to
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: AutoTimer
      Return if the auto-timer is enabled and metrics should be recorded.
      Specified by:
      isEnabled in interface AutoTimer
      Returns:
      if the auto-timer is enabled