Package io.opencensus.stats
Class AggregationData.DistributionData
java.lang.Object
io.opencensus.stats.AggregationData
io.opencensus.stats.AggregationData.DistributionData
- Direct Known Subclasses:
AutoValue_AggregationData_DistributionData
- Enclosing class:
AggregationData
The distribution stats of aggregated
MeasureValue
s. Distribution stats include mean,
count, histogram, min, max and sum of squared deviations.- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.stats.AggregationData
AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(double mean, long count, double min, double max, double sumOfSquaredDeviations, List<Long> bucketCounts) Deprecated.since 0.17.create
(double mean, long count, double min, double max, double sumOfSquaredDeviations, List<Long> bucketCounts, List<Exemplar> exemplars) Deprecated.since 0.17.Creates aDistributionData
.create
(double mean, long count, double sumOfSquaredDeviations, List<Long> bucketCounts, List<Exemplar> exemplars) Creates aDistributionData
.Returns the aggregated bucket counts.abstract long
getCount()
Returns the aggregated count.Returns theExemplar
s associated with histogram buckets.double
getMax()
Deprecated.since 0.17.abstract double
getMean()
Returns the aggregated mean.double
getMin()
Deprecated.since 0.17.abstract double
Returns the aggregated sum of squared deviations.final <T> T
match
(Function<? super AggregationData.SumDataDouble, T> p0, Function<? super AggregationData.SumDataLong, T> p1, Function<? super AggregationData.CountData, T> p2, Function<? super AggregationData.DistributionData, T> p3, Function<? super AggregationData.LastValueDataDouble, T> p4, Function<? super AggregationData.LastValueDataLong, T> p5, Function<? super AggregationData, T> defaultFunction) Applies the given match function to the underlying data type.
-
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.since 0.17. Usecreate(double, long, double, List, List)
Creates aDistributionData
.- 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 aDistributionData
.- 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.since 0.17. Usecreate(double, long, double, List)
.Creates aDistributionData
.- 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 aDistributionData
.- 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.since 0.17. Returns0
.Returns the minimum of the population values.- Returns:
- the minimum of the population values.
- Since:
- 0.8
-
getMax
Deprecated.since 0.17. Returns0
.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
Returns the aggregated bucket counts. The returned list is immutable, trying to update it will throw anUnsupportedOperationException
.- Returns:
- the aggregated bucket counts.
- Since:
- 0.8
-
getExemplars
Returns theExemplar
s associated with histogram buckets.- Returns:
- the
Exemplar
s associated with histogram buckets. - Since:
- 0.16
-
match
public final <T> T match(Function<? super AggregationData.SumDataDouble, T> p0, Function<? super AggregationData.SumDataLong, T> p1, Function<? super AggregationData.CountData, T> p2, Function<? super AggregationData.DistributionData, T> p3, Function<? super AggregationData.LastValueDataDouble, T> p4, Function<? super AggregationData.LastValueDataLong, T> p5, Function<? super AggregationData, T> defaultFunction) Description copied from class:AggregationData
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregationData
-