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 ImmutableHistogramPointDatacreate(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 ImmutableHistogramPointDatacreate(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HistogramPointData
getBoundaries, getCount, getCounts, getExemplars, getMax, getMin, getSum, hasMax, hasMinMethods inherited from interface 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
-