private TimedAverageMetrics generateTimedAverageMetrics(int windowDataSize, long windowTimeSize, int dataNum,
      long firstData, long dataDelta, long firstTime, long timeDelta) {
    TimedAverageMetrics metrics =
        new TimedAverageMetrics(windowDataSize, windowTimeSize, firstTime - windowTimeSize);

    for (int i = 0; i < dataNum; i++) {
      metrics.add(firstTime + i * timeDelta, firstData + i * dataDelta);
    }
    return metrics;
  }
Check for the maximum expected amount of data for TimedAverageMetrics.
15000 data point / 10 minute window / data every 50 ms.
llap-server/src/test/org/apache/hadoop/hive/llap/metrics/TestLlapDaemonExecutorMetrics.java