public List<RawNumericMetric> findRawMetrics(int scheduleId, long startTime, long endTime) {
RawNumericMetricMapper mapper = new RawNumericMetricMapper();
BoundStatement boundStatement = rawMetricsQuery.bind(scheduleId, new Date(startTime), new Date(endTime));
ResultSet resultSet = storageSession.execute(boundStatement);
return mapper.mapAll(resultSet);
}
public ResultSet findRawMetricsSync(int scheduleId, long startTime, long endTime) {
BoundStatement boundStatement = rawMetricsQuery.bind(scheduleId, new Date(startTime), new Date(endTime));
return storageSession.execute(boundStatement);