use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testInterpolateAndRateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after interpolation and rate calculation")
public void testInterpolateAndRateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setInterpolate(INTERPOLATE);
query.setRate(RATE);
checkResponse(query);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testRateAndGroupLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after rate calculation and grouping")
public void testRateAndGroupLimit() throws Exception {
SeriesQuery query = new SeriesQuery("*", METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setEntities(ENTITIES);
RATE.setOrder(1);
query.setRate(RATE);
GROUP.setOrder(2);
query.setGroup(GROUP);
checkResponse(query);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testInterpolateAndAggregateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after interpolation and aggregation")
public void testInterpolateAndAggregateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setInterpolate(INTERPOLATE);
query.setAggregate(AGGREGATE);
checkResponse(query);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testInterpolateGroupAggregateRateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after interpolation and all permutations of grouping, aggregation, and rate")
public void testInterpolateGroupAggregateRateLimit() throws Exception {
SeriesQuery query = new SeriesQuery("*", METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setEntities(ENTITIES);
query.setInterpolate(INTERPOLATE);
for (int i = 1; i <= 3; i++) {
for (int j = 1; j <= 3; j++) {
for (int k = 1; k < 3; k++) {
if (i != j && j != k && k != i) {
GROUP.setOrder(i);
query.setGroup(GROUP);
AGGREGATE.setOrder(j);
query.setAggregate(AGGREGATE);
RATE.setOrder(k);
query.setRate(RATE);
checkResponse(query);
}
}
}
}
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testRateAndAggregateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after rate calculation and aggregation")
public void testRateAndAggregateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
RATE.setOrder(1);
query.setRate(RATE);
AGGREGATE.setOrder(2);
query.setAggregate(AGGREGATE);
checkResponse(query);
}
Aggregations