Class DoubleHistogramData
java.lang.Object
io.opentelemetry.sdk.metrics.data.DoubleHistogramData
- All Implemented Interfaces:
Data<DoubleHistogramPointData>
@Immutable
public abstract class DoubleHistogramData
extends Object
implements Data<DoubleHistogramPointData>
A histogram metric point.
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#histogram
Note: This is called "DoubleHistogram" to reflect which primitives are used to record it, however "Histogram" is the equivalent OTLP type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleHistogramDatacreate(AggregationTemporality temporality, Collection<DoubleHistogramPointData> points) abstract AggregationTemporalityReturns theAggregationTemporalityof this metric,abstract Collection<DoubleHistogramPointData>Returns the dataPointDatas for this metric.
-
Method Details
-
create
public static DoubleHistogramData create(AggregationTemporality temporality, Collection<DoubleHistogramPointData> points) -
getAggregationTemporality
Returns theAggregationTemporalityof this metric,AggregationTemporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.
- Returns:
- the
AggregationTemporalityof this metric
-
getPoints
Description copied from interface:DataReturns the dataPointDatas for this metric.- Specified by:
getPointsin interfaceData<DoubleHistogramPointData>- Returns:
- the data
PointDatas for this metric, or emptyCollectionif no points.
-