Class AggregationUtil
java.lang.Object
io.opentelemetry.sdk.metrics.internal.aggregator.AggregationUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final Map
<String, Aggregation> private static final Map
<Class<? extends Aggregation>, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
aggregationName
(Aggregation aggregation) Return the human-readable name of theaggregation
.static Aggregation
Return the aggregation for the human-readablename
.
-
Field Details
-
aggregationByName
-
nameByAggregation
-
AGGREGATION_DEFAULT
- See Also:
-
AGGREGATION_SUM
- See Also:
-
AGGREGATION_LAST_VALUE
- See Also:
-
AGGREGATION_DROP
- See Also:
-
AGGREGATION_EXPLICIT_BUCKET_HISTOGRAM
- See Also:
-
AGGREGATION_BASE2_EXPONENTIAL_HISTOGRAM
- See Also:
-
-
Constructor Details
-
AggregationUtil
private AggregationUtil()
-
-
Method Details
-
forName
Return the aggregation for the human-readablename
.The inverse of
aggregationName(Aggregation)
.- Throws:
IllegalArgumentException
- if the name is not recognized
-
aggregationName
Return the human-readable name of theaggregation
.The inverse of
forName(String)
.- Throws:
IllegalArgumentException
- if the aggregation is not recognized
-