Class Histogram.Builder
- java.lang.Object
-
- org.hawkular.agent.prometheus.types.Metric.Builder<Histogram.Builder>
-
- org.hawkular.agent.prometheus.types.Histogram.Builder
-
- Enclosing class:
- Histogram
public static class Histogram.Builder extends Metric.Builder<Histogram.Builder>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Histogram.Builder
addBucket(double upperBound, long cumulativeCount)
Histogram.Builder
addBuckets(java.util.List<Histogram.Bucket> buckets)
Histogram
build()
Histogram.Builder
setSampleCount(long sampleCount)
Histogram.Builder
setSampleSum(double sampleSum)
-
Methods inherited from class org.hawkular.agent.prometheus.types.Metric.Builder
addLabel, addLabels, setName
-
-
-
-
Method Detail
-
build
public Histogram build()
- Specified by:
build
in classMetric.Builder<Histogram.Builder>
-
setSampleCount
public Histogram.Builder setSampleCount(long sampleCount)
-
setSampleSum
public Histogram.Builder setSampleSum(double sampleSum)
-
addBucket
public Histogram.Builder addBucket(double upperBound, long cumulativeCount)
-
addBuckets
public Histogram.Builder addBuckets(java.util.List<Histogram.Bucket> buckets)
-
-