private AlertInfo buildAlertInfo( ThresholdAlarmMeta meta, String title, String content, String ruleType, int alertType) { AlertInfo info = new AlertInfo(); info.setContent(content); info.setTitle(title); info.setRuleId(meta.getRuleId()); info.setDate(meta.getDate()); info.setRuleType(ruleType); info.setAlertType(alertType); return info; }