Class SummarySnapshot.SummaryDataPointSnapshot
Object
DataPointSnapshot
DistributionDataPointSnapshot
SummaryDataPointSnapshot
- Enclosing class:
- SummarySnapshot
public static final class SummarySnapshot.SummaryDataPointSnapshot
extends DistributionDataPointSnapshot
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSummaryDataPointSnapshot
(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis) To create a newSummarySnapshot.SummaryDataPointSnapshot
, you can either call the constructor directly or use the Builder withbuilder()
.SummaryDataPointSnapshot
(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp. -
Method Summary
Methods inherited from class DistributionDataPointSnapshot
getCount, getExemplars, getSum, hasCount, hasSum
Methods inherited from class DataPointSnapshot
getCreatedTimestampMillis, getLabels, getScrapeTimestampMillis, hasCreatedTimestamp, hasScrapeTimestamp
-
Constructor Details
-
SummaryDataPointSnapshot
public SummaryDataPointSnapshot(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis) To create a newSummarySnapshot.SummaryDataPointSnapshot
, you can either call the constructor directly or use the Builder withbuilder()
.- Parameters:
count
- total number of observations. Optional, pass -1 if not available.sum
- sum of all observed values. Optional, passDouble.NaN
if not available.quantiles
- must not benull
. UseQuantiles.EMPTY
if there are no quantiles.labels
- must not benull
. UseLabels.EMPTY
if there are no labels.exemplars
- must not benull
. UseExemplars.EMPTY
if there are no exemplars.createdTimestampMillis
- timestamp (as inSystem.currentTimeMillis()
) when this summary data (this specific set of labels) was created. Note that this refers to the creation of the timeseries, not the creation of the snapshot. The created timestamp optional. Use0L
if there is no created timestamp.
-
SummaryDataPointSnapshot
public SummaryDataPointSnapshot(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp. This is only useful in rare cases as the scrape timestamp is usually set by the Prometheus server during scraping. Exceptions include mirroring metrics with given timestamps from other metric sources.
-
-
Method Details
-
getQuantiles
-
builder
-