public interface DistributionSummary extends Meter, HistogramSupport
Modifier and Type | Interface and Description |
---|---|
static class |
DistributionSummary.Builder
Fluent builder for distribution summaries.
|
Meter.Id, Meter.Type
Modifier and Type | Method and Description |
---|---|
static DistributionSummary.Builder |
builder(java.lang.String name) |
long |
count() |
default double |
histogramCountAtValue(long value)
Deprecated.
Use
HistogramSupport.takeSnapshot() to retrieve bucket counts. |
double |
max() |
default double |
mean() |
default java.lang.Iterable<Measurement> |
measure()
Get a set of measurements.
|
default double |
percentile(double percentile)
Deprecated.
Use
HistogramSupport.takeSnapshot() to retrieve percentiles. |
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
double |
totalAmount() |
getId, takeSnapshot, takeSnapshot
static DistributionSummary.Builder builder(java.lang.String name)
void record(double amount)
amount
- Amount for an event being measured. For example, if the size in bytes of responses
from a server. If the amount is less than 0 the value will be dropped.long count()
double totalAmount()
default double mean()
double max()
@Deprecated default double histogramCountAtValue(long value)
HistogramSupport.takeSnapshot()
to retrieve bucket counts.value
- The histogram bucket to retrieve a count for.@Deprecated default double percentile(double percentile)
HistogramSupport.takeSnapshot()
to retrieve percentiles.percentile
- A percentile in the domain [0, 1]. For example, 0.5 represents the 50th percentile of the
distribution.default java.lang.Iterable<Measurement> measure()
Meter