Class Gauge.DataPoint
java.lang.Object
io.prometheus.metrics.core.metrics.Gauge.DataPoint
- All Implemented Interfaces:
DataPoint, GaugeDataPoint, TimerApi
- Enclosing class:
Gauge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleget()Get the current value.voidinc(double amount) Addamount.voidincWithExemplar(double amount, Labels labels) Addamount, and create a custom exemplar with the given labels.voidset(double value) Set the gauge tovalue.voidsetWithExemplar(double value, Labels labels) Set the gauge tovalue, 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 GaugeDataPoint
dec, dec, decWithExemplar, decWithExemplar, inc, incWithExemplar, startTimerMethods inherited from interface TimerApi
time, time, timeChecked
-
Field Details
-
exemplarSampler
-
value
-
-
Constructor Details
-
DataPoint
-
-
Method Details
-
inc
public void inc(double amount) Description copied from interface:GaugeDataPointAddamount.- Specified by:
incin interfaceGaugeDataPoint
-
incWithExemplar
Description copied from interface:GaugeDataPointAddamount, and create a custom exemplar with the given labels.- Specified by:
incWithExemplarin interfaceGaugeDataPoint
-
set
public void set(double value) Description copied from interface:GaugeDataPointSet the gauge tovalue.- Specified by:
setin interfaceGaugeDataPoint
-
get
public double get()Description copied from interface:GaugeDataPointGet the current value.- Specified by:
getin interfaceGaugeDataPoint
-
setWithExemplar
Description copied from interface:GaugeDataPointSet the gauge tovalue, and create a custom exemplar with the given labels.- Specified by:
setWithExemplarin interfaceGaugeDataPoint
-
collect
-