Class Summary.DataPoint
java.lang.Object
io.prometheus.metrics.core.metrics.Summary.DataPoint
- All Implemented Interfaces:
DataPoint, DistributionDataPoint, TimerApi
- Enclosing class:
Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Bufferprivate final LongAdderprivate final longprivate final ExemplarSamplerprivate final SlidingWindow<CKMSQuantiles> private final DoubleAdder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoObserve(double amount) longgetCount()Get the count of observations.private List<CKMSQuantiles.Quantile> doublegetSum()Get the sum of all observed values.private Quantilesvoidobserve(double value) Observevalue.voidobserveWithExemplar(double value, Labels labels) Observevalue, and create a custom exemplar with the given labels.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DistributionDataPoint
startTimerMethods inherited from interface TimerApi
time, time, timeChecked
-
Field Details
-
count
-
sum
-
quantileValues
-
buffer
-
exemplarSampler
-
createdTimeMillis
private final long createdTimeMillis
-
-
Constructor Details
-
DataPoint
private DataPoint()
-
-
Method Details
-
getSum
public double getSum()Description copied from interface:DistributionDataPointGet the sum of all observed values.- Specified by:
getSumin interfaceDistributionDataPoint
-
getCount
public long getCount()Description copied from interface:DistributionDataPointGet the count of observations.- Specified by:
getCountin interfaceDistributionDataPoint
-
observe
public void observe(double value) Description copied from interface:DistributionDataPointObservevalue.- Specified by:
observein interfaceDistributionDataPoint
-
observeWithExemplar
Description copied from interface:DistributionDataPointObservevalue, and create a custom exemplar with the given labels.- Specified by:
observeWithExemplarin interfaceDistributionDataPoint
-
doObserve
private void doObserve(double amount) -
collect
-
getQuantiles
-
makeQuantiles
-