Class AutoTimeProperties
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.AutoTimeProperties
- All Implemented Interfaces:
AutoTimer
Nested configuration properties for items that are automatically timed.
- Since:
- 2.2.0
- Author:
- Tadaya Tsuyukubo, Stephane Nicoll, Phillip Webb
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate an instance that automatically time requests with no percentiles. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(io.micrometer.core.instrument.Timer.Builder builder) Called to apply any auto-timer settings to the givenTimer.Builder
.double[]
boolean
Return if the auto-timer is enabled and metrics should be recorded.boolean
void
setEnabled
(boolean enabled) void
setPercentiles
(double[] percentiles) void
setPercentilesHistogram
(boolean percentilesHistogram)
-
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. -
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 givenTimer.Builder
.
-