Class DistributionDataPointSnapshot
Object
DataPointSnapshot
DistributionDataPointSnapshot
- Direct Known Subclasses:
HistogramSnapshot.HistogramDataPointSnapshot
,SummarySnapshot.SummaryDataPointSnapshot
Common base class for histogram and summary data. Histograms and Summaries represent
distributions, like a latency distribution or a distribution of request sizes in Bytes.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getCount()
This will return garbage ifhasCount()
isfalse
.May beExemplars.EMPTY
, but will never benull
.double
getSum()
This will return garbage ifhasSum()
isfalse
.boolean
hasCount()
boolean
hasSum()
Methods inherited from class DataPointSnapshot
getCreatedTimestampMillis, getLabels, getScrapeTimestampMillis, hasCreatedTimestamp, hasScrapeTimestamp
-
Method Details
-
hasCount
-
hasSum
-
getCount
This will return garbage ifhasCount()
isfalse
. -
getSum
This will return garbage ifhasSum()
isfalse
. -
getExemplars
May beExemplars.EMPTY
, but will never benull
.
-