Package org.jclouds.cloudwatch.domain

Examples of org.jclouds.cloudwatch.domain.StatisticValues$Builder


      String namespace = "JCLOUDS/Test";
      Date metricTimestamp = new Date();
      // CloudWatch rounds metric timestamps down to the closest minute
      Date metricTimestampInCloudWatch =
            new Date(metricTimestamp.getTime() - (metricTimestamp.getTime() % (60 * 1000)));
      StatisticValues ss = StatisticValues.builder()
                                    .maximum(4.0)
                                    .minimum(1.0)
                                    .sampleCount(4.0)
                                    .sum(10.0)
                                    .build();
View Full Code Here


   HttpRequest request() {
      return HttpRequest.builder().method("POST").endpoint("http://localhost").build();
   }

   public void testMetricWithoutTimestamp() throws Exception {
      StatisticValues ss = StatisticValues.builder()
                                    .maximum(4.0)
                                    .minimum(1.0)
                                    .sampleCount(4.0)
                                    .sum(10.0)
                                    .build();
View Full Code Here

                                "&MetricData.member.1.Unit=" + Unit.COUNT.toString() +
                                "&MetricData.member.1.Value=5.0");
   }

   public void testMetricWithMultipleDatum() throws Exception {
      StatisticValues ss = StatisticValues.builder()
                                    .maximum(4.0)
                                    .minimum(1.0)
                                    .sampleCount(4.0)
                                    .sum(10.0)
                                    .build();
View Full Code Here

TOP

Related Classes of org.jclouds.cloudwatch.domain.StatisticValues$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.