Interface DistributionSummary.Builder
- All Superinterfaces:
Meter.Builder<DistributionSummary.Builder, DistributionSummary>, Wrapper, 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 Meter.Builder
addTag, baseUnit, baseUnit, description, description, identity, name, origin, origin, scope, scope, tags, tagsModifier and TypeMethodDescriptionAdds a single tag to the builder's collection.baseUnit()Returns the base unit the builder will use.Sets the units.Returns the description the builder will use.description(String description) Sets the description.default DistributionSummary.Builderidentity()Returns the type-correct "this".name()Returns the name the builder will use.origin()Returns the fully-qualified name of the type which originated the meter, if set.default DistributionSummary.BuilderSets the fully-qualified name of the type which originated the meter.scope()Deprecated, for removal: This API element is subject to removal in a future version.Core metrics does not assign scopes, and this method will be removed.default DistributionSummary.BuilderDeprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.tags()Returns the tags the builder will use.Sets the tags to use in identifying the build meter.
-
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
-
distributionStatisticsConfig
Optional<DistributionStatisticsConfig.Builder> distributionStatisticsConfig()Returns the statistics config set on the builder, if any.- Returns:
- distribution statistics config, if set; empty otherwise
-
publishPercentileHistogram
-