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 Timestampprivate final com.google.common.util.concurrent.AtomicDouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double delta) Adds the given value to the current value.private TimeSeriesgetTimeSeries(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.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
-