CloudWatchMetricObserver extends BaseMetricObserver { PutMetricDataRequest createPutRequest(List<Metric> batch) { List<MetricDatum> datumList = batch.stream().map(this::createMetricDatum) .collect(Collectors.toList()); return new PutMetricDataRequest().withNamespace(cloudWatchNamespace) .withMetricData(datumList); } @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 testCreatePutRequest() throws Exception { }