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 java.lang.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 Constructor Description ImmutableHistogramPointData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImmutableHistogramPointData
create(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Double> boundaries, java.util.List<java.lang.Long> counts)
Creates a HistogramPointData.static ImmutableHistogramPointData
create(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Double> boundaries, java.util.List<java.lang.Long> counts, java.util.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
-
-
-
-
Method Detail
-
create
public static ImmutableHistogramPointData create(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Double> boundaries, java.util.List<java.lang.Long> counts)
Creates a HistogramPointData. For a Histogram with N defined boundaries, there should be N+1 counts.- Returns:
- a HistogramPointData.
- Throws:
java.lang.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, java.util.List<java.lang.Double> boundaries, java.util.List<java.lang.Long> counts, java.util.List<DoubleExemplarData> exemplars)
Creates a HistogramPointData. For a Histogram with N defined boundaries, there should be N+1 counts.- Returns:
- a HistogramPointData.
- Throws:
java.lang.IllegalArgumentException
- if the given boundaries/counts were invalid
-
-