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 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