Class BusinessMetricCollection
- java.lang.Object
-
- software.amazon.awssdk.core.useragent.BusinessMetricCollection
-
public class BusinessMetricCollection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_METRICS_STRING_IN_BYTES
static UnaryOperator<String>
METRIC_SEARCH_PATTERN
-
Constructor Summary
Constructors Constructor Description BusinessMetricCollection()
BusinessMetricCollection(int maxMetricsStringInBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetric(String metric)
String
asBoundedString()
Constructs a string representation of a collection of business metrics strings in Base64 formats.void
merge(Collection<String> additionalMetrics)
List<String>
recordedMetrics()
-
-
-
Field Detail
-
MAX_METRICS_STRING_IN_BYTES
public static final int MAX_METRICS_STRING_IN_BYTES
- See Also:
- Constant Field Values
-
METRIC_SEARCH_PATTERN
public static final UnaryOperator<String> METRIC_SEARCH_PATTERN
-
-
Method Detail
-
addMetric
public void addMetric(String metric)
-
merge
public void merge(Collection<String> additionalMetrics)
-
asBoundedString
public String asBoundedString()
Constructs a string representation of a collection of business metrics strings in Base64 formats. The resulting string has a maximum length ofMAX_METRICS_STRING_IN_BYTES
bytes.
-
-