public static class Histogram.Builder extends Metric.Builder<Histogram.Builder>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Histogram.Builder |
addBucket(double upperBound,
long cumulativeCount) |
Histogram.Builder |
addBuckets(List<Histogram.Bucket> buckets) |
Histogram |
build() |
Histogram.Builder |
setSampleCount(long sampleCount) |
Histogram.Builder |
setSampleSum(double sampleSum) |
addLabel, addLabels, setName
public Histogram build()
build
in class Metric.Builder<Histogram.Builder>
public Histogram.Builder setSampleCount(long sampleCount)
public Histogram.Builder setSampleSum(double sampleSum)
public Histogram.Builder addBucket(double upperBound, long cumulativeCount)
public Histogram.Builder addBuckets(List<Histogram.Bucket> buckets)
Copyright © 2020. All rights reserved.