Indicator configuration method, system, computer device and computer readable storage medium

By obtaining the configuration data in the business request and generating the indicator model, and constructing the query statement, the problem of low indicator expansion efficiency in the existing technology is solved, automatic and flexible indicator expansion is realized, and the quality of business empowerment is improved.

CN112598289BActive Publication Date: 2024-09-06PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011558433.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-09-06
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Existing indicator processing methods require developers to manually modify scripts when expanding indicator dimensions, resulting in low expansion efficiency and poor flexibility.

Method used

By obtaining the configuration data in the business request, generating the indicator model, generating target indicators, constructing query statements, and performing feature calculations on the indicator data, the indicator results are obtained and the indicator expansion efficiency is improved.

Benefits of technology

It automates the indicator expansion process, improves the efficiency and flexibility of indicator processing, reduces developer intervention, and improves the quality of business empowerment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112598289B
    Figure CN112598289B
Patent Text Reader

Abstract

The embodiment of the present invention provides an indicator configuration method, comprising obtaining a business request, the business request including at least one configuration data; obtaining an indicator model corresponding to the business request according to the business request; generating a target indicator according to the at least one configuration data and the indicator model; generating a query statement according to the target indicator; obtaining at least one indicator data according to the query statement; and performing feature calculation on the at least one indicator data to obtain an indicator result. The embodiment of the present invention generates a target indicator by configuring data and an indicator model, thereby effectively improving the efficiency of indicator expansion.
Need to check novelty before this filing date? Find Prior Art

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, system, computer device, and computer-readable storage medium. Background Art

[0002] Business intelligence has become an important tool to support the strategic direction of banks. Quickly and efficiently gaining insights into business operations and adjusting business strategies are important demands of leaders and business. Among them, the processing efficiency of indicators determines the quality of business empowerment.

[0003] At present, there are the following problems in the indicator processing method: when the indicator is expanded in dimension, the developer needs to manually modify the script, the expansion is very inflexible, and the indicator expansion efficiency is low. Summary of the invention

[0004] In view of this, embodiments of the present invention provide an indicator configuration method, system, computer device and computer-readable storage medium, which are used to solve the problem of low efficiency of indicator expansion using existing indicator processing methods.

[0005] The embodiment of the present invention solves the above technical problems through the following technical solutions:

[0006] An indicator configuration method, comprising:

[0007] Obtaining a service request, wherein the service request includes at least one configuration data;

[0008] According to the business request, obtaining an indicator model corresponding to the business request;

[0009] generating a target indicator according to the at least one configuration data and the indicator model;

[0010] Generate a query statement according to the target indicator;

[0011] Acquire at least one indicator data according to the query statement; and

[0012] Perform feature calculation on the at least one indicator data to obtain an indicator result.

[0013] Optionally, the step of acquiring an indicator model corresponding to the business request according to the business request includes:

[0014] Acquire business scenario data from the business request;

[0015] According to the business scenario data, an indicator model corresponding to the business scenario data is obtained in a preset database.

[0016] Optionally, the method comprises:

[0017] Acquire at least one business scenario data, where the business scenario data includes statistical logic and corresponding atomic indicators;

[0018] The statistical logic decomposes the at least one business scenario data according to the statistical logic of the at least one business scenario data;

[0019] Defining the decomposed at least one business scenario data to obtain at least one template indicator element, wherein the at least one template indicator element includes a statistical dimension, a time granularity, and a business limitation;

[0020] Acquire at least one preset indicator measurement and at least one preset dimension according to the at least one business scenario data;

[0021] The atomic indicator, the at least one template indicator element, the preset indicator measurement and the preset dimension of each business scenario data are respectively combined to generate an indicator model corresponding to the business scenario data.

[0022] Optionally, the method comprises:

[0023] Pre-establishing a first association relationship between the atomic indicator in the indicator model and at least one data table in a preset data warehouse;

[0024] Pre-establishing a second association relationship between the at least one template indicator element in the indicator model and at least one data table in a preset data warehouse;

[0025] A third association relationship is pre-established between the preset indicator measurement in the indicator model and at least one data table in a preset data warehouse.

[0026] Optionally, the step of generating a target indicator according to the at least one configuration data and the indicator model includes:

[0027] According to the at least one configuration data, the atomic indicator, the indicator metric and at least one target element are acquired from the indicator model, wherein the at least one target element is: a template indicator element in the indicator model that has an association relationship with the at least one configuration data;

[0028] A target indicator is generated according to the at least one configuration data, the atomic indicator, the indicator metric and the at least one target element.

[0029] Optionally, the step of generating a query statement according to the target indicator includes:

[0030] Extracting at least one target field from the at least one data table according to the atomic indicator in the target indicator, the indicator metric, and the association relationship between the at least one target element and at least one data table in a preset data warehouse;

[0031] A query statement is generated according to the at least one target field and the at least one configuration data in the target indicator.

[0032] Optionally, the step of performing feature calculation on the at least one indicator data to obtain an indicator result includes:

[0033] According to a preset calculation time period, characteristic calculation is performed on the at least one indicator data to obtain an indicator result.

[0034] In order to achieve the above object, an embodiment of the present invention further provides an indicator configuration system, including:

[0035] A first acquisition module, used to acquire a service request, wherein the service request includes at least one configuration data;

[0036] A second acquisition module, used to acquire an indicator model corresponding to the business request according to the business request;

[0037] A first generating module, configured to generate a target indicator according to the at least one configuration data and the indicator model;

[0038] A second generating module is used to generate a query statement according to the target indicator;

[0039] A third acquisition module is used to acquire at least one indicator data according to the query statement; and

[0040] The feature calculation module is used to perform feature calculation on the at least one indicator data to obtain an indicator result.

[0041] In order to achieve the above-mentioned purpose, 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, and the processor implements the steps of the indicator configuration method described above when executing the computer program.

[0042] In order to achieve the above-mentioned purpose, 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 so that the at least one processor executes the steps of the indicator configuration method as described above.

[0043] The indicator configuration method, system, computer device and computer-readable storage medium provided in the embodiments of the present invention generate a target indicator through at least one configuration data in the business request and the indicator model corresponding to the business request; generate a query statement based on the target indicator; obtain at least one indicator data based on the query statement; and perform feature calculation on the at least one indicator data to obtain an indicator result, thereby effectively improving the efficiency of indicator expansion.

[0044] 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

[0045] Figure 1 This is a flowchart of the steps of the indicator configuration method according to the first embodiment of the present invention;

[0046] Figure 2 This is a flowchart of the steps of obtaining an indicator model according to a business request in the indicator configuration method of the first embodiment of the present invention;

[0047] Figure 3 This is a flow chart of the steps of pre-building an indicator model in the indicator configuration method of the first embodiment of the present invention;

[0048] Figure 4 This is a flow chart of the steps of generating a target indicator in the indicator configuration method according to the first embodiment of the present invention;

[0049] Figure 5 This is a flow chart of the steps of generating a query statement in the indicator configuration method of the first embodiment of the present invention;

[0050] Figure 6 A schematic diagram of a program module of an indicator configuration system according to a second embodiment of the present invention;

[0051] Figure 7 Schematic diagram of the hardware structure of the computer device according to the third embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions 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. According to 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.

[0053] The technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that they can be implemented by ordinary technicians in the field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by 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 S600, wherein:

[0057] Step S100: obtaining a service request, wherein the service request includes at least one configuration data.

[0058] In an exemplary embodiment, a business request sent by a business end is received through an indicator configuration platform, wherein the business request includes business scenario data input by the business end and at least one configuration data.

[0059] The business request is used to request to obtain the target indicator related to the business request and obtain the indicator result of the target indicator. The business scenario data includes but is not limited to: installment order processing business, consumption flow query business, and turnover query business.

[0060] The indicator configuration platform can connect multiple banking service interfaces through a unified communication protocol. When a banking service interface needs to request to obtain an indicator, the indicator configuration platform receives the service request sent by the banking service interface, and generates indicator data and indicator results in response to the service request.

[0061] Among them, multiple banking business interfaces include bank loan business interface, bank installment business interface, bank retail business interface, etc.

[0062] Exemplarily, the bank loan business interface is connected to the indicator configuration platform, and the bank loan business interface sends a business request to the indicator configuration platform through a unified communication protocol, for obtaining the target indicator based on the business request of "obtaining the turnover of Merchant A, Merchant B, Merchant C and Merchant D in Huaqiang North Street, Futian District, Shenzhen in the first half of 2020".

[0063] Among them, "Merchant A", "Merchant B", "Merchant C", "Merchant D", "First half of 2020" and "Sales" are multiple indicator concepts in the business request. The indicator configuration platform associates the above multiple indicator concepts with the corresponding indicator model, generates a target indicator with a time granularity of "First half of 2020", a dimension of "Merchant", business restrictions of "Merchant A", "Merchant B", "Merchant C", "Merchant D", "Shenzhen", "Futian District" and "Huaqiang North Street", and an indicator measurement of "RMB: Yuan". In an embodiment of the present invention, the computer device converts the indicator concept into a target indicator, which is a computer language that can be used by the computer device to execute indicator data query.

[0064] Step S200: acquiring an indicator model corresponding to the business request according to the business request.

[0065] Exemplarily, the indicator model is pre-created in the indicator modeling component of the indicator configuration platform. Different business types have corresponding indicator models. Business types can be understood as business scenario data.

[0066] In an exemplary embodiment, if Figure 2 As shown, the step S200 includes steps S201 to S202, wherein: step S201, obtaining business scenario data from the business request; step S202, obtaining an indicator model corresponding to the business scenario data in a preset database according to the business scenario data.

[0067] The corresponding indicator model is constructed in advance on the indicator configuration platform according to the business scenario data; other systems connected to the indicator configuration platform can share the indicator model stored on the indicator configuration platform. Different systems do not need to write additional database scripts to develop indicators. Indicators can be shared between business scenario data of different systems, thereby improving the processing efficiency of indicators.

[0068] In an exemplary embodiment, each indicator can be constructed into different indicator models according to different business types. The method includes pre-constructing the indicator model.

[0069] For example, Figure 3As shown, the method includes a construction process of at least one indicator model, specifically including steps S701 to S705, wherein: step S701, obtaining at least one business scenario data, the business scenario data including statistical logic and corresponding atomic indicators; step S702, the statistical logic decomposes the at least one business scenario data according to the statistical logic of the at least one business scenario data; step S703, defining the at least one business scenario data after decomposition, and obtaining at least one template indicator element, wherein the at least one template indicator element includes statistical dimension, time granularity and business limitation; step S704, obtaining at least one preset indicator measurement and at least one preset dimension according to the at least one business scenario data; step S705, respectively combining the atomic indicator of each business scenario data, the at least one template indicator element, the preset indicator measurement and the preset dimension to generate an indicator model corresponding to the business scenario data.

[0070] The atomic indicators of each indicator model, at least one template indicator element, indicator measurement, and data source corresponding to the dimension are all stored in at least one data table in the preset data warehouse.

[0071] Among them, atomic indicators are indicators without any modifiers and are nouns with clear business meanings. Atomic indicators describe a type of indicator, such as order payment amount, number of paid orders, number of placed orders, etc. However, if there is only one atomic indicator in the indicator model, it is impossible to directly obtain data from at least one data table in the data warehouse. Therefore, it is necessary to introduce indicator measurement.

[0072] In addition to atomic indicators and indicator metrics, the indicator model also needs to have template indicator elements that can form derived indicators. At least one template indicator element is obtained by decomposing the statistical logic of business scenario data and defining the statistical logic of the decomposed business scenario data. The definition of at least one template indicator element is to make the generated indicator model more consistent with the actual business scenario data.

[0073] Among them, at least one template indicator element includes time granularity, statistical dimension, and business limitation. The time granularity includes but is not limited to hours, days, weeks, months, quarters, first half of the year, second half of the year, and years; the statistical dimension includes qualitative statistical dimension and quantitative statistical dimension, among which the qualitative statistical dimension includes but is not limited to cities, gender, etc.; the quantitative statistical dimension includes order volume statistics between sales volume partitions, etc. Business limitation can be understood as dimension filtering conditions.

[0074] Exemplarily, the indicator model is composed of atomic indicators, indicator metrics, dimensions, and modifiers of derived indicators corresponding to the atomic indicators (ie, at least one template indicator element).

[0075] Obtain the corresponding preset indicator measurement and preset dimension based on the business scenario data, where the measurement is a standard unit of measurement. For example, if the business scenario data corresponds to a user's consumption flow query business, the measurement can be "RMB: Yuan". Dimension refers to an angle that describes the business scenario data. For example, if the business scenario data corresponds to the order query business, the dimensions include but are not limited to: buyer, seller, product, purchase time, order amount, etc.

[0076] Exemplarily, the indicator model is pre-built in the data specification definition component of the indicator configuration platform.

[0077] The following uses the business scenario data of "Sales query business of merchants in Huaqiang North Street, Futian District, Shenzhen in the first half of 2020" to illustrate the above operation of building an indicator model based on business scenario data.

[0078] The business scenario data of "turnover query service of merchants in Huaqiang North Street, Futian District, Shenzhen in the first half of 2020" is obtained from the business request; the atomic indicator of the business scenario data corresponds to "turnover", and the business scenario data is decomposed according to the statistical logic of the business scenario data to obtain at least one field corresponding to "Shenzhen", "Futian District", "Huaqiang North Street", "merchant", "first half of 2020", "turnover" and "query service", and the above at least one field is defined to obtain at least one template indicator element corresponding to at least one field, for example, "merchant" is defined as "statistical dimension", "first half of 2020" is defined as "time granularity", and "Shenzhen", "Futian District" and "Huaqiang North Street" are all defined as "business limitation"; the indicator measurement obtained from the business scenario data is "RMB: Yuan", and the dimension obtained from the business scenario data is "merchant"; the time granularity, statistical dimension, business limitation, atomic indicator, indicator measurement and dimension are combined to generate an indicator model corresponding to the turnover query service.

[0079] The above-mentioned definition of the decomposed business scenario data and the generation of template indicator elements are implemented on the indicator configuration platform according to the data specification definition rules. Defining the template indicator elements according to the data specification definition rules is conducive to the unified management of the indicator model.

[0080] Building corresponding indicator models based on different business scenario data meets the requirements of business scenarios of different systems for on-demand generation of indicator models, expands the business scenarios of indicator application, and enables indicator models to be applied to business scenarios corresponding to more systems.

[0081] In an exemplary embodiment, the method also includes: pre-establishing a first association relationship between the atomic indicator in the indicator model and at least one data table in a preset data warehouse; pre-establishing a second association relationship between the at least one template indicator element in the indicator model and at least one data table in the preset data warehouse; pre-establishing a third association relationship between the preset indicator measurement in the indicator model and at least one data table in the preset data warehouse; and pre-establishing a fourth association relationship between the preset dimension in the indicator model and at least one data table in the preset data warehouse.

[0082] At least one data table in the preset data warehouse includes a summary fact table, a detailed fact table, a dimension table, etc., wherein the summary fact table is a fact table that aggregates detailed facts; the detailed fact table is the detailed data of the most original granularity; and the dimension table is a wide table that physicalizes the logical dimension. The dimension table is associated with the detailed fact table and the summary fact table through foreign keys. The data stored in at least one data table has a corresponding primary key.

[0083] Exemplarily, there is a corresponding first association relationship between the atomic indicators in the indicator model and the summary fact table.

[0084] There is a corresponding second association relationship between at least one template indicator element in the indicator model and the summary fact table. There is a corresponding third association relationship between the indicator metric in the indicator model and the detailed fact table.

[0085] There is a corresponding fourth association relationship between the dimension in the indicator model and the dimension table.

[0086] Through the above-mentioned association relationship and configuration data, the required data source can be obtained from the corresponding data table. Pre-building the association relationship between the data table and the indicator model will help to effectively query the subsequent data.

[0087] Step S300: Generate a target indicator according to the at least one configuration data and the indicator model.

[0088] In an exemplary embodiment, the configuration data may be configuration data input by the business end. The target indicator is configured on the product end according to the configuration data and the indicator model.

[0089] In an exemplary embodiment, see Figure 4, the step S300 includes steps S301 to S302, wherein: step S301, according to the at least one configuration data, obtain the atomic indicator, the indicator measurement and at least one target element from the indicator model, wherein the at least one target element is: in the indicator model, a template indicator element that has an association relationship with the at least one configuration data; step S302, according to the at least one configuration data, the atomic indicator, the indicator measurement and the at least one target element, generate a target indicator.

[0090] This embodiment generates a target indicator corresponding to the business scenario data on demand according to at least one configuration data of the business request, thereby improving the user experience of the business end.

[0091] Step S400: Generate a query statement according to the target indicator.

[0092] In an exemplary embodiment, a standard query statement is generated based on at least one data table and a target indicator in a preset data warehouse, wherein the query statement is a SQL (Structured Query Language) script.

[0093] In an exemplary embodiment, Figure 5 As shown, the step S400 includes steps S401 to S402, wherein: step S401, extracting at least one target field from the at least one data table according to the atomic indicator in the target indicator, the indicator measurement and the association relationship between the at least one target element and at least one data table in the preset data warehouse; step S402, generating a query statement according to the at least one target field and the at least one configuration data in the target indicator.

[0094] Exemplarily, based on the atomic indicator, the indicator metric, and the association between the target element in at least one indicator element and at least one data table, it is identified and defined which field in which data table the target element corresponds to, and the required fields are obtained from the data table to generate a standard SQL statement.

[0095] Exemplarily, at least one sub-query statement is generated according to at least one target field, and after assembling the at least one generated sub-query statement, a query statement is obtained, and feature calculation may be performed on the query statement subsequently.

[0096] Step S500, obtaining at least one indicator data according to the query statement.

[0097] Exemplarily, through a query statement, at least one data source is obtained in a corresponding data table according to an indicator model; the obtained data source is at least one indicator data.

[0098] Step S600, performing feature calculation on the at least one indicator data to obtain an indicator result.

[0099] In an exemplary embodiment, the method further includes converting the query statement into a corresponding query task to facilitate subsequent feature calculation.

[0100] In an exemplary embodiment, a computing engine performs feature calculation on at least one acquired indicator data to obtain an indicator result, returns the result to the business end, and stores the indicator result in a preset database.

[0101] In an exemplary embodiment, the step S600 may further include: performing feature calculation on the at least one indicator data according to a preset calculation time period to obtain an indicator result.

[0102] Exemplarily, during the calculation process, a characteristic calculation is performed on the at least one indicator data through a preset calculation time period, such as setting a calculation frequency, and then the obtained indicator result is stored.

[0103] The characteristic calculation of at least one indicator data is performed according to a preset calculation time period, so as to avoid the characteristic calculation of at least one indicator data in the same time period; and the load pressure of the computer equipment on the calculation of at least one indicator data is dispersed.

[0104] The indicator configuration method also includes: storing the preset database storing the indicator results in a blockchain.

[0105] Blockchain is essentially a decentralized database, a series of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of the information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0106] Embodiment 2

[0107] Please continue reading Figure 6 , showing a schematic diagram of the program modules of the indicator configuration system of the present invention. In this embodiment, the indicator configuration system 20 may include or be divided into one or at least one program module, one or at least one program module is stored in a storage medium and executed by one or at least one processor 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 system 20 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment:

[0108] A first acquisition module 800 is used to acquire a service request, where the service request includes at least one configuration data;

[0109] A second acquisition module 810 is used to acquire an indicator model corresponding to the business request according to the business request;

[0110] A first generating module 820, configured to generate a target indicator according to the at least one configuration data and the indicator model;

[0111] A second generating module 830 is used to generate a query statement according to the target indicator;

[0112] A third acquisition module 840 is used to acquire at least one indicator data according to the query statement; and

[0113] The feature calculation module 850 is used to perform feature calculation on the at least one indicator data to obtain an indicator result.

[0114] In an exemplary embodiment, the second acquisition module 810 is further used to: acquire an atomic indicator associated with the service request; and acquire an indicator model corresponding to the atomic indicator in a preset database according to the atomic indicator.

[0115] In an exemplary embodiment, the system includes: an indicator model construction module 860; the indicator model construction module 860 is used to: obtain at least one business scenario data, the business scenario data including statistical logic and corresponding atomic indicators; the statistical logic decomposes the at least one business scenario data according to the statistical logic of the at least one business scenario data; define the at least one business scenario data after decomposition to obtain at least one template indicator element, wherein the at least one template indicator element includes statistical dimensions, time granularity and business limitations; obtain at least one preset indicator measurement and at least one preset dimension according to the at least one business scenario data; respectively combine the atomic indicators, the at least one template indicator element, the preset indicator measurement and the preset dimension of each business scenario data to generate an indicator model corresponding to the business scenario data.

[0116] In an exemplary embodiment, the system includes: an association relationship pre-construction module 870; the association relationship pre-construction module 870 is used to: pre-build the association relationship between the atomic indicator in the indicator model, the at least one template indicator element and the preset indicator measurement and at least one data table in the preset data warehouse.

[0117] In an exemplary embodiment, the first generation module 820 is further used to: obtain the atomic indicator, the indicator measurement and at least one target element from the indicator model according to the at least one configuration data, wherein the at least one target element is: a template indicator element in the indicator model that has an association relationship with the at least one configuration data; generate a target indicator according to the at least one configuration data, the atomic indicator, the indicator measurement and the at least one target element.

[0118] In an exemplary embodiment, the second generation module 830 is also used to: extract at least one target field from the at least one data table based on the atomic indicator in the target indicator, the indicator measurement, and the association relationship between the at least one target element and at least one data table in a preset data warehouse; generate a query statement based on the at least one target field and the at least one configuration data in the target indicator.

[0119] In an exemplary embodiment, the feature calculation module 850 is further used to: perform feature calculation on the at least one indicator data according to a preset calculation time period to obtain an indicator result.

[0120] Embodiment 3

[0121] See also Figure 7 , is a schematic diagram of the hardware architecture of the computer device of the third embodiment of the present invention. In this embodiment, the computer device 2 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 2 can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of at least one server), etc. Figure 7 As shown, the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and an indicator configuration system 20 that can be interconnected and communicated via a system bus. Among them:

[0122] In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, and the 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, etc. In some embodiments, the memory 21 can be an internal storage unit of the computer device 2, such as a hard disk or memory of the computer device 2. In other embodiments, the memory 21 can also be an external storage device of the computer device 2, such as a plug-in hard disk equipped on the computer device 2, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 21 can also include both the internal storage unit of the computer device 2 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed on the computer device 2, such as the program code of the indicator configuration system 20 of the above embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.

[0123] The processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running the indicator configuration system 20 to implement the indicator configuration method of the above embodiment.

[0124] The network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the computer device 2 and other electronic devices. For example, the network interface 23 is used to connect the computer device 2 to an external terminal through a network, and to establish a data transmission channel and a communication connection between the computer device 2 and the external terminal. The network may be a wireless or wired network such as an Intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.

[0125] It should be pointed out that Figure 7 Computer device 2 is shown only with components 20 - 23 , but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0126] In this embodiment, the indicator configuration system 20 stored in the memory 21 can also be divided into one or at least one program module, and the one or at least one program module is stored in the memory 21 and executed by one or at least one processor (processor 22 in this embodiment) to complete the present invention.

[0127] For example, Figure 6 The program module schematic diagram of the second embodiment of the indicator configuration system 20 is shown. In this embodiment, the indicator configuration system 20 can be divided into a first acquisition module 800, a second acquisition module 810, a first generation module 820, a second generation module 830, a third acquisition module 840 and a feature calculation module 850. 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 system 20 in the computer device 2 than a program. The specific functions of the program modules 800-850 have been described in detail in the second embodiment and will not be repeated here.

[0128] Embodiment 4

[0129] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, 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 disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program realizes corresponding functions when executed by a processor. The computer-readable storage medium of this embodiment is used to store the indicator configuration system 20, and when executed by the processor, the indicator configuration method of the above embodiment is realized.

[0130] 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.

[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0132] 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. A method for configuring indicators. It is characterized in that include: Obtaining a service request, wherein the service request includes at least one configuration data; According to the business request, obtaining an indicator model corresponding to the business request; generating a target indicator according to the at least one configuration data and the indicator model; Generate a query statement according to the target indicator; Acquire at least one indicator data according to the query statement; and Performing feature calculation on the at least one indicator data to obtain an indicator result; The step of acquiring an indicator model corresponding to the business request according to the business request includes: Acquire business scenario data from the business request; According to the business scenario data, obtaining an indicator model corresponding to the business scenario data in a preset database; The step of generating the indicator model includes: Acquire at least one business scenario data, where the business scenario data includes statistical logic and corresponding atomic indicators; Decomposing the at least one business scenario data according to the statistical logic of the at least one business scenario data; Defining the decomposed at least one business scenario data to obtain at least one template indicator element, wherein the at least one template indicator element includes a statistical dimension, a time granularity, and a business limitation; Acquire at least one preset indicator measurement and at least one preset dimension according to the at least one business scenario data; Combining the atomic indicator, the at least one template indicator element, the preset indicator measurement and the preset dimension of each business scenario data respectively to generate an indicator model corresponding to the business scenario data; The method comprises: Pre-establishing a first association relationship between the atomic indicator in the indicator model and at least one data table in a preset data warehouse; Pre-establishing a second association relationship between the at least one template indicator element in the indicator model and at least one data table in a preset data warehouse; Pre-establishing a third association relationship between the preset indicator measurement in the indicator model and at least one data table in a preset data warehouse; The step of generating a target indicator according to the at least one configuration data and the indicator model comprises: According to the at least one configuration data, the atomic indicator, the indicator metric and at least one target element are acquired from the indicator model, wherein the at least one target element is: a template indicator element in the indicator model that has an association relationship with the at least one configuration data; generating a target indicator according to the at least one configuration data, the atomic indicator, the indicator metric, and the at least one target element; The step of generating a query statement according to the target indicator includes: Extracting at least one target field from the at least one data table according to the atomic indicator in the target indicator, the indicator metric, and the association relationship between the at least one target element and at least one data table in a preset data warehouse; A query statement is generated according to the at least one target field and the at least one configuration data in the target indicator.

2. The indicator configuration method according to claim 1, It is characterized in that The step of performing feature calculation on the at least one indicator data to obtain an indicator result includes: According to a preset calculation time period, characteristic calculation is performed on the at least one indicator data to obtain an indicator result.

3. An indicator configuration system, It is characterized in that include: A first acquisition module, used to acquire a service request, wherein the service request includes at least one configuration data; A second acquisition module, used to acquire an indicator model corresponding to the business request according to the business request; A first generating module, configured to generate a target indicator according to the at least one configuration data and the indicator model; A second generating module is used to generate a query statement according to the target indicator; A third acquisition module is used to acquire at least one indicator data according to the query statement; and A feature calculation module, used to perform feature calculation on the at least one indicator data to obtain an indicator result; The step of acquiring an indicator model corresponding to the business request according to the business request includes: Acquire business scenario data from the business request; According to the business scenario data, obtaining an indicator model corresponding to the business scenario data in a preset database; The step of generating the indicator model includes: Acquire at least one business scenario data, where the business scenario data includes statistical logic and corresponding atomic indicators; Decomposing the at least one business scenario data according to the statistical logic of the at least one business scenario data; Defining the decomposed at least one business scenario data to obtain at least one template indicator element, wherein the at least one template indicator element includes a statistical dimension, a time granularity, and a business limitation; Acquire at least one preset indicator measurement and at least one preset dimension according to the at least one business scenario data; Combining the atomic indicator, the at least one template indicator element, the preset indicator measurement and the preset dimension of each business scenario data respectively to generate an indicator model corresponding to the business scenario data; Pre-built modules for relationships: Pre-establishing a first association relationship between the atomic indicator in the indicator model and at least one data table in a preset data warehouse; Pre-establishing a second association relationship between the at least one template indicator element in the indicator model and at least one data table in a preset data warehouse; Pre-establishing a third association relationship between the preset indicator measurement in the indicator model and at least one data table in a preset data warehouse; The generating a target indicator according to the at least one configuration data and the indicator model comprises: According to the at least one configuration data, the atomic indicator, the indicator metric and at least one target element are acquired from the indicator model, wherein the at least one target element is: a template indicator element in the indicator model that has an association relationship with the at least one configuration data; generating a target indicator according to the at least one configuration data, the atomic indicator, the indicator metric, and the at least one target element; Generating a query statement according to the target indicator includes: Extracting at least one target field from the at least one data table according to the atomic indicator in the target indicator, the indicator metric, and the association relationship between the at least one target element and at least one data table in a preset data warehouse; A query statement is generated according to the at least one target field and the at least one configuration data in the target indicator.

4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the indicator configuration method according to any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium, It is 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 2.