CloudWatchMetricObserver extends BaseMetricObserver { List<Dimension> createDimensions(TagList tags) { List<Dimension> dimensionList = new ArrayList<>(tags.size()); for (Tag tag : tags) { dimensionList.add(new Dimension().withName(tag.getKey()).withValue(tag.getValue())); } return dimensionList; } @Deprecated  CloudWatchMetricObserver(String name, String namespace, AWSCredentials credentials); @Deprecated  CloudWatchMetricObserver(String name, String namespace, AWSCredentials credentials,
                                  int batchSize);  CloudWatchMetricObserver(String name, String namespace,
                                  AWSCredentialsProvider provider);  CloudWatchMetricObserver(String name, String namespace,
                                  AWSCredentialsProvider provider, int batchSize);  CloudWatchMetricObserver(String name, String namespace, AmazonCloudWatch cloudWatch);  CloudWatchMetricObserver(String name, String namespace, AmazonCloudWatch cloudWatch,
                                  int batchSize); @Override void updateImpl(List<Metric> metrics); CloudWatchMetricObserver withTruncateEnabled(boolean truncateEnabled);  }
@Test public void testCreateDimensions() throws Exception { }