提交 808acd40 编写于 作者: L leon.li

stage changes

上级 72bba79d
......@@ -56,18 +56,18 @@ public class BusinessAlert extends BaseAlert implements Task, LogEnabled {
String metric = config.getMetricKey();
String metricKey = m_metricConfigManager.buildMetricKey(domain, config.getType(), metric);
AlertResultEntity alertResult = null;
List<AlertResultEntity> alertResults = null;
if (config.isShowAvg()) {
alertResult = computeAlertInfo(minute, product, metricKey, MetricType.AVG);
alertResults = computeAlertInfo(minute, product, metricKey, MetricType.AVG);
}
if (config.isShowCount()) {
alertResult = computeAlertInfo(minute, product, metricKey, MetricType.COUNT);
alertResults = computeAlertInfo(minute, product, metricKey, MetricType.COUNT);
}
if (config.isShowSum()) {
alertResult = computeAlertInfo(minute, product, metricKey, MetricType.SUM);
alertResults = computeAlertInfo(minute, product, metricKey, MetricType.SUM);
}
if (alertResult != null && alertResult.isTriggered()) {
for (AlertResultEntity alertResult : alertResults) {
String mailTitle = m_alertConfig.buildMailTitle(productLine.getTitle(), config.getTitle());
String contactInfo = buildContactInfo(domain);
alertResult.setContent(alertResult.getContent() + contactInfo);
......
package com.dianping.cat.report.task.alert.sender;
import java.util.List;
import com.dianping.cat.consumer.company.model.entity.ProductLine;
import com.dianping.cat.report.task.alert.BaseAlertConfig;
public class Postman {
protected String generateMailTitle() {
return null;
}
protected String generateMailContent() {
return null;
}
protected List<String> queryReceivers() {
return null;
}
public boolean storeAndSendAlert(BaseAlertConfig alertConfig, ProductLine productline, String domain) {
return false;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册