Monitoring rule generation method and device, equipment, medium and program product

By classifying the indicator template parameters in the financial business field and separating general and specific codes, the problems of large code writing and repeated encoding are solved, and efficiency and code reusability are improved.

CN119045812APending Publication Date: 2024-11-29CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411099005.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the financial business field, when customizing the generation of regulatory rules, the code writing of indicator template parameters is large and there is a problem of duplicate coding, resulting in inefficiency.

Method used

By classifying different indicator template parameters, general logic code and specific logic code are separated, and only specific logic code is written, reducing the amount of code writing and realizing code reuse.

Benefits of technology

The coding efficiency of indicator template parameters and the response speed of monitoring requirements are improved, and the common code reuse of indicator template parameters of the same category is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045812A_ABST
    Figure CN119045812A_ABST
Patent Text Reader

Abstract

The invention discloses a monitoring rule generation method and device, equipment, a medium and a program product, and belongs to the field of big data, and the method comprises the steps: classifying N index template parameters corresponding to obtained different index templates, and obtaining a target category corresponding to each index template parameter; according to a first index template required for monitoring a target business scene of a to-be-monitored object, a first code statement corresponding to the first index template and a second code statement and a third code statement corresponding to first index template parameters are obtained, and then a monitoring rule is obtained, so that the index template parameters are classified, and the target business scene of the to-be-monitored object is monitored. According to the method, the logic codes of the index template parameters are divided into the universal logic codes and the specific logic codes, so that only the corresponding specific logic codes need to be written for the index template parameters, the universal logic codes do not need to be written, the workload of code writing is reduced, and reuse of the universal logic codes is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and specifically to a monitoring rule generation method, device, equipment, medium and program product. Background Art

[0002] In the field of financial business, in response to possible operational risks in the financial system, regulatory requirements put forward by regulatory agencies, and customer-specific needs, a series of functions are needed to supervise transaction behaviors and monitor financial-related businesses.

[0003] In the current process of customizing the generation of regulatory rules, the final regulatory rules are generated by selecting the indicator template and the indicator template parameters used in conjunction with the indicator template. Each indicator template parameter in this solution has a specific code implementation, which makes the system require a large amount of code to be written when pre-defining indicator template parameters, and there is repeated coding. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a monitoring rule generation method, apparatus, equipment, medium and program product to classify each indicator template parameter, and divide the logic code of a type of indicator template parameters into general logic code and specific logic code. In this way, for a type of indicator template parameters, only the corresponding specific logic code needs to be written, and there is no need to write general logic code, which reduces the workload of code writing and realizes the reuse of general logic code.

[0005] The technical solution of this application is as follows:

[0006] In a first aspect, a monitoring rule generation method is provided, the method comprising:

[0007] Get N indicator template parameters corresponding to different indicator templates, where N is a positive integer;

[0008] Classify N indicator template parameters to obtain the target category corresponding to each indicator template parameter;

[0009] According to a first indicator template required for monitoring a target business scenario of a monitored object, a first code statement corresponding to the first indicator template is obtained;

[0010] According to the first indicator template parameter corresponding to the first indicator template, a second code statement and a third code statement corresponding to the first indicator template parameter are obtained, wherein the second code statement is a code statement corresponding to the target business scenario in the code statement corresponding to the first indicator template parameter, and the third code statement is a code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the code statement corresponding to the first indicator template parameter, the first indicator template belongs to a first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category is any one of a plurality of target categories;

[0011] The first code statement, the second code statement and the third code statement are concatenated to obtain a monitoring rule corresponding to the target business scenario.

[0012] In a second aspect, a monitoring rule generation device is provided, the device comprising:

[0013] A first acquisition module is used to acquire N indicator template parameters corresponding to different indicator templates, where N is a positive integer;

[0014] A classification module is used to classify N indicator template parameters to obtain the target category corresponding to each indicator template parameter;

[0015] A first determination module, configured to obtain a first code statement corresponding to a first indicator template required for monitoring a target business scenario of a monitored object;

[0016] A second determination module is used to obtain a second code statement and a third code statement corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template, wherein the second code statement is a code statement corresponding to the target business scenario in the code statement corresponding to the first indicator template parameter, and the third code statement is a code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the code statement corresponding to the first indicator template parameter, the first indicator template belongs to a first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category is any one of a plurality of target categories;

[0017] The third determination module is used to splice the first code statement, the second code statement and the third code statement to obtain a monitoring rule corresponding to the target business scenario.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the monitoring rule generation method described in any one of the embodiments of the present application.

[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the monitoring rule generation method described in any one of the embodiments of the present application are implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the steps of the monitoring rule generation method described in any one of the embodiments of the present application.

[0021] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0022] In an embodiment of the present application, by classifying N indicator template parameters corresponding to different indicator templates, the target category corresponding to each indicator template parameter is obtained, and then according to the first indicator template required for monitoring the target business scenario of the monitored object, the first code statement corresponding to the first indicator template is obtained, and according to the first indicator template parameter corresponding to the first indicator template, the second code statement corresponding to the target business scenario in the first indicator template parameter is obtained, and the third code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the first indicator template parameter is obtained. Since the source of the corresponding monitoring data for each indicator template parameter in the first target category is consistent, the third code statement corresponding to each indicator template parameter in the first target category is consistent. In this way, by classifying each indicator template parameter, the logic code of the indicator template parameters belonging to the same category is divided into a general third code statement and a specific second code statement. In this way, for a category of indicator template parameters, only the corresponding specific second code statement needs to be written, and there is no need to write a general third code statement, which reduces the workload of indicator template parameter code writing, improves the efficiency of indicator template parameter encoding, and the response speed to monitoring requirements, and realizes the reuse of general third code statements for indicator template parameters of the same category.

[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0025] Figure 1 It is a flowchart of an information processing method provided by an embodiment of the present application;

[0026] Figure 2 is a structural diagram of an information processing device provided in an embodiment of the present application;

[0027] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make those of ordinary skill in the art better understand the technical scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples consistent with some aspects of the present application as detailed in the attached claims.

[0030] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0031] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0032] As described in the background technology section, the current indicator template parameters require a large amount of code to be written, and there is a problem of repeated coding. In order to solve this problem, the embodiments of the present application provide a monitoring rule generation method, device, equipment, medium and program product, by classifying N indicator template parameters corresponding to different indicator templates, obtaining the target category corresponding to each indicator template parameter, and then obtaining a first code statement corresponding to the first indicator template according to the first indicator template required for monitoring the target business scenario of the monitored object, and obtaining a second code statement in the first indicator template parameter corresponding to the target business scenario according to the first indicator template parameter corresponding to the first indicator template, and obtaining the monitoring corresponding to the first indicator template parameter in the first indicator template parameter. The third code statement corresponding to the source of the data, since the source of the corresponding monitoring data for each indicator template parameter in the first target category is consistent, the third code statement corresponding to each indicator template parameter in the first target category is consistent. In this way, by classifying each indicator template parameter, the logic code of the indicator template parameters belonging to one category is divided into a general third code statement and a specific second code statement. In this way, for a category of indicator template parameters, only the corresponding specific second code statement needs to be written, and there is no need to write a general third code statement, which reduces the workload of indicator template parameter code writing, improves the efficiency of indicator template parameter encoding, and the response speed to monitoring needs, and realizes the reuse of general third code statements for indicator template parameters of the same category.

[0033] The following is a detailed description of the monitoring rule generation method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0034] Figure 1 It is a flow chart of a monitoring rule generation method provided in an embodiment of the present application. The execution subject of the monitoring rule generation method may be a server. It should be noted that the execution subject does not constitute a limitation on the embodiment of the present application.

[0035] like Figure 1 As shown, the monitoring rule generation method provided in the embodiment of the present application may include steps 110 to 150.

[0036] Step 110: Obtain N indicator template parameters corresponding to different indicator templates.

[0037] Among them, the indicator template can be formed in advance by obtaining the commonalities of a series of monitoring rules and concretizing these commonalities.

[0038] Each type of indicator template corresponds to a series of indicator template parameters, and these indicator template parameters can be adapted to the corresponding indicator template.

[0039] The above N can be a positive integer.

[0040] In some embodiments of the present application, all monitoring rules are divided into major categories, and a common indicator template is formed for each type of monitoring rule. The indicator template can be reused for this type of monitoring rules, and there is no need to perform any subsequent processing on the indicator template. For the classified indicator template, a series of indicator template parameters that adapt to the indicator template are provided, and the indicator template parameters can be added by technical personnel according to needs during the system development process. Business personnel can form monitoring rules that meet the conditions by selecting the preset indicator templates and the adapted indicator template parameters in the system. In terms of technical implementation, the Structured Query Language (SQL) code of the indicator template and the SQL code of the matching indicator template parameters are dynamically spliced ​​to complete the assembly of the monitoring rules and achieve the monitoring requirements.

[0041] The existing indicator templates are implemented for each type of regulatory requirements and can adapt to all regulatory requirements under the broad category. The indicator template parameters adapted to the indicator template are based on the broad category rules and are combined with the indicator template to define a more detailed regulatory scope. Therefore, each type of indicator template has corresponding indicator template parameters, and different indicator templates also use the same indicator template parameters. The indicator template and indicator template parameters can be adapted without mutual exclusion.

[0042] In an example, when monitoring whether the investment ratio of an asset portfolio meets the monitoring requirements, the ratio of private equity investment products in the portfolio is monitored; when monitoring whether the credit rating of an investment product meets the monitoring requirements, the credit rating of the private equity investment products in the portfolio is monitored; when classified according to the monitoring categories, the two monitoring rules do not monitor the same category, one monitors the investment ratio and the other monitors the credit rating, but both monitoring rules are regulated private equity products, which belong to the regulatory scenarios of private equity products. In this way, the two different monitoring rules can be formed into different indicator templates (an indicator template for investment ratio monitoring and an indicator template for credit rating monitoring), and specific indicator template parameters are added. The parameters limit the investment product to a private equity product. By configuring the specific indicator template parameters with the aforementioned two indicator templates, investment ratio monitoring and credit rating monitoring for private equity products can be realized.

[0043] In some embodiments of the present application, N indicator template parameters corresponding to different indicator templates may be obtained, specifically, they may be obtained from a memory storing the indicator templates and the corresponding indicator template parameters.

[0044] Step 120: Classify the N indicator template parameters to obtain the target category corresponding to each indicator template parameter.

[0045] The target category may be the category to which each indicator template parameter belongs after classifying the N indicator template parameters.

[0046] In some embodiments of the present application, N indicator template parameters may be classified to obtain target categories corresponding to each indicator template parameter.

[0047] In some embodiments of the present application, in order to accurately determine the target category corresponding to each indicator template parameter, step 120 may specifically include:

[0048] The indicator template parameters that have the same business scenarios, corresponding sources of monitoring data, and corresponding types of monitoring data among the N indicator template parameters are classified into one category, and the target categories corresponding to each indicator template parameter are obtained.

[0049] In some embodiments of the present application, the indicator template parameters that have the same business scenarios, corresponding sources of monitoring data, and corresponding types of monitoring data among N indicator template parameters can be classified into one category, so that the target category corresponding to each indicator template parameter can be obtained.

[0050] It should be noted that the business scenario to which the indicator template parameters here belong can be the one cited in the above example. The indicator template parameters are the indicator template for investment ratio monitoring and the indicator template for credit rating monitoring, that is, it is for the investment ratio business scenario or the credit rating business scenario.

[0051] The source of the monitoring data corresponding to the indicator template parameter here may be a parameter table corresponding to the monitoring data corresponding to the indicator template parameter.

[0052] The type of monitoring data corresponding to the indicator template parameter here may include, but is not limited to, the business meaning corresponding to the monitoring data, the type of data in the database, and the like.

[0053] In some embodiments of the present application, when classifying N indicator template parameters, it is necessary to determine whether the business scenarios targeted by these N indicator template parameters are the same, whether the monitoring data corresponding to these N indicator template parameters come from the same parameter table or the same view, and whether the types of monitoring data corresponding to these N indicator template parameters are the same; if the business scenarios targeted by these N indicator template parameters are the same, the monitoring data corresponding to these N indicator template parameters come from the same parameter table or the same view, and the types of monitoring data corresponding to these N indicator template parameters are the same, then it is determined that these N indicator template parameters belong to the same category.

[0054] It should be noted that the indicator template parameter can be understood as a code for retrieving the monitoring data stored in the parameter table.

[0055] In an embodiment of the present application, by classifying N indicator template parameters that have consistent business scenarios, corresponding sources of monitoring data, and corresponding types of monitoring data into one category, the target category corresponding to each indicator template parameter can be accurately obtained.

[0056] In some embodiments of the present application, after step 120, the above method may further include:

[0057] The code statements of each indicator template parameter in the first target category are split to obtain the second code statement and the third code statement of each indicator template parameter in the first target category.

[0058] The first target category may be any one of multiple target categories obtained by classifying N indicator template parameters to obtain multiple target categories.

[0059] In some embodiments of the present application, for any indicator template parameter in the first target category, the code statement of the indicator template parameter can be split, so as to obtain the second code statement and the third code statement of the indicator template parameter.

[0060] In the embodiment of the present application, by splitting the code statements of each indicator template parameter in the first target category, the second code statement and the third code statement of each indicator template parameter in the first target category can be accurately obtained.

[0061] In some embodiments of the present application, in order to accurately obtain the second code statement and the third code statement of each indicator template parameter, the code statement of each indicator template parameter in the first target category is split to obtain the second code statement and the third code statement of each indicator template parameter in the first target category, which may specifically include:

[0062] For each indicator template parameter in the first target category, a code statement of the business scenario corresponding to the indicator template parameter is used as a second code statement corresponding to the indicator template parameter;

[0063] For each indicator template parameter in the first target category, a code statement used to characterize the source of the monitoring data corresponding to the indicator template parameter is used as the third code statement of the indicator template parameter.

[0064] In some embodiments of the present application, for each indicator template parameter in a certain target category, the code statement of the business scenario corresponding to the indicator template parameter can be used as the second code statement corresponding to the indicator template parameter, and the code statement used to characterize the source of the monitoring data corresponding to the indicator template parameter can be used as the third code statement of the indicator template parameter. Since the indicator template parameters are classified according to the source of the monitoring data corresponding to each indicator template parameter, the source of the monitoring data corresponding to each indicator template parameter in a class is consistent, so the third code statement corresponding to each indicator template parameter in a class is consistent, that is, for each indicator template parameter in a certain target category, the code statement used to characterize the source of the monitoring data corresponding to the indicator template parameter can be used as the general code statement of each indicator template parameter of the class, and the code statement of the business scenario corresponding to the indicator template parameter can be used as the specific code statement of the indicator template parameter.

[0065] In an embodiment of the present application, for each indicator template parameter in the first target category, the code statements of each indicator template parameter in the first target category are divided into general code statements and specific code statements. In this way, for a category of indicator template parameters, the corresponding general code statements are consistent and do not need to be rewritten, which reduces the workload of indicator template parameter code writing and realizes the reuse of a category of general code statements.

[0066] Step 130: Obtain a first code statement corresponding to the first indicator template according to the first indicator template required for monitoring the target business scenario of the monitored object.

[0067] The object to be monitored may be an object to be monitored, such as an enterprise or an institution.

[0068] The target business scenario may be a scenario in which the monitored object is to be monitored.

[0069] In an example, taking the monitored object as an investment enterprise A, it is necessary to monitor whether the investment ratio of the asset portfolio of the investment enterprise A meets the monitoring requirements. Then the target business scenario is to monitor the investment ratio of the asset portfolio of the investment enterprise A.

[0070] The first indicator template may be any indicator template among the indicator template parameters in the first target category, and specifically may be an indicator template among the indicator template parameters in the first target category that corresponds to the target business scenario.

[0071] Continuing to refer to the above example, since the investment ratio of the asset portfolio of investment enterprise A needs to be monitored, the corresponding first indicator template is the indicator template for monitoring the investment ratio.

[0072] The first code statement may be a code statement corresponding to the first indicator template, and specifically may be a code statement for obtaining the first indicator template.

[0073] Step 140: According to the first indicator template parameter corresponding to the first indicator template, obtain the second code statement and the third code statement corresponding to the first indicator template parameter.

[0074] Among them, the first indicator target parameter may be an indicator template parameter corresponding to the first indicator template.

[0075] It should be noted that the first indicator target parameter belongs to the first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category can be any one of multiple target categories.

[0076] Continuing with the above example, when monitoring the investment ratio of the asset portfolio of investment enterprise A, it is specifically necessary to monitor that the proportion of private equity investment products in the asset portfolio of investment enterprise A does not exceed 10% of the total market value of the asset portfolio and the proportion of investment products with over-the-counter trading venues in the asset portfolio does not exceed 10% of the total market value of the asset portfolio. The indicator template has selected the template for monitoring the asset portfolio as the investment ratio indicator template (applicable to monitoring the investment ratio of the asset portfolio). The monitoring object pointed to by this indicator template is the securities in the asset portfolio, and the data stored in the corresponding data table of the indicator template is all the securities information in the asset portfolio.

[0077] However, the selected asset portfolio investment ratio indicator template is for all securities information under the portfolio of the object to be monitored (investment enterprise A). The above two monitoring requirements are for private equity asset management product securities in the portfolio, and the other is for all securities whose trading venues are over-the-counter. This requires further limitation of the actual object to be monitored through indicator template parameters. Specifically, the asset type and trading venue of the object to be monitored are limited respectively through indicator template parameters, that is, the indicator template parameters of asset type and the indicator template parameters of trading venue are selected, that is, the indicator template parameters of asset type and the indicator template parameters of trading venue are the first indicator template parameters.

[0078] In some embodiments of the present application, according to the first indicator template parameter corresponding to the first indicator template, the second code statement and the third code statement corresponding to the first indicator template parameter can be obtained.

[0079] Step 150: Concatenate the first code statement, the second code statement, and the third code statement to obtain a monitoring rule corresponding to the target business scenario.

[0080] In some embodiments of the present application, after obtaining the first code statement, the second code statement and the third code statement, the first code statement, the second code statement and the third code statement may be concatenated, so that a monitoring rule corresponding to the target business scenario may be obtained.

[0081] In some embodiments of the present application, in order to accurately obtain the monitoring rules, after classifying the N indicator template parameters to obtain the target category corresponding to each indicator template parameter, the above method may further include:

[0082] According to the target parameter table corresponding to the first indicator template parameter, a first association relationship between the first indicator template parameter and the target parameter table is established;

[0083] According to the first association relationship and the second association relationship between the pre-constructed first indicator template parameter and its corresponding first indicator template, a third association relationship between the first indicator template parameter, the first indicator template and the target parameter table is established;

[0084] Obtaining, according to the first indicator template parameter corresponding to the first indicator template, a third code statement corresponding to the first indicator template parameter may specifically include:

[0085] Determine a target parameter table corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template and the third association relationship corresponding to the first indicator template parameter;

[0086] A third code statement is obtained according to the target parameter table.

[0087] The target parameter table may be a parameter table corresponding to the first indicator template parameter, in which monitoring data corresponding to the first indicator template parameter is stored.

[0088] It should be noted that the monitoring data corresponding to each indicator template parameter in the first target category are stored in their respective corresponding parameter tables.

[0089] The first association relationship may be a first association relationship between the first indicator template parameter and the target parameter table.

[0090] The second association relationship may be an association relationship between a pre-constructed first indicator template parameter and its corresponding first indicator template.

[0091] The third association relationship may be an association relationship among the first indicator template parameter, the first indicator template and the target parameter table.

[0092] In some embodiments of the present application, a first association relationship between the first indicator template parameter and the target parameter table can be established based on the target parameter table corresponding to the first indicator template parameter, and then a third association relationship between the first indicator template parameter, the first indicator template and the target parameter table can be established based on the first association relationship and the second association relationship between the pre-constructed first indicator template parameter and its corresponding first indicator template.

[0093] In an example, the first indicator template parameters include a, b and c, wherein the monitoring data corresponding to the indicator template parameter a is stored in parameter table A, the monitoring data corresponding to the indicator template parameter b is stored in parameter table A, and the monitoring data corresponding to the indicator template parameter c is stored in parameter table B. Then, a first association relationship can be established between the indicator template parameter a, the indicator template parameter b and the indicator template parameter c and their corresponding parameter tables, as shown in Table 1 below:

[0094] Table 1

[0095] Parameter Table Indicator template parameters A a A b B c

[0096] Continuing to refer to the above example, a second association relationship between the indicator template parameter a, the indicator template parameter b and the indicator template parameter c and their corresponding indicator templates is pre-constructed, as shown in Table 2 below:

[0097] Table 2

[0098] Indicator template Indicator template parameters M1 a M1 b Mn c

[0099] Then, the above Table 1 and Table 2 are associated to obtain the third association relationship between the indicator template parameter a, the indicator template parameter b and the indicator template parameter c and their corresponding indicator templates and parameter tables, as shown in the following Table 3:

[0100] Table 3

[0101] Indicator template Parameter Table Indicator template parameters M1 A a M1 A b Mn B c

[0102] Continuing to refer to the above example, when assembling the monitoring rules corresponding to the proportion of investment in private equity management products in the asset portfolio of investment enterprise A not exceeding 10% of the total market value of the asset portfolio and the proportion of investment products in the asset portfolio whose trading venues are over-the-counter not exceeding 10% of the total market value of the asset portfolio, you can first obtain the sql logic fragment of the investment proportion indicator template (i.e., the first code statement), and then obtain the sql logic fragment of the asset type and the sql logic fragment of the trading venue, and finally obtain the general sql logic fragment of the asset type and the trading venue through the third association relationship, and splice the three fragments together to obtain the monitoring rules.

[0103] In an embodiment of the present application, a first association relationship is established between a first indicator template parameter and its target parameter table, and then a third association relationship is established between the first indicator template parameter, the first indicator template and the target parameter table based on the first association relationship and a second association relationship between a pre-constructed first indicator template parameter and its corresponding first indicator template. In this way, based on the third association relationship, the indicator template parameters can be quickly located or newly added indicator template parameters that meet the monitoring requirements can be quickly located.

[0104] In some embodiments of the present application, in order to accurately monitor the monitored object, after step 150, the above method may further include:

[0105] Based on the monitoring rules, target monitoring data corresponding to the target business scenario for monitoring the monitored object is obtained from the target parameter table;

[0106] The target monitoring data is monitored using monitoring rules to obtain monitoring results.

[0107] The target monitoring data may be monitoring data for monitoring the monitored object corresponding to the target business scenario, acquired from the target parameter table according to the third association relationship.

[0108] In some embodiments of the present application, target monitoring data for monitoring the monitored object corresponding to the target business scenario can be obtained from the target parameter table based on the monitoring rules, and then the target monitoring data can be monitored according to the monitoring rules to obtain the monitoring results.

[0109] In an embodiment of the present application, by acquiring target monitoring data for monitoring the monitored object corresponding to the target business scenario from the target parameter table based on the monitoring rules, and then monitoring the target monitoring data according to the monitoring rules, the monitoring results can be accurately obtained.

[0110] It should be noted that the monitoring rule generation method provided in the embodiment of the present application may be executed by a monitoring rule generation device, or a control module in the information processing device for executing the monitoring rule generation method.

[0111] Based on the same inventive concept as the above-mentioned monitoring rule generation method, the present application also provides a monitoring rule generation device. Figure 2 The monitoring rule generation device provided in the embodiment of the present application is described in detail.

[0112] Figure 2 FIG. 1 is a schematic diagram showing a structure of a monitoring rule generating device according to an exemplary embodiment. Figure 2 As shown, the monitoring rule generating device 200 may include:

[0113] A first acquisition module 210 is used to acquire N indicator template parameters corresponding to different indicator templates, where N is a positive integer;

[0114] A classification module 220 is used to classify the N indicator template parameters to obtain a target category corresponding to each indicator template parameter;

[0115] A first determination module 230 is used to obtain a first code statement corresponding to a first indicator template according to a first indicator template required for monitoring a target business scenario of a monitored object;

[0116] A second determination module 240 is used to obtain a second code statement and a third code statement corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template, wherein the second code statement is a code statement corresponding to the target business scenario in the code statement corresponding to the first indicator template parameter, and the third code statement is a code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the code statement corresponding to the first indicator template parameter, the first indicator template belongs to a first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category is any one of a plurality of target categories;

[0117] The third determination module 250 is used to splice the first code statement, the second code statement and the third code statement to obtain a monitoring rule corresponding to the target business scenario.

[0118] In an embodiment of the present application, by classifying N indicator template parameters corresponding to different indicator templates, the target category corresponding to each indicator template parameter is obtained, and then according to the first indicator template required for monitoring the target business scenario of the monitored object, the first code statement corresponding to the first indicator template is obtained, and according to the first indicator template parameter corresponding to the first indicator template, the second code statement corresponding to the target business scenario in the first indicator template parameter is obtained, and the third code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the first indicator template parameter is obtained. Since the source of the corresponding monitoring data for each indicator template parameter in the first target category is consistent, the third code statement corresponding to each indicator template parameter in the first target category is consistent. In this way, by classifying each indicator template parameter, the logic code of the indicator template parameters belonging to the same category is divided into a general third code statement and a specific second code statement. In this way, for a category of indicator template parameters, only the corresponding specific second code statement needs to be written, and there is no need to write a general third code statement, which reduces the workload of indicator template parameter code writing, improves the efficiency of indicator template parameter encoding, and the response speed to monitoring requirements, and realizes the reuse of general third code statements for indicator template parameters of the same category.

[0119] In some embodiments of the present application, the above-mentioned device may further include:

[0120] The fourth determination module is used to classify N indicator template parameters and obtain the target category corresponding to each indicator template parameter, and then split the code statements of each indicator template parameter in the first target category to obtain the second code statement and the third code statement of each indicator template parameter in the first target category.

[0121] In some embodiments of the present application, the fourth determination module is specifically used to:

[0122] For each indicator template parameter in the first target category, using a code statement of a business scenario corresponding to the indicator template parameter as a second code statement corresponding to the indicator template parameter;

[0123] For each indicator template parameter in the first target category, a code statement used to characterize the source of the monitoring data corresponding to the indicator template parameter is used as the third code statement of the indicator template parameter.

[0124] In some embodiments of the present application, the classification module 220 may be specifically used for:

[0125] The indicator template parameters that have the same business scenarios, corresponding sources of monitoring data, and corresponding types of monitoring data among the N indicator template parameters are classified into one category, and the target categories corresponding to each indicator template parameter are obtained.

[0126] In some embodiments of the present application, the above-mentioned device may further include:

[0127] A first building module is used to classify N indicator template parameters and obtain the target categories corresponding to each indicator template parameter, and then establish a first association relationship between the first indicator template parameter and the target parameter table according to the target parameter table corresponding to the first indicator template parameter, wherein the monitoring data corresponding to each indicator template parameter in the first target category is stored in the respective corresponding parameter tables;

[0128] a second construction module, configured to establish a third association relationship between the first indicator template parameter, the first indicator template and the target parameter table according to the first association relationship and a pre-constructed second association relationship between the first indicator template parameter and its corresponding first indicator template;

[0129] The second determining module 240 may specifically include:

[0130] A first determining unit, configured to determine the target parameter table corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template and the third association relationship corresponding to the first indicator template parameter;

[0131] The second determining unit is used to obtain the third code statement according to the target parameter table.

[0132] In some embodiments of the present application, the above-mentioned device may further include:

[0133] A second acquisition module is used to obtain target monitoring data for monitoring the object to be monitored corresponding to the target business scenario from the target parameter table based on the monitoring rule after obtaining the monitoring rule corresponding to the target business scenario;

[0134] The fifth determination module is used to monitor the target monitoring data using the monitoring rules to obtain monitoring results.

[0135] The monitoring rule generation device provided in the embodiment of the present application can be used to execute the monitoring rule generation method provided in the above-mentioned method embodiments. Its implementation principle and technical effect are similar, and for the sake of brief introduction, they will not be repeated here.

[0136] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0137] Figure 3 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device may include a processor 301 and a memory 302 storing computer programs or instructions.

[0138] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0139] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the monitoring rule generation method provided in the above-mentioned embodiments.

[0140] The processor 301 implements any one of the monitoring rule generation methods in the above embodiments by reading and executing computer program instructions stored in the memory 302 .

[0141] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0142] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.

[0143] Bus 310 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0144] The electronic device can execute the monitoring rule generation method in the embodiment of the present invention, thereby achieving Figure 1 Describes the monitoring rule generation method.

[0145] In addition, in combination with the monitoring rule generation method in the above embodiment, the embodiment of the present invention can provide a readable storage medium for implementation. The readable storage medium stores program instructions, and when the program instructions are executed by a processor, any one of the monitoring rule generation methods in the above embodiment is implemented.

[0146] In addition, in combination with the monitoring rule generation method in the above embodiment, an embodiment of the present invention may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the monitoring rule generation methods in the above embodiment.

[0147] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0148] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0149] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0150] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0151] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A monitoring rule generation method, characterized in that: The method comprises: Get N indicator template parameters corresponding to different indicator templates, where N is a positive integer; Classify N indicator template parameters to obtain the target category corresponding to each indicator template parameter; According to a first indicator template required for monitoring a target business scenario of a monitored object, a first code statement corresponding to the first indicator template is obtained; According to the first indicator template parameter of the first indicator template, a second code statement and a third code statement corresponding to the first indicator template parameter are obtained, wherein the second code statement is a code statement corresponding to the target business scenario in the code statement corresponding to the first indicator template parameter, and the third code statement is a code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the code statement corresponding to the first indicator template parameter, the first indicator template belongs to a first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category is any one of multiple target categories; The first code statement, the second code statement and the third code statement are concatenated to obtain a monitoring rule corresponding to the target business scenario.

2. The method according to claim 1, characterized in that After classifying the N indicator template parameters to obtain the target category corresponding to each indicator template parameter, the method further includes: The code statements of each indicator template parameter in the first target category are split to obtain a second code statement and a third code statement of each indicator template parameter in the first target category.

3. The method according to claim 2, characterized in that The step of splitting the code statements of each indicator template parameter in the first target category to obtain the second code statement and the third code statement of each indicator template parameter in the first target category includes: For each indicator template parameter in the first target category, using a code statement of a business scenario corresponding to the indicator template parameter as a second code statement corresponding to the indicator template parameter; For each indicator template parameter in the first target category, a code statement used to characterize the source of the monitoring data corresponding to the indicator template parameter is used as the third code statement of the indicator template parameter.

4. The method according to claim 1, characterized in that The N indicator template parameters are classified to obtain the target category corresponding to each indicator template parameter, including: The indicator template parameters that have the same business scenarios, corresponding sources of monitoring data, and corresponding types of monitoring data among the N indicator template parameters are classified into one category, and the target categories corresponding to each indicator template parameter are obtained.

5. The method according to claim 2, characterized in that: After classifying the N indicator template parameters to obtain the target category corresponding to each indicator template parameter, the method further includes: According to the target parameter table corresponding to the first indicator template parameter, a first association relationship between the first indicator template parameter and the target parameter table is established, wherein the monitoring data corresponding to each indicator template parameter in the first target category is stored in the respective corresponding parameter tables, and the first indicator template parameter is any one of the indicator template parameters in the first target category; According to the first association relationship and the pre-constructed second association relationship between the first indicator template parameter and its corresponding first indicator template, a third association relationship between the first indicator template parameter, the first indicator template and the target parameter table is established; Obtaining, according to the first indicator template parameter corresponding to the first indicator template, a third code statement corresponding to the first indicator template parameter, including: Determine the target parameter table corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template and the third association relationship corresponding to the first indicator template parameter; The third code statement is obtained according to the target parameter table.

6. The method according to claim 5, characterized in that After obtaining the monitoring rule corresponding to the target business scenario, the method further includes: Based on the monitoring rule, obtaining target monitoring data for monitoring the object to be monitored corresponding to the target business scenario from the target parameter table; The target monitoring data is monitored using the monitoring rules to obtain monitoring results.

7. A monitoring rule generation device, characterized in that: The device comprises: A first acquisition module is used to acquire N indicator template parameters corresponding to different indicator templates, where N is a positive integer; A classification module is used to classify N indicator template parameters to obtain the target category corresponding to each indicator template parameter; A first determination module, configured to obtain a first code statement corresponding to a first indicator template required for monitoring a target business scenario of a monitored object; A second determination module is used to obtain a second code statement and a third code statement corresponding to the first indicator template parameter according to the first indicator template parameter corresponding to the first indicator template, wherein the second code statement is a code statement corresponding to the target business scenario in the code statement corresponding to the first indicator template parameter, and the third code statement is a code statement corresponding to the source of the monitoring data corresponding to the first indicator template parameter in the code statement corresponding to the first indicator template parameter, the first indicator template belongs to a first target category, the third code statements corresponding to the indicator template parameters in the first target category are consistent, and the first target category is any one of a plurality of target categories; The third determination module is used to splice the first code statement, the second code statement and the third code statement to obtain a monitoring rule corresponding to the target business scenario.

8. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the monitoring rule generation method as described in any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the monitoring rule generation method as described in any one of claims 1-6 are implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps of the monitoring rule generation method according to any one of claims 1 to 6.