ScenarioManager manager = ScenarioManager.getInstance();
MeasurementFactory measurementFactory = manager.getMeasurementFactory("service-e-metrics");
MeasurementScheduleRequest request = new MeasurementScheduleRequest(1000, "name", 30000, true,
DataType.MEASUREMENT);
MeasurementData data = measurementFactory.nextValue(request);
Double value = (Double) data.getValue();
// the OOBNumericMeasurementFactory algorithm uses millis from midnight GMT/UTC when calculating day of week,
// so do the same here
Calendar cal = Calendar.getInstance(new SimpleTimeZone(0, "UTC"));