Package io.opencensus.implcore.metrics
Class LongGaugeImpl.PointImpl
java.lang.Object
io.opencensus.metrics.LongGauge.LongPoint
io.opencensus.implcore.metrics.LongGaugeImpl.PointImpl
- Enclosing class:
LongGaugeImpl
Implementation of
LongGauge.LongPoint
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long amt) Adds the given value to the current value.private TimeSeries
getTimeSeries
(Clock clock) void
set
(long val) Sets the given value.
-
Field Details
-
value
-
defaultTimeSeries
-
-
Constructor Details
-
PointImpl
PointImpl(List<LabelValue> labelValues)
-
-
Method Details
-
add
public void add(long amt) Description copied from class:LongGauge.LongPoint
Adds the given value to the current value. The values can be negative.- Specified by:
add
in classLongGauge.LongPoint
- Parameters:
amt
- the value to add
-
set
public void set(long val) Description copied from class:LongGauge.LongPoint
Sets the given value.- Specified by:
set
in classLongGauge.LongPoint
- Parameters:
val
- the new value.
-
getTimeSeries
-