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 Timestampprivate final AtomicLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long delta) Adds the given value to the current value.private TimeSeriesgetTimeSeries(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.LongPointAdds the given value to the current value. The values cannot be negative.- Specified by:
addin classLongCumulative.LongPoint- Parameters:
delta- the value to add
-
getTimeSeries
-