Class Aggregations
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.view.Aggregations
-
public class Aggregations extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Aggregationcount()Returns anAggregationthat calculates count of recorded measurements (the number of recorded measurements).static AggregationdistributionWithExplicitBounds(java.lang.Double... bucketBoundaries)Returns anAggregationthat calculates distribution stats on recorded measurements.static AggregationlastValue()Returns anAggregationthat calculates the last value of all recorded measurements.static AggregationminMaxSumCount()Returns anAggregationthat calculates a simple summary of all recorded measurements.static Aggregationsum()Returns anAggregationthat calculates sum of recorded measurements.
-
-
-
Method Detail
-
sum
public static Aggregation sum()
Returns anAggregationthat calculates sum of recorded measurements.- Returns:
- an
Aggregationthat calculates sum of recorded measurements.
-
count
public static Aggregation count()
Returns anAggregationthat calculates count of recorded measurements (the number of recorded measurements).- Returns:
- an
Aggregationthat calculates count of recorded measurements (the number of recorded * measurements).
-
distributionWithExplicitBounds
public static Aggregation distributionWithExplicitBounds(java.lang.Double... bucketBoundaries)
Returns anAggregationthat calculates distribution stats on recorded measurements. Distribution includes sum, count, histogram, and sum of squared deviations.The boundaries for the buckets in the underlying histogram needs to be sorted.
- Parameters:
bucketBoundaries- bucket boundaries to use for distribution.- Returns:
- an
Aggregationthat calculates distribution stats on recorded measurements.
-
lastValue
public static Aggregation lastValue()
Returns anAggregationthat calculates the last value of all recorded measurements.- Returns:
- an
Aggregationthat calculates the last value of all recorded measurements.
-
minMaxSumCount
public static Aggregation minMaxSumCount()
Returns anAggregationthat calculates a simple summary of all recorded measurements. The summary consists of the count of measurements, the sum of all measurements, the maximum value recorded and the minimum value recorded.- Returns:
- an
Aggregationthat calculates a simple summary of all recorded measurements.
-
-