Package prometheus
Interface Types.SampleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Types.Sample,Types.Sample.Builder
- Enclosing class:
- Types
public static interface Types.SampleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongtimestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.doublegetValue()double value = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getValue
double getValue()double value = 1;- Returns:
- The value.
-
getTimestamp
long getTimestamp()timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
int64 timestamp = 2;- Returns:
- The timestamp.
-