Constructor and Description |
---|
AutoTimeProperties()
Create an instance that automatically time requests with no percentiles.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(io.micrometer.core.instrument.Timer.Builder builder)
Called to apply any auto-timer settings to the given
Timer.Builder . |
double[] |
getPercentiles() |
boolean |
isEnabled()
Return if the auto-timer is enabled and metrics should be recorded.
|
boolean |
isPercentilesHistogram() |
void |
setEnabled(boolean enabled) |
void |
setPercentiles(double[] percentiles) |
void |
setPercentilesHistogram(boolean percentilesHistogram) |
public AutoTimeProperties()
public boolean isEnabled()
AutoTimer
public void setEnabled(boolean enabled)
public boolean isPercentilesHistogram()
public void setPercentilesHistogram(boolean percentilesHistogram)
public double[] getPercentiles()
public void setPercentiles(double[] percentiles)