Package io.opencensus.implcore.metrics
Class LongCumulativeImpl.PointImpl
java.lang.Object
io.opencensus.metrics.LongCumulative.LongPoint
io.opencensus.implcore.metrics.LongCumulativeImpl.PointImpl
- Enclosing class:
LongCumulativeImpl
Implementation of
LongCumulative.LongPoint
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<LabelValue> private final Timestamp
private final AtomicLong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long delta) Adds the given value to the current value.private TimeSeries
getTimeSeries
(Clock clock)
-
Field Details
-
labelValues
-
startTime
-
value
-
-
Constructor Details
-
PointImpl
PointImpl(List<LabelValue> labelValues, Timestamp startTime)
-
-
Method Details
-
add
public void add(long delta) Description copied from class:LongCumulative.LongPoint
Adds the given value to the current value. The values cannot be negative.- Specified by:
add
in classLongCumulative.LongPoint
- Parameters:
delta
- the value to add
-
getTimeSeries
-