Class AutoTimeProperties

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

public final class AutoTimeProperties extends Object implements AutoTimer
Nested configuration properties for items that are automatically timed.
Since:
2.2.0
Author:
Tadaya Tsuyukubo, Stephane Nicoll, Phillip Webb
  • Constructor Details

    • AutoTimeProperties

      public AutoTimeProperties()
      Create an instance that automatically time requests with no percentiles.
  • Method Details

    • 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
    • setEnabled

      public void setEnabled(boolean enabled)
    • isPercentilesHistogram

      public boolean isPercentilesHistogram()
    • setPercentilesHistogram

      public void setPercentilesHistogram(boolean percentilesHistogram)
    • getPercentiles

      public double[] getPercentiles()
    • setPercentiles

      public void setPercentiles(double[] percentiles)
    • 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