Package io.opencensus.implcore.metrics
Class DoubleCumulativeImpl.PointImpl
- java.lang.Object
-
- io.opencensus.metrics.DoubleCumulative.DoublePoint
-
- io.opencensus.implcore.metrics.DoubleCumulativeImpl.PointImpl
-
- Enclosing class:
- DoubleCumulativeImpl
public static final class DoubleCumulativeImpl.PointImpl extends DoubleCumulative.DoublePoint
Implementation ofDoubleCumulative.DoublePoint.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LabelValue>labelValuesprivate TimestampstartTimeprivate com.google.common.util.concurrent.AtomicDoublevalue
-
Constructor Summary
Constructors Constructor Description PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double delta)Adds the given value to the current value.private TimeSeriesgetTimeSeries(Clock clock)
-
-
-
Field Detail
-
labelValues
private final java.util.List<LabelValue> labelValues
-
startTime
private final Timestamp startTime
-
value
private final com.google.common.util.concurrent.AtomicDouble value
-
-
Constructor Detail
-
PointImpl
PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
-
-
Method Detail
-
add
public void add(double delta)
Description copied from class:DoubleCumulative.DoublePointAdds the given value to the current value. The values cannot be negative.- Specified by:
addin classDoubleCumulative.DoublePoint- Parameters:
delta- the value to add
-
getTimeSeries
private TimeSeries getTimeSeries(Clock clock)
-
-