Package org.kairosdb.client.response.grouping

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


    assertThat(valueGroupResults.getRangeSize(), equalTo(10));
    assertThat(valueGroupResults.getRangeSize(), equalTo(10));
    assertThat(valueGroupResults.getGroup().getGroupNumber(), equalTo(2));

    // Tag Group
    TagGroupResult tagGroupResults = (TagGroupResult) results.get(0).getGroupResults().get(2);
    assertThat(tagGroupResults.getName(), equalTo("tag"));
    assertThat(tagGroupResults.getTags(), hasItems("bucket", "customer", "datacenter"));
    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));
View Full Code Here

TOP

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

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.