public static TimePeriod range(Duration begging, Duration end) { // range sec ... min
        TimePeriod timePeriod = new TimePeriod(Operator.RANGE);
        timePeriod.durations.add(begging);
        timePeriod.durations.add(end);
        return timePeriod;
    }
Time Period API. This defines all the time durations supported in Incremental Aggregation,
and the relevant operators
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/aggregation/TimePeriod.java