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

Examples of com.dianping.cat.home.alert.policy.entity.Level


    }
  }

  public List<AlertChannel> queryChannels(String typeName, String groupName, String levelName) {
    try {
      Level level = queryLevel(typeName, groupName, levelName);
      if (level == null) {
        return new ArrayList<AlertChannel>();
      } else {
        String send = level.getSend();
        String[] sends = send.split(",");
        List<AlertChannel> channels = new ArrayList<AlertChannel>();

        for (String str : sends) {
          AlertChannel channel = AlertChannel.findByName(str);
View Full Code Here


    return group.findLevel(levelName);
  }

  public int querySuspendMinute(String typeName, String groupName, String levelName) {
    try {
      Level level = queryLevel(typeName, groupName, levelName);

      if (level == null) {
        return 0;
      } else {
        return level.getSuspendMinute();
      }
    } catch (Exception ex) {
      return 0;
    }
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.alert.policy.entity.Level

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.