@ApiError(code = 404, reason = NO_SCHEDULE_FOR_ID)
public Baseline getBaseline(@ApiParam("Id of the schedule") @PathParam("scheduleId") int scheduleId) {
MeasurementSchedule schedule = obtainSchedule(scheduleId, true, DataType.MEASUREMENT);
MeasurementBaseline mBase = schedule.getBaseline();
Baseline b;
if (mBase==null)
throw new StuffNotFoundException("Baseline for schedule [" + scheduleId +"]");
else
b = new Baseline(mBase.getMin(),mBase.getMax(),mBase.getMean(),mBase.getComputeTime().getTime());
return b;
}