Package org.kairosdb.client.response.grouping

Examples of org.kairosdb.client.response.grouping.TimeGroupResult


    assertThat(tagGroupResults.getGroup().size(), equalTo(2));
    assertThat(tagGroupResults.getGroup().get("bucket"), equalTo("5-10s"));
    assertThat(tagGroupResults.getGroup().get("customer"), equalTo("Acme"));

    // Time Group
    TimeGroupResult timeGroupResults = (TimeGroupResult) results.get(0).getGroupResults().get(3);
    assertThat(timeGroupResults.getName(), equalTo("time"));
    assertThat(timeGroupResults.getGroupCount(), equalTo(168));
    assertThat(timeGroupResults.getRangeSize().getValue(), equalTo(1));
    assertThat(timeGroupResults.getRangeSize().getUnit(), equalTo(TimeUnit.HOURS.toString()));
    assertThat(timeGroupResults.getGroup().getGroupNumber(), equalTo(3));
  }
View Full Code Here

TOP

Related Classes of org.kairosdb.client.response.grouping.TimeGroupResult

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.