Interface DistributionSummary.Builder

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 Details

    • scale

      DistributionSummary.Builder scale(double 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

      DistributionSummary.Builder publishPercentileHistogram(boolean value)
      Sets whether to publish a percentile histogram.
      Parameters:
      value - true/false
      Returns:
      updated builder
    • scale

      Optional<Double> 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

      Optional<Boolean> publishPercentileHistogram()
      Returns whether to publsh percentile histogram.
      Returns:
      true/false