public static class StatisticConfig.Builder extends Object
StatisticConfig
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StatisticConfig.Builder |
buckets(long buckets)
Set the number of buckets used to implement the sliding time window.
|
StatisticConfig |
build() |
StatisticConfig.Builder |
expiry(Duration expiry)
Duration to expire statistics.
|
StatisticConfig.Builder |
percentilePrecision(int digitsOfPrecision)
Specify the number of digits of precision to maintain on the dynamic range histogram used to compute
percentile approximations.
|
StatisticConfig.Builder |
percentiles(double... percentiles)
Percentiles to compute and publish.
|
public StatisticConfig.Builder percentiles(double... percentiles)
0.95
. The percentiles are computed locally,
and these percentile values cannot be aggregated with percentiles computed across other dimensions
(e.g. in a different instance). Default percentiles are 0.5, 0.75, 0.98, 0.99, and 0.999percentiles
- Percentiles to compute and publish.public StatisticConfig.Builder percentilePrecision(int digitsOfPrecision)
digitsOfPrecision
- The digits of precision to maintain for percentile approximations.public StatisticConfig.Builder expiry(Duration expiry)
expiry
- The duration of samples used to compute statistics.public StatisticConfig.Builder buckets(long buckets)
buckets
- number of buckets used to implement the sliding time windowpublic StatisticConfig build()
Copyright © 2018 WSO2. All rights reserved.