Class BusinessMetricCollection

java.lang.Object
software.amazon.awssdk.core.useragent.BusinessMetricCollection

public class BusinessMetricCollection extends Object
  • Field Details

    • MAX_METRICS_STRING_IN_BYTES

      public static final int MAX_METRICS_STRING_IN_BYTES
      See Also:
    • METRIC_SEARCH_PATTERN

      public static final UnaryOperator<String> METRIC_SEARCH_PATTERN
  • Constructor Details

    • BusinessMetricCollection

      public BusinessMetricCollection()
    • BusinessMetricCollection

      public BusinessMetricCollection(int maxMetricsStringInBytes)
  • Method Details

    • recordedMetrics

      public List<String> recordedMetrics()
    • 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 of MAX_METRICS_STRING_IN_BYTES bytes.