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
ConstructorDescriptionPropertiesAutoTimer
(AutoTimeProperties properties) Create a newPropertiesAutoTimer
configured using the givenproperties
. -
Method Summary
-
Constructor Details
-
PropertiesAutoTimer
Create a newPropertiesAutoTimer
configured 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:AutoTimer
Called to apply any auto-timer settings to the givenTimer.Builder
. -
isEnabled
public boolean isEnabled()Description copied from interface:AutoTimer
Return if the auto-timer is enabled and metrics should be recorded.
-