public StatisticsChart() {
super("statistics");
}
public Pair<List<String>, Map<Date, List<Number>>> getChartData(HttpServletRequest request) {
ClusterManager cluster= ClusterManager.getInstance();
NodeDescriptor node = cluster.getNodes().get(Integer.parseInt(request.getParameter("id")));
String eventName = request.getParameter("eventName");
MonitorModule monitor = (MonitorModule)cluster.getModule("monitor");
MonitorNodeDescriptor mnode = monitor.getModuleNode(node);
Statistics statistics = (Statistics)mnode.getLastState().getProperties().get("statistics");
AdaptiveHistogram hist = statistics.getLastPeriodStats(eventName).getHistogram();
Calendar c = DateUtil.getCanonicalDayFromToday(0);