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
Implementation of
DoubleCumulative.DoublePoint
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<LabelValue> private final Timestamp
private final com.google.common.util.concurrent.AtomicDouble
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double delta) Adds the given value to the current value.private TimeSeries
getTimeSeries
(Clock clock)
-
Field Details
-
labelValues
-
startTime
-
value
private final com.google.common.util.concurrent.AtomicDouble value
-
-
Constructor Details
-
PointImpl
PointImpl(List<LabelValue> labelValues, Timestamp startTime)
-
-
Method Details
-
add
public void add(double delta) Description copied from class:DoubleCumulative.DoublePoint
Adds the given value to the current value. The values cannot be negative.- Specified by:
add
in classDoubleCumulative.DoublePoint
- Parameters:
delta
- the value to add
-
getTimeSeries
-