Data processing method and device

By constructing and matching business verification rules, using statistical methods to mine historical configuration data, and combining a priori information to tailor the search space, we solve the accuracy problem of configuration change detection in the existing technology, improve the accuracy and efficiency of rule mining, and ensure Ensure the correctness of online configuration changes.

CN115145982BActive Publication Date: 2024-09-06ZHEJIANG E COMMERCE BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210926469.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-03
Publication Date
2024-09-06
Estimated Expiration
2042-08-03

AI Technical Summary

Technical Problem

In existing Internet testing technology, the quality prevention and control measures for configuration changes are weak, resulting in an increase in online problems. In particular, system configuration changes and business configuration changes are difficult to accurately detect abnormalities, and heuristic search algorithms are difficult to output when the amount of data is large. Accurate rule mining results.

Method used

By constructing business verification rules, the target business verification rules are determined based on the permutation, combination and matching degree of historical configuration data, using statistical methods to mine potential configuration patterns, detecting configuration anomalies in real time, and combining a priori information to tailor the search space to improve the accuracy of rule mining. .

Benefits of technology

It improves the accuracy of rule mining results for configuration changes, reduces search complexity, solves NP-hard problems, and ensures the correctness of online configuration changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145982B
    Figure CN115145982B
Patent Text Reader

Abstract

The embodiments of the present specification provide a data processing method and a device, wherein the data processing method includes: constructing at least two business verification rules of the target business based on the historical configuration data of the target business, arranging and combining the business fields in the historical configuration data according to the number of business parameters in each business verification rule, generating a corresponding combination result, determining the matching degree between each business verification rule and the combination result, and determining the target business verification rule from the at least two business verification rules based on the matching degree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and more particularly to a data processing method. One or more embodiments of this specification also relate to a data processing apparatus, a computing device, and a computer-readable storage medium. Background Art

[0002] In current Internet testing technology, configuration changes are becoming more and more active. Compared with code changes, configuration changes have more comprehensive quality control measures, while the quality control measures for configuration changes are relatively weak, so the number of online problems caused by changes is gradually increasing. Among them, the two core types of configuration changes in Internet systems are: system configuration changes and business configuration changes.

[0003] Based on this, we can currently detect abnormal configurations in real time by learning and mining rules from historical configuration data. At present, rule mining is often performed through heuristic search algorithms, but heuristic search algorithms look for local optimal solutions. When the amount of data is small, the heuristic information is not obvious enough, and it is difficult for heuristic search to output more accurate rule mining results. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a data processing method. One or more embodiments of this specification also relate to a data processing device, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a data processing method is provided, including:

[0006] Constructing at least two service verification rules for the target service according to the historical configuration data of the target service;

[0007] According to the number of business parameters in each business verification rule, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results;

[0008] The matching degree between each of the service verification rules and the combination result is determined, and based on the matching degree, a target service verification rule is determined from the at least two service verification rules.

[0009] Optionally, constructing at least two service verification rules of the target service according to historical configuration data of the target service includes:

[0010] Constructing at least two service verification rules for the target service according to at least two pieces of historical configuration data of the target service;

[0011] Correspondingly, the business fields in the historical configuration data are arranged and combined according to the number of business parameters in each business verification rule to generate corresponding combination results, including:

[0012] Integrate the business fields included in each of the at least two historical configuration data to generate a corresponding integration result;

[0013] According to the number of business parameters in each business verification rule, the business fields in the integration result are arranged and combined to generate a corresponding combination result.

[0014] Optionally, the arranging and combining the business fields in the historical configuration data according to the number of business parameters in each business verification rule to generate a corresponding combination result includes:

[0015] Dividing the at least two service verification rules into at least two rule sets, wherein the service verification rules in each rule set contain an equal number of service parameters;

[0016] According to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, wherein the number of business fields contained in each combination result is equal to the number of the business parameters, and the target rule set is one of the at least two rule sets.

[0017] Optionally, determining the matching degree between each business verification rule and the combination result includes:

[0018] According to the business attribute data of the target business, the combination results are screened to generate corresponding screening results;

[0019] Determine the degree of match between each business verification rule and the screening result.

[0020] Optionally, constructing at least two service verification rules of the target service according to historical configuration data of the target service includes:

[0021] Acquire historical configuration data of the target service, and extract a first relationship type of each service field and / or a second relationship type between at least two service fields in the historical configuration data;

[0022] At least two business verification rules of the target business are constructed according to the first relationship type and / or the second relationship type.

[0023] Optionally, screening the combination result according to the business attribute data of the target business includes:

[0024] According to the service attribute data of the target service, determining the service field to be combined in the service field included in the historical configuration data;

[0025] The combination results are screened according to the service fields to be combined and the service fields included in each combination result in the combination results.

[0026] Optionally, determining a matching degree between each of the service verification rules and the combination result, and determining a target service verification rule from the at least two service verification rules according to the matching degree, includes:

[0027] The matching degree between each business verification rule in the target rule set and the combination result is determined, and according to the matching degree, a target business verification rule is determined from the business verification rules included in the target rule set.

[0028] Optionally, determining the matching degree between each business verification rule and the combination result includes:

[0029] comparing field values ​​corresponding to the business fields in the combination result according to the relationship type between the business parameters in the business verification rule, wherein the business verification rule is one of the at least two business verification rules;

[0030] A matching result is determined according to the comparison result, and the ratio between the number of successfully matched combination results in the matching result and the total number of combination results is used as the matching degree between the business verification rule and the combination result.

[0031] Optionally, the data processing method further includes:

[0032] Receiving a configuration update request of the target service, wherein the configuration update request includes configuration parameters to be updated;

[0033] Determine a target business verification rule for the target business, and verify the configuration parameters to be updated according to the target business verification rule;

[0034] If the verification is passed, the configuration of the target service is updated based on the configuration parameters to be updated.

[0035] Optionally, the data processing method further includes:

[0036] In the case of a verification failure, the alarm module is called to perform an alarm process on the verification result that fails the verification.

[0037] According to a second aspect of an embodiment of this specification, there is provided a data processing device, including:

[0038] A construction module, configured to construct at least two service verification rules of the target service according to historical configuration data of the target service;

[0039] A combination module is configured to arrange and combine the business fields in the historical configuration data according to the number of business parameters in each business verification rule to generate a corresponding combination result;

[0040] The determination module is configured to determine the matching degree between each business verification rule and the combination result, and determine the target business verification rule from the at least two business verification rules according to the matching degree.

[0041] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0042] Memory and processor;

[0043] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the data processing method.

[0044] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the data processing method are implemented.

[0045] An embodiment of the present specification constructs at least two business verification rules of the target business according to the historical configuration data of the target business, arranges and combines the business fields in the historical configuration data according to the number of business parameters in each business verification rule, generates a corresponding combination result, determines the matching degree between each business verification rule and the combination result, and determines the target business verification rule from the at least two business verification rules according to the matching degree.

[0046] The embodiment of this specification first constructs two or more business verification rules based on historical configuration data, then arranges and combines the business fields in the historical configuration data according to the number of business parameters in each business verification rule, and performs rule mining based on the matching degree between the arrangement and combination results and the business verification rules. Mining the potential rules in the historical configuration data in this way is conducive to ensuring the accuracy of the rule mining results. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a processing flow chart of a data processing method provided by an embodiment of this specification;

[0048] Figure 2a It is a schematic diagram of a permutation and combination result provided by an embodiment of this specification;

[0049] Figure 2b is a schematic diagram of a search space clipping result provided by an embodiment of this specification;

[0050] Figure 2c is a schematic diagram of a compliance rate calculation result provided by an embodiment of this specification;

[0051] Figure 2d is a schematic diagram of a rule mining result provided by an embodiment of this specification;

[0052] Figure 3 is a processing flow chart of a data processing method provided by an embodiment of this specification;

[0053] Figure 4 is a schematic diagram of a data processing device provided by an embodiment of this specification;

[0054] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0055] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0056] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0057] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0058] First, the terms involved in one or more embodiments of this specification are explained.

[0059] Rule mining: Discovering the underlying patterns and rules between data from big data is a data learning method based on statistics.

[0060] Prior information: Prior information refers to the experience and historical data obtained before the sample experiment is carried out.

[0061] Search space: Searching in a closed and finite set, the scope of this search is called the search space.

[0062] Online configuration changes: Current Internet system changes can be divided into three types: code changes, configuration changes, and data changes. Configuration changes refer to changing the state and logic of system operation by changing the system configuration without changing the code.

[0063] In this specification, a data processing method is provided. This specification also relates to a data processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0064] Figure 1 A processing flow chart of a data processing method provided according to an embodiment of the present specification is shown, including steps 102 to 106.

[0065] Step 102: construct at least two service verification rules of the target service according to the historical configuration data of the target service.

[0066] Specifically, the target business, i.e., the business that needs to be updated in configuration, includes but is not limited to financial management business, insurance business, trading business, etc.

[0067] The historical configuration data of the target service includes, but is not limited to, system configuration data of the target service and configuration data of service parameters.

[0068] In practical applications, by learning and mining the historical configuration data of the target business, the mined rules can be used to detect configuration anomalies of the target business in real time.

[0069] The data processing method provided in the embodiments of this specification is a rule mining method, which specifically mines potential configuration regularities and configuration rules in the historical configuration data based on the historical configuration data of the target business based on statistical methods, and when the configuration data of the target business is changed, the mined rules can be used to perform anomaly detection on the configuration data to be changed.

[0070] Specifically, the target business may be determined first, historical configuration data of the target business may be obtained, and then at least two business verification rules of the target business may be constructed according to the historical configuration data.

[0071] In specific implementation, at least two service verification rules of the target service are constructed according to the historical configuration data of the target service, including:

[0072] Acquire historical configuration data of the target service, and extract a first relationship type of each service field and / or a second relationship type between at least two service fields in the historical configuration data;

[0073] At least two business verification rules of the target business are constructed according to the first relationship type and / or the second relationship type.

[0074] Specifically, the first relationship type, that is, the relationship type corresponding to a business field, includes but is not limited to a numerical class, a status class, a non-empty class, etc., and the numerical class can include consistency and range classes, and the status class can include enumeration relationships, status associations, etc.; the second relationship type, that is, the relationship type between two or more business fields, includes but is not limited to a date class, a string class, a field combination class, etc., and the date class can include a greater than relationship, an equal to relationship, a less than relationship, etc., the string class can include a length consistency class, a prefix / suffix consistency class, etc., and the field combination class can include field combination uniqueness, field association type, etc.

[0075] In an embodiment of the present specification, at least two business verification rules for the target business are constructed based on the historical configuration data of the target business. Specifically, the relationship type of each business field in the historical configuration data can be extracted first, the relationship type can be used as a general rule template, and a generalized rule library can be constructed based on the general rule template. The generalized rule library includes at least two business verification rules.

[0076] For example, the first relationship type extracted is a non-empty class, and the second relationship type is a greater than relationship, an equal relationship, and a length consistency class. The first relationship type and the second relationship type are used as general rule templates, and the constructed business verification rules can be consistency rules a=b, numerical comparison rules a>b, field non-empty class a!=null, length consistency class a.length=xx, etc. These business verification rules together constitute a generalized rule base.

[0077] After constructing the business verification rules, you can mine target business verification rules that have a high degree of compliance with the historical configuration data based on the historical configuration data and the business verification rules.

[0078] Step 104: Arrange and combine the business fields in the historical configuration data according to the number of business parameters in each business verification rule to generate a corresponding combination result.

[0079] Specifically, the business parameter is the parameter included in the business verification rule. For example, if the business verification rule is a=b, the business parameters are a and b, and the number of business parameters is 2. If the business verification rule is a!=null, the business parameter is a, and the number of business parameters is 1.

[0080] The business fields in the historical configuration data are the fields corresponding to the configuration items of the target business.

[0081] After constructing the business verification rules, the business fields in the historical configuration data can be arranged and combined according to the number of business parameters included in the business verification rules to generate corresponding combination results. If the number of business parameters included in the business verification rules is 2, the business fields in the historical configuration data are arranged and combined according to the number of business parameters, that is, the business fields in the historical configuration parameters are arranged and combined in pairs to obtain the corresponding combination results.

[0082] In specific implementation, at least two service verification rules of the target service are constructed according to the historical configuration data of the target service, including:

[0083] Constructing at least two service verification rules for the target service according to at least two pieces of historical configuration data of the target service;

[0084] Correspondingly, according to the number of business parameters in each business verification rule, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, including:

[0085] Integrate the business fields included in each of the at least two historical configuration data to generate a corresponding integration result;

[0086] According to the number of business parameters in each business verification rule, the business fields in the integration result are arranged and combined to generate a corresponding combination result.

[0087] Specifically, when there are at least two pieces of historical configuration data in the target business, a business verification rule is constructed, that is, at least two business verification rules of the target business are constructed according to the at least two pieces of historical configuration data of the target business.

[0088] After the business verification rules are constructed, if it is necessary to arrange and combine the business fields in the historical configuration data, the business fields contained in each of at least two historical configuration data can be integrated, and according to the number of business parameters in each business verification rule, the business fields in the integration result can be arranged and combined to generate the corresponding combination result.

[0089] For example, there are two historical configuration data in the target business, namely historical configuration data L1 and historical configuration data L2. The historical configuration data L1 contains business fields A, B, and C, and the historical configuration data L2 contains business fields A, B, and D. The business fields contained in each of the two historical configuration data are integrated, and the generated integration result is the business fields A, B, C, and D; then, according to the number of business parameters in each business verification rule, the business fields in the integration result can be arranged and combined to generate the corresponding combination result.

[0090] If the number of business parameters in one of the business verification rules is 2, the business fields in the integration result are arranged and combined according to the number of business parameters in the business verification rule, that is, the business fields A, B, C, and D are arranged and combined in pairs to obtain the corresponding combination result.

[0091] The schematic diagram of the permutation and combination results provided in the embodiments of this specification is as follows Figure 2a As shown, Figure 2a In the example, field A (business field A), field B (business field B), field C (business field C), and field D (business field D) are arranged and combined in pairs to obtain 6 combinations, namely field A + field B, field A + field C, field A + field D, field B + field C, field B + field D, and field C + field D.

[0092] Alternatively, according to the number of business parameters in each business verification rule, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, including:

[0093] Dividing the at least two service verification rules into at least two rule sets, wherein the service verification rules in each rule set contain an equal number of service parameters;

[0094] According to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, wherein the number of business fields contained in each combination result is equal to the number of the business parameters, and the target rule set is one of the at least two rule sets.

[0095] Specifically, since the number of business parameters contained in each of the at least two business verification rules constructed may be different, when the business fields in the historical configuration data are arranged and combined according to the number of business parameters in each business verification rule, the embodiments of this specification can first divide the business verification rules into rule sets according to the number of business parameters contained in each business verification rule, so that the business verification rules in each rule set after the division contain an equal number of business parameters.

[0096] Then, the business fields in the historical configuration data can be arranged and combined based on the number of business parameters contained in the business verification rules in each rule set, taking the rule set as a unit, to generate corresponding combination results; for example, two rule sets are obtained, namely rule set G1 and rule set G2, and the number of business parameters contained in the business verification rules in rule set G1 is 2, then the business fields in the historical configuration data are arranged and combined, that is, the business fields in the historical configuration data are arranged and combined in pairs, to obtain corresponding combination results; the number of business parameters contained in the business verification rules in rule set G2 is 3, then the business fields in the historical configuration data are arranged and combined, that is, any three business fields in the historical configuration data are arranged and combined to obtain corresponding combination results.

[0097] In addition, in the embodiments of the present specification, when there are at least two historical configuration data in the target business, the business fields contained in each of the at least two historical configuration data can also be integrated, and the business fields in the integration results can be arranged and combined according to the number of business parameters contained in the business verification rules in each rule set to generate a corresponding combination result.

[0098] In an embodiment of the present specification, business verification rules containing an equal number of business parameters are divided into the same rule set, and the business fields in the historical configuration data are arranged and combined based on the number of business parameters contained in each business verification rule in the same rule set. Since each business rule set in the same rule set contains an equal number of business parameters, for each business verification rule in the same rule set, it is only necessary to arrange and combine the business fields of the historical configuration data once according to the number, without having to arrange and combine the business fields of the historical configuration data once for each business verification rule. This is beneficial to reducing the number of arrangements and combinations of business fields, thereby facilitating improving the processing efficiency of rule mining.

[0099] Step 106, determining the matching degree between each of the business verification rules and the combination result, and determining the target business verification rule from the at least two business verification rules according to the matching degree.

[0100] Specifically, after generating the permutation and combination results of the business fields, the matching degree between each business verification rule and each permutation and combination result can be determined, and the rule mining of the target business can be realized according to the matching degree, that is, the target business verification rule is determined.

[0101] In a specific implementation, determining the matching degree between each business verification rule and the combination result includes:

[0102] According to the business attribute data of the target business, the combination results are screened to generate corresponding screening results;

[0103] Determine the degree of match between each business verification rule and the screening result.

[0104] Further, the combination result is screened according to the business attribute data of the target business, including:

[0105] According to the service attribute data of the target service, determining the service field to be combined in the service field included in the historical configuration data;

[0106] The combination results are screened according to the service fields to be combined and the service fields included in each combination result in the combination results.

[0107] Specifically, the business attribute data of the target business can be used to represent prior information related to the target business, such as some business characteristic information of the target business itself, or pre-acquired experience and historical data related to the target business.

[0108] In an embodiment of the present specification, after the business fields in the historical configuration data are arranged and combined to obtain corresponding combination results, the combination results can be screened using the business attribute data of the target business. Specifically, the search space can be determined based on the generated combination results, and the combination results in the search space can be tailored according to prior information.

[0109] Among them, when the search space is tailored according to prior information, the business fields that can be combined in the business fields contained in the historical configuration data can be determined based on the prior information (business attribute data of the target business), and then the business fields to be combined and the business fields contained in each combination result can be tailored (screened).

[0110] For example, if it is determined based on prior information that business field A and business field B can be combined, then business field A and business field B are the business fields to be combined, and the combination results are screened according to the business fields to be combined, that is, it is determined that each combination result contains the combination result of business field A and business field B, and the combination result is retained.

[0111] Alternatively, if business field A is a string and business field C is a date, and it is determined based on prior information that the string and the date are not combined, the combination results containing business field A and business field C can be trimmed, that is, deleted, to achieve screening of each combination result.

[0112] A schematic diagram of a search space clipping result provided in an embodiment of this specification is as follows Figure 2b shown. Figure 2bThe search space in is composed of business field A, business field B, business field C, business field D, business field A+business field B, business field A+business field C, business field A+business field D, business field B+business field C, business field B+business field D, and business field C+business field D.

[0113] Among them, business field A and business field B are strings, business field C is a number, and business field D is a date. According to prior information, it is determined that the string and the date are not combined, and the string and the number are not combined. Then, the combination results containing business field A and business field C, the combination results containing business field A and business field D, the combination results containing business field B and business field C, and the combination results containing business field B and business field D can be trimmed, that is, deleted. In addition, according to prior information, it is determined that the number and the date are not used as a combination result alone, then the combination result containing only business field C and business field D can be trimmed, that is, deleted, so as to realize the screening of each combination result. After the trimming is completed, Figure 2b The search space in only includes business field A, business field B, and business field A+business field B.

[0114] In the embodiment of the present specification, after the search space is pruned, the matching degree between each service verification rule and the combination result retained in the pruned result can be further determined.

[0115] The embodiments of this specification help reduce the search complexity by trimming the search space; in addition, by trimming the search space through prior information, it can effectively solve the NP (non-deterministic polynomial) difficulty problem that arises in the process of searching for business verification rules in the search space.

[0116] During the specific implementation, after dividing at least two business verification rules into at least two rule sets, and according to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate the corresponding combination result, the matching degree between each business verification rule and the combination result is determined, and according to the matching degree, the target business verification rule is determined from the at least two business verification rules. Specifically, the matching degree between each business verification rule in the target rule set and the combination result is determined, and according to the matching degree, the target business verification rule is determined from the business verification rules contained in the target rule set.

[0117] Specifically, the matching degree may be a compliance rate.

[0118] If the business verification rules are divided into rule sets, and the business fields in the historical configuration data are permuted and combined based on the number of business parameters contained in each business verification rule in the same rule set, then after obtaining the corresponding permutation and combination results, the matching degree of each business verification rule in the rule set can be calculated with the historical configuration data corresponding to the business field in each permutation and combination result, so as to determine the target business verification rule from the rule set according to the matching degree, wherein, if it is determined that the historical configuration data corresponding to the business field in the permutation and combination result meets the business verification rule, it is determined that the business verification rule matches the historical configuration data corresponding to the business field in the permutation and combination result, and the matching degree can be determined by the ratio between the number of historical configuration data matching the business verification rule and the total number of historical configuration data in the permutation and combination result.

[0119] A schematic diagram of a compliance calculation result provided in an embodiment of this specification is as follows Figure 2c shown. Figure 2c The compliance rate of the historical configuration data corresponding to the business field A, i.e., the string-type business field, with the business verification rule one in the rule base is 95% (i.e., in the combination result generated by arranging and combining the business fields in the historical configuration data according to the number of business parameters in the business verification rule one, 95% of the data in the historical configuration data corresponding to the combination result of the business field A complies with the business verification rule one), and the compliance rate with the business verification rule two is 50%. The compliance rate of the historical configuration data corresponding to the dual-factor type business field composed of the business field A and the business field B with the business verification rule four in the rule base is 96% (i.e., in the combination result generated by arranging and combining the business fields in the historical configuration data according to the number of business parameters in the business verification rule four, 96% of the data in the historical configuration data corresponding to the combination result of the business field A+business field B complies with the business verification rule four), and the compliance rate with the business verification rule five is 40%.

[0120] Specifically, if the number of business parameters contained in the business verification rules in the target rule set is 2, each business verification rule in the target rule set is matched with the historical configuration data corresponding to the combination result containing two business fields to determine whether it complies with each business verification rule in the target rule set.

[0121] For example, if a business verification rule in the target rule set is a=b, the business verification rule is matched with the historical configuration data corresponding to the combination result containing two business fields, that is, it is determined whether the historical configuration data corresponding to the two business fields in each combination result are consistent. If they are consistent, it is determined that the historical configuration data matches the business verification rule, that is, it is determined that the historical configuration data complies with this business verification rule.

[0122] Alternatively, determining the matching degree between each business verification rule and the combination result includes:

[0123] comparing field values ​​corresponding to the business fields in the combination result according to the relationship type between the business parameters in the business verification rule, wherein the business verification rule is one of the at least two business verification rules;

[0124] A matching result is determined based on the comparison result, and the ratio between the number of successfully matched field values ​​and the total number of field values ​​in the matching result is used as the matching degree between the business verification rule and the combination result.

[0125] Specifically, as mentioned above, the relationship types include but are not limited to greater than relationships, equal to relationships, less than relationships, etc., and the field value corresponding to the business field is the historical configuration data corresponding to the business field. Therefore, if the business fields in the historical configuration data are arranged and combined according to the number of business parameters in business verification rule four, the combined result is business field A+business field B, and the historical configuration data corresponding to the combination result of business field A+business field B is historical configuration data L1+historical configuration data L2, historical configuration data L3+historical configuration data L4, historical configuration data L5+historical configuration data L6.

[0126] If the business verification rule is a>b, then when determining the matching degree between the business verification rule and the combination result of business field A+business field B, you can first compare the historical configuration data corresponding to the business field in the combination result according to the relationship type between the business parameters in the business verification rule, specifically, compare whether the historical configuration data L1 is greater than the historical configuration data L2, compare whether the historical configuration data L3 is greater than the historical configuration data L4, and compare whether the historical configuration data L5 is greater than the historical configuration data L6. If so, the comparison is successful, that is, the match is successful; then the ratio of the number of successfully matched historical configuration data to the total number of historical configuration data in the combination result can be used as the matching degree between the business verification rule and the combination result, and the target business verification rule is determined based on the matching degree.

[0127] A schematic diagram of a rule mining result provided in an embodiment of this specification is as follows Figure 2d shown. Figure 2dIn the above example, the compliance rate between business verification rule one and business field A is 95%, which is greater than the preset threshold, so business verification rule one can be used as the target business verification rule. The compliance rate between business verification rule four and business field A + business field B is 96%, which is greater than the preset threshold, so business verification rule four can be used as the target business verification rule. Similarly, the compliance rate between business verification rule two and business field A is 50%, which is less than the preset threshold, so business verification rule two cannot be used as the target business verification rule. The compliance rate between business verification rule five and business field A + business field B is 40%, which is less than the preset threshold, so business verification rule five cannot be used as the target business verification rule.

[0128] The embodiment of this specification uses the business verification rule with a matching degree (conformity rate) greater than a threshold as the target business verification rule for the target business, so as to realize rule mining for the target business based on historical configuration data, and is conducive to ensuring the accuracy of the rule mining results.

[0129] In a specific implementation, after completing the rule mining, a configuration update request of the target service may be received, wherein the configuration update request includes configuration parameters to be updated;

[0130] Determine a target business verification rule for the target business, and verify the configuration parameters to be updated according to the target business verification rule;

[0131] If the verification is passed, updating the configuration of the target service based on the configuration parameters to be updated;

[0132] In the case of a verification failure, the alarm module is called to perform an alarm process on the verification result that fails the verification.

[0133] Specifically, in the embodiments of the present specification, after the target business verification rules of the target business are mined out through the aforementioned process, the mined rules can be used to verify the configuration parameters to be updated of the target business to determine whether the configuration parameters to be updated meet the conditions. Specifically, the configuration update request of the target business is received, and the configuration parameters to be updated in the configuration update request are verified through the target business verification rules of the target business. The verification process can compare the field values ​​corresponding to the business fields in the configuration parameters to be updated according to the relationship type between the business parameters in the target business verification rules. If the comparison is consistent, the verification is successful, and the configuration parameters of the target business can be updated based on the configuration parameters to be updated; if the comparison is inconsistent, the verification fails, and the alarm module can be called to perform alarm processing on the verification results that fail the verification.

[0134] When the configuration parameters of the target business need to be changed, the target business verification rules of the target business mined in the aforementioned process can be used to verify the configuration parameters to be changed, which is conducive to ensuring the correctness of the configuration parameter change results of the target business.

[0135] The embodiments of this specification also provide a data processing system, which is divided into three modules as a whole, namely a business system module, an intelligent rule mining module, and a detection platform module. The data processing method provided in the above embodiments can be applied to the data processing system, specifically to the intelligent rule mining module.

[0136] Among them, the business system module is mainly responsible for configuring its own business processes. For example, DRM (Distributed Resource Management) is configured on the business platform to submit configuration parameter change requests, and marketing is configured on the operation platform. After the configuration parameters to be changed in the configuration parameter change request are verified, the configuration change is triggered. At the same time, the business system module will store historical configuration data in the data pool to accumulate data for algorithm training.

[0137] The intelligent rule mining module divides the configuration data in the data pool according to the configuration scenario, and then performs feature processing on the configuration data. Since configuration data usually exists in a variety of different formats, the embodiments of this specification have made a unified processing method for json format, key-value format, and large field data, and other custom formats are processed by writing parsing scripts. Finally, the configuration data in different formats are converted into basic data types, and then rule mining is performed using rule mining algorithms, which include but are not limited to ant colony algorithms, simulated annealing algorithms, particle swarm algorithms, etc. The specific rule mining process is to construct at least two business verification rules for the target business based on the historical configuration data of the target business, and according to the number of business parameters in each business verification rule, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, determine the matching degree between each business verification rule and the combination result, and determine the target business verification rule from at least two business verification rules based on the matching degree.

[0138] After the rule mining generates the target business verification rules, the target business verification rules are deployed to the detection platform module. The detection platform module consists of three sub-modules, namely the alarm workbench sub-module, the rule execution engine sub-module and the rule management function sub-module. Aurora Emergency is connected to the alarm process to manage the alarm and emergency processes. The detection platform module will obtain the configuration parameters to be changed from the business system module in real time, and then query the target business verification rules corresponding to the configuration parameters to be changed. The rule execution engine sub-module will detect the configuration parameters to be changed based on the target business verification rules, and issue an alarm in time if the detection fails.

[0139] The embodiments of this specification provide a rule mining method based on prior information to trim the search space. This method can be used to ensure the correctness of online configuration. The method constructs a generalized rule base, uses prior information to trim the search space, and then searches the contracted search space for business verification rules. When the sample data support (compliance rate) is higher than the set threshold, the target business verification rules are output. In this way, the potential rules existing in the historical configuration data are mined. When a new configuration change occurs, the new configuration parameters to be changed are verified by the mined rules to ensure the correctness of the online configuration data changes; in addition, the embodiments of this specification trim the search space through prior information, which is conducive to solving the NP-difficulty problem that arises in the process of searching for business verification rules in the search space.

[0140] An embodiment of the present specification constructs at least two business verification rules for the target business based on the historical configuration data and business attribute data of the target business, arranges and combines the business fields in the historical configuration data according to the number of business parameters in each business verification rule, generates a corresponding combination result, determines the matching degree between each business verification rule and the combination result, and determines the target business verification rule from the at least two business verification rules based on the matching degree.

[0141] The embodiment of this specification first constructs two or more business verification rules based on historical configuration data, then arranges and combines the business fields in the historical configuration data according to the number of business parameters in each business verification rule, and performs rule mining based on the matching degree between the arrangement and combination results and the business verification rules. Mining the potential rules in the historical configuration data in this way is conducive to ensuring the accuracy of the rule mining results.

[0142] The following combination Figure 3 , taking the application of the data processing method provided in this specification in a transaction scenario as an example, the data processing method is further explained. Figure 3A processing flow chart of a data processing method provided by an embodiment of the present specification is shown, and the specific steps include step 302 to step 314.

[0143] Step 302: construct at least two business verification rules for the transaction business according to at least two historical configuration data of the transaction business.

[0144] Step 304: Integrate the business fields included in each of the at least two historical configuration data to generate a corresponding integration result.

[0145] Step 306: divide the at least two business verification rules into at least two rule sets, wherein the business verification rules in each rule set contain an equal number of business parameters.

[0146] Step 308, according to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, wherein the number of business fields contained in each combination result is equal to the number of business parameters, and the target rule set is one of at least two rule sets.

[0147] Step 310, screening the combination results according to the business attribute data of the transaction business, and generating corresponding screening results.

[0148] Step 312: determine the matching degree between each business verification rule in the target rule set and the combination result.

[0149] Step 314, determining a transaction business verification rule from at least two business verification rules according to the matching degree.

[0150] The embodiment of this specification first constructs two or more business verification rules based on the historical configuration data, and then arranges and combines the business fields in the historical configuration data according to the number of business parameters in each business verification rule, and performs rule mining based on the matching degree between the arrangement and combination results and the business verification rules, specifically by constructing a generalized rule base, using prior information to trim the search space, and then searching the contracted search space for business verification rules. When the sample data support (compliance rate) is higher than the set threshold, the transaction business verification rules are output. Mining the potential rules existing in the historical configuration data in this way is conducive to ensuring the accuracy of the rule mining results; in addition, the embodiment of this specification trims the search space through prior information, which is conducive to solving the NP difficulty problem that arises in the process of searching for business verification rules in the search space. When a new configuration change occurs, the new configuration parameters to be changed are verified by the mined rules to ensure the correctness of the online configuration data changes.

[0151] Corresponding to the above method embodiment, this specification also provides a data processing device embodiment, Figure 4 FIG. 1 is a schematic diagram of a data processing device provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:

[0152] A construction module 402 is configured to construct at least two service verification rules of the target service according to the historical configuration data of the target service;

[0153] The combination module 404 is configured to arrange and combine the business fields in the historical configuration data according to the number of business parameters in each business verification rule to generate a corresponding combination result;

[0154] The determination module 406 is configured to determine the matching degree between each of the business verification rules and the combination result, and determine the target business verification rule from the at least two business verification rules according to the matching degree.

[0155] Optionally, the construction module 402 is further configured to:

[0156] Constructing at least two service verification rules for the target service according to at least two pieces of historical configuration data of the target service;

[0157] Accordingly, the combining module 404 is further configured as follows:

[0158] Integrate the business fields included in each of the at least two historical configuration data to generate a corresponding integration result;

[0159] According to the number of business parameters in each business verification rule, the business fields in the integration result are arranged and combined to generate a corresponding combination result.

[0160] Optionally, the combining module 404 is further configured to:

[0161] Dividing the at least two service verification rules into at least two rule sets, wherein the service verification rules in each rule set contain an equal number of service parameters;

[0162] According to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, wherein the number of business fields contained in each combination result is equal to the number of the business parameters, and the target rule set is one of the at least two rule sets.

[0163] Optionally, the determining module 406 is further configured to:

[0164] According to the business attribute data of the target business, the combination results are screened to generate corresponding screening results;

[0165] Determine the degree of match between each business verification rule and the screening result.

[0166] Optionally, the construction module 402 is further configured to:

[0167] Acquire historical configuration data of the target service, and extract a first relationship type of each service field and / or a second relationship type between at least two service fields in the historical configuration data;

[0168] At least two business verification rules of the target business are constructed according to the first relationship type and / or the second relationship type.

[0169] Optionally, the determining module 406 is further configured to:

[0170] According to the service attribute data of the target service, determining the service field to be combined in the service field included in the historical configuration data;

[0171] The combination results are screened according to the service fields to be combined and the service fields included in each combination result in the combination results.

[0172] Optionally, the determining module 406 is further configured to:

[0173] The matching degree between each business verification rule in the target rule set and the combination result is determined, and according to the matching degree, a target business verification rule is determined from the business verification rules included in the target rule set.

[0174] Optionally, the determining module 406 is further configured to:

[0175] comparing field values ​​corresponding to the business fields in the combination result according to the relationship type between the business parameters in the business verification rule, wherein the business verification rule is one of the at least two business verification rules;

[0176] A matching result is determined according to the comparison result, and the ratio between the number of successfully matched combination results in the matching result and the total number of combination results is used as the matching degree between the business verification rule and the combination result.

[0177] Optionally, the data processing device further includes a receiving module configured to:

[0178] Receiving a configuration update request of the target service, wherein the configuration update request includes configuration parameters to be updated;

[0179] Determine a target business verification rule for the target business, and verify the configuration parameters to be updated according to the target business verification rule;

[0180] If the verification is passed, the configuration of the target service is updated based on the configuration parameters to be updated.

[0181] Optionally, the data processing device further includes a calling module configured to:

[0182] In the case of a verification failure, the alarm module is called to perform an alarm process on the verification result that fails the verification.

[0183] The above is a schematic scheme of a data processing device of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above data processing method belong to the same concept, and the details of the technical scheme of the data processing device that are not described in detail can be referred to the description of the technical scheme of the above data processing method.

[0184] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0185] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0186] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0187] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.

[0188] The memory 510 is used to store computer-executable instructions, and the processor 520 is used to execute the computer-executable instructions to implement the steps of the data processing method.

[0189] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data processing method.

[0190] An embodiment of the present specification also provides a computer-readable storage medium storing computer instructions, which are used to implement the steps of the data processing method when executed by a processor.

[0191] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above data processing method.

[0192] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0193] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0194] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0195] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0196] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A data processing method, comprising: Constructing at least two service verification rules for the target service according to the historical configuration data of the target service; According to the number of business parameters in each business verification rule, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results; Determine the degree of match between each of the business verification rules and the combined result, and determine the target business verification rule from the at least two business verification rules based on the degree of match, wherein the determination of the degree of match between each of the business verification rules and the combined result comprises: comparing field values ​​corresponding to business fields in the combined result based on the type of relationship between business parameters in the business verification rule, the business verification rule being one of the at least two business verification rules; determining a matching result based on the comparison result, and taking the ratio between the number of successfully matched combined results in the matching result and the total number of combined results as the degree of match between the business verification rule and the combined result.

2. The data processing method according to claim 1, wherein the step of constructing at least two service verification rules of the target service according to the historical configuration data of the target service comprises: Constructing at least two service verification rules for the target service according to at least two pieces of historical configuration data of the target service; Correspondingly, the business fields in the historical configuration data are arranged and combined according to the number of business parameters in each business verification rule to generate corresponding combination results, including: Integrate the business fields included in each of the at least two historical configuration data to generate a corresponding integration result; According to the number of business parameters in each business verification rule, the business fields in the integration result are arranged and combined to generate a corresponding combination result.

3. The data processing method according to claim 1, wherein the business fields in the historical configuration data are arranged and combined according to the number of business parameters in each business verification rule to generate corresponding combination results, including: Dividing the at least two service verification rules into at least two rule sets, wherein the service verification rules in each rule set contain an equal number of service parameters; According to the number of business parameters contained in the business verification rules in the target rule set, the business fields in the historical configuration data are arranged and combined to generate corresponding combination results, wherein the number of business fields contained in each combination result is equal to the number of the business parameters, and the target rule set is one of the at least two rule sets.

4. According to the data processing method according to any one of claims 1 to 3, determining the matching degree between each business verification rule and the combination result comprises: According to the business attribute data of the target business, the combination results are screened to generate corresponding screening results; Determine the degree of match between each business verification rule and the screening result.

5. The data processing method according to claim 1, wherein the step of constructing at least two service verification rules of the target service according to the historical configuration data of the target service comprises: Acquire historical configuration data of the target service, and extract a first relationship type of each service field and / or a second relationship type between at least two service fields in the historical configuration data; At least two business verification rules of the target business are constructed according to the first relationship type and / or the second relationship type.

6. The data processing method according to claim 4, wherein the screening of the combination result according to the business attribute data of the target business comprises: According to the service attribute data of the target service, determining the service field to be combined in the service field included in the historical configuration data; The combination results are screened according to the service fields to be combined and the service fields included in each combination result in the combination results.

7. The data processing method according to claim 3, wherein determining the degree of match between each of the business verification rules and the combination result, and determining a target business verification rule from the at least two business verification rules according to the degree of match, comprises: The matching degree between each business verification rule in the target rule set and the combination result is determined, and according to the matching degree, a target business verification rule is determined from the business verification rules included in the target rule set.

8. The data processing method according to claim 1, further comprising: Receiving a configuration update request of the target service, wherein the configuration update request includes configuration parameters to be updated; Determine a target business verification rule for the target business, and verify the configuration parameters to be updated according to the target business verification rule; If the verification is passed, the configuration of the target service is updated based on the configuration parameters to be updated.

9. The data processing method according to claim 1, further comprising: In the case of a verification failure, the alarm module is called to perform an alarm process on the verification result of the verification failure.

10. A data processing device, comprising: A construction module, configured to construct at least two service verification rules of the target service according to historical configuration data of the target service; A combination module is configured to arrange and combine the business fields in the historical configuration data according to the number of business parameters in each business verification rule to generate a corresponding combination result; A determination module is configured to determine the degree of match between each of the business verification rules and the combined result, and determine the target business verification rule from the at least two business verification rules based on the degree of match, wherein the determination of the degree of match between each of the business verification rules and the combined result comprises: comparing field values ​​corresponding to the business fields in the combined result based on the relationship type between the business parameters in the business verification rule, the business verification rule being one of the at least two business verification rules; determining a matching result based on the comparison result, and taking the ratio between the number of successfully matched combined results in the matching result and the total number of combined results as the degree of match between the business verification rule and the combined result.

11. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the data processing method according to any one of claims 1 to 9.

12. A computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the data processing method according to any one of claims 1 to 9.