public interface DistributionSummary extends Meter
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(String name) |
long |
count()
The number of times that record has been called since this timer was created.
|
double |
histogramCountAtValue(long value) |
double |
max()
The maximum time of a single event.
|
default double |
mean() |
default Iterable<Measurement> |
measure()
Get a set of measurements.
|
double |
percentile(double percentile)
The value at a specific percentile.
|
default void |
record()
Updates the statistics kept by the summary.
|
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
HistogramSnapshot |
takeSnapshot(boolean supportsAggregablePercentiles) |
double |
totalAmount()
The total amount of all recorded events since this summary was created.
|
static DistributionSummary.Builder builder(String name)
default void record()
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()
double percentile(double percentile)
double histogramCountAtValue(long value)
HistogramSnapshot takeSnapshot(boolean supportsAggregablePercentiles)
default Iterable<Measurement> measure()
Meter
Copyright 2010-2022 ForgeRock AS.