Indicator configuration method, device, computer equipment and computer readable storage medium
Through the unified resource interface and indicator processing module decoupling the business system, the configuration table is used to generate target indicator results, which solves the problem of coupling indicator processing logic and business system, and achieves efficient reuse and maintenance of indicators.
Patent Information
- Application Number
- CN202210033753.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-01-12
AI Technical Summary
In the prior art, the index processing logic is coupled with the business system, which makes it difficult to reuse the indicators, large maintenance workload, complex code, and waste of resources.
Receive the index input request of the service system through a unified resource interface, use the middleware and indicator processing module to obtain the indicators to be processed and the data to be processed, configure the operation based on the target scene data in the preset configuration table, generate the target index results, and Return the results to the business system to achieve decoupling between the index system and the business system.
It improves the reuse rate of indicator processing logic, reduces maintenance costs, reduces code complexity, and simplifies the development process.
Smart Images

Figure CN114386838B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of big data technology, and in particular, to an indicator configuration method, device, computer equipment, and computer-readable storage medium. Background Art
[0002] Rule indicators are an important reference for risk control in the financial industry. At present, traditional indicator processing has the following defects: (1) The risk indicator development logic is hard-coded. The indicator processing logic needs to be developed and tested locally by developers and deployed in SIT, UAT, and PROD environments. With the rapid growth and changes in business, the workload of indicator development is increasing, code redundancy, and high maintenance costs. (2) The indicator processing logic is coupled in the business system. The indicators processed by each system are difficult to reuse between other systems. Each system repeatedly develops indicators, wasting resources. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an indicator configuration method, device, computer equipment and computer-readable storage medium, which are used to solve the problems of coupling the existing indicator processing logic with the business system code, resulting in difficulty in reusing indicators, large workload for maintaining the indicator processing logic, and complex code.
[0004] An aspect of an embodiment of the present invention provides an indicator configuration method, including:
[0005] Receiving an indicator entry request sent by a business system through a unified resource interface, wherein the indicator entry request carries target scenario data;
[0006] Sending the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system;
[0007] Acquire multiple indicators to be processed and multiple data to be processed based on the indicator processing request through the indicator processing module;
[0008] Acquire target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data;
[0009] According to the target configuration data, a configuration operation is performed on the plurality of indicators to be processed and the plurality of data to be processed, and a plurality of target indicator results are obtained; wherein the target indicator results include label values and indicator values corresponding to the plurality of target indicators; and
[0010] Return the multiple target indicator results to the corresponding business system.
[0011] Optionally, the method further comprises:
[0012] Matching corresponding scenario numbers for each scenario data of multiple business systems; and
[0013] A binding relationship between each scene number and a plurality of indicators and a plurality of configuration data is constructed, and according to each binding relationship, the bound scene data, indicators and configuration data are stored in the configuration table.
[0014] Optionally, the plurality of data to be processed include a plurality of external data provided by at least one third-party system;
[0015] The step of obtaining a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request by the indicator processing module further includes:
[0016] According to the target scene data, obtaining multiple target interfaces; and
[0017] According to the feature code of each target interface, multiple target interfaces are called to receive multiple data to be processed returned by the corresponding third-party system, wherein the feature code is pre-defined according to the data stored in the third-party system and is bound to the corresponding interface in the indicator system.
[0018] Optionally, before calling the plurality of target interfaces to receive the plurality of to-be-processed data returned by the corresponding third-party system according to the feature code of each target interface, the method further comprises:
[0019] When the target configuration data includes pre-configuration data corresponding to the target scene data, a pre-configuration operation is performed according to the pre-configuration data to obtain a pre-configuration target indicator result.
[0020] Optionally, calling a plurality of target interfaces to receive a plurality of to-be-processed data returned by a corresponding third-party system according to a feature code of each target interface further includes:
[0021] According to the characteristic code of each target interface, a query request is sent to the corresponding third-party system through the corresponding target interface;
[0022] Receiving the interface status code and the plurality of to-be-processed data returned by each corresponding third-party system in response to the query request, and caching the plurality of to-be-processed data in a memory; and
[0023] When the interface status code is inconsistent with the preset status code, the corresponding external interface of the third-party system is successfully called, and a plurality of to-be-processed data are obtained from the memory.
[0024] Optionally, the step of performing configuration operations on the plurality of indicators to be processed and the plurality of data to be processed according to the target configuration data, and obtaining a plurality of target indicator results, further includes:
[0025] When the target configuration data includes the input parameter path configuration data, acquiring target data from the plurality of data to be processed according to the input parameter path configuration data; and
[0026] According to the expression of the target configuration data, a configuration operation is performed on the plurality of indicators to be processed and the target data, and a plurality of target indicator results are obtained.
[0027] Optionally, performing configuration operations on the plurality of processing indicators and the target data according to the expression of the target configuration data and obtaining a plurality of target indicator results further includes:
[0028] According to the target configuration data, obtaining a target processing chain and a plurality of preset expressions;
[0029] Transferring the plurality of indicators to be processed and the plurality of data to be processed into the first chain node of the target processing chain;
[0030] Distribute the multiple expressions to the respective chain nodes of the target processing chain; and calculate the multiple indicators to be processed and the multiple data to be processed through the expressions in the first chain node to each subsequent chain node of the target processing chain in sequence, and output the multiple target indicator results.
[0031] An aspect of an embodiment of the present invention further provides an indicator configuration device, comprising:
[0032] A receiving module, used to receive an indicator entry request sent by a business system through a unified resource interface, wherein the indicator entry request carries target scenario data;
[0033] A sending module, used for sending the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system;
[0034] A data acquisition module, used for acquiring a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request through the indicator processing module;
[0035] A configuration acquisition module, used to acquire target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data;
[0036] An indicator configuration module, used to perform configuration operations on the plurality of indicators to be processed and the plurality of data to be processed according to the target configuration data, and obtain a plurality of target indicator results; wherein the target indicator results include label values and indicator values corresponding to the plurality of target indicators;
[0037] The result returning module is used to return the multiple target indicator results to the corresponding business system.
[0038] One aspect of an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the indicator configuration method described above when executing the computer program.
[0039] One aspect of an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the indicator configuration method as described above.
[0040] The indicator configuration method, device, computer equipment and computer-readable storage medium provided in the embodiment of the present invention obtain multiple indicators to be processed and multiple data to be processed through the indicator input request received by the unified resource interface; obtain the target configuration data corresponding to the target scenario data from the preset configuration table; perform configuration operations on the multiple indicators to be processed and the multiple data to be processed according to the target configuration data, and obtain and return multiple target indicator results to the corresponding business system. The embodiment of the present invention provides the resource and service call of the indicator system for different external business systems through the unified resource interface, thereby improving the reuse rate of the indicator processing logic; and the decoupling of the business system and the indicator system reduces the maintenance cost of the indicator processing logic and reduces the complexity of the code.
[0041] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 An exemplary flow chart of the method for implementing indicator configuration in the present invention is schematically shown;
[0043] Figure 2 A flowchart schematically shows the steps of pre-binding scene numbers in the indicator configuration method according to the present invention;
[0044] Figure 3 A schematic flowchart of the steps of acquiring a plurality of to-be-processed data according to a feature code in the indicator configuration method according to the present invention is shown;
[0045] Figure 4 A flowchart schematically shows the steps of determining whether to perform a pre-configuration operation in the indicator configuration method according to the present invention;
[0046] Figure 5A flowchart schematically shows the steps of acquiring a plurality of to-be-processed data in the indicator configuration method according to the present invention;
[0047] Figure 6 A schematic flowchart of the steps of obtaining multiple target indicator results in the indicator configuration method according to the present invention is shown;
[0048] Figure 7 A schematic flowchart of the steps of obtaining multiple target indicator results in the indicator configuration method according to the present invention is shown;
[0049] Figure 8 A block diagram schematically shows an indicator configuration device according to Embodiment 2 of the present invention;
[0050] Fig. 9 The hardware structure diagram of a computer device suitable for implementing the indicator configuration method according to the third embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0052] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0053] In the description of the present invention, it should be understood that the numerical labels before the steps do not identify the order of executing the steps, but are only used to facilitate the description of the present invention and distinguish each step, and therefore cannot be understood as a limitation of the present invention.
[0054] Embodiment 1
[0055] See also Figure 1, shows a flowchart of the steps of the indicator configuration method according to an embodiment of the present invention. It is understood that the flowchart in the embodiment of the method is not used to limit the order of executing the steps. The following is an exemplary description using a computer device as the execution subject, as follows:
[0056] like Figure 1 As shown, the indicator configuration method may include steps S100 to S110, which are applied to an indicator system, wherein:
[0057] Step S100: receiving an indicator submission request sent by a business system through a unified resource interface, wherein the indicator submission request carries target scenario data.
[0058] In an exemplary embodiment, the indicator system is used to provide unified indicator processing services for different business systems. The backend of the indicator system is used for developers to develop and configure the logic of indicator processing and configuration, and the front end of the indicator system provides Restful API and SDK for different business systems to call indicator processing and calculation services. Among them, indicators include but are not limited to: financial risk indicators, bank loan risk indicators, leasing risk indicators, etc. The type and content of indicators are pre-configured in the indicator system according to specific scenario data. For example, bank loan risk indicators include but are not limited to: repayment record indicators, non-revolving loan account indicators, "statistical overdue amount of not less than 2,000 yuan in the past six months" indicators, etc.
[0059] In order to improve the reuse rate of indicators in the indicator system, the method also includes: pre-configuring a unified resource interface of the indicator system, wherein the unified resource interface is used to provide an interface for different business systems to call resources and services of the indicator system.
[0060] Among them, the unified resource interface is a Restful API, which includes predefined standard HTTP methods, semantics related to the methods, etc. In the embodiment of the present invention, by setting the mode of the unified interface, each indicator processing logic can be migrated from each business system to the indicator system, so that each business system can pay more attention to the use of indicators corresponding to its own business, and the indicator processing logic can be decoupled from the business processing logic, which simplifies the development code of the business system and reduces the development complexity of the business system. In addition, the logic of indicator processing and configuration is uniformly developed in the indicator system, and different business systems are connected through APIs, which facilitates the reuse of indicators between different business systems and improves the utilization rate of indicators.
[0061] Step S102: sending the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system.
[0062] The middleware may be a message queue, such as MQ, Kafka, etc. In this embodiment, according to the sequentiality of the message queue itself, it is possible to better meet the incoming requests of different business systems.
[0063] Step S104: obtaining a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request through the indicator processing module.
[0064] In an exemplary embodiment, during the indicator development process, the method further includes: binding the indicator with the scenario data to achieve reuse of the indicator between different systems; see Figure 2 , the method also includes: step S200, matching the corresponding scenario number for each scenario data of multiple business systems; and step S202, constructing a binding relationship between each scenario number and multiple indicators and multiple configuration data, and according to each binding relationship, storing the bound scenario data, indicators and configuration data in the configuration table. Among them, the indicators processed by the method are widely used in business systems such as finance and risk engines. It covers multiple business scenario information such as leasing, risk control, lending, etc.; configure a scenario number for each business scenario information, and bind the business scenario information and the corresponding indicators through the scenario number to realize the configuration, processing and calling of the indicators.
[0065] In an exemplary embodiment, the plurality of data to be processed includes data carried by the indicator input request and a plurality of external data provided by at least one third-party system. In order to quickly obtain external data, please refer to Figure 3 , the query and acquisition of the data to be processed can also be obtained through the following operations, wherein: step S300, according to the target scene data, obtain multiple target interfaces; and step S302, according to the feature code of each target interface, call multiple target interfaces to receive multiple data to be processed returned by the corresponding third-party system, wherein the feature code is pre-defined according to the data stored in the third-party system and is obtained by binding with the corresponding interface in the indicator system.
[0066] Among them, for example, financial risk indicators such as banks and bonds mostly rely on external data sources such as the People's Bank of China's credit reporting. Therefore, the corresponding feature codes are defined based on external data such as the People's Bank of China's credit reporting, so that different types of external data correspond to multiple feature codes one by one. The indicator system can obtain the corresponding target feature code based on the scenario information corresponding to the indicator submission request, and then obtain the external data corresponding to the feature code by calling the interface based on the target feature code. In this embodiment, external data is obtained through feature codes, and there is no need to structure the external data in the database table in advance. It can also quickly locate and obtain external data, simplifying the preparation process for early data development, effectively improving the efficiency of data acquisition, and improving the performance of the indicator system for data processing.
[0067] To meet the business needs of different scenarios and improve the efficiency of indicator configuration, please refer to Figure 4 , before the step S302 of calling multiple target interfaces to receive multiple to-be-processed data returned by the corresponding third-party system according to the characteristic code of each target interface, the method also includes a pre-configuration judgment operation, specifically including steps S400~S402, wherein: step S400, judging whether the target configuration data includes pre-configuration data corresponding to the target scenario data; and step S402, if the target configuration data includes pre-configuration data corresponding to the target scenario data, performing a pre-configuration operation according to the pre-configuration data to obtain a pre-configured target indicator result. In this embodiment, the developer of the indicator system or the staff of the business system can configure the corresponding pre-configuration data in advance according to different scenario data in the preset configuration table to implement the verification of usage permissions before applying the resources and services of the indicator system.
[0068] To improve the efficiency of indicator processing, please refer to Figure 5 , the step of calling multiple target interfaces to receive multiple data to be processed returned by the corresponding third-party system according to the feature code of each target interface also includes steps S500~S508, wherein: step S500, according to the feature code of each target interface, and sending a query request to the corresponding third-party system through the corresponding target interface; step S502, receiving the interface status code and multiple data to be processed returned by each corresponding third-party system in response to the query request, and caching the multiple data to be processed in the memory; step S504, judging whether the interface status code is consistent with the preset status code; step S506, if the interface status code is inconsistent with the preset status code, judging whether the external interface of the corresponding third-party system is successfully called; and step S508, according to the calling result, obtaining multiple data to be processed from the memory. In this embodiment, the interface status code is used to determine whether to perform a processing operation or a default configuration operation on the data to be processed; when the interface status code is consistent with the preset status code, the default configuration operation is performed on the data to be processed; when the interface status code is inconsistent with the preset status code, it is necessary to perform a processing operation on the data to be processed, and it is necessary to further determine whether the external interface of the corresponding third-party system is successfully called; if the external interface of the corresponding third-party system is successfully called, it is determined that the required multiple data to be processed are obtained; if the external interface of the corresponding third-party system is not successfully called, at least one of the following situations exists: (1) The target interface communicates successfully with the corresponding external interface, but due to network factors, the communication is interrupted and the complete data cannot be transmitted; (2) The target interface communicates unsuccessfully with the corresponding external interface and the external data of the corresponding third-party system cannot be obtained.
[0069] The method also includes: if the external interface of the corresponding third-party system is not successfully called, judging whether it is necessary to perform an indicator processing operation based on the indicator to be executed; if it is not necessary to perform the indicator processing operation, directly generating an abnormal indicator result, and returning the abnormal indicator result to the corresponding business system; if it is necessary to perform an indicator processing operation, performing the indicator processing operation on multiple indicators to be processed according to the corresponding target configuration data in the preset configuration table, generating an abnormal indicator result, and returning the abnormal indicator result to the corresponding business system; the abnormal indicator result includes the indicator value and label value corresponding to the abnormal indicator.
[0070] Step S106, obtaining target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data.
[0071] In this embodiment, the configuration permissions in the preset configuration table are open not only to the staff of the indicator system, but also to the staff of each business system, which can effectively meet the business needs of different systems and different scenarios and effectively improve the reuse rate of indicators.
[0072] Step S108, performing configuration operations on the plurality of indicators to be processed and the plurality of data to be processed according to the target configuration data, and obtaining a plurality of target indicator results; wherein the target indicator results include label values and indicator values corresponding to the plurality of target indicators.
[0073] Step S110, returning the plurality of target indicator results to the corresponding business system.
[0074] To further improve the efficiency of indicator processing, please refer to Figure 6 , the step of performing configuration operations on the multiple indicators to be processed and the multiple data to be processed according to the target configuration data, and obtaining multiple target indicator results can further include the following steps S600-S604, wherein: step S600, judging whether the target configuration data includes the input parameter path configuration data; step S602, if the target configuration data includes the input parameter path configuration data, obtaining the target data from the multiple data to be processed according to the input parameter path configuration data; and step S604, performing configuration operations on the multiple indicators to be processed and the target data according to the expression of the target configuration data, and obtaining multiple target indicator results. In this embodiment, according to the target configuration data in the configuration table, the target data is quickly obtained, unnecessary data is eliminated, and the efficiency of indicator processing is effectively improved.
[0075] In the embodiment of the present invention, in order to save system energy consumption and system resources, the method includes pre-deploying multiple processors in a distributed manner according to different index processing logics, and configuring processing chains corresponding to the multiple processing logics in the computing power pool according to the different processing logics; different index processing logics configure different processors according to the difference in computing power. Figure 7, the configuration operation is performed on the multiple processing indicators and the target data according to the expression of the target configuration data, and multiple target indicator results are obtained by the following operations: step S700, according to the target configuration data, the target processing chain and multiple preset expressions are obtained; step S702, the multiple indicators to be processed and the multiple data to be processed are transferred to the first chain node of the target processing chain; step S704, the multiple expressions are distributed to each chain node of the target processing chain; and step S706, the multiple indicators to be processed and the multiple data to be processed are calculated by the expressions in the first chain node to each subsequent chain node of the target processing chain, and multiple target indicator results are output. Among them, according to the business scenario requirements, the indicator processing chain is dynamically configured to adapt to the specific business scenario requirements. Each processing chain includes multiple chain nodes, and each chain node corresponds to a logical processing step in the indicator processing logic. The method includes: according to the load balancing principle, configuring at least one processor corresponding to each chain node. In this embodiment, the multiple indicators to be processed and the multiple data to be processed are transmitted to the first chain node of the target processing chain for calculation, and the first computing power result is calculated and output; the first computing power result is input to the second chain node of the target processing chain for calculation, and the second computing power result is calculated and output, and so on, the computing power result of the previous chain node is input to the next chain node for calculation, until the calculation and execution of the last chain node configured on the target processing chain are completed, and the corresponding multiple target indicator results are output. Exemplarily, assuming that the indicator to be processed is indicator C, the processing of indicator C needs to rely on the indicator results of indicator A and indicator B; and the indicator results of indicator A and indicator B are pre-stored in the database of the indicator system; therefore, the indicator results of indicator A and indicator B are pre-loaded from the database of the indicator system into the memory through the load processor; the indicator results of indicator C, indicator A and indicator B, other data to be processed and indicators to be processed are input into the corresponding target processing chain, and the indicator results of indicator C, indicator A and indicator B, other data to be processed and indicators to be processed are filtered through the JSON processor, and the filtered data is passed to the next chain node; the data is processed according to the encapsulated expression through the expression processor of the next chain node. Among them, the expression includes digital calculation, type conversion, renaming, field screening, etc. In this embodiment, the indicator processing logic is divided into multiple processing steps, each processing step corresponds to a different processor, and the reasonable computing power deployment effectively improves the data processing efficiency of indicator processing. And it reduces the multiple IO phenomena in the indicator processing process, effectively improves the indicator calculation performance, and meets business needs.
[0076] The embodiment of the present invention provides the resources and service calls of the indicator system to different external business systems through a unified resource interface, thereby improving the reuse rate of the indicator processing logic; and the decoupling of the business system and the indicator system reduces the maintenance cost of the indicator processing logic and alleviates the code complexity.
[0077] The embodiments of the present invention also have at least the following beneficial effects:
[0078] Embodiment 2
[0079] Please continue reading Figure 8 , schematically showing a block diagram of the indicator configuration device of the present invention. In this embodiment, the indicator configuration device may include or be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the present invention and implement the above-mentioned indicator configuration method. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the indicator configuration device in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment.
[0080] like Figure 8 As shown, the indicator configuration device may include a receiving module 800, a sending module 802, a data acquisition module 804, a configuration acquisition module 806, an indicator configuration module 808 and a result return module 810, wherein:
[0081] The receiving module 800 is used to receive an indicator entry request sent by the business system through a unified resource interface, wherein the indicator entry request carries target scenario data;
[0082] A sending module 802, used to send the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system;
[0083] The data acquisition module 804 is used to acquire a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request through the indicator processing module;
[0084] The configuration acquisition module 806 is used to acquire target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data;
[0085] The indicator configuration module 808 is used to perform configuration operations on the multiple indicators to be processed and the multiple data to be processed according to the target configuration data, and obtain multiple target indicator results; wherein the target indicator results include label values and indicator values corresponding to the multiple target indicators;
[0086] The result returning module 810 is used to return the plurality of target indicator results to the corresponding business system.
[0087] In an exemplary embodiment, the indicator configuration device also includes a pre-binding module (not identified), which is further used to: match the corresponding scenario number for each scenario data of multiple business systems; and construct a binding relationship between each scenario number and multiple indicators and multiple configuration data, and according to each binding relationship, store the bound scenario data, indicators and configuration data in the configuration table.
[0088] In an exemplary embodiment, the multiple data to be processed include multiple external data provided by at least one third-party system; the data acquisition module 804 is also used to: obtain multiple target interfaces according to the target scene data; and according to the feature code of each target interface, call the multiple target interfaces to receive the multiple data to be processed returned by the corresponding third-party system, wherein the feature code is pre-defined according to the data stored in the third-party system and is obtained by binding with the corresponding interface in the indicator system.
[0089] In an exemplary embodiment, the indicator configuration device also includes a pre-configuration module (unidentified), which is used to: determine whether the target configuration data includes pre-configuration data corresponding to the target scene data; and if the target configuration data includes pre-configuration data corresponding to the target scene data, perform a pre-configuration operation according to the pre-configuration data to obtain a pre-configuration target indicator result.
[0090] In an exemplary embodiment, the data acquisition module 804 is also used to: send a query request to a corresponding third-party system based on a feature code of each target interface and through the corresponding target interface; receive an interface status code and multiple data to be processed returned by each corresponding third-party system in response to the query request, and cache the multiple data to be processed in a memory; determine whether the interface status code is consistent with a preset status code; if the interface status code is inconsistent with the preset status code, determine whether the external interface of the corresponding third-party system is successfully called; and obtain multiple data to be processed from the memory based on the call result.
[0091] In an exemplary embodiment, the indicator configuration module 808 is also used to: determine whether the target configuration data includes input parameter path configuration data; if the target configuration data includes the input parameter path configuration data, obtain target data from multiple data to be processed according to the input parameter path configuration data; and perform configuration operations on multiple indicators to be processed and the target data according to the expression of the target configuration data, and obtain multiple target indicator results.
[0092] In an exemplary embodiment, the indicator configuration module 808 is also used to: obtain a target processing chain and multiple preset expressions according to the target configuration data; pass the multiple indicators to be processed and the multiple data to be processed into the first chain node of the target processing chain; distribute the multiple expressions to each chain node of the target processing chain; and calculate the multiple indicators to be processed and the multiple data to be processed through the expressions from the first chain node to each subsequent chain node of the target processing chain in sequence, and output multiple target indicator results.
[0093] Embodiment 3
[0094] See also Fig. 9 , is a schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the indicator configuration method according to the third embodiment of the present invention. In this embodiment, the computer device 10000 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 10000 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), a gateway, etc. Fig. 9 As shown, the computer device 10000 at least includes, but is not limited to, a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other via a system bus. Among them:
[0095] In this embodiment, the memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage unit of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 10000. Of course, the memory 10010 may also include both the internal storage unit of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as the program code of the indicator configuration device of the above embodiment. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0096] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data, such as running the indicator configuration device to implement the indicator configuration method of the above embodiment.
[0097] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication connection between the computer device 10000 and other electronic devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication connection between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an Intranet, the Internet, the Global System of Mobilecommunication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0098] It should be pointed out that Fig. 9 Only computer device 10000 having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may be implemented instead.
[0099] In this embodiment, the indicator configuration device stored in the memory 10010 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 10010 and executed by one or more processors (processor 10020 in this embodiment) to complete the present invention.
[0100] For example, Figure 8 The program module schematic diagram of the indicator configuration device is shown. In this embodiment, the indicator configuration device can be divided into a receiving module 800, a sending module 802, a data acquisition module 804, a configuration acquisition module 806, an indicator configuration module 808 and a result return module 810. Among them, the program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the indicator configuration device in the computer device 10000 than a program. The specific functions of the program modules 800-810 have been described in detail in the second embodiment and will not be repeated here.
[0101] Embodiment 4
[0102] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by at least one processor, the steps of the xxx method in the embodiment are implemented.
[0103] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium may also include both an internal storage unit of a computer device and an external storage device thereof. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on a computer device, such as the program code of the jam detection method in the embodiment, etc. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
[0104] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0105] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0106] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An indicator configuration method, applied to an indicator system, characterized in that: include: Receiving an indicator entry request sent by a business system through a unified resource interface, wherein the indicator entry request carries target scenario data; Sending the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system; Acquire multiple indicators to be processed and multiple data to be processed based on the indicator processing request through the indicator processing module; Acquire target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data; According to the target configuration data, a configuration operation is performed on the plurality of indicators to be processed and the plurality of data to be processed, and a plurality of target indicator results are obtained; wherein the target indicator results include label values and indicator values corresponding to the plurality of target indicators; and Returning the target indicator results to the corresponding business system; Wherein, the plurality of data to be processed include a plurality of external data provided by at least one third-party system; The step of obtaining a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request by the indicator processing module further includes: According to the target scene data, obtaining multiple target interfaces; and According to the feature code of each target interface, multiple target interfaces are called to receive multiple data to be processed returned by the corresponding third-party system, wherein the feature code is pre-defined according to the data stored in the third-party system and is bound to the corresponding interface in the indicator system.
2. The indicator configuration method according to claim 1, characterized in that: The method further comprises: Matching corresponding scenario numbers for each scenario data of multiple business systems; and A binding relationship between each scene number and a plurality of indicators and a plurality of configuration data is constructed, and according to each binding relationship, the bound scene data, indicators and configuration data are stored in the configuration table.
3. The indicator configuration method according to claim 1, characterized in that: Before calling the plurality of target interfaces to receive the plurality of to-be-processed data returned by the corresponding third-party system according to the feature code of each target interface, the method further includes: When the target configuration data includes pre-configuration data corresponding to the target scene data, a pre-configuration operation is performed according to the pre-configuration data to obtain a pre-configuration target indicator result.
4. The indicator configuration method according to claim 1, characterized in that: The method of calling a plurality of target interfaces according to the feature code of each target interface to receive a plurality of to-be-processed data returned by a corresponding third-party system also includes: According to the characteristic code of each target interface, a query request is sent to the corresponding third-party system through the corresponding target interface; Receiving the interface status code and the plurality of to-be-processed data returned by each corresponding third-party system in response to the query request, and caching the plurality of to-be-processed data in a memory; and When the interface status code is inconsistent with the preset status code, if the corresponding external interface of the third-party system is successfully called, a plurality of to-be-processed data are obtained from the memory.
5. The indicator configuration method according to claim 4, characterized in that: The step of performing configuration operations on the plurality of indicators to be processed and the plurality of data to be processed according to the target configuration data and obtaining a plurality of target indicator results further includes: When the target configuration data includes input parameter path configuration data; obtaining target data from the plurality of data to be processed according to the input parameter path configuration data; and According to the expression of the target configuration data, a configuration operation is performed on the plurality of processing indicators and the target data, and a plurality of target indicator results are obtained.
6. The indicator configuration method according to claim 5, characterized in that: The step of performing configuration operations on the plurality of processing indicators and the target data according to the expression of the target configuration data and obtaining a plurality of target indicator results further includes: According to the target configuration data, obtaining a target processing chain and a plurality of preset expressions; Transferring the plurality of indicators to be processed and the plurality of data to be processed into the first chain node of the target processing chain; Distribute the plurality of expressions to the respective chain nodes of the target processing chain; and The plurality of indicators to be processed and the plurality of data to be processed are calculated sequentially through the expressions in the first chain node to each subsequent chain node of the target processing chain, and a plurality of target indicator results are output.
7. An indicator configuration device, characterized in that: include: A receiving module, used to receive an indicator entry request sent by a business system through a unified resource interface, wherein the indicator entry request carries target scenario data; A sending module, used to send the indicator input request to the indicator processing module in the indicator system through the middleware in the indicator system; A data acquisition module, used for acquiring a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request through the indicator processing module; A configuration acquisition module, used to acquire target configuration data corresponding to the target scene data from a preset configuration table, wherein the configuration table includes a plurality of scene data and a plurality of configuration data corresponding to each scene data; An indicator configuration module, used to perform configuration operations on the plurality of indicators to be processed and the plurality of data to be processed according to the target configuration data, and obtain a plurality of target indicator results; wherein the target indicator results include label values and indicator values corresponding to the plurality of target indicators; Wherein, the plurality of data to be processed include a plurality of external data provided by at least one third-party system; The step of obtaining a plurality of indicators to be processed and a plurality of data to be processed based on the indicator input request by the indicator processing module further includes: According to the target scene data, obtaining multiple target interfaces; and According to the feature code of each target interface, multiple target interfaces are called to receive multiple to-be-processed data returned by the corresponding third-party system, wherein the feature code is pre-defined according to the data stored in the third-party system and is bound to the corresponding interface in the indicator system; The result returning module is used to return the multiple target indicator results to the corresponding business system.
8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the indicator configuration method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the indicator configuration method according to any one of claims 1 to 6.
