Package com.dianping.cat.report.page.problem

Examples of com.dianping.cat.report.page.problem.ProblemStatistics.visitProblemReport()


  public void visitProblemReport(ProblemReport report) {
    ProblemStatistics problemStatistics = new ProblemStatistics();
    problemStatistics.setAllIp(true);

    problemStatistics.visitProblemReport(report);

    Collection<TypeStatistics> status = problemStatistics.getStatus().values();
    for (TypeStatistics statistic : status) {
      String type = statistic.getType();
      int count = statistic.getCount();
View Full Code Here


    if (ip.equalsIgnoreCase(Payload.ALL)) {
      problemStatistics.setAllIp(true);
    } else {
      problemStatistics.setIp(ip);
    }
    problemStatistics.visitProblemReport(problemReport);

    if (StringUtils.isEmpty(name) && StringUtils.isEmpty(type)) {
      Map<String, TypeStatistics> status = problemStatistics.getStatus();

      for (Entry<String, TypeStatistics> temp : status.entrySet()) {
View Full Code Here

  }

  private void addFailureInfo(Map<Object, Object> resultMap, ProblemReport report) {
    ProblemStatistics problemStatistics = new ProblemStatistics();
    problemStatistics.setAllIp(true);
    problemStatistics.visitProblemReport(report);
    TypeStatistics failureStatus = problemStatistics.getStatus().get("error");

    if (failureStatus != null) {
      Map<Object, Object> statusMap = new HashMap<Object, Object>();
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.