Interface DistributionStatisticsConfig.Builder
- All Superinterfaces:
Builder<DistributionStatisticsConfig.Builder, DistributionStatisticsConfig>, Supplier<DistributionStatisticsConfig>, Wrapper, Wrapper
- Enclosing interface:
DistributionStatisticsConfig
public static interface DistributionStatisticsConfig.Builder
extends Wrapper, Builder<DistributionStatisticsConfig.Builder, DistributionStatisticsConfig>
Builder for a new
DistributionStatisticsConfig instance.-
Method Summary
Modifier and TypeMethodDescriptionbuckets()Returns the buckets.buckets(double... buckets) Sets the boundary boundaries.Sets the boundary boundaries.Returns the maximum expected value setting.Sets the maximum value that the meter is expected to observe.Returns the minimum expected value setting.Sets the minimum value that the meter is expected to observe.Returns the percentiles.percentiles(double... percentiles) Specifies time series percentiles.percentiles(Iterable<Double> percentiles) Specifies time series percentiles.Methods inherited from interface Builder
build, get, identity, updateModifier and TypeMethodDescriptionbuild()Build the instance from this builder.default DistributionStatisticsConfigget()identity()Instance of this builder as the correct type.update(Consumer<DistributionStatisticsConfig.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
minimumExpectedValue
Sets the minimum value that the meter is expected to observe.- Parameters:
min- minimum value that this distribution summary is expected to observe- Returns:
- updated builder
-
maximumExpectedValue
Sets the maximum value that the meter is expected to observe.- Parameters:
max- maximum value that the meter is expected to observe- Returns:
- updated builder
-
percentiles
Specifies time series percentiles.The system computes these percentiles locally, so they cannot be aggregated with percentiles computed elsewhere.
Specify percentiles a decimals, for example express the 95th percentile as
0.95.- Parameters:
percentiles- percentiles to compute and publish- Returns:
- updated builder
-
percentiles
Specifies time series percentiles.The system computes these percentiles locally, so they cannot be aggregated with percentiles computed elsewhere.
Specify percentiles a decimals, for example express the 95th percentile as
0.95.- Parameters:
percentiles- percentiles to compute and publish- Returns:
- updated builder
-
buckets
Sets the boundary boundaries.- Parameters:
buckets- boundary boundaries- Returns:
- updated builder
-
buckets
Sets the boundary boundaries.- Parameters:
buckets- boundary boundaries- Returns:
- updated builder
-
minimumExpectedValue
-
maximumExpectedValue
-
percentiles
-
buckets
-