Sfoglia il codice sorgente

预警规则再优化

zhaoxian 4 anni fa
parent
commit
42a030bc9b

+ 1 - 6
module-alarm/src/main/java/cn/com/ctop/alarm/modules/constant/MatchLogic.java

@@ -90,13 +90,8 @@ public class MatchLogic {
                         }
                     }
                 } else {
-                    List<String> thresholdArr = strToList(threshold);
                     if ("contain".equals(condition)) {
-                        for (String t : thresholdArr) {
-                            if (t.contains(value)) {
-                                return true;
-                            }
-                        }
+                        return threshold.contains(value);
                     } else {
                         return !threshold.contains(value);
                     }