Package com.dianping.cat.home.rule.entity

Examples of com.dianping.cat.home.rule.entity.Condition


  private com.dianping.cat.home.rule.entity.Config buildDefaultConfig() {
    com.dianping.cat.home.rule.entity.Config config = new com.dianping.cat.home.rule.entity.Config();
    config.setStarttime("00:00");
    config.setEndtime("24:00");

    Condition condition = new Condition();
    condition.setAlertType(AlertLevel.WARNING);
    condition.setMinute(3);
    SubCondition minSuccessSubCondition = new SubCondition();

    minSuccessSubCondition.setType("MinVal").setText("95");
    condition.addSubCondition(minSuccessSubCondition);
    config.addCondition(condition);

    return config;
  }
View Full Code Here


  private com.dianping.cat.home.rule.entity.Config buildDefaultConfig() {
    com.dianping.cat.home.rule.entity.Config config = new com.dianping.cat.home.rule.entity.Config();
    config.setStarttime("00:00");
    config.setEndtime("24:00");

    Condition condition = new Condition();
    SubCondition descPerSubcon = new SubCondition();
    SubCondition descValSubcon = new SubCondition();

    descPerSubcon.setType("DescPer").setText("50");
    descValSubcon.setType("DescVal").setText("100");
    condition.addSubCondition(descPerSubcon).addSubCondition(descValSubcon);
    config.addCondition(condition);

    return config;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.rule.entity.Condition

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.