ThreadLocalRandom random = ThreadLocalRandom.current();
int bound = startingSchedule + batchSize;
findResourceDataForPast24Hours(random.nextInt(startingSchedule, bound));
findResourceDataForPastWeek(random.nextInt(startingSchedule, bound));
findResourceDataForPast2Weeks(random.nextInt(startingSchedule, bound));
findResourceDataForPast31Days(random.nextInt(startingSchedule, bound));
findResourceDataForPastYear(random.nextInt(startingSchedule, bound));
} finally {
stopwatch.stop();
log.info("Finished running metrics queries in " + stopwatch.elapsed(TimeUnit.MILLISECONDS) + " ms");