use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testAggregateAndRateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after aggregation and rate")
public void testAggregateAndRateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
AGGREGATE.setOrder(1);
query.setAggregate(AGGREGATE);
RATE.setOrder(2);
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 testAggregateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after aggregation")
public void testAggregateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
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 testGroupLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after the group transformation")
public void testGroupLimit() throws Exception {
SeriesQuery query = new SeriesQuery("*", METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setEntities(ENTITIES);
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 testTwoIdenticalQueriesWithInterpolateLimit.
@Issue("4836")
@Test(description = "test two identical limited queries with interpolation")
public void testTwoIdenticalQueriesWithInterpolateLimit() throws Exception {
SeriesQuery query1 = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query1.setInterpolate(INTERPOLATE);
SeriesQuery query2 = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query2.setInterpolate(INTERPOLATE);
checkResponse(query1, query2);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryTransformationsLimitTest method testInterpolateLimit.
@Issue("4835")
@Test(description = "test that limit is applied correctly after interpolation")
public void testInterpolateLimit() throws Exception {
SeriesQuery query = new SeriesQuery(ENTITY_1, METRIC, "2017-01-01T00:00:00Z", "2017-01-01T02:00:00Z");
query.setInterpolate(INTERPOLATE);
checkResponse(query);
}
Aggregations