Package io.opencensus.metrics.export
Class AutoValue_Distribution
- java.lang.Object
-
- io.opencensus.metrics.export.Distribution
-
- io.opencensus.metrics.export.AutoValue_Distribution
-
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_Distribution extends Distribution
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.metrics.export.Distribution
Distribution.Bucket, Distribution.BucketOptions
-
-
Field Summary
Fields Modifier and Type Field Description private Distribution.BucketOptions
bucketOptions
private java.util.List<Distribution.Bucket>
buckets
private long
count
private double
sum
private double
sumOfSquaredDeviations
-
Constructor Summary
Constructors Constructor Description AutoValue_Distribution(long count, double sum, double sumOfSquaredDeviations, Distribution.BucketOptions bucketOptions, java.util.List<Distribution.Bucket> buckets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Distribution.BucketOptions
getBucketOptions()
Returns bucket options used to create a histogram for the distribution.java.util.List<Distribution.Bucket>
getBuckets()
Returns the aggregated histogramDistribution.Bucket
s.long
getCount()
Returns the aggregated count.double
getSum()
Returns the aggregated sum.double
getSumOfSquaredDeviations()
Returns the aggregated sum of squared deviations.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.metrics.export.Distribution
create
-
-
-
-
Field Detail
-
count
private final long count
-
sum
private final double sum
-
sumOfSquaredDeviations
private final double sumOfSquaredDeviations
-
bucketOptions
private final Distribution.BucketOptions bucketOptions
-
buckets
private final java.util.List<Distribution.Bucket> buckets
-
-
Constructor Detail
-
AutoValue_Distribution
AutoValue_Distribution(long count, double sum, double sumOfSquaredDeviations, @Nullable Distribution.BucketOptions bucketOptions, java.util.List<Distribution.Bucket> buckets)
-
-
Method Detail
-
getCount
public long getCount()
Description copied from class:Distribution
Returns the aggregated count.- Specified by:
getCount
in classDistribution
- Returns:
- the aggregated count.
-
getSum
public double getSum()
Description copied from class:Distribution
Returns the aggregated sum.- Specified by:
getSum
in classDistribution
- Returns:
- the aggregated sum.
-
getSumOfSquaredDeviations
public double getSumOfSquaredDeviations()
Description copied from class:Distribution
Returns the aggregated sum of squared deviations.The sum of squared deviations from the mean of the values in the population. For values x_i this is:
Sum[i=1..n]((x_i - mean)^2)
If count is zero then this field must be zero.
- Specified by:
getSumOfSquaredDeviations
in classDistribution
- Returns:
- the aggregated sum of squared deviations.
-
getBucketOptions
@Nullable public Distribution.BucketOptions getBucketOptions()
Description copied from class:Distribution
Returns bucket options used to create a histogram for the distribution.- Specified by:
getBucketOptions
in classDistribution
- Returns:
- the
BucketOptions
associated with theDistribution
, ornull
if there isn't one.
-
getBuckets
public java.util.List<Distribution.Bucket> getBuckets()
Description copied from class:Distribution
Returns the aggregated histogramDistribution.Bucket
s.- Specified by:
getBuckets
in classDistribution
- Returns:
- the aggregated histogram buckets.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-