to=copperMonitoringService.getMonitoringDataMaxDate();
}
final AvgAggregateFunction<MeasurePointData> avgFunction =new AvgAggregateFunction<MeasurePointData>(new MeasurePointDataDoubleConverter());
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> avgCreator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,avgFunction, new MeasurePointDataDateConverter()));
final CountAggregateFunction<MeasurePointData> countFunction =new CountAggregateFunction<MeasurePointData>();
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> countCreator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,countFunction, new MeasurePointDataDateConverter()));
final QuantilAggregateFunction<MeasurePointData> quantil50Function =new QuantilAggregateFunction<MeasurePointData>(0.5,new MeasurePointDataDoubleConverter());
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> quantil50Creator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,quantil50Function, new MeasurePointDataDateConverter()));
final QuantilAggregateFunction<MeasurePointData> quantil90Function =new QuantilAggregateFunction<MeasurePointData>(0.9,new MeasurePointDataDoubleConverter());
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> quantil90Creator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,quantil90Function, new MeasurePointDataDateConverter()));
final QuantilAggregateFunction<MeasurePointData> quantil99Function =new QuantilAggregateFunction<MeasurePointData>(0.99,new MeasurePointDataDoubleConverter());
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> quantil99Creator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,quantil99Function, new MeasurePointDataDateConverter()));
final AvgAggregateFunction<MeasurePointData> avgCpuFunction =new AvgAggregateFunction<MeasurePointData>(new SystemResMeasurePointDataDoubleConverter());
final StatisticCreator<MeasurePointData, TimeValuePair<Double>> avgCpuCreator = new StatisticCreator<MeasurePointData,TimeValuePair<Double>>(TimeframeGroup.<MeasurePointData, TimeValuePair<Double>>createGroups(
count,from,to,avgCpuFunction, new MeasurePointDataDateConverter()));
final List<StatisticCreator<MeasurePointData, TimeValuePair<Double>>> statistics = Arrays.asList(
avgCreator,
countCreator,
quantil50Creator,