Package com.dianping.cat.home.alert.summary.entity

Examples of com.dianping.cat.home.alert.summary.entity.Category


    return alertSummary;
  }

  private Category generateCategoryByTimeCategory(Date date, String cate) {
    Category category = new Category(cate);
    String dbCategoryName = cate;
    Date startTime = new Date(date.getTime() - AlertSummaryExecutor.SUMMARY_DURATION);

    try {
      List<Alert> dbAlerts = m_alertDao.queryAlertsByTimeCategory(startTime, date, dbCategoryName,
View Full Code Here


    return category;
  }

  private Category generateCategoryByTimeCateDomain(Date date, String cate, String domain) {
    Category category = new Category(cate);
    String dbCategoryName = cate;
    Date startTime = new Date(date.getTime() - AlertSummaryExecutor.SUMMARY_DURATION);

    try {
      List<Alert> dbAlerts = m_alertDao.queryAlertsByTimeCategoryDomain(startTime, date, dbCategoryName, domain,
View Full Code Here

  }

  private Category generateDependCategoryByTimeCateDomain(Date date, String cate, List<String> dependencyDomains) {
    String categoryName = PREFIX + cate;
    String dbCategoryName = cate;
    Category category = new Category(categoryName);
    Date startTime = new Date(date.getTime() - AlertSummaryExecutor.SUMMARY_DURATION);

    for (String domain : dependencyDomains) {
      try {
        List<Alert> dbAlerts = m_alertDao.queryAlertsByTimeCategoryDomain(startTime, date, dbCategoryName, domain,
View Full Code Here

    return category;
  }

  private Category generateLongCallCategory(Date date, TopologyGraph topology, int statusThreshold) {
    Category category = new Category(LONG_CALL);
    List<TopologyEdge> edges = new ArrayList<TopologyEdge>();

    for (TopologyEdge edge : topology.getEdges().values()) {
      if (edge.getStatus() >= statusThreshold) {
        edges.add(edge);
      }
    }

    Collection<com.dianping.cat.home.alert.summary.entity.Alert> alerts = convertToAlert(edges, date);
    Iterator<com.dianping.cat.home.alert.summary.entity.Alert> it = alerts.iterator();
    while (it.hasNext()) {
      category.addAlert(it.next());
    }

    return category;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.alert.summary.entity.Category

Copyright © 2018 www.massapicom. 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.