Method and device for determining system indexes
By splitting the business system into multiple business scenarios and determining the execution order of atomic and derived indicators, the problem of complexity and low efficiency in indicator determination in digital business scenarios is solved, and efficient calculation of system indicator statistical results is achieved.
Patent Information
- Application Number
- CN202410770729.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-23
AI Technical Summary
In digital business scenarios, the process of determining indicators is complex and inefficient, making it difficult to achieve fast and accurate statistical results.
By receiving the indicator determination instructions for the business system, the business system is split into multiple business scenarios, the execution order of atomic indicators and derived indicators is determined, and the statistical results of the derived indicators are calculated sequentially, simplifying the indicator determination process.
It improves the efficiency of indicator determination, simplifies the calculation of statistical results of the business system, and can quickly obtain accurate statistical results of system indicators.
Smart Images

Figure CN118536713A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated processing technology, and in particular to a method and device for determining system indicators. Background Art
[0002] In the digital business scenario, indicators are a statistical information carrier. Indicators can present the current operating results of the digital business platform in a timely, complete and accurate manner. For example, indicators can reflect customer participation, task completion, inventory usage, cost expenditure, etc. Since business systems often involve complex business processing, the process of determining indicators is often complicated and the execution efficiency is low. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method and device for determining a system indicator, which can simplify the indicator determination process and efficiently determine the statistical results of the indicator.
[0004] In the first aspect, an embodiment of the present invention provides a method for determining a system indicator, comprising: receiving an indicator determination instruction for a business system; determining multiple atomic indicators and at least one business scenario corresponding to the business system; for each of the atomic indicators: obtaining indicator information corresponding to the atomic indicator; determining the statistical result of the atomic indicator based on the indicator information corresponding to the atomic indicator; for each of the business scenarios: determining multiple derived indicators and indicator dependencies within the business scenario; determining the execution order of each of the derived indicators based on the indicator dependencies; and determining the statistical result of each of the derived indicators in turn based on the statistical result of the atomic indicator and the execution order of each of the derived indicators.
[0005] Optionally, the indicator information corresponding to the atomicity indicator includes: an execution statement; determining the statistical result of the atomicity indicator based on the indicator information corresponding to the atomicity indicator includes: determining the input parameter corresponding to the execution statement; parsing the indicator determination instruction to determine the parameter value of the input parameter; inputting the parameter value of the input parameter into the execution statement to obtain the statistical result of the atomicity indicator.
[0006] Optionally, according to the statistical results of the atomic indicators and the execution order of each of the derived indicators, the statistical results of each of the derived indicators are determined in sequence, including: according to the execution order of each of the derived indicators, determining the current derived indicator from multiple derived indicators in the business scenario; determining indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; the associated indicators include: atomic indicators, and / or, upper-level derived indicators; according to the statistical results of the associated indicators, the statistical fields and the associated dimensions, determining the statistical results of the current derived indicator.
[0007] Optionally, determining the statistical result of the current derived indicator based on the statistical result of the associated indicator, the statistical field and the associated dimension includes: determining a conditional expression corresponding to the business scenario; determining a grouping expression corresponding to the associated dimension; generating a grouping summary statement based on the statistical field and the associated indicator; wherein the grouping summary statement includes: the conditional expression and the grouping expression; executing the grouping summary statement to obtain the statistical result of the current derived indicator.
[0008] Optionally, the derived indicators in the business scenario include: a first derived indicator and a second derived indicator; determining the execution order of each of the derived indicators according to the indicator dependency relationship includes: determining whether the first derived indicator and the second derived indicator depend on the same associated indicator according to the indicator dependency relationship; in response to the first derived indicator and the second derived indicator depending on the same associated indicator, determining whether the first derived indicator and the second derived indicator correspond to the same associated dimension; in response to the first derived indicator and the second derived indicator corresponding to the same associated dimension, determining that the first derived indicator and the second derived indicator have the same execution order.
[0009] Optionally, the derived indicators within the business scenario include: a first derived indicator and a second derived indicator, and the first derived indicator and the second derived indicator have the same execution order; according to the statistical results of the atomic indicator and the execution order of each of the derived indicators, the statistical results of each of the derived indicators are determined in sequence, including: according to the execution order of each of the derived indicators, the first derived indicator and the second derived indicator are determined as current derived indicators; a first statistical field corresponding to the first derived indicator and a second statistical field corresponding to the second derived indicator are determined; a conditional expression corresponding to the business scenario is determined; according to the first statistical field and the second statistical field, a group summary statement is generated; wherein the group summary statement includes: the conditional expression; and the group summary statement is executed to obtain the statistical results of the first derived indicator and the second derived indicator.
[0010] Optionally, before receiving the indicator determination instruction for the business system, it also includes: receiving an indicator configuration instruction, determining the indicator type corresponding to the indicator configuration instruction; wherein the indicator type includes: atomic indicators and derived indicators; displaying the indicator configuration page corresponding to the indicator type, and receiving input information for the indicator configuration page; and generating indicator information corresponding to the target indicator based on the input information.
[0011] Optionally, after generating the indicator information corresponding to the target indicator according to the input information, it also includes: determining whether the target indicator meets the flow processing conditions; in response to the target indicator meeting the flow processing conditions, displaying a flow configuration reminder; receiving a flow configuration instruction for the target indicator; and determining, according to the flow configuration instruction, multiple nodes corresponding to the target indicator and the execution method corresponding to each of the nodes.
[0012] In the second aspect, an embodiment of the present invention provides a device for determining system indicators, including: an instruction receiving module, used to receive an indicator determination instruction for a business system; a scenario determination module, used to determine multiple atomic indicators and at least one business scenario corresponding to the business system; a first determination module, used to obtain indicator information corresponding to each atomic indicator; determine the statistical result of the atomic indicator based on the indicator information corresponding to the atomic indicator; a second determination module, used to determine multiple derived indicators and indicator dependencies within the business scenario for each business scenario; determine the execution order of each derived indicator based on the indicator dependency; and determine the statistical result of each derived indicator in turn based on the statistical result of the atomic indicator and the execution order of each derived indicator.
[0013] Optionally, the indicator information corresponding to the atomicity indicator includes: an execution statement; the first determination module is specifically used to: determine the input parameters corresponding to the execution statement; parse the indicator determination instruction to determine the parameter value of the input parameter; input the parameter value of the input parameter into the execution statement to obtain the statistical result of the atomicity indicator.
[0014] Optionally, the second determination module is specifically used to: determine the current derived indicator from multiple derived indicators in the business scenario according to the execution order of each of the derived indicators; determine the indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; the associated indicators include: atomic indicators, and / or, superior derived indicators; determine the statistical results of the current derived indicator based on the statistical results of the associated indicators, the statistical fields and the associated dimensions.
[0015] Optionally, the second determination module is specifically used to: determine the conditional expression corresponding to the business scenario; determine the grouping expression corresponding to the associated dimension; generate a grouping summary statement based on the statistical field and the associated indicator; wherein the grouping summary statement includes: the conditional expression and the grouping expression; execute the grouping summary statement to obtain the statistical result of the current derived indicator.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0017] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.
[0018] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which implements the method described in any of the above embodiments when executed by a processor.
[0019] An embodiment of the above invention has the following advantages or beneficial effects: First, multiple atomic indicators and at least one business scenario corresponding to the business system are determined. Then, according to the indicator information corresponding to each atomic indicator, the statistical results of each atomic indicator are determined. Finally, for each business scenario, according to the indicator dependency relationship of multiple derived indicators in the business scenario, the execution order of each derived indicator is determined, and according to the statistical results of the atomic indicators, the statistical results of each derived indicator are determined in turn.
[0020] Atomic indicators are basic indicators of business systems. Derived indicators are indicators obtained by adding business scenario conditions and other restrictions on atomic indicators or superior derived indicators. By splitting the business system into at least one business scenario and determining the execution order and statistical results of the derived indicators in each business scenario, the indicator determination process can be simplified and the statistical results of system indicators can be determined efficiently.
[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present invention and shall not constitute improper limitations of the present invention.
[0023] Figure 1 It is a flowchart of a method for determining a system indicator provided by the first embodiment of the present invention.
[0024] Figure 2 It is a flowchart of a method for determining a derivative indicator provided by the second embodiment of the present invention.
[0025] Figure 3 It is a flowchart of an indicator configuration method provided by the third embodiment of the present invention.
[0026] Figure 4 It is a schematic diagram of the architecture of an indicator determination system provided by the fourth embodiment of the present invention.
[0027] Figure 5 It is a structural diagram of a device for determining a system indicator provided by an embodiment of the present invention.
[0028] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0030] The acquisition, transmission, 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] Figure 1 is a flow chart of a method for determining a system indicator provided by the first embodiment of the present invention, such as Figure 1 As shown, the method includes: Step 101: Receive an indicator determination instruction for a business system.
[0033] The indicator determination instruction is used to determine the statistical results of multiple indicators in the business system. The indicator determination instruction may include parameter values of one or more input parameters. The input parameters can be set according to the business requirements of the business system. The input parameters may include: user number, transaction flow, statistical time, etc.
[0034] Step 102: Determine multiple atomic indicators and at least one business scenario corresponding to the business system.
[0035] The indicators corresponding to the business system include: atomic indicators and derived indicators. Atomic indicators are basic indicators of the business system. Atomic indicators correspond to core tables and basic statistical calibers. Atomic indicators may include: transaction count statistics, transaction amount statistics, etc.
[0036] Derived indicators are indicators obtained by adding business scenario conditions and restrictions on the basis of atomic indicators or superior derived indicators. The statistical results of derived indicators need to be further processed based on the statistical results of atomic indicators or superior derived indicators.
[0037] A business system corresponds to at least one business scenario. Business scenarios can be set according to business needs. Each business scenario can independently perform indicator statistics and business analysis. For example, for an online shopping system, the following business scenarios may be included: user registration management scenario, product management scenario, shopping scenario, return scenario, etc.
[0038] Step 103: for each atomicity indicator: obtaining indicator information corresponding to the atomicity indicator; and determining the statistical result of the atomicity indicator according to the indicator information corresponding to the atomicity indicator.
[0039] The indicator information corresponding to the atomic indicator may include: indicator identification, indicator name, execution statement, etc. The execution statement may include: at least one input parameter. The parameter value of the input parameter may be input by the user or read from a database or configuration file.
[0040] In one embodiment of the present invention, the indicator information corresponding to the atomicity indicator includes: executing a statement; determining the statistical result of the atomicity indicator according to the indicator information corresponding to the atomicity indicator, including: determining the input parameter corresponding to the execution statement; parsing the indicator determination instruction to determine the parameter value of the input parameter; inputting the parameter value of the input parameter into the execution statement to obtain the statistical result of the atomicity indicator. Parsing the indicator determination instruction to determine the parameter value of the input parameter. Bringing the parameter value into the execution statement to obtain the statistical result of the atomicity indicator corresponding to the indicator determination instruction.
[0041] Step 104: for each business scenario: determine multiple derived indicators and indicator dependencies within the business scenario; and determine the execution order of each derived indicator based on the indicator dependencies.
[0042] After determining the statistical results of each atomic indicator, determine the derivative indicators corresponding to each business scenario.
[0043] In a business scenario, each derived indicator has an indicator dependency relationship. According to the indicator dependency relationship, the execution order of each derived indicator is determined to ensure that the execution order of the derived indicator is after the execution order of the parent derived indicator of the derived indicator.
[0044] For example, the statistical result of derived indicator 1 needs to be obtained based on the statistical results of derived indicator 2, derived indicator 3 and atomicity indicator 3, that is, the statistical results of derived indicator 2 and derived indicator 3 are obtained first, and then the statistical results of derived indicator 1 are obtained based on the statistical results of derived indicator 2 and derived indicator 3 and atomicity indicator 3. Then, derived indicator 1 has a dependency relationship on derived indicator 2 and derived indicator 3. Derived indicator 2 and derived indicator 3 are the superior derived indicators of derived indicator 1. The execution order of derived indicator 1 must be after the execution order of derived indicator 2 and derived indicator 3.
[0045] Step 105: According to the statistical result of the atomicity indicator and the execution order of each derived indicator, the statistical result of each derived indicator is determined in sequence.
[0046] According to the indicator information corresponding to the derived indicator, the statistical result of the derived indicator is determined. The indicator information corresponding to the derived indicator may include: indicator identification, indicator name, grouping summary statement, etc. The grouping summary statement may include: at least one input parameter. The parameter value of the input parameter may be input by the user and read from a database or configuration file. The input parameter may also be the statistical result of an atomic indicator or a superior derived indicator. The parameter value of the input parameter is input into the grouping summary statement to obtain the statistical result of the derived indicator.
[0047] In the solution of the embodiment of the present invention, first, multiple atomic indicators and at least one business scenario corresponding to the business system are determined. Then, according to the indicator information corresponding to each atomic indicator, the statistical results of each atomic indicator are determined. Finally, for each business scenario, according to the indicator dependency relationship of multiple derived indicators in the business scenario, the execution order of each derived indicator is determined, and according to the statistical results of the atomic indicators, the statistical results of each derived indicator are determined in turn.
[0048] By splitting the business system into at least one business scenario and determining the execution order and statistical results of the derived indicators in each business scenario, the indicator determination process can be simplified and the statistical results of the system indicators can be determined efficiently.
[0049] Figure 2 is a flow chart of a method for determining a derivative index provided by the second embodiment of the present invention, such as Figure 2 As shown, the method includes: Step 201: According to the execution order of each derivative indicator, a current derivative indicator is determined from multiple derivative indicators in the business scenario.
[0050] Step 202: Determine the indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; associated indicators include: atomic indicators, and / or superior derived indicators.
[0051] Step 203: Determine the statistical result of the current derived indicator according to the statistical result of the associated indicator, the statistical field and the associated dimension.
[0052] The associated indicator is an indicator that has a dependency relationship with the current derived indicator. The associated indicator can be an atomic indicator and a parent derived indicator of the current derived indicator. The statistical result of the current derived indicator needs to be further processed based on the statistical result of the associated indicator.
[0053] The statistical field is the result field involved in the current derived indicator. The associated dimension is the conditional field involved in the statistical result of the current derived indicator.
[0054] According to the statistical results, statistical fields and associated dimensions of the associated indicators, the statistical results of the current derived indicators are determined, including: determining the conditional expression corresponding to the business scenario; determining the grouping expression corresponding to the associated dimension; generating a grouping summary statement according to the statistical fields and the associated indicators; wherein the grouping summary statement includes: the conditional expression and the grouping expression; executing the grouping summary statement to obtain the statistical results of the current derived indicators.
[0055] The statement template corresponding to the group summary statement can be: select statistical field from statistical results of related indicators where conditional expression group by grouping expression. The conditional expression is determined by the business scenario, and the grouping expression is determined by the related dimension.
[0056] For example, the current derived indicator is derived indicator 4, the business scenario corresponding to derived indicator 4 is scenario 1, and the conditional expression corresponding to scenario 1 is: field 5 = target value. The associated indicator corresponding to derived indicator 4 is derived indicator 5, and the statistical result of derived indicator 5 is: result5. The statistical fields corresponding to derived indicator 4 are: field 1, field 2. The associated dimensions corresponding to derived indicator 4 are field 3 and field 4, so the grouping expression is: field 3, field 4. The final grouping summary statement is: select field 1, field 2 from result5 where field 5 = target value group by field 3, field 4. Execute the above grouping summary statement to obtain the statistical result of derived indicator 4.
[0057] In a scheme of one embodiment of the present invention, the derived indicators in the business scenario include: a first derived indicator and a second derived indicator; according to the indicator dependency, the execution order of each derived indicator is determined, including: according to the indicator dependency, determining whether the first derived indicator and the second derived indicator depend on the same associated indicator; in response to the first derived indicator and the second derived indicator depending on the same associated indicator, determining whether the first derived indicator and the second derived indicator correspond to the same associated dimension; in response to the first derived indicator and the second derived indicator corresponding to the same associated dimension, determining that the first derived indicator and the second derived indicator have the same execution order.
[0058] If the first derived indicator and the second derived indicator correspond to the same business scenario, depend on the same associated indicator, and have the same associated dimension, it is determined that the first derived indicator and the second derived indicator have the same execution order. Executing the first derived indicator and the second derived indicator with the same execution order in parallel can improve the determination efficiency of multiple indicators and reduce system resource consumption.
[0059] In a scheme of one embodiment of the present invention, the derived indicators in the business scenario include: a first derived indicator and a second derived indicator, and the first derived indicator and the second derived indicator have the same execution order; according to the statistical results of the atomic indicators and the execution order of each derived indicator, the statistical results of each derived indicator are determined in sequence, including: according to the execution order of each derived indicator, the first derived indicator and the second derived indicator are determined as the current derived indicators; the first statistical field corresponding to the first derived indicator and the second statistical field corresponding to the second derived indicator are determined; the conditional expression corresponding to the business scenario is determined; according to the first statistical field and the second statistical field, a group summary statement is generated; wherein the group summary statement includes: the conditional expression; the group summary statement is executed to obtain the statistical results of the first derived indicator and the second derived indicator.
[0060] If the first derived indicator and the second derived indicator have the same execution order, then the first derived indicator and the second derived indicator correspond to the same business scenario, depend on the same associated indicator, and have the same associated dimension. The grouping summary statements corresponding to the first derived indicator and the second derived indicator can be merged into one grouping summary statement. Through one grouping summary statement, the statistical results of the first derived indicator and the second derived indicator are obtained.
[0061] For example, the business scenario corresponding to the first derived indicator and the second derived indicator is scenario 1, and the conditional expression corresponding to scenario 1 is: field 6 = target value. The associated indicators corresponding to the first derived indicator and the second derived indicator are both derived indicator 5, and the statistical result of derived indicator 5 is: result5. The associated dimension corresponding to the first derived indicator and the second derived indicator is field 7.
[0062] The statistical fields corresponding to the first derived indicator are: field 8, field 9. The statistical field corresponding to the second derived indicator is: field 10. Then the group summary statement is: select field 8, field 9, field 10 from result5 where field 6 = target value group by field 7. Execute the above group summary statement to obtain the statistical results of the first derived indicator and the second derived indicator.
[0063] For example, for the commodity purchase scenario, data analysis operators configure indicators for the total purchase amount, total number of purchases, and total number of purchasing customers in the region, the total purchase amount, total number of purchases, and total number of purchasing customers by commodity type, and the total purchase amount, total number of purchases, and total number of purchasing customers for the current commodity, for a total of 9 indicators. The rule engine recognizes that the above 9 indicators have the same associated indicators and associated dimensions. It determines that the 9 indicators have the same execution order and are parallel indicators of the same dimension. Perform a merge calculation, generate a grouping summary statement corresponding to the 9 indicators, perform a calculation, return a processing result of an indicator set, and obtain the statistical results corresponding to each indicator from the processing result of the indicator set.
[0064] Figure 3 is a flow chart of an indicator configuration method provided by the third embodiment of the present invention, such as Figure 3 As shown, the method includes: Step 301: receiving an indicator configuration instruction, and determining an indicator type corresponding to the indicator configuration instruction; wherein the indicator type includes: atomic indicators and derived indicators.
[0065] The indicators corresponding to the business system include: atomic indicators and derived indicators. Atomic indicators are basic indicators of the business system. Atomic indicators correspond to core tables and basic statistical calibers. Atomic indicators may include: transaction count statistics, transaction amount statistics, etc. Derived indicators are indicators obtained by adding business scenario condition restrictions on the basis of atomic indicators or superior derived indicators.
[0066] Step 302: Display an indicator configuration page corresponding to the indicator type, and receive input information for the indicator configuration page.
[0067] Atomic indicators and derived indicators correspond to different indicator configuration pages. The indicator configuration page corresponding to atomic indicators displays input boxes corresponding to indicator names, execution statements, etc. The indicator configuration page corresponding to derived indicators displays input boxes corresponding to indicator names, grouping summary statements, associated indicators, statistical fields, and associated dimensions, etc.
[0068] Step 303: Generate indicator information corresponding to the target indicator according to the input information.
[0069] When the target indicator is an atomic indicator, the indicator information corresponding to the target indicator may include: indicator identifier, indicator name, execution statement, etc. When the target indicator is a derived indicator, the indicator information corresponding to the target indicator may include: indicator identifier, indicator name, grouping summary statement, associated indicators, statistical fields, and associated dimensions, etc.
[0070] Step 304: Determine whether the target indicator meets the stream processing conditions.
[0071] For indicators that are time-consuming to determine, stream processing can be used to control the indicator determination process. Stream processing conditions can be set according to needs. Stream processing conditions can be: the data volume of the data table involved in the execution statement or group summary statement corresponding to the indicator is greater than the data volume threshold, the execution statement or group summary statement corresponding to the indicator involves the association processing of multiple tables, etc.
[0072] Step 305: In response to the target indicator meeting the flow processing condition, a flow configuration reminder is displayed.
[0073] After receiving the flow configuration reminder, the user can send a flow configuration instruction for the target indicator, or send a configuration completion instruction, and the configuration of the target instruction is completed.
[0074] Step 306: Receive a flow configuration instruction for the target indicator.
[0075] After receiving the flow configuration instruction for the target indicator, multiple nodes corresponding to the target indicator are generated. Users can edit and adjust the multiple nodes corresponding to the target indicator as needed. For example, if the target table involved in the execution statement of the target indicator has a data volume of 1 million, the target table can be split into 10 sub-tables, each with a data volume of 100,000, and 10 nodes corresponding to the target indicator are generated, each corresponding to a sub-table.
[0076] For another example, the group summary statement is a stored procedure, and the group summary statement consists of a group of SQL (Structured Query Language) statements. For each SQL statement, multiple nodes corresponding to the target indicator can be generated.
[0077] Step 307: According to the flow configuration instruction, determine multiple nodes corresponding to the target indicator and the execution mode corresponding to each node.
[0078] The execution mode may include: parallel mode, serial mode, scheduled execution, scheduled execution, etc. For example, the target table involved in the execution statement of the target indicator is split into multiple sub-tables, and then multiple nodes corresponding to the target indicator are generated for each sub-table. The execution mode of the node can be set to parallel mode, and multiple nodes corresponding to the target indicator are executed in parallel to accelerate the execution efficiency of the system.
[0079] For another example, the group summary statement consists of a group of SQL statements, and for each SQL statement, multiple nodes corresponding to the target indicator are generated. The execution mode of the node can be set to serial execution. Executing multiple nodes corresponding to the target indicator in a serial manner can reduce the amount of tasks processed at a time, and facilitate troubleshooting and handling when problems occur.
[0080] In the scheme of the embodiment of the present invention, the indicator configuration page is displayed according to the indicator type corresponding to the indicator configuration instruction. According to the input information, the indicator information corresponding to the target indicator is generated. When the target indicator meets the flow processing conditions, the flow configuration reminder is displayed, and according to the flow configuration instruction, the multiple nodes corresponding to the target indicator and the execution mode corresponding to each node are determined. The user generates various indicators corresponding to the business system through the indicator configuration instruction, which can simplify the indicator determination process and ensure the smooth progress of subsequent business analysis based on the indicator.
[0081] Figure 4 is a schematic diagram of the architecture of an indicator determination system provided by the fourth embodiment of the present invention. Figure 4 As shown in the figure, in terms of use and maintenance, the multi-dimensional indicator statistics module can be encapsulated and embedded into the background of the business application system. The multi-dimensional indicator statistics module is built based on the traditional relational database. By encapsulating context parameters, it is decoupled from the business application system and runs in the background of the application system. It has the characteristics of low cost, easy maintenance and fast delivery.
[0082] Based on the traditional relational database of the business application system, an indicator determination system is established, and the statistical results of the indicators are persistently stored in the traditional relational database. In this indicator determination system, indicator definition, parallel computing development, custom data presentation interface and interface development are completed.
[0083] The multi-dimensional data indicator statistics module is designed with a service-oriented concept and encapsulates the indicator access service module, indicator operation module service, and a powerful computing engine.
[0084] The front-end visualization module can generate indicator configuration pages based on configurable indicator statistical syntax. The back-end service part includes standard back-end data API services and system management services. The indicator query service module provides standard data API services, which are suitable for custom page development and embedded development. System management services include system configuration management and metadata management. The system configuration management module centrally manages the context parameters of the calculation engine module, indicator operation module, and indicator access module. The context parameters include calculation parameters, cache parameters, data table parameters, file parameters, task parameters, service configuration parameters, etc. The system configuration management module also includes the management of the syntax for creating indicator definition tables and indicator dimension definition tables.
[0085] Metadata management: defines the key-value pairs of indicator dimensions and the parameters of the structure tree for storing indicator dimensions. Because it supports the feature of being embedded in the business application system, the metadata sets business scenario parameters and a vertical scenario attribute table for scalable storage, sets a structure tree for dimension affiliation, supports initialization and new maintenance when accessing the business application system, and also defines indicator business categories, dependencies, etc.
[0086] For data indicators whose execution statements are SQL, after the indicator is defined, the indicator information is saved in the form of indicator identifier and dynamic SQL syntax. No development is required, and indicator calculation can be completed through metadata loading, SQL statement operation, and data API service response. Generate SQL statements, check SQL syntax, identify cascade processing rules, generate task reservation tags, preload SQL statements, generate menus, generate pages, and other processing nodes.
[0087] The indicator calculation service module provides indicator calculation and indicator calculation result query functions. It implements SQL-based data indicator operations. It establishes the concept of indicator statistical batches, and compares and verifies the results of the same granularity with the original persistently stored, processed, and identical data indicators, and issues a difference monitoring report. In response to data loss, calculation errors, etc., it supports re-unloading data from the business application system, loading it in the data indicator determination system, and supports recalculation; the indicator verification service is a standard API service, which is scheduled and completed by the engine control module.
[0088] The transaction data of the business application system is accessed by the engine control module. In the actual operation of the embodiment of the present invention, the transaction data of the business application system is obtained through quasi-real-time synchronization of information flow, including MQ messages, log files, data cloning and other synchronization methods, and is parsed and processed by the engine control module for delayed consumption. The message consumption and file loading provided in the engine control module correspond to the quasi-real-time synchronization of information flow based on the MQ (message queue) message mechanism and the quasi-real-time synchronization of information flow files based on log files or data clones.
[0089] For SQL-based data indicator calculations, there may be a recalculation process due to transaction data errors, data analysis and operator configuration indicator errors, etc. The transaction-level data indicator calculation based on scenario codes may be independent of the business application system indicator determination system processing process, that is, the process of using asynchronous information flow synchronization to process indicators. There may be data transmission loss or delay, irregular data transmission, missing elements, data sequence dependency, historical data re-run, etc. It is a process of repeated verification and tuning accuracy.
[0090] The present invention provides retry management for indicator calculations, and supports retry calculations for the above scenarios. The retry calculation process uses data analysis operators to execute retry triggers. While keeping the data semantics unchanged, a new identifier, i.e., the identifier, scenario number, indicator identifier, and transaction element primary key, is assigned and held as the unique key for indicator calculation to ensure the independence of processing between different calculation tasks for the same indicator. The indicator calculation retry flows to the indicator calculation task management, which loads the corresponding new indicator semantic SQL to complete the indicator calculation task, or loads new files and other data to complete the indicator calculation task under the new identifier.
[0091] The embodiment of the present invention proposes a universal and configurable multi-dimensional data indicator statistics method, which can be embedded into the business application system efficiently and quickly to achieve decoupled access with the business system. Based on the distributed architecture, the independent processing capability design can horizontally expand the business dimension of the indicator data, and can also vertically improve the computing capability, perform indicator statistics with high concurrency and high throughput, and have high real-time performance. It realizes quasi-real-time independent processing of data indicator statistics and quickly presents them to business operators.
[0092] The solution of the embodiment of the present invention is fast to install and build, can quickly access the business application system, and has low maintenance and secondary development costs. It supports the ability of business operation personnel to perform standardized configuration, and can complete the agile delivery of data indicators from definition, statistics, to final use. It provides a flexible and efficient data operation scope and operation efficiency solution, accelerates the decision-making response speed of the digital operation platform, and enhances the competitiveness of the digital operation platform.
[0093] Figure 5 is a schematic diagram of a structure of a device for determining a system index provided by an embodiment of the present invention, such as Figure 5 As shown, the device includes: an instruction receiving module 501, used to receive an indicator determination instruction for a business system; a scenario determination module 502, used to determine multiple atomic indicators and at least one business scenario corresponding to the business system; a first determination module 503, used to obtain indicator information corresponding to the atomic indicator for each atomic indicator; determine the statistical result of the atomic indicator according to the indicator information corresponding to the atomic indicator; a second determination module 504, used to determine multiple derived indicators and indicator dependencies within the business scenario for each business scenario; determine the execution order of each derived indicator according to the indicator dependency; and determine the statistical result of each derived indicator in turn according to the statistical result of the atomic indicator and the execution order of each derived indicator.
[0094] Optionally, the indicator information corresponding to the atomicity indicator includes: an execution statement; the first determination module 503 is specifically used to: determine the input parameters corresponding to the execution statement; parse the indicator determination instruction to determine the parameter value of the input parameter; input the parameter value of the input parameter into the execution statement to obtain the statistical result of the atomicity indicator.
[0095] Optionally, the second determination module 504 is specifically used to: determine the current derived indicator from multiple derived indicators within the business scenario according to the execution order of each derived indicator; determine the indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; associated indicators include: atomic indicators, and / or, superior derived indicators; determine the statistical results of the current derived indicator based on the statistical results of the associated indicators, statistical fields and associated dimensions.
[0096] Optionally, the second determination module 504 is specifically used to: determine the conditional expression corresponding to the business scenario; determine the grouping expression corresponding to the associated dimension; generate a grouping summary statement based on the statistical field and the associated indicators; wherein the grouping summary statement includes: the conditional expression and the grouping expression; execute the grouping summary statement to obtain the statistical results of the current derived indicator.
[0097] Optionally, the derived indicators in the business scenario include: a first derived indicator and a second derived indicator; the second determination module 504 is specifically used to: determine whether the first derived indicator and the second derived indicator depend on the same associated indicator according to the indicator dependency relationship; in response to the first derived indicator and the second derived indicator depending on the same associated indicator, determine whether the first derived indicator and the second derived indicator correspond to the same associated dimension; in response to the first derived indicator and the second derived indicator corresponding to the same associated dimension, determine that the first derived indicator and the second derived indicator have the same execution order.
[0098] Optionally, the derived indicators in the business scenario include: a first derived indicator and a second derived indicator, and the first derived indicator and the second derived indicator have the same execution order; the second determination module 504 is specifically used to: determine the first derived indicator and the second derived indicator as the current derived indicators according to the execution order of each derived indicator; determine the first statistical field corresponding to the first derived indicator and the second statistical field corresponding to the second derived indicator; determine the conditional expression corresponding to the business scenario; generate a group summary statement according to the first statistical field and the second statistical field; wherein the group summary statement includes: a conditional expression; execute the group summary statement to obtain the statistical results of the first derived indicator and the second derived indicator.
[0099] Optionally, it also includes: a configuration module, used to receive indicator configuration instructions, determine the indicator type corresponding to the indicator configuration instructions; wherein the indicator types include: atomic indicators and derived indicators; display the indicator configuration page corresponding to the indicator type, and receive input information for the indicator configuration page; generate indicator information corresponding to the target indicator based on the input information.
[0100] Optionally, the configuration module is also used to: determine whether the target indicator meets the flow processing conditions; in response to the target indicator meeting the flow processing conditions, display a flow configuration reminder; receive flow configuration instructions for the target indicator; and determine multiple nodes corresponding to the target indicator and the execution method corresponding to each node according to the flow configuration instructions.
[0101] An embodiment of the present invention provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of the above embodiments.
[0102] An embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for determining a system indicator in the embodiment of the present invention is implemented.
[0103] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0104] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0105] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0106] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0107] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0108] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0109] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor, for example, they may be described as: an instruction receiving module, a scenario determination module, a first determination module, and a second determination module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the instruction receiving module may also be described as a "module for receiving an indicator determination instruction for a business system".
[0110] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: Receive an indicator determination instruction for a business system; determine multiple atomic indicators and at least one business scenario corresponding to the business system; for each atomic indicator: obtain indicator information corresponding to the atomic indicator; determine the statistical result of the atomic indicator based on the indicator information corresponding to the atomic indicator; for each business scenario: determine multiple derived indicators and indicator dependencies within the business scenario; determine the execution order of each derived indicator based on the indicator dependencies; determine the statistical result of each derived indicator in turn based on the statistical result of the atomic indicator and the execution order of each derived indicator.
[0111] According to the technical solution of the embodiment of the present invention, first, multiple atomic indicators and at least one business scenario corresponding to the business system are determined. Then, according to the indicator information corresponding to each atomic indicator, the statistical results of each atomic indicator are determined. Finally, for each business scenario, according to the indicator dependency relationship of multiple derived indicators in the business scenario, the execution order of each derived indicator is determined, and according to the statistical results of the atomic indicators, the statistical results of each derived indicator are determined in turn.
[0112] Atomic indicators are basic indicators of business systems. Derived indicators are indicators obtained by adding business scenario conditions to atomic indicators or superior derived indicators. By splitting the business system into at least one business scenario and determining the execution order and statistical results of the derived indicators in each business scenario, the indicator determination process can be simplified and the statistical results of system indicators can be determined efficiently.
[0113] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining a system indicator, characterized in that: include: Receive indicator determination instructions for business systems; Determine a plurality of atomic indicators and at least one business scenario corresponding to the business system; For each of the atomicity indicators: obtaining indicator information corresponding to the atomicity indicator; and determining a statistical result of the atomicity indicator according to the indicator information corresponding to the atomicity indicator; For each of the business scenarios: determine multiple derived indicators and indicator dependencies within the business scenario; determine the execution order of each of the derived indicators based on the indicator dependencies; determine the statistical results of each of the derived indicators in turn based on the statistical results of the atomic indicators and the execution order of each of the derived indicators.
2. The method according to claim 1, characterized in that The indicator information corresponding to the atomicity indicator includes: execution statement; The determining the statistical result of the atomicity indicator according to the indicator information corresponding to the atomicity indicator includes: Determine the input parameters corresponding to the execution statement; Parsing the indicator determination instruction to determine the parameter value of the input parameter; The parameter value of the input parameter is input into the execution statement to obtain the statistical result of the atomicity index.
3. The method according to claim 1, characterized in that The step of determining the statistical results of the derived indicators in sequence according to the statistical results of the atomicity indicators and the execution order of the derived indicators includes: According to the execution order of each of the derivative indicators, determining a current derivative indicator from a plurality of derivative indicators in the business scenario; Determine the indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; the associated indicators include: atomic indicators and / or superior derived indicators; The statistical result of the current derived indicator is determined according to the statistical result of the associated indicator, the statistical field and the associated dimension.
4. The method according to claim 3, characterized in that The determining the statistical result of the current derived indicator according to the statistical result of the associated indicator, the statistical field and the associated dimension includes: Determine a conditional expression corresponding to the business scenario; Determine a grouping expression corresponding to the associated dimension; Generate a grouping summary statement according to the statistical field and the associated index; wherein the grouping summary statement includes: the conditional expression and the grouping expression; Execute the grouping summary statement to obtain the statistical results of the current derived indicators.
5. The method according to claim 1, characterized in that: The derivative indicators in the business scenario include: a first derivative indicator and a second derivative indicator; Determining the execution order of each of the derived indicators according to the indicator dependency relationship includes: Determining, according to the indicator dependency relationship, whether the first derived indicator and the second derived indicator depend on the same associated indicator; In response to the first derived indicator and the second derived indicator being dependent on the same association indicator, determining whether the first derived indicator and the second derived indicator correspond to the same association dimension; In response to the first derived indicator and the second derived indicator corresponding to the same associated dimension, it is determined that the first derived indicator and the second derived indicator have the same execution order.
6. The method according to claim 1, characterized in that The derivative indicators in the business scenario include: a first derivative indicator and a second derivative indicator, and the first derivative indicator and the second derivative indicator have the same execution order; The step of determining the statistical results of the derived indicators in sequence according to the statistical results of the atomicity indicators and the execution order of the derived indicators includes: According to the execution order of the derivative indicators, the first derivative indicator and the second derivative indicator are determined as current derivative indicators; Determine a first statistical field corresponding to the first derived indicator and a second statistical field corresponding to the second derived indicator; Determine a conditional expression corresponding to the business scenario; Generate a grouping summary statement according to the first statistical field and the second statistical field; wherein the grouping summary statement includes: the conditional expression; The grouping and summarizing statements are executed to obtain statistical results of the first derived indicator and the second derived indicator.
7. The method according to claim 1, characterized in that Before receiving the indicator determination instruction for the business system, the method further includes: Receive an indicator configuration instruction, and determine an indicator type corresponding to the indicator configuration instruction; wherein the indicator type includes: an atomic indicator and a derived indicator; Displaying an indicator configuration page corresponding to the indicator type, and receiving input information for the indicator configuration page; Generate indicator information corresponding to the target indicator based on the input information.
8. The method according to claim 7, characterized in that After generating the indicator information corresponding to the target indicator according to the input information, the method further includes: Determining whether the target indicator meets the stream processing condition; In response to the target indicator meeting the flow processing condition, displaying a flow configuration reminder; Receiving a flow configuration instruction for the target indicator; According to the flow configuration instruction, a plurality of nodes corresponding to the target indicator and an execution mode corresponding to each of the nodes are determined.
9. A device for determining a system index, characterized in that: include: An instruction receiving module, used to receive an indicator determination instruction for a business system; A scenario determination module, used to determine a plurality of atomic indicators and at least one business scenario corresponding to the business system; A first determination module is used for: for each of the atomicity indicators: obtaining indicator information corresponding to the atomicity indicator; and determining a statistical result of the atomicity indicator according to the indicator information corresponding to the atomicity indicator; The second determination module is used to: determine multiple derived indicators and indicator dependencies within the business scenario for each of the business scenarios; determine the execution order of each of the derived indicators based on the indicator dependencies; and determine the statistical results of each of the derived indicators in turn based on the statistical results of the atomic indicators and the execution order of each of the derived indicators.
10. The device according to claim 9, characterized in that The indicator information corresponding to the atomicity indicator includes: execution statement; The first determining module is specifically used for: Determine the input parameters corresponding to the execution statement; Parsing the indicator determination instruction to determine the parameter value of the input parameter; The parameter value of the input parameter is input into the execution statement to obtain the statistical result of the atomicity index.
11. The device according to claim 9, characterized in that The second determining module is specifically used for: According to the execution order of each of the derivative indicators, determining a current derivative indicator from a plurality of derivative indicators in the business scenario; Determine the indicator information corresponding to the current derived indicator; wherein the indicator information corresponding to the current derived indicator includes: associated indicators, statistical fields and associated dimensions; the associated indicators include: atomic indicators and / or superior derived indicators; The statistical result of the current derived indicator is determined according to the statistical result of the associated indicator, the statistical field and the associated dimension.
12. The device according to claim 11, characterized in that The second determining module is specifically used for: Determine a conditional expression corresponding to the business scenario; Determine a grouping expression corresponding to the associated dimension; Generate a grouping summary statement according to the statistical field and the associated index; wherein the grouping summary statement includes: the conditional expression and the grouping expression; Execute the grouping summary statement to obtain the statistical results of the current derived indicators.
13. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
14. A computer readable medium having a computer program stored thereon, characterized in that When the program is executed by a processor, the method described in any one of claims 1 to 8 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
