Class DoubleSummaryPointData
java.lang.Object
io.opentelemetry.sdk.metrics.data.DoubleSummaryPointData
- All Implemented Interfaces:
PointData
SummaryPoint is a single data point that summarizes the values in a time series of numeric
values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleSummaryPointData
create
(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long count, double sum, List<ValueAtPercentile> percentileValues) Creates aDoubleSummaryPointData
.abstract long
getCount()
The number of values that are being summarized.abstract List<ValueAtPercentile>
Percentile values in the summarization.abstract double
getSum()
The sum of all the values that are being summarized.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getExemplars, getStartEpochNanos
-
Method Details
-
create
public static DoubleSummaryPointData create(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long count, double sum, List<ValueAtPercentile> percentileValues) Creates aDoubleSummaryPointData
.- Parameters:
startEpochNanos
- (optional) The starting time for the period where this point was sampled.epochNanos
- The ending time for the period when this value was sampled.attributes
- The set of attributes associated with this point.count
- The number of measurements being sumarized.sum
- The sum of measuremnts being sumarized.percentileValues
- Calculations of percentile values from measurements.
-
getCount
public abstract long getCount()The number of values that are being summarized.- Returns:
- the number of values that are being summarized.
-
getSum
public abstract double getSum()The sum of all the values that are being summarized.- Returns:
- the sum of the values that are being summarized.
-
getPercentileValues
Percentile values in the summarization. Note: a percentile 0.0 represents the minimum value in the distribution.- Returns:
- the percentiles values.
-