- All Superinterfaces:
Meter.Builder<DistributionSummary.Builder,
,DistributionSummary> Wrapper
- Enclosing interface:
DistributionSummary
public static interface DistributionSummary.Builder
extends Meter.Builder<DistributionSummary.Builder,DistributionSummary>
Builder for a
DistributionSummary
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the statistics config set on the builder, if any.distributionStatisticsConfig
(DistributionStatisticsConfig.Builder distributionStatisticsConfigBuilder) Sets the config for distribution statistics for the distribution summary.Returns whether to publsh percentile histogram.publishPercentileHistogram
(boolean value) Sets whether to publish a percentile histogram.scale()
Returns the scale set on the builder.scale
(double scale) Sets the scale factor for observations recorded by the summary.Methods inherited from interface io.helidon.metrics.api.Meter.Builder
addTag, baseUnit, baseUnit, description, description, identity, name, scope, scope, tags, tags
-
Method Details
-
scale
Sets the scale factor for observations recorded by the summary.- Parameters:
scale
- scaling factor to apply to each observation- Returns:
- updated builder
-
distributionStatisticsConfig
DistributionSummary.Builder distributionStatisticsConfig(DistributionStatisticsConfig.Builder distributionStatisticsConfigBuilder) Sets the config for distribution statistics for the distribution summary.- Parameters:
distributionStatisticsConfigBuilder
- builder for the distribution statistics config- Returns:
- updated builder
-
publishPercentileHistogram
Sets whether to publish a percentile histogram.- Parameters:
value
- true/false- Returns:
- updated builder
-
scale
Returns the scale set on the builder.- Returns:
- the scale
-
distributionStatisticsConfig
Optional<DistributionStatisticsConfig.Builder> distributionStatisticsConfig()Returns the statistics config set on the builder, if any.- Returns:
- distribution statistics config, if set; empty otherwise
-
publishPercentileHistogram
Returns whether to publsh percentile histogram.- Returns:
- true/false
-