Examples of visitTopReport()


Examples of com.dianping.cat.report.page.top.TopMetric.visitTopReport()

    if (minuteCount > minute) {
      Payload lastPayload = new Payload();
      Date lastHour = new Date(payload.getDate() - TimeHelper.ONE_HOUR);
      lastPayload.setDate(new SimpleDateFormat("yyyyMMddHH").format(lastHour));

      topMetric.visitTopReport(queryTopReport(lastPayload));
    }
    topMetric.visitTopReport(report);
    model.setTopReport(report);
    model.setTopMetric(topMetric);
  }
View Full Code Here

Examples of com.dianping.cat.report.page.top.TopMetric.visitTopReport()

      Date lastHour = new Date(payload.getDate() - TimeHelper.ONE_HOUR);
      lastPayload.setDate(new SimpleDateFormat("yyyyMMddHH").format(lastHour));

      topMetric.visitTopReport(queryTopReport(lastPayload));
    }
    topMetric.visitTopReport(report);
    model.setTopReport(report);
    model.setTopMetric(topMetric);
  }

  private String buildTopologyNodeLink(Payload payload, Model model, String domain) {
View Full Code Here

Examples of com.dianping.cat.report.page.top.TopMetric.visitTopReport()

  private TopMetric buildTopMetric(Date date) {
    TopReport topReport = queryTopReport(date);
    TopMetric topMetric = new TopMetric(ALERT_PERIOD, Integer.MAX_VALUE, m_exceptionConfigManager);

    topMetric.setStart(date).setEnd(new Date(date.getTime() + TimeHelper.ONE_MINUTE));
    topMetric.visitTopReport(topReport);
    return topMetric;
  }

  public String getName() {
    return AlertType.Exception.getName();
View Full Code Here

Examples of com.dianping.cat.report.task.alert.exception.TopReportVisitor.visitTopReport()

    TopReportVisitor visitor = new TopReportVisitor().setReport(alertReport).setExceptionConfigManager(
        exceptionConfigManager);

    alertReport.setStartTime(topReport.getStartTime());
    alertReport.setEndTime(topReport.getEndTime());
    visitor.visitTopReport(topReport);

    Assert.assertEquals("Check the report result!", expectedAlertReportXml.replace("\r", ""), alertReport.toString()
          .replace("\r", ""));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.