Interface Measurement
-
- All Known Implementing Classes:
AutoValue_ImmutableMeasurement,ImmutableMeasurement,MutableMeasurement
public interface MeasurementA long or double measurement recorded fromObservableLongMeasurementorObservableDoubleMeasurement.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attributesattributes()doubledoubleValue()longepochNanos()booleanhasDoubleValue()booleanhasLongValue()longlongValue()longstartEpochNanos()MeasurementwithAttributes(Attributes attributes)Updates the attributes.MeasurementwithStartEpochNanos(long startEpochNanos)Updates the startEpochNanos.
-
-
-
Method Detail
-
startEpochNanos
long startEpochNanos()
-
epochNanos
long epochNanos()
-
hasLongValue
boolean hasLongValue()
-
longValue
long longValue()
-
hasDoubleValue
boolean hasDoubleValue()
-
doubleValue
double doubleValue()
-
attributes
Attributes attributes()
-
withAttributes
Measurement withAttributes(Attributes attributes)
Updates the attributes.- Parameters:
attributes- The attributes to update- Returns:
- The updated object. For
ImmutableMeasurementit will be a new object with the updated attributes and forMutableMeasurementit will return itself with the attributes updated
-
withStartEpochNanos
Measurement withStartEpochNanos(long startEpochNanos)
Updates the startEpochNanos.- Parameters:
startEpochNanos- start epoch nanosecond- Returns:
- The updated object. For
ImmutableMeasurementit will be a new object with the updated startEpochNanos and forMutableMeasurementit will return itself with the startEpochNanos updated
-
-