use of com.webank.wedatasphere.qualitis.bean.TaskRuleAlarmConfigBean in project Qualitis by WeBankFinTech.
the class ExecutionManagerImpl method getTaskRuleAlarmConfigBean.
private List<TaskRuleAlarmConfigBean> getTaskRuleAlarmConfigBean(Rule rule) {
List<TaskRuleAlarmConfigBean> taskRuleAlarmConfigBeans = new ArrayList<>();
for (AlarmConfig alarmConfig : rule.getAlarmConfigs()) {
TaskRuleAlarmConfigBean taskRuleAlarmConfigBean = new TaskRuleAlarmConfigBean();
taskRuleAlarmConfigBean.setCheckTemplate(alarmConfig.getCheckTemplate());
taskRuleAlarmConfigBean.setCompareType(alarmConfig.getCompareType());
taskRuleAlarmConfigBean.setOutputName(alarmConfig.getTemplateOutputMeta().getOutputName());
taskRuleAlarmConfigBean.setThreshold(alarmConfig.getThreshold());
taskRuleAlarmConfigBean.setRuleMetric(alarmConfig.getRuleMetric());
taskRuleAlarmConfigBean.setUploadRuleMetricValue(alarmConfig.getUploadRuleMetricValue());
taskRuleAlarmConfigBean.setUploadAbnormalValue(alarmConfig.getUploadAbnormalValue());
taskRuleAlarmConfigBean.setDeleteFailCheckResult(alarmConfig.getDeleteFailCheckResult());
taskRuleAlarmConfigBeans.add(taskRuleAlarmConfigBean);
}
return taskRuleAlarmConfigBeans;
}
Aggregations