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 Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Map<String, Aggregation> private static final Map<Class<? extends Aggregation>, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaggregationName(Aggregation aggregation) Return the human-readable name of theaggregation.static AggregationReturn 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
-