}
@Override
public void write(OutputStream outputStream) throws IOException, WebApplicationException {
MetricsDAO metricsDAO = sessionManager.getMetricsDAO();
Iterable<RawNumericMetric> resultSet = metricsDAO.findRawMetrics(scheduleId, startTime, endTime);
PrintWriter pw = new PrintWriter(outputStream);
if (mediaType.equals(MediaType.APPLICATION_JSON_TYPE)) {
jsonOutput(pw, resultSet);