提交 b04c7510 编写于 作者: Y youyong205

modify the config

上级 3275955d
......@@ -138,7 +138,6 @@ public class AlertConfig {
return tmpResult;
}
}
return new Pair<Boolean, String>(false, "");
}
......@@ -155,7 +154,6 @@ public class AlertConfig {
private Pair<Boolean, String> checkDataByConfig(MetricItemConfig config, double[] value, double[] baseline,
MetricType type, Config con) {
int length = value.length;
StringBuilder baselines = new StringBuilder();
StringBuilder values = new StringBuilder();
......
......@@ -167,7 +167,7 @@ public class MetricAlert implements Task, LogEnabled {
String key = config.getMetricKey();
String metricKey = m_metricConfigManager.buildMetricKey(domain, config.getType(), key);
List<Config> configs = m_metricRuleConfigManager.getConfigs(product, domain, key, metricKey);
int maxMinute = queryCheckMinute(configs);
int maxMinute = queryMaxMinute(configs);
if (minute >= maxMinute - 1) {
MetricReport report = fetchMetricReport(product, ModelPeriod.CURRENT);
......@@ -257,7 +257,7 @@ public class MetricAlert implements Task, LogEnabled {
}
}
private int queryCheckMinute(List<Config> configs) {
private int queryMaxMinute(List<Config> configs) {
int maxMinute = DATA_CHECK_MINUTE;
for (Config config : configs) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册