Class DoubleGaugeImpl.PointImpl
java.lang.Object
io.opencensus.metrics.DoubleGauge.DoublePoint
io.opencensus.implcore.metrics.DoubleGaugeImpl.PointImpl
- Enclosing class:
DoubleGaugeImpl
Implementation of
DoubleGauge.DoublePoint.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TimeSeriesprivate final com.google.common.util.concurrent.AtomicDouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double amt) Adds the given value to the current value.private TimeSeriesgetTimeSeries(Clock clock) voidset(double val) Sets the given value.
-
Field Details
-
value
private final com.google.common.util.concurrent.AtomicDouble value -
defaultTimeSeries
-
-
Constructor Details
-
PointImpl
PointImpl(List<LabelValue> labelValues)
-
-
Method Details
-
add
public void add(double amt) Description copied from class:DoubleGauge.DoublePointAdds the given value to the current value. The values can be negative.- Specified by:
addin classDoubleGauge.DoublePoint- Parameters:
amt- the value to add
-
set
public void set(double val) Description copied from class:DoubleGauge.DoublePointSets the given value.- Specified by:
setin classDoubleGauge.DoublePoint- Parameters:
val- the new value.
-
getTimeSeries
-