提交 e579481b 编写于 作者: Y yong.you

modify the parameter

上级 25ddf239
...@@ -44,7 +44,7 @@ public class GraphCreator { ...@@ -44,7 +44,7 @@ public class GraphCreator {
private ProductLineConfigManager m_productLineConfigManager; private ProductLineConfigManager m_productLineConfigManager;
public Map<String, LineChart> buildChartsByProductLine(String productLine, Date startDate, Date endDate, public Map<String, LineChart> buildChartsByProductLine(String productLine, Date startDate, Date endDate,
String abtestID) { String abtestId) {
long start = startDate.getTime(); long start = startDate.getTime();
long end = endDate.getTime(); long end = endDate.getTime();
int totalSize = (int) ((end - start) / TimeUtil.ONE_MINUTE); int totalSize = (int) ((end - start) / TimeUtil.ONE_MINUTE);
...@@ -60,11 +60,11 @@ public class GraphCreator { ...@@ -60,11 +60,11 @@ public class GraphCreator {
MetricReport oneDayReport = m_metricReportService.query(productLine, new Date(start - TimeUtil.ONE_DAY)); MetricReport oneDayReport = m_metricReportService.query(productLine, new Date(start - TimeUtil.ONE_DAY));
MetricReport sevenDayReport = m_metricReportService.query(productLine, new Date(start - TimeUtil.ONE_DAY * 7)); MetricReport sevenDayReport = m_metricReportService.query(productLine, new Date(start - TimeUtil.ONE_DAY * 7));
Map<String, double[]> currentValues = m_pruductDataFetcher.buildGraphData(metricReport, metricConfigs, Map<String, double[]> currentValues = m_pruductDataFetcher.buildGraphData(metricReport, metricConfigs,
abtestID); abtestId);
Map<String, double[]> oneDayValues = m_pruductDataFetcher Map<String, double[]> oneDayValues = m_pruductDataFetcher
.buildGraphData(oneDayReport, metricConfigs, abtestID); .buildGraphData(oneDayReport, metricConfigs, abtestId);
Map<String, double[]> sevenDayValues = m_pruductDataFetcher.buildGraphData(sevenDayReport, metricConfigs, Map<String, double[]> sevenDayValues = m_pruductDataFetcher.buildGraphData(sevenDayReport, metricConfigs,
abtestID); abtestId);
mergeMap(allCurrentValues, currentValues, totalSize, index); mergeMap(allCurrentValues, currentValues, totalSize, index);
mergeMap(allOneDayValues, oneDayValues, totalSize, index); mergeMap(allOneDayValues, oneDayValues, totalSize, index);
......
...@@ -2842,26 +2842,12 @@ ...@@ -2842,26 +2842,12 @@
<requirement> <requirement>
<role>com.dianping.cat.report.page.metric.JspViewer</role> <role>com.dianping.cat.report.page.metric.JspViewer</role>
</requirement> </requirement>
<requirement>
<role>com.dianping.cat.report.page.model.spi.ModelService</role>
<role-hint>metric</role-hint>
<field-name>m_service</field-name>
</requirement>
<requirement> <requirement>
<role>com.dianping.cat.report.page.PayloadNormalizer</role> <role>com.dianping.cat.report.page.PayloadNormalizer</role>
</requirement> </requirement>
<requirement>
<role>com.dianping.cat.consumer.advanced.MetricConfigManager</role>
</requirement>
<requirement> <requirement>
<role>com.dianping.cat.consumer.advanced.ProductLineConfigManager</role> <role>com.dianping.cat.consumer.advanced.ProductLineConfigManager</role>
</requirement> </requirement>
<requirement>
<role>com.dianping.cat.report.service.ReportService</role>
</requirement>
<requirement>
<role>com.dianping.cat.report.baseline.BaselineService</role>
</requirement>
<requirement> <requirement>
<role>com.dianping.cat.report.page.metric.chart.GraphCreator</role> <role>com.dianping.cat.report.page.metric.chart.GraphCreator</role>
</requirement> </requirement>
...@@ -2876,15 +2862,6 @@ ...@@ -2876,15 +2862,6 @@
</requirement> </requirement>
</requirements> </requirements>
</component> </component>
<component>
<role>com.dianping.cat.consumer.advanced.MetricConfigManager</role>
<implementation>com.dianping.cat.consumer.advanced.MetricConfigManager</implementation>
<requirements>
<requirement>
<role>com.dianping.cat.core.config.ConfigDao</role>
</requirement>
</requirements>
</component>
<component> <component>
<role>com.dianping.cat.consumer.advanced.ProductLineConfigManager</role> <role>com.dianping.cat.consumer.advanced.ProductLineConfigManager</role>
<implementation>com.dianping.cat.consumer.advanced.ProductLineConfigManager</implementation> <implementation>com.dianping.cat.consumer.advanced.ProductLineConfigManager</implementation>
...@@ -2918,6 +2895,15 @@ ...@@ -2918,6 +2895,15 @@
</requirement> </requirement>
</requirements> </requirements>
</component> </component>
<component>
<role>com.dianping.cat.consumer.advanced.MetricConfigManager</role>
<implementation>com.dianping.cat.consumer.advanced.MetricConfigManager</implementation>
<requirements>
<requirement>
<role>com.dianping.cat.core.config.ConfigDao</role>
</requirement>
</requirements>
</component>
<component> <component>
<role>com.dianping.cat.report.page.jsError.Handler</role> <role>com.dianping.cat.report.page.jsError.Handler</role>
<implementation>com.dianping.cat.report.page.jsError.Handler</implementation> <implementation>com.dianping.cat.report.page.jsError.Handler</implementation>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册