Intelligent filtering expression configuration method based on multiple service scenes
By adopting abstract design of multi-business scenarios and flexible target value matching methods in the conditional expression configuration, the problem that the conditional expression implementation method in the prior art is not intuitive and flexible enough, and a high flexibility and efficient conditional expression configuration is achieved.
Patent Information
- Application Number
- CN202411978124.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-12-31
AI Technical Summary
The existing conditional expression implementation method is not intuitive enough, the configuration is complex, the flexibility is lacking, it is difficult to adapt to changeable business scenarios, and it is difficult to achieve fine-grained control and diversified matching rules.
An intelligent configuration method for filter expressions based on multiple business scenarios is adopted. Through abstract design, filter conditions are combined into multiple groups of conditions. The conditions in the group are "An" relationships, and the relationships between groups are "OR". Each condition contains fields, operators and target values, and provides flexible target value matching methods, supporting multiple matching methods and application scenarios.
It realizes high flexibility and high efficiency conditional expression configuration, supports multiple matching methods and application scenarios, simplifies the configuration process, and improves the accuracy and efficiency of conditional filtering.
Smart Images

Figure CN119903086A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a filtering expression intelligent configuration method based on multiple business scenarios. Background Art
[0002] In the monitoring and management of software systems, it is often necessary to filter and process alarms, faults or events according to specific conditions. The existing conditional expression implementation methods are often complex and inflexible, making it difficult to meet changing business needs.
[0003] The prior art has the following defects:
[0004] 1. The existing conditional expression implementation is not intuitive enough and the configuration is complex;
[0005] 2. Lack of flexibility and difficulty in adapting to changing business scenarios;
[0006] 3. It is difficult to achieve fine-grained control and diversified matching rules.
[0007] Therefore, an intelligent configuration method of filtering expressions based on multiple business scenarios is proposed. Summary of the invention
[0008] The purpose of the present invention is to solve the problems raised in the above-mentioned background technology, and provide a method for intelligently configuring filtering expressions based on multiple business scenarios.
[0009] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:
[0010] A method for intelligently configuring filtering expressions based on multiple business scenarios includes the following steps:
[0011] Step 1: Rule design. The filtering conditions are abstracted into multiple groups of condition combinations. The conditions within a group are in an "and" relationship, and the conditions between groups are in an "or" relationship. Each condition contains a field, an operator, and a target value.
[0012] Step 2: Target value matching, providing flexible matching methods to meet the needs of various scenarios;
[0013] Step 3: Describe the filter condition expression, and combine the condition expressions to match alarms of a specific severity or with a specific inspection tag;
[0014] Step 4: Implement intuitive description of filter condition expressions, simplifying the expression of filter conditions through concise and intuitive operators (oper) and rich target value (values) description methods.
[0015] Furthermore, application scenarios of the filtering conditions of the method include: dispatching strategy, silent rule, suppression rule, alarm aggregation, routing rule, and label enhancement.
[0016] Furthermore, the operator (oper) includes the following types:
[0017] Type 1: match_any: any target value that meets the condition is matched;
[0018] Type 2: match_none: matches when all target values do not meet the conditions.
[0019] Furthermore, the target value matching in step 2 includes regular matching, wildcard matching, IP segment matching, numerical value matching and exact matching.
[0020] Furthermore, the step 4 implements the intuitive description of the filter condition expression and includes the following steps:
[0021] Step 41: The operator (oper) is extremely simple and supports "match any" and "match none" logic;
[0022] Step 42: The target value (values) supports multiple values, and the operator (oper) is used to implement scenarios such as inclusion (in) and interval (between);
[0023] Step 43: The target value (values) is flexible and extensible, and uses expressions to describe the filtering conditions, supporting multiple matching methods such as regular, wildcard, IP segment and numerical value;
[0024] Step 44: Conditions have only an "and" relationship with each other, and condition groups have only an "or" relationship with each other, so as to achieve a simple and easy-to-remember logical combination. The overall combination supports most conditional filtering scenarios to improve the flexibility and efficiency of configuration.
[0025] Furthermore, the method is not dependent on a specific programming language or platform, so it is universal and portable.
[0026] The beneficial effects of the present invention are as follows:
[0027] Through abstract design, it supports multiple matching methods to meet the filtering needs in different scenarios and has high flexibility;
[0028] By minimizing configuration complexity, user configuration efficiency is improved, making configuration simpler, and having a simpler and more intuitive conditional expression configuration method;
[0029] Maintain the long-term competitiveness of the system by easily expanding new matching methods and application scenarios, so as to have strong scalability;
[0030] Through multiple matching methods, the accuracy and efficiency of condition screening are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of multiple groups of condition combinations of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0033] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In addition, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0035] In the description of the embodiments of the present invention, it should be noted that the terms "inside", "outside", "upper", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the inventive product is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0036] like Figure 1 As shown, a method for intelligently configuring filtering expressions based on multiple business scenarios includes the following steps:
[0037] Step 1: Rule design. The filtering conditions are abstracted into multiple groups of condition combinations. The conditions within a group are in an "and" relationship, and the conditions between groups are in an "or" relationship. Each condition contains a field, an operator, and a target value.
[0038] Step 2: Target value matching, providing flexible matching methods to meet the needs of various scenarios;
[0039] Step 3: Describe the filter condition expression, and combine the condition expressions to match alarms of a specific severity or with a specific inspection tag;
[0040] Step 4: Implement intuitive description of filter condition expressions, simplifying the expression of filter conditions through concise and intuitive operators (oper) and rich target value (values) description methods.
[0041] The application scenarios of this method's filtering conditions include:
[0042] Dispatch strategy: supports setting dispatch objects based on different filtering conditions;
[0043] Silent rule: Match specific faults through filtering conditions to achieve fault silencing;
[0044] Suppression rules: match newly triggered faults with active faults to achieve fault suppression;
[0045] Alarm aggregation: fine-grained control of alarm aggregation dimensions, matching specific alarms through filtering conditions;
[0046] Routing rules: global routing matching rules, which route alarms to specific collaboration spaces based on filtering conditions;
[0047] Tag enhancement: Generate tags for alarms based on filtering conditions.
[0048] The operators (oper) include the following types:
[0049] Type 1: match_any: any target value that meets the condition is matched;
[0050] Type 2: match_none: matches when all target values do not meet the conditions.
[0051] The target value matching in step 2 includes:
[0052] Regular expression matching: When the value string has / as the prefix and suffix, it is recognized as a regular expression and must satisfy the regular expression;
[0053] Wildcard matching: When value contains * or ? and has no prefix or suffix / , it is recognized as a wildcard expression and supports fuzzy matching;
[0054] IP segment matching: When the value is prefixed with cidr:, it is identified as an IP segment and must meet the IP segment range;
[0055] Numerical size matching: When value is prefixed with num:[gt|ge|lt|le]:, it is recognized as a numerical size matching, supporting numerical judgments of greater than (gt), greater than or equal to (ge), less than (lt), and less than or equal to (le);
[0056] Exact match: When the value does not meet the above format, it is considered an exact match. The strings are matched when they are completely equal.
[0057] The step 4 implements the intuitive description of the filter condition expression and includes the following steps:
[0058] Step 41: The operator (oper) is extremely simple and supports "match any" and "match none" logic;
[0059] Step 42: The target value (values) supports multiple values, and the operator (oper) is used to implement scenarios such as inclusion (in) and interval (between);
[0060] Step 43: The target value (values) is flexible and extensible, and uses expressions to describe the filtering conditions, supporting multiple matching methods such as regular, wildcard, IP segment and numerical value;
[0061] Step 44: Conditions have only an "and" relationship with each other, and condition groups have only an "or" relationship with each other, so as to achieve a simple and easy-to-remember logical combination. The overall combination supports most conditional filtering scenarios to improve the flexibility and efficiency of configuration.
[0062] The method is not dependent on a specific programming language or platform and is therefore universal and portable.
[0063] Example expression:
[0064] Bash
[0065] #“==” means match_any|“!=” means match_none
[0066] (severity==Critical|Warning and labels.check==Binlog sync delay)
[0067] or(labels.check== / cpu / | / io / | / disk / and labels.value==num:gt:90)
[0068] The examples show how to combine conditional expressions to match alerts of a certain severity or alerts with a specific inspection tag and a value greater than 90.
[0069] To sum up: through abstract design, it supports multiple matching methods to meet the filtering needs in different scenarios and has high flexibility; by minimizing the configuration complexity, it improves the user configuration efficiency, makes the configuration simple, and has a simpler and more intuitive conditional expression configuration method; by easily expanding new matching methods and application scenarios, the long-term competitiveness of the system is maintained to have strong scalability; through multiple matching methods, the accuracy and efficiency of conditional screening are improved.
[0070] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for intelligently configuring filtering expressions based on multiple business scenarios, characterized in that: The following steps are involved: Step 1: Rule design. The filtering conditions are abstracted into multiple groups of condition combinations. The conditions within a group are in an "and" relationship, and the conditions between groups are in an "or" relationship. Each condition contains a field, an operator, and a target value. Step 2: Target value matching, providing flexible matching methods to meet the needs of various scenarios; Step 3: Describe the filter condition expression, and combine the condition expressions to match alarms of a specific severity or with a specific inspection tag; Step 4: Implement intuitive description of filter condition expressions, simplifying the expression of filter conditions through concise and intuitive operators (oper) and rich target value (values) description methods.
2. According to claim 1, a filtering expression intelligent configuration method based on multiple business scenarios is characterized in that: The application scenarios of the filtering conditions of this method include: dispatch strategy, silent rule, suppression rule, alarm aggregation, routing rule, and label enhancement.
3. According to claim 1, a filtering expression intelligent configuration method based on multiple business scenarios is characterized in that: The operators (oper) include the following types: Type 1: match_any: any target value that meets the condition is matched; Type 2: match_none: matches when all target values do not meet the conditions.
4. According to claim 1, a filtering expression intelligent configuration method based on multiple business scenarios is characterized in that: The target value matching in step 2 includes regular matching, wildcard matching, IP segment matching, numerical value matching and exact matching.
5. According to claim 1, a filtering expression intelligent configuration method based on multiple business scenarios is characterized in that: The step 4 implements the intuitive description of the filter condition expression and includes the following steps: Step 41: The operator (oper) is extremely simple, supporting "match any" and "match none" logic; Step 42: The target value (values) supports multiple values, and the operator (oper) is used to implement scenarios such as inclusion (in) and interval (between); Step 43: The target value (values) is flexible and extensible, and uses expressions to describe the filtering conditions, supporting multiple matching methods such as regular, wildcard, IP segment and numerical value; Step 44: Conditions have only an "and" relationship with each other, and condition groups have only an "or" relationship with each other, so as to achieve a simple and easy-to-remember logical combination. The overall combination supports most conditional filtering scenarios to improve the flexibility and efficiency of configuration.
6. A method for intelligently configuring filtering expressions based on multiple business scenarios according to any one of claims 1 to 5, characterized in that: The method is not dependent on a specific programming language or platform and is therefore universal and portable.
Citation Information
Patent Citations
Configuration method and device of condition expression
CN107742239A
Event rule and event processing method and device
CN116415056A
Method and apparatus for vector retrieval, electronic device, and storage medium
US20240370485A1