Class DataPointSnapshot
Object
DataPointSnapshot
- Direct Known Subclasses:
CounterSnapshot.CounterDataPointSnapshot, DistributionDataPointSnapshot, GaugeSnapshot.GaugeDataPointSnapshot, InfoSnapshot.InfoDataPointSnapshot, StateSetSnapshot.StateSetDataPointSnapshot, UnknownSnapshot.UnknownDataPointSnapshot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDataPointSnapshot.Builder<T extends DataPointSnapshot.Builder<T>> -
Method Summary
Modifier and TypeMethodDescriptionlongThis will only return a reasonable value ifhasCreatedTimestamp()is true.longThis will only return a reasonable value ifhasScrapeTimestamp()is true.booleanboolean
-
Method Details
-
getLabels
-
hasScrapeTimestamp
-
getScrapeTimestampMillis
This will only return a reasonable value ifhasScrapeTimestamp()is true. -
hasCreatedTimestamp
-
getCreatedTimestampMillis
This will only return a reasonable value ifhasCreatedTimestamp()is true. Some metrics like Gauge don't have created timestamps. For these metricshasCreatedTimestamp()is always false.
-