public interface Summary extends Metric
| Modifier and Type | Interface and Description |
|---|---|
static class |
Summary.Builder
Builder for
Summarys. |
| Modifier and Type | Method and Description |
|---|---|
static Summary.Builder |
builder(String name)
Create new builder for
Summary. |
long |
count() |
double |
max() |
double |
mean() |
double |
percentile(double percentile) |
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
static Summary.Builder builder(String name)
Summary.name - The name of the metric.Summary.void record(double amount)
amount - Amount for an event being measured.long count()
double mean()
double max()
double percentile(double percentile)
percentile - A percentile in the domain [0, 1]. For example, 0.5 represents the 50th percentile of the
distribution.Copyright © 2018 WSO2. All rights reserved.