Examples of AggregationRule


Examples of com.dianping.cat.configuration.aggreation.model.entity.AggregationRule

      throw new RuntimeException("Error action name " + action.getName());
    }
  }

  private void updateAggregationRule(Payload payload) {
    AggregationRule proto = payload.getRule();
    m_aggreationConfigManager.insertAggregationRule(proto);
  }
View Full Code Here

Examples of com.dianping.cat.configuration.aggreation.model.entity.AggregationRule

  public List<AlertException> buildFrontEndAlertExceptions(Item frontEndItem) {
    List<AlertException> alertExceptions = new ArrayList<AlertException>();

    for (Entry<String, Double> entry : frontEndItem.getException().entrySet()) {
      String exception = entry.getKey();
      AggregationRule rule = m_aggregationConfigManager.queryAggration(exception);
     
      if (rule != null) {
        int warn = rule.getWarn();
        double value = entry.getValue().doubleValue();

        if (value >= warn) {
          alertExceptions.add(new AlertException(exception, AlertLevel.WARNING, value));
        }
View Full Code Here

Examples of com.dianping.cat.configuration.aggreation.model.entity.AggregationRule

    if (receiver != null && !receiver.isEnable()) {
      return mailReceivers;
    } else {
      mailReceivers.addAll(buildDefaultMailReceivers(receiver));

      AggregationRule rule = m_aggConfigManager.queryAggration(id);
      if (rule != null) {
        mailReceivers.addAll(split(rule.getMails()));
      }
      return mailReceivers;
    }
  }
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.