diff --git a/metric-publishers/emf-metric-publisher/src/main/java/software/amazon/awssdk/metrics/publishers/emf/internal/EmfMetricConfiguration.java b/metric-publishers/emf-metric-publisher/src/main/java/software/amazon/awssdk/metrics/publishers/emf/internal/EmfMetricConfiguration.java index 70fe0b9e3d4..9e532b2e84e 100644 --- a/metric-publishers/emf-metric-publisher/src/main/java/software/amazon/awssdk/metrics/publishers/emf/internal/EmfMetricConfiguration.java +++ b/metric-publishers/emf-metric-publisher/src/main/java/software/amazon/awssdk/metrics/publishers/emf/internal/EmfMetricConfiguration.java @@ -132,80 +132,3 @@ public List getDimensionStrings() { } } - - - - -// public final class EmfMetricConfiguration { -// private static final String DEFAULT_NAMESPACE = "AwsSdk/JavaSdk2"; -// private static final String DEFAULT_LOG_GROUP_NAME = "/aws/emf/metrics"; -// private static final Set> DEFAULT_DIMENSIONS = Stream.of(CoreMetric.SERVICE_ID, -// CoreMetric.OPERATION_NAME) -// .collect(Collectors.toSet());; -// private static final Set DEFAULT_METRIC_CATEGORIES = Collections.singleton(MetricCategory.ALL); -// private static final MetricLevel DEFAULT_METRIC_LEVEL = MetricLevel.INFO; -// -// private final String namespace; -// private final String logGroupName; -// private final Collection> dimensions; -// private final Collection metricCategories; -// private final MetricLevel metricLevel; -// private final List dimensionStrings; -// -// public EmfMetricConfiguration( -// String namespace, -// String logGroupName, -// Collection> dimensions, -// Collection metricCategories, -// MetricLevel metricLevel -// ) { -// this.namespace = namespace == null ? DEFAULT_NAMESPACE : namespace; -// this.logGroupName = logGroupName == null ? DEFAULT_LOG_GROUP_NAME : logGroupName; -// this.dimensions = dimensions == null ? DEFAULT_DIMENSIONS : new HashSet<>(dimensions); -// this.metricCategories = metricCategories == null ? DEFAULT_METRIC_CATEGORIES : new HashSet<>(metricCategories); -// this.metricLevel = metricLevel == null ? DEFAULT_METRIC_LEVEL : metricLevel; -// this.dimensionStrings = resolveDimensionStrings(dimensions); -// } -// -// public String getNamespace() { -// return namespace; -// } -// -// public String getLogGroupName() { -// return logGroupName; -// } -// -// public Collection> getDimensions() { -// return dimensions; -// } -// -// public Collection getMetricCategories() { -// return metricCategories; -// } -// -// public MetricLevel getMetricLevel() { -// return metricLevel; -// } -// -// public List getDimensionStrings() { -// return dimensionStrings; -// } -// -// -// -// private static List resolveDimensionStrings(Collection> dimensions) { -// List dimensionStrings = new ArrayList<>(); -// if (dimensions != null) { -// for (SdkMetric dimension : dimensions) { -// dimensionStrings.add(dimension.name()); -// } -// } else { -// for (SdkMetric dimension : DEFAULT_DIMENSIONS) { -// dimensionStrings.add(dimension.name()); -// } -// } -// return dimensionStrings; -// } -// -// } -