use of com.axibase.tsd.api.model.series.query.transformation.aggregate.Threshold in project atsd-api-test by axibase.
the class SeriesQueryMultipleAggregationTest method createSeriesQuery.
private SeriesQuery createSeriesQuery(AggregationType function) {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, "2017-01-01T00:00:00Z", "2017-01-01T00:25:00Z");
Aggregate aggregate = new Aggregate(function, new Period(1000, TimeUnit.SECOND, PeriodAlignment.START_TIME));
aggregate.setThreshold(new Threshold(300, 1300));
query.setAggregate(aggregate);
return query;
}
Aggregations