Module io.prometheus.metrics.model
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 TypeMethodDescriptionlonggetCount()This will return garbage ifhasCount()isfalse.May beExemplars.EMPTY, but will never benull.doublegetSum()This will return garbage ifhasSum()isfalse.booleanhasCount()booleanhasSum()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.
-