public static TimePeriod interval(Duration... durations) { // interval sec, min, time
        TimePeriod timePeriod = new TimePeriod(Operator.INTERVAL);
        Collections.addAll(timePeriod.durations, durations);
        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