Package io.opencensus.implcore.metrics
Class DoubleGaugeImpl.PointImpl
- java.lang.Object
-
- io.opencensus.metrics.DoubleGauge.DoublePoint
-
- io.opencensus.implcore.metrics.DoubleGaugeImpl.PointImpl
-
- Enclosing class:
- DoubleGaugeImpl
public static final class DoubleGaugeImpl.PointImpl extends DoubleGauge.DoublePoint
Implementation ofDoubleGauge.DoublePoint.
-
-
Field Summary
Fields Modifier and Type Field Description private TimeSeriesdefaultTimeSeriesprivate com.google.common.util.concurrent.AtomicDoublevalue
-
Constructor Summary
Constructors Constructor Description PointImpl(java.util.List<LabelValue> labelValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double amt)Adds the given value to the current value.private TimeSeriesgetTimeSeries(Clock clock)voidset(double val)Sets the given value.
-
-
-
Field Detail
-
value
private final com.google.common.util.concurrent.AtomicDouble value
-
defaultTimeSeries
private final TimeSeries defaultTimeSeries
-
-
Constructor Detail
-
PointImpl
PointImpl(java.util.List<LabelValue> labelValues)
-
-
Method Detail
-
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
private TimeSeries getTimeSeries(Clock clock)
-
-