A data verification method, device, equipment, storage medium and product

By registering indicator definition functions in the indicator registry, the data verification process is automated, solving the inefficiency and error problems of manual verification and achieving efficient and accurate data verification.

CN122364014APending Publication Date: 2026-07-10BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2025-01-08
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing technologies, data verification processes rely on manual processes, which are difficult to meet timeliness requirements and are prone to subjective judgment errors, thus failing to guarantee the accuracy of data verification.

Method used

By setting up an indicator registry, indicator definition functions corresponding to preset indicator identifiers are registered. In response to data verification commands, the verification indicator identifiers in the verification configuration file are obtained, the matching indicator definition functions are queried from the indicator container, and the indicator values ​​are determined based on the indicator definition functions, thereby reducing the coupling between the verification configuration file and the data source.

Benefits of technology

It improves the efficiency and accuracy of data validation and reduces the development difficulty of validation configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122364014A_ABST
    Figure CN122364014A_ABST
Patent Text Reader

Abstract

This invention discloses a data verification method, apparatus, device, storage medium, and product. The method includes: responding to a data verification command, obtaining a verification configuration file corresponding to the data verification command, and obtaining at least one verification indicator identifier from the verification configuration file; for each verification indicator identifier, querying an indicator definition function matching the verification indicator identifier from an indicator container, and determining the indicator value corresponding to the verification indicator identifier based on the indicator definition function; wherein, the indicator definition function represents the interactive process of reading indicator values ​​from a data source based on the verification indicator identifier; determining data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier; wherein, the indicator container is generated based on an indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function, solving the problem of relying on manual data verification processes and improving the efficiency and accuracy of data verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data verification method, apparatus, device, storage medium and product. Background Technology

[0002] In today's data-driven business environment, all industries are increasingly reliant on data. Currently, data verification processes rely on manual processes, which not only fail to meet timeliness requirements but are also prone to subjective judgment errors, making it impossible to guarantee the accuracy of data verification. Summary of the Invention

[0003] This invention provides a data verification method, apparatus, device, storage medium, and product to solve the problem of relying on manual data verification processes and improve the efficiency and accuracy of data verification.

[0004] In a first aspect, embodiments of the present invention provide a data verification method, the method comprising:

[0005] In response to a data verification command, a verification configuration file corresponding to the data verification command is obtained, and at least one verification indicator identifier in the verification configuration file is obtained.

[0006] For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier.

[0007] Based on the verification configuration file and the indicator value corresponding to each verification indicator identifier, the data verification information is determined;

[0008] The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

[0009] Secondly, embodiments of the present invention also provide a data verification device, the device comprising:

[0010] The verification indicator identifier acquisition module is used to respond to the data verification command, acquire the verification configuration file corresponding to the data verification command, and acquire at least one verification indicator identifier in the verification configuration file.

[0011] The indicator value determination module is used to query the indicator definition function that matches the verification indicator identifier from the indicator container for each verification indicator identifier, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier.

[0012] The data verification information determination module is used to determine data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier.

[0013] The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

[0014] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data verification method according to any embodiment of the present invention.

[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement the data verification method described in any embodiment of the present invention.

[0019] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the data verification method described in any embodiment of the present invention.

[0020] The technical solution of this invention, through setting an indicator registry, registers at least one indicator definition function corresponding to each preset indicator identifier. In response to a data verification command, it retrieves the verification indicator identifier from the verification configuration file corresponding to the data verification command, queries the indicator container generated based on the indicator registry for the indicator definition function matching the verification indicator identifier, and determines the indicator value corresponding to the verification indicator identifier based on the indicator definition function. Finally, based on the verification configuration file and the indicator value corresponding to the verification indicator identifier, it determines the data verification information. The indicator definition function represents the interactive process of reading indicator values ​​from the data source based on the verification indicator identifier. This solves the problem of relying on manual data verification, reduces the coupling between the verification configuration file, indicators, and data source, thereby reducing the development difficulty of the verification configuration file and improving the efficiency and accuracy of data verification. Attached Figure Description

[0021] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0022] Figure 1 A flowchart illustrating a data verification method provided in one embodiment of the present invention;

[0023] Figure 2 A flowchart illustrating a specific example of a data verification method provided in an embodiment of the present invention;

[0024] Figure 3 A flowchart illustrating another data verification method provided in one embodiment of the present invention;

[0025] Figure 4 This is a schematic diagram of an indicator configuration page provided in one embodiment of the present invention;

[0026] Figure 5 A flowchart illustrating another data verification method provided in one embodiment of the present invention;

[0027] Figure 6 A flowchart illustrating a registration method for an index definition function provided in one embodiment of the present invention;

[0028] Figure 7 A flowchart illustrating a specific example of another data verification method provided in an embodiment of the present invention;

[0029] Figure 8 This is a schematic diagram of the structure of a data verification device provided in one embodiment of the present invention;

[0030] Figure 9 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation

[0031] Embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While some embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the invention. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the invention.

[0032] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0033] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0034] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0035] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0036] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0037] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0038] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application program, server, or storage medium executing the operation of this invention, based on the prompt message.

[0039] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0040] It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of the present invention. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.

[0041] Figure 1 This is a flowchart illustrating a data verification method according to an embodiment of the present invention. This embodiment is applicable to situations involving data verification. The method can be executed by a data verification device, which can be implemented in hardware and / or software. This data verification device can be configured in an electronic device, typically a mobile terminal or tablet computer. Figure 1 As shown, the method includes:

[0042] S110. In response to the data verification command, obtain the verification configuration file corresponding to the data verification command, and obtain at least one verification index identifier in the verification configuration file.

[0043] In one optional embodiment, the data verification instruction includes a verification identifier for uniquely identifying the verification configuration file. Accordingly, obtaining the verification configuration file corresponding to the data verification instruction includes: determining the verification configuration file corresponding to the data verification instruction based on the verification identifier in the data verification instruction.

[0044] Based on the above embodiments, optionally, the method further includes: if the current time meets the verification period corresponding to the verification configuration file, then generating a data verification instruction according to the verification identifier corresponding to the verification configuration file. For example, the verification period can be 1 hour or 30 minutes, but is not limited to the example scenario.

[0045] Optionally, based on the above embodiments, the method further includes: in response to receiving a data verification request sent by the service terminal, generating a data verification instruction according to the verification identifier in the data verification request.

[0046] Specifically, a validation profile represents a set of criteria built around at least one validation metric. For example, the validation type of the validation profile can be a value range validation, a threshold validation, or a logical relationship validation, such as a value range validation where validation metric A satisfies [10, 20], a threshold validation where validation metric A is greater than 30, and a logical relationship validation where validation metric A > validation metric B, etc., but is not limited to the above examples.

[0047] S120. For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function.

[0048] In this embodiment, the indicator container is generated based on an indicator registry, which registers at least one indicator definition function corresponding to a preset indicator identifier. The indicator container can represent a data structure used to support query operations on the indicator registry.

[0049] In an optional embodiment, the method further includes: sending a container generation request to a terminal storing the indicator registry; receiving the indicator registry sent by the terminal; and generating an indicator container based on the indicator registry. The indicator registry represents a container used to support operations such as querying, registering, and deleting indicator definition functions.

[0050] In this embodiment, the indicator definition function encapsulates an interactive process for reading indicator values ​​from the data source based on the verification indicator identifier. Specifically, the interactive process represents a series of ordered operation steps by which the client instance represented by the indicator definition function reads indicator values ​​from the data source. In an optional embodiment, the interactive process includes a data source preloading process, a data query process, and a data reading process.

[0051] In one optional embodiment, determining the indicator value corresponding to the verification indicator identifier according to the indicator definition function includes: obtaining the indicator value corresponding to the verification indicator identifier by calling the indicator definition function.

[0052] In another alternative embodiment, the method further includes adding the condition parameter data in the data verification instruction to the indicator container.

[0053] Specifically, the indicator container can also be used to support the storage and querying of condition parameter data. The condition parameter data includes indicator condition parameters corresponding to at least one verification indicator identifier, and these indicator condition parameters represent conditional information that constrains the reading range of the verification indicator corresponding to the verification indicator identifier.

[0054] Specifically, the number of indicator condition parameters in the condition parameter data is equal to or less than the number of verification indicator identifiers in the verification configuration file, which indicates a constraint on the reading range of some or all verification indicator identifiers in the verification configuration file.

[0055] For example, assuming the verification indicator is labeled "live broadcast sessions", the indicator condition parameters can be the live broadcast time within 3 days, the live broadcast account is account A, the live broadcast account type is personal account, the live broadcast platform is platform A, the live broadcast type is game live broadcast, and the live broadcast status is currently live, etc., but are not limited to the example scenario.

[0056] Based on the above embodiments, the step of determining the indicator value corresponding to the verification indicator identifier according to the indicator definition function includes: obtaining the indicator condition parameter corresponding to the verification indicator identifier from the indicator container; using the indicator condition parameter as the input parameter of the indicator definition function, calling the indicator definition function to obtain the indicator value corresponding to the verification indicator identifier.

[0057] Specifically, the indicator condition parameter serves as the query condition for the query function in the data query process encapsulated within the indicator definition function. The data query process is used to filter indicator data content in the data source that satisfies the indicator condition parameter. The data reading process in the indicator definition function is used to read the indicator value corresponding to the verification indicator identifier from the filtered indicator data content.

[0058] Different business scenarios may have different reading requirements for the same verification metric. For example, for live streaming sessions, in a new product launch scenario, the reading requirement might be to retrieve live streaming sessions where the live streaming status is "currently live" and the live streaming type is "product promotion live stream." In an educational course scenario, the reading requirement might be to retrieve live streaming sessions where the live streaming account type is "institutional account" and the live streaming type is "educational live stream." This embodiment improves the flexibility of data reading by setting metric condition parameters, enabling the data verification method to adapt to diverse business scenarios.

[0059] Based on the above embodiments, optionally, before querying the indicator definition function that matches the verification indicator identifier from the indicator container, the method further includes: when the number of verification indicator identifiers is at least two, obtaining the read log in the indicator container; if the verification indicator identifier does not exist in the read log, then performing the step of querying the indicator definition function that matches the verification indicator identifier from the indicator container; if the verification indicator identifier exists in the read log, then obtaining the indicator value of the verification indicator identifier from the read log.

[0060] In this embodiment, the index reading threads corresponding to the multiple verification index identifiers are executed serially, and the reading log stores the index values ​​corresponding to at least one verification index identifier that has been read.

[0061] The benefits of setting up log reading are that it improves the efficiency of obtaining indicator values ​​and reduces the computational load of data verification, especially in scenarios involving massive amounts of data verification, thus ensuring the efficiency of data verification.

[0062] S130. Determine the data verification information based on the verification configuration file and the index value corresponding to each verification index identifier.

[0063] Specifically, the indicator value corresponding to each verification indicator is replaced with the verification indicator identifier in the verification configuration file to obtain the verification calculation formula. If the verification calculation formula is true, the data verification information is set to verification passed; if the verification calculation formula is false, the data verification information is set to verification failed.

[0064] For example, the verification expression contains at least one of arithmetic operators, comparison operators, and logical operators. For example, arithmetic operators include addition, subtraction, multiplication, division, and modulo, comparison operators include equal to, not equal to, greater than, less than or equal to, less than and greater than or equal to, and logical operators include AND, OR, and NOT, but are not limited to the example case.

[0065] Figure 2 This is a flowchart illustrating a specific example of a data verification method provided in an embodiment of the present invention. Specifically, in response to a data verification command, a verification configuration file corresponding to the data verification command and the verification indicator identifier in the verification configuration file are obtained. A container generation request is sent to a terminal storing an indicator registry. Based on the indicator registry sent by the terminal, an indicator container is generated and configured in an indicator loader. The indicator registry registers indicator definition function 1 and indicator definition function 2, etc. The indicator loader represents the object interface provided for the indicator container, supporting functions such as data acquisition and data preprocessing. It can be used to pass the condition parameter data in the data verification command to the indicator container for management.

[0066] The system checks if a verification indicator identifier exists in the read log of the indicator container. If it does, it reads the corresponding indicator value from the read log. If it does not exist, it calls the indicator definition function `m` corresponding to the verification indicator identifier to obtain the indicator value read from the data source, and adds the verification indicator identifier and indicator value to the read log accordingly. Based on the verification configuration file and the indicator value corresponding to the verification indicator identifier, the system determines the data verification information.

[0067] The technical solution of this embodiment sets up an indicator registry, which registers at least one indicator definition function corresponding to each preset indicator identifier. In response to a data verification command, it obtains the verification indicator identifier from the verification configuration file corresponding to the data verification command, queries the indicator container generated according to the indicator registry for the indicator definition function that matches the verification indicator identifier, and determines the indicator value corresponding to the verification indicator identifier based on the indicator definition function. Based on the verification configuration file and the indicator value corresponding to the verification indicator identifier, it determines the data verification information. Here, the indicator definition function represents the interactive process of reading indicator values ​​from the data source according to the verification indicator identifier. This solves the problem of relying on manual data verification, reduces the coupling between the verification configuration file, indicators, and data source, thereby reducing the development difficulty of the verification configuration file and improving the efficiency and accuracy of data verification.

[0068] Figure 3 This is a flowchart illustrating another data verification method provided in one embodiment of the present invention. This embodiment further refines the data verification method described in the above embodiment. For example... Figure 3 As shown, the method includes:

[0069] S210. Monitor the business data stream on the business side according to the verification trigger condition set.

[0070] In this embodiment, the set of verification trigger conditions includes at least one verification trigger condition. Specifically, a verification trigger condition indicates that business data corresponding to a specified business event appears in the business data stream.

[0071] For example, when the specified business event is a live event, the business data corresponding to the live event can be the live room account; when the specified business event is an order event, the business data corresponding to the order event can be the order number.

[0072] S220. When there is business data in the business data stream that meets the verification triggering condition, a data verification instruction is generated according to the condition identifier of the verification triggering condition.

[0073] Specifically, the condition identifier is used to uniquely identify the verification trigger condition. In this embodiment, the verification trigger condition is bound to at least one verification configuration file.

[0074] Based on the above embodiments, optionally, the method further includes: receiving a verification configuration file sent by the service terminal, and obtaining at least one verification indicator identifier in the verification configuration file; binding the verification configuration file with a verification trigger condition in the verification trigger condition set according to the at least one verification indicator identifier.

[0075] In this embodiment, the verification index corresponding to the verification index identifier is associated with the condition factor in the verification trigger condition. Specifically, the association between the verification index identifier and the condition factor is predefined, and an index condition mapping table is constructed. The index condition mapping table contains condition identifiers corresponding to at least one verification trigger condition in the verification trigger condition set, and at least one verification index identifier corresponding to each condition identifier.

[0076] For example, if the condition factor for the verification trigger is a live event, the verification metrics related to the condition factor can be the number of live sessions, the number of live viewers, and the duration of the live stream. If the condition factor for the verification trigger is an order event, the verification metrics related to the condition factor can be the number of orders, the resource demand, and the probability of items being shipped out, but are not limited to the above examples.

[0077] Configuring the verification configuration file by the business side allows it to adapt to diverse data verification needs, reducing communication and time costs during configuration and improving configuration flexibility. Correspondingly, this embodiment provides an automated binding process between the verification configuration file and verification trigger conditions, adapting to application scenarios where the verification configuration file is configured by the business side, thus improving binding efficiency and accuracy.

[0078] Based on the above embodiments, optionally, the method further includes: obtaining a preset indicator identifier and a business scenario identifier from the indicator configuration file of the preset indicators; sending the preset indicator identifier to the business terminal corresponding to the business scenario identifier, so that the business terminal adds the preset indicator identifier to the business indicator set and configures a verification configuration file according to the business indicator set.

[0079] In this embodiment, the business scenario identifier is used to identify the business scenario in which the preset indicators are applied. Specifically, one or more business terminals may correspond to the same business scenario.

[0080] For example, if the preset indicator is the number of live broadcast sessions, the business scenario identifier can be business scenario A, and the business end corresponding to business scenario A can be the risk control end and the business operation end, etc. If the preset indicator is the probability of goods leaving the warehouse, the business scenario identifier can be business scenario B, and the business end corresponding to business scenario B can be the goods supply end and the value settlement end, etc., but it is not limited to the above example scenarios.

[0081] The advantage of setting business scenario identifiers is that it avoids redundant preset indicator identifiers from interfering with the business side, helps improve the efficiency and accuracy of the configuration verification configuration file on the business side, and saves network bandwidth and system resource consumption caused by data transmission with the business side.

[0082] Based on the above embodiments, optionally, the method further includes: obtaining a preset indicator identifier and a data source identifier from an indicator configuration file of a preset indicator; when the indicator configuration file contains indicator generation data, obtaining at least one basic indicator identifier from the indicator generation data; for each basic indicator identifier, querying an indicator definition function matching the basic indicator identifier from the indicator container, and determining an indicator value corresponding to the basic indicator identifier based on the indicator definition function; determining the indicator value of the preset indicator based on the indicator generation data and the indicator value corresponding to each basic indicator identifier; and storing the indicator value of the preset indicator in a data source corresponding to the data source identifier based on the preset indicator identifier.

[0083] In this embodiment, the preset index refers to a derived index obtained by calculating the basic index corresponding to each of the at least one basic index identifier. For example, when the basic index is the number of live broadcast sessions, the preset index can be the average number of live broadcast sessions or the maximum number of live broadcast sessions, etc.

[0084] Specifically, the indicator generation data represents a set of criteria built around at least one basic indicator. In an optional embodiment, the indicator generation data further includes at least one of indicator entity objects, statistical methods, and indicator filtering parameters.

[0085] Here, the indicator entity object represents the entity dimension to which the basic indicator belongs. For example, the indicator entity object can be a live stream, an item, an account, or a supplier. The statistical method represents the statistical verification of the basic indicator in the indicator generation data. For example, the statistical method can be counting, summing, deduplicating counting, maximum value, minimum value, or latest value.

[0086] The indicator filtering parameters represent the parameters that constrain the reading range corresponding to the basic indicator. In an optional embodiment, the indicator filtering parameters include the indicator period and / or indicator attribute. The indicator period represents the length of time corresponding to the indicator value of the basic indicator; for example, the indicator period can be 1 month or 1 day. For example, when the basic indicator is the number of live broadcast sessions, the indicator attribute can be live broadcast platform A; when the basic indicator is the number of orders, the indicator attribute can be region A or value range, etc.

[0087] Specifically, the method for obtaining the indicator value corresponding to the basic indicator identifier is the same as or similar to the method for obtaining the indicator value corresponding to the verification indicator identifier in the above embodiments. In one embodiment, when the indicator generation data contains indicator filtering parameters, determining the indicator value corresponding to the basic indicator identifier according to the indicator definition function includes: using the indicator filtering parameters as input parameters to the indicator definition function, calling the indicator definition function, and obtaining the indicator value corresponding to the basic indicator identifier.

[0088] Specifically, the data source identifier represents the identifier of the data source used to store the value of the preset indicator, and is used to uniquely identify the data source.

[0089] The advantage of setting up metrics to generate data is that it improves the flexibility of metric configuration, thereby ensuring the diversity of metric data to adapt to the data verification needs of different business scenarios and expand the applicable scenarios of data verification methods.

[0090] Figure 4 This is a schematic diagram of an indicator configuration page provided in one embodiment of the present invention. Specifically, the indicator configuration page includes input boxes for "Indicator Name", "Data Source Identifier", "Business Scenario", and "Indicator Generation", respectively. The input content for "Indicator Name" can represent the indicator identifier, and the input content for "Business Scenario" can represent the business scenario identifier. Specifically, "Indicator Generation" includes input boxes for indicator period, indicator attribute, and statistical method, respectively. The input content for "Indicator Generation" can represent the indicator generation data.

[0091] S230. In response to the data verification command, obtain the verification configuration file corresponding to the data verification command, and obtain at least one verification index identifier in the verification configuration file.

[0092] In this embodiment, obtaining the verification configuration file corresponding to the data verification instruction includes: determining the verification configuration file corresponding to the data verification instruction based on the condition identifier in the data verification instruction. Specifically, by obtaining the verification trigger condition corresponding to the condition identifier, the verification configuration file bound under the verification trigger condition is used as the verification configuration file corresponding to the data verification instruction.

[0093] S240. For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function.

[0094] S250. Determine the data verification information based on the verification configuration file and the index value corresponding to each verification index identifier.

[0095] S240-S250 in this embodiment are the same as those in the above embodiment. Figure 1 The S120-S130 shown are the same or similar, and will not be described again in this embodiment.

[0096] The technical solution of this embodiment monitors the business data stream on the business side according to the set of verification trigger conditions. When there is business data in the business data stream that meets the verification trigger conditions, a data verification instruction is generated according to the condition identifier of the verification trigger conditions. This solves the problem of poor real-time performance of the data verification process, enabling the data verification process to follow the rhythm of business events in the business data stream, thereby further improving the efficiency of data verification.

[0097] Figure 5 This is a flowchart illustrating another data verification method provided in one embodiment of the present invention. This embodiment further refines the data verification method described in the above embodiment. For example... Figure 5 As shown, the method includes:

[0098] S310. Obtain the preset indicator identifier and data source identifier from the preset indicator configuration file.

[0099] Specifically, the preset indicator identifier is used to uniquely identify the preset indicator, and the data source identifier is used to uniquely identify the data source that stores the indicator value of the preset indicator.

[0100] In an optional embodiment, the execution conditions of S310 include, but are not limited to, detecting a creation instruction for a preset indicator, detecting a configuration update instruction for a preset indicator, detecting a data update instruction for a data source corresponding to a data source identifier, and satisfying at least one of the following at the current time: the indicator registration cycle is met.

[0101] S320. Determine the indicator definition function of the preset indicator based on the preset indicator identifier and the data source identifier.

[0102] In one optional embodiment, determining the indicator definition function of the preset indicator based on the preset indicator identifier and the data source identifier includes: obtaining a data reading function corresponding to the data source identifier, and using the preset indicator identifier as the input parameter of the data reading function to obtain the indicator definition function of the preset indicator. The data reading function encapsulates a complete interactive process for reading indicator values ​​from the data source.

[0103] Specifically, the complete interactive process encapsulated in the data retrieval function includes a data source preloading process, a data query process, and a data retrieval process. The data source preloading process involves preloading the data source to obtain its configuration data; the data query process generates a query function based on the data source configuration data; and the data retrieval process reads the metric values ​​from the data source according to the query function.

[0104] For example, when the data source is an RPC (Remote Procedure Call) data source, the data source configuration data includes the RPC data source's IDL (Interface Definition Language) information and generic call configuration information. When the data source is a Redis data source, abase data source, OneService data source, or MQ (Message Queue) data source, the data source configuration data includes the service address, port number, communication protocol, and authentication and authorization information, etc.

[0105] In another optional embodiment, determining the indicator definition function of the preset indicator based on the preset indicator identifier and the data source identifier includes: preloading the data source corresponding to the data source identifier to obtain data source configuration data, and generating a data source definition function based on the data source configuration data; wherein the data source definition function encapsulates the data query process and data reading process of the data source; and using the preset indicator identifier as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0106] Specifically, the query function in the data query process within the data source definition function is generated based on the data configured in the data source.

[0107] The advantage of preloading the data source is that it simplifies the process steps of the interactive flow encapsulated in the indicator definition function, thereby improving the efficiency of obtaining indicator values ​​and further improving the efficiency of data verification.

[0108] Based on the above embodiments, optionally, before preloading the data source corresponding to the data source identifier to obtain data source configuration data, the method further includes: obtaining the preloading duration of the data source corresponding to the data source identifier, and obtaining the indicator configuration validity period of the preset indicator from the indicator configuration file; when the preloading duration is greater than the indicator configuration validity period, performing the step of preloading the data source corresponding to the data source identifier to obtain data source configuration data; when the preloading duration is less than or equal to the indicator configuration validity period, obtaining the data source definition function corresponding to the data source identifier in the data source preloading data, and using the preset indicator identifier as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0109] Specifically, the preload duration represents the time elapsed between the last time the data source corresponding to the data source identifier underwent preload processing and the current time. The metric configuration validity period represents the timeliness requirement of the preset metric for the data source configuration data. For example, the metric configuration validity period can be 5 minutes or 1 minute, but is not limited to the example scenario.

[0110] Specifically, the data source preload data contains at least one data source identifier corresponding to a data source definition function.

[0111] The advantage of setting the timeliness of indicator configuration is that when multiple preset indicators correspond to the same data source identifier, it ensures that the data source configuration data meets the timeliness requirements of the preset indicators, and avoids the repetitive steps of preloading the data source corresponding to the data source identifier multiple times, thus reducing the resource consumption and preloading time caused by repetitive redundant operations.

[0112] S330. Register the indicator definition function to the indicator registry.

[0113] Figure 6 This is a flowchart illustrating a registration method for an indicator definition function according to an embodiment of the present invention. Specifically, a preset indicator identifier, indicator configuration validity period, and data source identifier are obtained from the indicator configuration file of indicator 1. It is determined whether the data source identifier exists in the preloaded data. If not, the data source corresponding to the data source identifier is preloaded to obtain data source configuration data, and a data source definition function is generated based on the data source configuration data. If the data source identifier exists, it is further determined whether the preload duration of the data source configuration data corresponding to the data source identifier in the preloaded data is less than the indicator configuration validity period. If not, the step of preloading the data source corresponding to the data source identifier to obtain data source configuration data is executed. If so, the data source definition function corresponding to the data source identifier is obtained from the preloaded data. The preset indicator identifier is used as the input parameter of the data source definition function to obtain indicator definition function 1 for indicator 1, and indicator definition function 1 is registered in the indicator registry.

[0114] S340. In response to the data verification command, obtain the verification configuration file corresponding to the data verification command, and obtain at least one verification index identifier in the verification configuration file.

[0115] S350. For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function.

[0116] S360. Determine the data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier.

[0117] S340-S360 in this embodiment are the same as those in the above embodiment. Figure 1 S110-S130 shown are the same as or similar to those in the above embodiments. Figure 3The S210-S250 shown are the same or similar, and will not be described again in this embodiment.

[0118] The technical solution of this embodiment obtains the preset indicator identifier and data source identifier from the indicator configuration file of the preset indicator, determines the indicator definition function of the preset indicator based on the preset indicator identifier and data source identifier, and registers the indicator definition function to the indicator registry. This solves the problem of indicator definition function relying on manual configuration, improves the registration efficiency of indicator definition function, ensures the flexibility of indicator definition function, and thus reduces the maintenance cost of indicator definition function.

[0119] Figure 7 This is a flowchart illustrating a specific example of another data verification method provided in an embodiment of the present invention. Specifically, based on a data verification request sent by the business end, a verification configuration file is determined, or in response to a business data stream monitored in the MQ meeting the verification trigger condition, the verification configuration file is determined according to the verification trigger condition. The verification indicator identifier in the verification configuration file is obtained, and the indicator definition function matching the verification indicator identifier is queried from the indicator container. The indicator definition function is called, and the indicator value corresponding to the verification indicator identifier is read from the data source corresponding to the verification indicator identifier. The data source can be an RPC data source, a OneService data source, an MQ data source, or an Abase data source, etc. Based on the verification configuration file and the indicator value corresponding to the verification indicator identifier, data verification information is generated and synchronously returned to the business end or asynchronously returned to the business end via MQ callback.

[0120] During the indicator configuration phase, the indicator generation data in the indicator configuration file of the preset indicator is obtained, and the indicator definition function that matches the basic indicator identifier in the indicator generation data is queried from the indicator container. The indicator definition function is called to read the indicator value corresponding to the basic indicator identifier from the data source corresponding to the basic indicator identifier. Based on the indicator generation data and the indicator value corresponding to the basic indicator identifier, the indicator value of the preset indicator is determined, and the indicator value of the preset indicator is written to the data source corresponding to the data source identifier in the indicator configuration file.

[0121] The following are embodiments of the data verification device provided in this invention. This device and the data verification method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the data verification device, please refer to the content of the data verification method in the above embodiments.

[0122] Figure 8 This is a schematic diagram of a data verification device provided in one embodiment of the present invention. Figure 8 As shown, the device includes: a verification index identifier acquisition module 410, an index value determination module 420, and a data verification information determination module 430.

[0123] The verification indicator identifier acquisition module 410 is used to respond to the data verification instruction, acquire the verification configuration file corresponding to the data verification instruction, and acquire at least one verification indicator identifier in the verification configuration file.

[0124] The indicator value determination module 420 is used to query the indicator definition function that matches the verification indicator identifier from the indicator container for each verification indicator identifier, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier.

[0125] The data verification information determination module 430 is used to determine data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier.

[0126] The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

[0127] The technical solution of this embodiment sets up an indicator registry, which registers at least one indicator definition function corresponding to each preset indicator identifier. In response to a data verification command, it obtains the verification indicator identifier from the verification configuration file corresponding to the data verification command, queries the indicator container generated according to the indicator registry for the indicator definition function that matches the verification indicator identifier, and determines the indicator value corresponding to the verification indicator identifier based on the indicator definition function. Based on the verification configuration file and the indicator value corresponding to the verification indicator identifier, it determines the data verification information. Here, the indicator definition function represents the interactive process of reading indicator values ​​from the data source according to the verification indicator identifier. This solves the problem of relying on manual data verification, reduces the coupling between the indicator configuration file and the indicators and data source, thereby reducing the development difficulty of the verification configuration file and improving the efficiency and accuracy of data verification.

[0128] In an optional embodiment, the device further includes:

[0129] A condition parameter data adding module is used to add the condition parameter data in the data verification instruction to the indicator container; wherein, the condition parameter data includes indicator condition parameters corresponding to at least one verification indicator identifier, and the indicator condition parameters represent condition information that constrains the reading range of the verification indicator corresponding to the verification indicator identifier.

[0130] Correspondingly, the indicator value determination module 420 is specifically used for:

[0131] Obtain the indicator condition parameters corresponding to the verification indicator identifier from the indicator container;

[0132] The indicator condition parameters are used as input parameters to the indicator definition function, and the indicator definition function is called to obtain the indicator value corresponding to the verification indicator identifier.

[0133] In an optional embodiment, the device further includes:

[0134] The log reading judgment module is used to obtain the read log in the indicator container before querying the indicator definition function that matches the verification indicator identifier from the indicator container, when the number of verification indicator identifiers is at least two; wherein, the read log stores the indicator values ​​corresponding to at least one verification indicator identifier that has been read.

[0135] If the verification indicator identifier does not exist in the read log, then the step of querying the indicator definition function that matches the verification indicator identifier from the indicator container is executed;

[0136] If the verification indicator identifier exists in the read log, then the indicator value of the verification indicator identifier is obtained from the read log.

[0137] In an optional embodiment, the device further includes:

[0138] The data verification instruction generation module is used to monitor the business data stream of the business end according to the verification trigger condition set; wherein, the verification trigger condition set contains at least one verification trigger condition, and the verification trigger condition is bound to at least one verification configuration file.

[0139] When there is business data in the business data stream that meets the verification trigger condition, a data verification instruction is generated according to the condition identifier of the verification trigger condition.

[0140] In an optional embodiment, the device further includes:

[0141] The verification configuration file binding module is used to receive the verification configuration file sent by the business terminal and obtain at least one verification indicator identifier in the verification configuration file.

[0142] Based on the at least one verification indicator identifier, the verification configuration file is bound to the verification trigger conditions in the verification trigger condition set;

[0143] The verification index corresponding to the verification index identifier is related to the condition factor in the verification trigger condition.

[0144] In an optional embodiment, the device further includes:

[0145] A preset indicator identifier sending module is used to obtain a preset indicator identifier and a business scenario identifier from the indicator configuration file of the preset indicator; wherein, the business scenario identifier is used to identify the business scenario in which the preset indicator is applied.

[0146] The preset indicator identifier is sent to the business terminal corresponding to the business scenario identifier, so that the business terminal adds the preset indicator identifier to the business indicator set and configures the verification configuration file according to the business indicator set.

[0147] In an optional embodiment, the device further includes:

[0148] The data source identifier acquisition module is used to obtain the preset indicator identifier and data source identifier from the indicator configuration file of the preset indicator;

[0149] The indicator definition function determination module is used to determine the indicator definition function of the preset indicator based on the preset indicator identifier and the data source identifier;

[0150] The indicator definition function registration module is used to register the indicator definition function into the indicator registry.

[0151] In one optional embodiment, the indicator definition function determination module is specifically used for:

[0152] The data source corresponding to the data source identifier is preloaded to obtain data source configuration data, and a data source definition function is generated based on the data source configuration data; wherein, the data source definition function encapsulates the data query process and data reading process of the data source;

[0153] The preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0154] In an optional embodiment, the device further includes:

[0155] The indicator configuration timeliness comparison module is used to obtain the preloading duration of the data source corresponding to the data source identifier before preloading the data source configuration data to obtain the data source configuration data, and to obtain the indicator configuration timeliness of the preset indicator from the indicator configuration file.

[0156] When the preloading duration exceeds the indicator configuration time, the step of preloading the data source corresponding to the data source identifier to obtain the data source configuration data is executed.

[0157] When the preloading duration is less than or equal to the indicator configuration validity period, the data source definition function corresponding to the data source identifier in the preloaded data of the data source is obtained, and the preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0158] In an optional embodiment, the device further includes:

[0159] The indicator value storage module is used to obtain the preset indicator identifier and data source identifier from the indicator configuration file of the preset indicator;

[0160] When the indicator configuration file contains indicator generation data, at least one basic indicator identifier in the indicator generation data is obtained; wherein, the preset indicator represents a derived indicator obtained by calculation of the basic indicator corresponding to the at least one basic indicator identifier.

[0161] For each basic indicator identifier, query the indicator definition function that matches the basic indicator identifier from the indicator container, and determine the indicator value corresponding to the basic indicator identifier based on the indicator definition function.

[0162] The indicator value of the preset indicator is determined based on the indicator generation data and the indicator value corresponding to each basic indicator identifier.

[0163] Based on the preset indicator identifier, the indicator value of the preset indicator is stored in the data source corresponding to the data source identifier.

[0164] The data verification device provided in the embodiments of the present invention can execute the data verification method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0165] The following is for reference. Figure 9 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or a server) 500 suitable for implementing embodiments of the present invention. The terminal device in the embodiments of the present invention may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0166] like Figure 9As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 506 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0167] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 506 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although... Figure 9 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0168] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 506, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of the embodiments of the present invention.

[0169] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0170] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0171] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0172] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire at least two Internet Protocol (IP) addresses; send a node evaluation request including the at least two IP addresses to a node evaluation device, wherein the node evaluation device selects an IP address from the at least two IP addresses and returns it; and receive the IP address returned by the node evaluation device; wherein the acquired IP address indicates an edge node in a content delivery network.

[0173] Alternatively, the aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receive a node evaluation request including at least two Internet Protocol (IP) addresses; select an IP address from the at least two IP addresses; and return the selected IP address; wherein the received IP address indicates an edge node in the content delivery network.

[0174] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0175] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0176] The units described in the embodiments of the present invention can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0177] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0178] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0179] According to one or more embodiments of the present invention, Example 1 provides a data verification method, including:

[0180] In response to a data verification command, a verification configuration file corresponding to the data verification command is obtained, and at least one verification indicator identifier in the verification configuration file is obtained.

[0181] For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier.

[0182] Based on the verification configuration file and the indicator value corresponding to each verification indicator identifier, the data verification information is determined;

[0183] The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

[0184] According to one or more embodiments of the present invention, Example 2, based on the method of Example 1, further includes:

[0185] The condition parameter data in the data verification instruction is added to the indicator container; wherein the condition parameter data includes indicator condition parameters corresponding to at least one verification indicator identifier, and the indicator condition parameters represent condition information that constrains the reading range of the verification indicator corresponding to the verification indicator identifier.

[0186] Accordingly, determining the indicator value corresponding to the verification indicator identifier based on the indicator definition function includes:

[0187] Obtain the indicator condition parameters corresponding to the verification indicator identifier from the indicator container;

[0188] The indicator condition parameters are used as input parameters to the indicator definition function, and the indicator definition function is called to obtain the indicator value corresponding to the verification indicator identifier.

[0189] According to one or more embodiments of the present invention, Example 3, based on the method of Example 1, further includes, before querying the indicator definition function matching the verification indicator identifier from the indicator container:

[0190] When the number of verification indicator identifiers is at least two, the read log in the indicator container is obtained; wherein, the read log stores the indicator values ​​corresponding to at least one verification indicator identifier that has been read.

[0191] If the verification indicator identifier does not exist in the read log, then the step of querying the indicator definition function that matches the verification indicator identifier from the indicator container is executed;

[0192] If the verification indicator identifier exists in the read log, then the indicator value of the verification indicator identifier is obtained from the read log.

[0193] According to one or more embodiments of the present invention, Example 4 describes the method according to Example 1, wherein the method further includes:

[0194] Based on the set of verification trigger conditions, the business data stream of the business end is monitored; wherein, the set of verification trigger conditions contains at least one verification trigger condition, and the verification trigger condition is bound to at least one verification configuration file;

[0195] When there is business data in the business data stream that meets the verification trigger condition, a data verification instruction is generated according to the condition identifier of the verification trigger condition.

[0196] According to one or more embodiments of the present invention, Example 5 describes the method according to Example 4, the method further comprising:

[0197] Receive the verification configuration file sent by the service terminal, and obtain at least one verification indicator identifier in the verification configuration file;

[0198] Based on the at least one verification indicator identifier, the verification configuration file is bound to the verification trigger conditions in the verification trigger condition set;

[0199] The verification index corresponding to the verification index identifier is related to the condition factor in the verification trigger condition.

[0200] According to one or more embodiments of the present invention, Example 6 describes the method according to Example 5, the method further comprising:

[0201] Obtain the preset indicator identifier and business scenario identifier from the preset indicator configuration file; wherein, the business scenario identifier is used to identify the business scenario in which the preset indicator is applied;

[0202] The preset indicator identifier is sent to the business terminal corresponding to the business scenario identifier, so that the business terminal adds the preset indicator identifier to the business indicator set and configures the verification configuration file according to the business indicator set.

[0203] According to one or more embodiments of the present invention, Example 7 describes the method according to any one of Examples 1-6, the method further comprising:

[0204] Obtain the preset indicator identifier and data source identifier from the preset indicator configuration file;

[0205] Based on the preset indicator identifier and the data source identifier, determine the indicator definition function of the preset indicator;

[0206] Register the indicator definition function into the indicator registry.

[0207] According to one or more embodiments of the present invention, Example 8, based on the method described in Example 7, includes determining the indicator definition function of the preset indicator based on the preset indicator identifier and the data source identifier, comprising:

[0208] The data source corresponding to the data source identifier is preloaded to obtain data source configuration data, and a data source definition function is generated based on the data source configuration data; wherein, the data source definition function encapsulates the data query process and data reading process of the data source;

[0209] The preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0210] According to one or more embodiments of the present invention, Example 9, based on the method described in Example 8, further includes, before performing preloading processing on the data source corresponding to the data source identifier to obtain data source configuration data:

[0211] Obtain the preloading duration of the data source corresponding to the data source identifier, and obtain the indicator configuration validity period of the preset indicator from the indicator configuration file;

[0212] When the preloading duration exceeds the indicator configuration time, the step of preloading the data source corresponding to the data source identifier to obtain the data source configuration data is executed.

[0213] When the preloading duration is less than or equal to the indicator configuration validity period, the data source definition function corresponding to the data source identifier in the preloaded data of the data source is obtained, and the preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

[0214] According to one or more embodiments of the present invention, Example 10 describes the method according to Example 1, the method further comprising:

[0215] Obtain the preset indicator identifier and data source identifier from the indicator configuration file of the preset indicator;

[0216] When the indicator configuration file contains indicator generation data, at least one basic indicator identifier in the indicator generation data is obtained; wherein, the preset indicator represents a derived indicator obtained by calculation of the basic indicator corresponding to the at least one basic indicator identifier.

[0217] For each basic indicator identifier, query the indicator definition function that matches the basic indicator identifier from the indicator container, and determine the indicator value corresponding to the basic indicator identifier based on the indicator definition function.

[0218] The indicator value of the preset indicator is determined based on the indicator generation data and the indicator value corresponding to each basic indicator identifier.

[0219] Based on the preset indicator identifier, the indicator value of the preset indicator is stored in the data source corresponding to the data source identifier.

[0220] According to one or more embodiments of the present invention, Example 11 provides a data verification device, comprising:

[0221] The verification indicator identifier acquisition module is used to respond to the data verification command, acquire the verification configuration file corresponding to the data verification command, and acquire at least one verification indicator identifier in the verification configuration file.

[0222] The indicator value determination module is used to query the indicator definition function that matches the verification indicator identifier from the indicator container for each verification indicator identifier, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier.

[0223] The data verification information determination module is used to determine data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier.

[0224] The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

[0225] According to one or more embodiments of the present invention, Example 12 provides an electronic device, comprising:

[0226] At least one processor; and

[0227] A memory communicatively connected to the at least one processor; wherein,

[0228] The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the data verification method described in any one of Examples 1-10.

[0229] According to one or more embodiments of the present invention, Example 13 provides a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data verification method described in any one of Examples 1-10.

[0230] According to one or more embodiments of the present invention, Example 14 provides a computer program product including a computer program that, when executed by a processor, implements the data verification method according to any one of Examples 1-10.

[0231] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.

[0232] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0233] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A data verification method, characterized in that, include: In response to a data verification command, a verification configuration file corresponding to the data verification command is obtained, and at least one verification indicator identifier in the verification configuration file is obtained. For each verification indicator identifier, query the indicator definition function that matches the verification indicator identifier from the indicator container, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier. Based on the verification configuration file and the indicator value corresponding to each verification indicator identifier, the data verification information is determined; The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

2. The method according to claim 1, characterized in that, The method further includes: The condition parameter data in the data verification instruction is added to the indicator container; wherein the condition parameter data includes indicator condition parameters corresponding to at least one verification indicator identifier, and the indicator condition parameters represent condition information that constrains the reading range of the verification indicator corresponding to the verification indicator identifier. Accordingly, determining the indicator value corresponding to the verification indicator identifier based on the indicator definition function includes: Obtain the indicator condition parameters corresponding to the verification indicator identifier from the indicator container; The indicator condition parameters are used as input parameters to the indicator definition function, and the indicator definition function is called to obtain the indicator value corresponding to the verification indicator identifier.

3. The method according to claim 1, characterized in that, Before querying the indicator definition function that matches the verification indicator identifier from the indicator container, the method further includes: When the number of verification indicator identifiers is at least two, the read log in the indicator container is obtained; wherein, the read log stores the indicator values ​​corresponding to at least one verification indicator identifier that has been read. If the verification indicator identifier does not exist in the read log, then the step of querying the indicator definition function that matches the verification indicator identifier from the indicator container is executed; If the verification indicator identifier exists in the read log, then the indicator value of the verification indicator identifier is obtained from the read log.

4. The method according to claim 1, characterized in that, The method further includes: Based on the set of verification trigger conditions, the business data stream of the business end is monitored; wherein, the set of verification trigger conditions contains at least one verification trigger condition, and the verification trigger condition is bound to at least one verification configuration file; When there is business data in the business data stream that meets the verification trigger condition, a data verification instruction is generated according to the condition identifier of the verification trigger condition.

5. The method according to claim 4, characterized in that, The method further includes: Receive the verification configuration file sent by the service terminal, and obtain at least one verification indicator identifier in the verification configuration file; Based on the at least one verification indicator identifier, the verification configuration file is bound to the verification trigger conditions in the verification trigger condition set; The verification index corresponding to the verification index identifier is related to the condition factor in the verification trigger condition.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the preset indicator identifier and business scenario identifier from the preset indicator configuration file; wherein, the business scenario identifier is used to identify the business scenario in which the preset indicator is applied; The preset indicator identifier is sent to the business terminal corresponding to the business scenario identifier, so that the business terminal adds the preset indicator identifier to the business indicator set and configures the verification configuration file according to the business indicator set.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: Obtain the preset indicator identifier and data source identifier from the preset indicator configuration file; Based on the preset indicator identifier and the data source identifier, determine the indicator definition function of the preset indicator; Register the indicator definition function into the indicator registry.

8. The method according to claim 7, characterized in that, The step of determining the indicator definition function based on the preset indicator identifier and the data source identifier includes: The data source corresponding to the data source identifier is preloaded to obtain data source configuration data, and a data source definition function is generated based on the data source configuration data; wherein, the data source definition function encapsulates the data query process and data reading process of the data source; The preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

9. The method according to claim 8, characterized in that, Before preloading the data source corresponding to the data source identifier to obtain the data source configuration data, the method further includes: Obtain the preloading duration of the data source corresponding to the data source identifier, and obtain the indicator configuration validity period of the preset indicator from the indicator configuration file; When the preloading duration exceeds the indicator configuration time, the step of preloading the data source corresponding to the data source identifier to obtain the data source configuration data is executed. When the preloading duration is less than or equal to the indicator configuration validity period, the data source definition function corresponding to the data source identifier in the preloaded data of the data source is obtained, and the preset indicator identifier is used as the input parameter of the data source definition function to obtain the indicator definition function of the preset indicator.

10. The method according to claim 1, characterized in that, The method further includes: Obtain the preset indicator identifier and data source identifier from the indicator configuration file of the preset indicator; When the indicator configuration file contains indicator generation data, at least one basic indicator identifier in the indicator generation data is obtained; wherein, the preset indicator represents a derived indicator obtained by calculation of the basic indicator corresponding to the at least one basic indicator identifier. For each basic indicator identifier, query the indicator definition function that matches the basic indicator identifier from the indicator container, and determine the indicator value corresponding to the basic indicator identifier based on the indicator definition function. The indicator value of the preset indicator is determined based on the indicator generation data and the indicator value corresponding to each basic indicator identifier. Based on the preset indicator identifier, the indicator value of the preset indicator is stored in the data source corresponding to the data source identifier.

11. A data verification device, characterized in that, include: The verification indicator identifier acquisition module is used to respond to the data verification command, acquire the verification configuration file corresponding to the data verification command, and acquire at least one verification indicator identifier in the verification configuration file. The indicator value determination module is used to query the indicator definition function that matches the verification indicator identifier from the indicator container for each verification indicator identifier, and determine the indicator value corresponding to the verification indicator identifier according to the indicator definition function; wherein, the indicator definition function encapsulates an interactive process for reading the indicator value from the data source according to the verification indicator identifier. The data verification information determination module is used to determine data verification information based on the verification configuration file and the indicator value corresponding to each verification indicator identifier. The indicator container is generated based on the indicator registry, which registers at least one preset indicator identifier corresponding to an indicator definition function.

12. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data verification method according to any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data verification method according to any one of claims 1-10.

14. A computer program product comprising a computer program that, when executed by a processor, implements the data verification method according to any one of claims 1-10.