Package org.kairosdb.client.response

Examples of org.kairosdb.client.response.GetResponse


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

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

      assertThat(metricNames.getStatusCode(), equalTo(200));
      assertThat(metricNames.getResults(), hasItems(HTTP_METRIC_NAME_1, HTTP_METRIC_NAME_2));

      // Check Tag names
      GetResponse tagNames = client.getTagNames();

      assertThat(tagNames.getStatusCode(), equalTo(200));
      assertThat(tagNames.getResults(), hasItems(HTTP_TAG_NAME_1, HTTP_TAG_NAME_2));

      // Check Tag values
      GetResponse tagValues = client.getTagValues();

      assertThat(tagValues.getStatusCode(), equalTo(200));
      assertThat(tagValues.getResults(), hasItems(HTTP_TAG_VALUE_1, HTTP_TAG_VALUE_2));

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


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

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

      assertThat(metricNames.getStatusCode(), equalTo(200));
      assertThat(metricNames.getResults(), hasItems(SSL_METRIC_NAME_1, SSL_METRIC_NAME_2));

      // Check Tag names
      GetResponse tagNames = client.getTagNames();

      assertThat(tagNames.getStatusCode(), equalTo(200));
      assertThat(tagNames.getResults(), hasItems(SSL_TAG_NAME_1, SSL_TAG_NAME_2));

      // Check Tag values
      GetResponse tagValues = client.getTagValues();

      assertThat(tagValues.getStatusCode(), equalTo(200));
      assertThat(tagValues.getResults(), hasItems(SSL_TAG_VALUE_1, SSL_TAG_VALUE_2));

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

TOP

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

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.