Search in sources :

Example 1 with Threshold

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;
}
Also used : SeriesQuery(com.axibase.tsd.api.model.series.query.SeriesQuery) Period(com.axibase.tsd.api.model.Period) Aggregate(com.axibase.tsd.api.model.series.query.transformation.aggregate.Aggregate) Threshold(com.axibase.tsd.api.model.series.query.transformation.aggregate.Threshold)

Aggregations

Period (com.axibase.tsd.api.model.Period)1 SeriesQuery (com.axibase.tsd.api.model.series.query.SeriesQuery)1 Aggregate (com.axibase.tsd.api.model.series.query.transformation.aggregate.Aggregate)1 Threshold (com.axibase.tsd.api.model.series.query.transformation.aggregate.Threshold)1