Class PropertiesAutoTimer
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.PropertiesAutoTimer
- All Implemented Interfaces:
AutoTimer
AutoTimer whose behavior is configured by AutoTimeProperties.- Since:
- 3.0.0
- Author:
- Andy Wilkinson
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesAutoTimer(AutoTimeProperties properties) Create a newPropertiesAutoTimerconfigured using the givenproperties. -
Method Summary
-
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) Description copied from interface:AutoTimerCalled to apply any auto-timer settings to the givenTimer.Builder. -
isEnabled
public boolean isEnabled()Description copied from interface:AutoTimerReturn if the auto-timer is enabled and metrics should be recorded.
-