Class SummarySnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot
io.prometheus.metrics.model.snapshots.SummarySnapshot
Immutable snapshot of a Summary metric.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
Fields inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot
data
-
Constructor Summary
ConstructorsConstructorDescriptionSummarySnapshot
(MetricMetadata metadata, Collection<SummarySnapshot.SummaryDataPointSnapshot> data) To create a newSummarySnapshot
, you can either call the constructor directly or use the builder withnewBuilder()
. -
Method Summary
Methods inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot
getMetadata, validateLabels
-
Constructor Details
-
SummarySnapshot
public SummarySnapshot(MetricMetadata metadata, Collection<SummarySnapshot.SummaryDataPointSnapshot> data) To create a newSummarySnapshot
, you can either call the constructor directly or use the builder withnewBuilder()
.- Parameters:
metadata
- SeeMetricMetadata
for more naming conventions.data
- the constructor will create a sorted copy of the collection.
-
-
Method Details
-
getData
- Specified by:
getData
in classMetricSnapshot
-
newBuilder
-