DateTime threeMinutesAgo = currentTime.minusMinutes(3);
DateTime twoMinutesAgo = currentTime.minusMinutes(2);
DateTime oneMinuteAgo = currentTime.minusMinutes(1);
Set<MeasurementDataNumeric> data = new HashSet<MeasurementDataNumeric>();
data.add(new MeasurementDataNumeric(threeMinutesAgo.getMillis(), scheduleId, 3.2));
data.add(new MeasurementDataNumeric(twoMinutesAgo.getMillis(), scheduleId, 3.9));
data.add(new MeasurementDataNumeric(oneMinuteAgo.getMillis(), scheduleId, 2.6));
WaitForRawInserts waitForRawInserts = new WaitForRawInserts(data.size());
dateTimeService.setNow(currentTime);
metricsServer.addNumericData(data, waitForRawInserts);