Class ImmutableHistogramPointData
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.ImmutableHistogramPointData
- All Implemented Interfaces:
HistogramPointData
,PointData
- Direct Known Subclasses:
AutoValue_ImmutableHistogramPointData
@Immutable
public abstract class ImmutableHistogramPointData
extends Object
implements HistogramPointData
An approximate representation of the distribution of measurements.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableHistogramPointData
create
(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts) Creates a HistogramPointData.static ImmutableHistogramPointData
create
(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts, List<DoubleExemplarData> exemplars) Creates a HistogramPointData.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.HistogramPointData
getBoundaries, getCount, getCounts, getExemplars, getMax, getMin, getSum, hasMax, hasMin
Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getStartEpochNanos
-
Constructor Details
-
ImmutableHistogramPointData
ImmutableHistogramPointData()
-
-
Method Details
-
create
public static ImmutableHistogramPointData create(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts) Creates a HistogramPointData. For a Histogram with N defined boundaries, there should be N+1 counts.- Returns:
- a HistogramPointData.
- Throws:
IllegalArgumentException
- if the given boundaries/counts were invalid
-
create
public static ImmutableHistogramPointData create(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts, List<DoubleExemplarData> exemplars) Creates a HistogramPointData. For a Histogram with N defined boundaries, there should be N+1 counts.- Returns:
- a HistogramPointData.
- Throws:
IllegalArgumentException
- if the given boundaries/counts were invalid
-