public static class EmbeddedStatsSummary.EmbeddedTimeMetricSummary extends Object implements TimeMetricSummary
Constructor and Description |
---|
EmbeddedTimeMetricSummary() |
Modifier and Type | Method and Description |
---|---|
void |
add(long val) |
Duration |
max()
Gets the maximum collected value.
|
Duration |
mean()
Gets the mean/average of collected values.
|
Duration |
median()
Gets the median of collected values.
|
Duration |
min()
Gets the minimum collected value.
|
Duration |
perc90()
Gets the 90 percentile of samples times.
|
Duration |
perc95()
Gets the 95 percentile of samples times.
|
Duration |
perc99()
Gets the 99 percentile of samples times.
|
public void add(long val)
public Duration min()
TimeMetricSummary
min
in interface TimeMetricSummary
public Duration max()
TimeMetricSummary
max
in interface TimeMetricSummary
public Duration mean()
TimeMetricSummary
mean
in interface TimeMetricSummary
public Duration median()
TimeMetricSummary
The median is the same as percentile 50, and is the value for which 50% of the collected values is smaller/greater.
This value might differ from TimeMetricSummary.mean()
when distribution of values is not symmetric.
median
in interface TimeMetricSummary
public Duration perc90()
TimeMetricSummary
90% of samples took less or equal to the returned value.
perc90
in interface TimeMetricSummary
public Duration perc95()
TimeMetricSummary
95% of samples took less or equal to the returned value.
perc95
in interface TimeMetricSummary
public Duration perc99()
TimeMetricSummary
99% of samples took less or equal to the returned value.
perc99
in interface TimeMetricSummary
Copyright © 2023. All rights reserved.