Class InfoSnapshot.InfoDataPointSnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot
io.prometheus.metrics.model.snapshots.InfoSnapshot.InfoDataPointSnapshot
- Enclosing class:
InfoSnapshot
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionInfoDataPointSnapshot(Labels labels) To create a newInfoSnapshot.InfoDataPointSnapshot, you can either call the constructor directly or use the Builder withbuilder().InfoDataPointSnapshot(Labels labels, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.privateInfoDataPointSnapshot(Labels labels, long scrapeTimestampMillis, boolean internal) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(package private) DataPointSnapshotescape(EscapingScheme escapingScheme) Methods inherited from class DataPointSnapshot
getCreatedTimestampMillis, getLabels, getScrapeTimestampMillis, hasCreatedTimestamp, hasScrapeTimestamp
-
Constructor Details
-
InfoDataPointSnapshot
To create a newInfoSnapshot.InfoDataPointSnapshot, you can either call the constructor directly or use the Builder withbuilder().- Parameters:
labels- must not be null. UseLabels.EMPTYif there are no labels.
-
InfoDataPointSnapshot
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. -
InfoDataPointSnapshot
-
-
Method Details
-
builder
-
escape
- Specified by:
escapein classDataPointSnapshot
-