Class PropertiesAutoTimer
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.PropertiesAutoTimer
- All Implemented Interfaces:
org.springframework.boot.actuate.metrics.AutoTimer
public class PropertiesAutoTimer
extends Object
implements org.springframework.boot.actuate.metrics.AutoTimer
AutoTimer whose behavior is configured by AutoTimeProperties.- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface org.springframework.boot.actuate.metrics.AutoTimer
DISABLED, ENABLED -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesAutoTimer(AutoTimeProperties properties) Create a newPropertiesAutoTimerconfigured using the givenproperties. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.metrics.AutoTimer
builder, builder
-
Constructor Details
-
PropertiesAutoTimer
Create a newPropertiesAutoTimerconfigured using the givenproperties.- Parameters:
properties- the properties to configure auto-timing
-
-
Method Details
-
apply
public void apply(io.micrometer.core.instrument.Timer.Builder builder) - Specified by:
applyin interfaceorg.springframework.boot.actuate.metrics.AutoTimer
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.springframework.boot.actuate.metrics.AutoTimer
-