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

fix metric problem

上级 2b7ad146
......@@ -51,7 +51,6 @@ public class Handler implements PageHandler<Context> {
if (m_service.isEligable(request)) {
ModelResponse<MetricReport> response = m_service.invoke(request);
MetricReport report = response.getModel();
System.out.println(report);
return report;
} else {
throw new RuntimeException("Internal error: no eligable metric service registered for " + request + "!");
......@@ -82,8 +81,8 @@ public class Handler implements PageHandler<Context> {
}
String product = payload.getProduct();
List<String> domains = m_productLineConfigManager.queryProductLineDomains(product);
List<MetricItemConfig> domainSet = m_configManager.queryMetricItemConfigs(new HashSet<String>(domains));
MetricDisplay display = new MetricDisplay(domainSet, test, startTime);
List<MetricItemConfig> configs = m_configManager.queryMetricItemConfigs(new HashSet<String>(domains));
MetricDisplay display = new MetricDisplay(configs, test, startTime);
display.setAbtest(m_abtestService);
......
......@@ -55,17 +55,17 @@ public class MetricDisplay extends BaseVisitor {
for (MetricItemConfig config : configs) {
if (config.isShowSum()) {
String key = config.getMetricKey() + SUM;
String key = config.getId() + SUM;
m_lineCharts.put(key, creatLineChart(config.getTitle() + CatString.Suffix_SUM));
}
if (config.isShowCount()) {
String key = config.getMetricKey() + COUNT;
String key = config.getId() + COUNT;
m_lineCharts.put(key, creatLineChart(config.getTitle() + CatString.Suffix_COUNT));
}
if (config.isShowAvg()) {
String key = config.getMetricKey() + AVG;
String key = config.getId() + AVG;
m_lineCharts.put(key, creatLineChart(config.getTitle() + CatString.Suffix_AVG));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册