Package org.kairosdb.client.response

Examples of org.kairosdb.client.response.Response


      metric2.addTag(HTTP_TAG_NAME_2, HTTP_TAG_VALUE_2);
      long timestamp2 = System.currentTimeMillis();
      metric2.addDataPoint(timestamp2, 40);

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));
      assertThat(response.getErrors().size(), equalTo(0));

      // Query metrics
      QueryBuilder builder = QueryBuilder.getInstance();
      builder.setStart(1, TimeUnit.MINUTES);
      builder.addMetric("bogus");
View Full Code Here


      metric2.addTag(HTTP_TAG_NAME_2, HTTP_TAG_VALUE_2);
      long timestamp2 = System.currentTimeMillis();
      metric2.addDataPoint(timestamp2, 40);

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));
      assertThat(response.getErrors().size(), equalTo(0));

      // Check Metric names
      GetResponse metricNames = client.getMetricNames();

      assertThat(metricNames.getStatusCode(), equalTo(200));
View Full Code Here

      metric3.addTag(HTTP_TAG_NAME_1, HTTP_TAG_VALUE_3);
      long timestamp3 = System.currentTimeMillis();
      metric3.addDataPoint(timestamp3, 30);

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));
      assertThat(response.getErrors().size(), equalTo(0));

      // Query metrics
      QueryBuilder builder = QueryBuilder.getInstance();
      builder.setStart(1, TimeUnit.MINUTES);
      QueryMetric queryMetric = builder.addMetric(HTTP_METRIC_NAME_1);
View Full Code Here

      metric1.addDataPoint(System.currentTimeMillis(), 21);
      metric1.addDataPoint(System.currentTimeMillis(), 22);
      metric1.addDataPoint(System.currentTimeMillis(), 23);

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));
      assertThat(response.getErrors().size(), equalTo(0));

      // Query metrics
      QueryBuilder builder = QueryBuilder.getInstance();
      builder.setStart(1, TimeUnit.MINUTES);
View Full Code Here

      metric2.addTag(SSL_TAG_NAME_2, SSL_TAG_VALUE_2);
      long timestamp2 = System.currentTimeMillis();
      metric2.addDataPoint(timestamp2, 40);

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));
      assertThat(response.getErrors().size(), equalTo(0));

      // Check Metric names
      GetResponse metricNames = client.getMetricNames();

      assertThat(metricNames.getStatusCode(), equalTo(200));
View Full Code Here

      metric.addDataPoint(time - 2, 26);
      metric.addDataPoint(time - 1, 27);
      metric.addDataPoint(time - 0, 28);

      // Push Metrics
      Response pushResponse = client.pushMetrics(metricBuilder);

      assertThat(pushResponse.getStatusCode(), equalTo(204));
      assertThat(pushResponse.getErrors().size(), equalTo(0));

      // Query metrics
      QueryBuilder builder = QueryBuilder.getInstance();
      builder.setStart(1, TimeUnit.MINUTES);
View Full Code Here

      metric.addDataPoint(time - 2, 22);
      metric.addDataPoint(time - 1, 23);
      metric.addDataPoint(time - 0, 24);

      // Push Metrics
      Response pushResponse = client.pushMetrics(metricBuilder);

      assertThat(pushResponse.getStatusCode(), equalTo(204));
      assertThat(pushResponse.getErrors().size(), equalTo(0));

      // Query metrics
      QueryBuilder builder = QueryBuilder.getInstance();
      builder.setStart(1, TimeUnit.MINUTES);
View Full Code Here

      metric1.addTag("host", "a");
      long timestamp1 = System.currentTimeMillis();
      metric1.addDataPoint(timestamp1, new Complex(4, 5));

      // Push Metrics
      Response response = client.pushMetrics(metricBuilder);

      assertThat(response.getStatusCode(), equalTo(204));

      // Query Metric
      QueryBuilder queryBuilder = QueryBuilder.getInstance();
      queryBuilder.setStart(2, TimeUnit.MINUTES);
      queryBuilder.addMetric("metric1");
View Full Code Here

TOP

Related Classes of org.kairosdb.client.response.Response

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.