Package com.dianping.cat.report.page.top

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


      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

  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

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.