Module io.prometheus.metrics.model
Class DistributionDataPointSnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot
io.prometheus.metrics.model.snapshots.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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDistributionDataPointSnapshot(long count, double sum, Exemplars exemplars, Labels labels, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal) See JavaDoc of the child classes. -
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 io.prometheus.metrics.model.snapshots.DataPointSnapshot
getCreatedTimestampMillis, getLabels, getScrapeTimestampMillis, hasCreatedTimestamp, hasScrapeTimestamp
-
Constructor Details
-
Method Details
-
hasCount
public boolean hasCount() -
hasSum
public boolean hasSum() -
getCount
public long getCount()This will return garbage ifhasCount()isfalse. -
getSum
public double getSum()This will return garbage ifhasSum()isfalse. -
getExemplars
May beExemplars.EMPTY, but will never benull.
-