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 intMAX_METRICS_STRING_IN_BYTESstatic 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 voidaddMetric(String metric)StringasBoundedString()Constructs a string representation of a collection of business metrics strings in Base64 formats.voidmerge(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_BYTESbytes. 
 - 
 
 -