소스 검색

预警规则再优化

zhaoxian 4 년 전
부모
커밋
42a030bc9b
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      module-alarm/src/main/java/cn/com/ctop/alarm/modules/constant/MatchLogic.java

+ 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);
                     }