Class AggregationData.DistributionData

java.lang.Object
io.opencensus.stats.AggregationData
io.opencensus.stats.AggregationData.DistributionData
Direct Known Subclasses:
AutoValue_AggregationData_DistributionData
Enclosing class:
AggregationData

@Immutable public abstract static class AggregationData.DistributionData extends AggregationData
The distribution stats of aggregated MeasureValues. Distribution stats include mean, count, histogram, min, max and sum of squared deviations.
Since:
0.8
  • Constructor Details

    • DistributionData

      DistributionData()
  • Method Details

    • create

      @Deprecated public static AggregationData.DistributionData create(double mean, long count, double min, double max, double sumOfSquaredDeviations, List<Long> bucketCounts, List<Exemplar> exemplars)
      Deprecated.
      Creates a DistributionData.
      Parameters:
      mean - mean value.
      count - count value.
      min - min value.
      max - max value.
      sumOfSquaredDeviations - sum of squared deviations.
      bucketCounts - histogram bucket counts.
      exemplars - the exemplars associated with histogram buckets.
      Returns:
      a DistributionData.
      Since:
      0.16
    • create

      public static AggregationData.DistributionData create(double mean, long count, double sumOfSquaredDeviations, List<Long> bucketCounts, List<Exemplar> exemplars)
      Creates a DistributionData.
      Parameters:
      mean - mean value.
      count - count value.
      sumOfSquaredDeviations - sum of squared deviations.
      bucketCounts - histogram bucket counts.
      exemplars - the exemplars associated with histogram buckets.
      Returns:
      a DistributionData.
      Since:
      0.17
    • create

      @Deprecated public static AggregationData.DistributionData create(double mean, long count, double min, double max, double sumOfSquaredDeviations, List<Long> bucketCounts)
      Deprecated.
      Creates a DistributionData.
      Parameters:
      mean - mean value.
      count - count value.
      min - min value.
      max - max value.
      sumOfSquaredDeviations - sum of squared deviations.
      bucketCounts - histogram bucket counts.
      Returns:
      a DistributionData.
      Since:
      0.8
    • create

      public static AggregationData.DistributionData create(double mean, long count, double sumOfSquaredDeviations, List<Long> bucketCounts)
      Creates a DistributionData.
      Parameters:
      mean - mean value.
      count - count value.
      sumOfSquaredDeviations - sum of squared deviations.
      bucketCounts - histogram bucket counts.
      Returns:
      a DistributionData.
      Since:
      0.17
    • getMean

      public abstract double getMean()
      Returns the aggregated mean.
      Returns:
      the aggregated mean.
      Since:
      0.8
    • getCount

      public abstract long getCount()
      Returns the aggregated count.
      Returns:
      the aggregated count.
      Since:
      0.8
    • getMin

      @Deprecated public double getMin()
      Deprecated.
      since 0.17. Returns 0.
      Returns the minimum of the population values.
      Returns:
      the minimum of the population values.
      Since:
      0.8
    • getMax

      @Deprecated public double getMax()
      Deprecated.
      since 0.17. Returns 0.
      Returns the maximum of the population values.
      Returns:
      the maximum of the population values.
      Since:
      0.8
    • getSumOfSquaredDeviations

      public abstract double getSumOfSquaredDeviations()
      Returns the aggregated sum of squared deviations.
      Returns:
      the aggregated sum of squared deviations.
      Since:
      0.8
    • getBucketCounts

      public abstract List<Long> getBucketCounts()
      Returns the aggregated bucket counts. The returned list is immutable, trying to update it will throw an UnsupportedOperationException.
      Returns:
      the aggregated bucket counts.
      Since:
      0.8
    • getExemplars

      public abstract List<Exemplar> getExemplars()
      Returns the Exemplars associated with histogram buckets.
      Returns:
      the Exemplars associated with histogram buckets.
      Since:
      0.16
    • match

      Description copied from class: AggregationData
      Applies the given match function to the underlying data type.
      Specified by:
      match in class AggregationData