Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred1155 committed Dec 28, 2024
1 parent 87a931a commit 4e43df3
Showing 1 changed file with 0 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,80 +132,3 @@ public List<String> 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<SdkMetric<String>> DEFAULT_DIMENSIONS = Stream.of(CoreMetric.SERVICE_ID,
// CoreMetric.OPERATION_NAME)
// .collect(Collectors.toSet());;
// private static final Set<MetricCategory> 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<SdkMetric<String>> dimensions;
// private final Collection<MetricCategory> metricCategories;
// private final MetricLevel metricLevel;
// private final List<String> dimensionStrings;
//
// public EmfMetricConfiguration(
// String namespace,
// String logGroupName,
// Collection<SdkMetric<String>> dimensions,
// Collection<MetricCategory> 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<SdkMetric<String>> getDimensions() {
// return dimensions;
// }
//
// public Collection<MetricCategory> getMetricCategories() {
// return metricCategories;
// }
//
// public MetricLevel getMetricLevel() {
// return metricLevel;
// }
//
// public List<String> getDimensionStrings() {
// return dimensionStrings;
// }
//
//
//
// private static List<String> resolveDimensionStrings(Collection<SdkMetric<String>> dimensions) {
// List<String> dimensionStrings = new ArrayList<>();
// if (dimensions != null) {
// for (SdkMetric<String> dimension : dimensions) {
// dimensionStrings.add(dimension.name());
// }
// } else {
// for (SdkMetric<String> dimension : DEFAULT_DIMENSIONS) {
// dimensionStrings.add(dimension.name());
// }
// }
// return dimensionStrings;
// }
//
// }

0 comments on commit 4e43df3

Please sign in to comment.