Package org.apache.beam.sdk.metrics
Class GaugeResult
- java.lang.Object
-
- org.apache.beam.sdk.metrics.GaugeResult
-
- Direct Known Subclasses:
GaugeResult.EmptyGaugeResult
@Experimental(METRICS) public abstract class GaugeResult extends java.lang.Object
The result of aGauge
metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GaugeResult.EmptyGaugeResult
EmptyGaugeResult
, representing no values reported.
-
Constructor Summary
Constructors Constructor Description GaugeResult()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GaugeResult
create(long value, org.joda.time.Instant timestamp)
static GaugeResult
empty()
abstract org.joda.time.Instant
getTimestamp()
abstract long
getValue()
-
-
-
Method Detail
-
getValue
public abstract long getValue()
-
getTimestamp
public abstract org.joda.time.Instant getTimestamp()
-
create
public static GaugeResult create(long value, org.joda.time.Instant timestamp)
-
empty
public static GaugeResult empty()
-
-