Data processing method and device, electronic equipment, storage medium and program product
By conducting field verification and event comparison on buried event data, data quality monitoring results are generated, which solves the problem of difficulty in ensuring the quality of buried event data, realizes the discovery and alarm of abnormal problems, and optimizes the product development process.
Patent Information
- Application Number
- CN202310361780.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-15
AI Technical Summary
In the process of rapidly iterative product development, it is difficult to ensure the quality monitoring of buried event data, resulting in frequent failures and increased development and maintenance workload.
By obtaining buried event data, each field is verified and each pair of associated events is compared, data quality monitoring results are generated, field anomalies and event anomalies are identified, and alarm information is generated to optimize product development.
It achieves effective monitoring of the data quality of hidden events, discovers abnormal problems, provides assistance in product development and hidden point optimization, and reduces the frequency of faults.
Smart Images

Figure CN118779189A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology. Specifically, the present application relates to a data processing method, device, electronic device, storage medium and program product. Background Art
[0002] In recent years, all walks of life have been affected by big data to varying degrees. Through big data technology, massive amounts of fragmented data related to products can be collected, managed or analyzed, which helps products to be constantly updated to keep up with the ever-changing trends and effectively improve product competitiveness.
[0003] In big data technology, tracking technology is an important means of data collection. By pre-setting tracking in the product, some data during product operation can be effectively collected to generate a large amount of tracking event data.
[0004] However, in the face of products with rapidly iterating functions, the use of tracking technology will increase the workload of product development and subsequent maintenance, resulting in more frequent failures. After the tracking event data is collected, whether the quality of the tracking event data can be guaranteed is also an issue that cannot be ignored in the product development process. Summary of the invention
[0005] The purpose of the embodiments of the present application is to solve the technical problem of how to monitor the quality of buried event data.
[0006] According to one aspect of an embodiment of the present application, a data processing method is provided, the method comprising:
[0007] Obtain the tracking event data reported by the data source. The tracking event data includes the field information of each field, the verification rule of each field, and the event information of each event.
[0008] For each field to be verified, verify the field information of the field according to the verification rules of the field;
[0009] Determine associated events among at least two events, and for each pair of associated events, compare event information corresponding to the associated events;
[0010] Generate data quality monitoring results based on field verification results and event comparison results.
[0011] In an optional implementation, the verification rule of each field includes a verification type of each field and a verification standard of each field. According to the verification rule of the field, the field information of the field is verified, including at least one of the following:
[0012] If the verification type corresponding to the field is a range verification type, the field information is verified to see if it is within the range given by the verification standard;
[0013] If the verification type corresponding to the field is an enumeration verification type, check whether the field information of the field is one of the enumeration values given by the verification standard;
[0014] If the validation type corresponding to the field is a regular validation type, the field information of the field is checked to see if it meets the expression given by the validation standard.
[0015] In an optional implementation, verifying the field information of the field according to the verification rule of the field includes:
[0016] Determine whether the field information of the field is empty;
[0017] For a field whose field information is an empty value, determine whether it is normal for the field information to be reported as an empty value based on the scenario information contained in the field information;
[0018] For fields whose field information is not empty, the field information is verified according to the field verification rules.
[0019] In an optional implementation, for each field to be verified, the field information of the field is verified according to the verification rule of the field, including:
[0020] Based on the field information of the fields, the fields are combined in pairs to calculate the correlation between the fields and obtain the strongly correlated fields;
[0021] For each pair of strongly correlated fields, a joint verification rule is determined by combining two verification rules corresponding to the strongly correlated fields, and the two field information corresponding to the strongly correlated fields are verified according to the joint verification rule.
[0022] In an optional implementation, determining a related event among at least two events includes at least one of the following:
[0023] Among the at least two events, the associated event is determined according to at least one of the following mapping relationships:
[0024] a first mapping relationship of event occurrence, the first mapping relationship comprising at least one of the following: an association relationship between a click event and a pre-click exposure event, and an association relationship between a click event and a jump exposure event;
[0025] The second mapping relationship between related events of different data sources includes at least one of the following: an association relationship between client events and background events, and an association relationship between background events and database events.
[0026] In an optional implementation, comparing the event information corresponding to the associated event includes at least one of the following:
[0027] Calculate the intersection and union of the event information corresponding to the associated event, and determine whether the event information corresponding to the associated event is normal based on the intersection and union and the comparison configuration information;
[0028] The difference of the fields of the event information corresponding to the associated event is calculated, and whether the event information corresponding to the associated event is normal is determined based on the difference.
[0029] In an optional implementation, determining whether the event information corresponding to the associated event is normal includes at least one of the following:
[0030] Determine whether the reporting of event information of any event in the associated events is missing;
[0031] Determine whether the event information of any event in the associated events is overreported;
[0032] When it is determined based on the field verification result that the field meets the verification rule, it is determined whether the field of the event information of any event in the associated events is wrong.
[0033] In an optional implementation, for the associated event having the first mapping relationship, the method further includes:
[0034] Generate comparison configuration information corresponding to the first pre-mapping relationship;
[0035] For the associated event having the second mapping relationship, the method further includes:
[0036] In response to a request for setting comparison configuration information for the second pre-mapped relationship, comparison configuration information corresponding to the second pre-mapped relationship is received.
[0037] In an optional implementation, comparing the event information corresponding to the associated event includes:
[0038] If there is a time difference in the event information corresponding to the associated event, the associated event is sliced according to a predetermined time length to obtain event information corresponding to the associated event in at least two time slices;
[0039] The event information is compared with the event information corresponding to the associated event in each time slice.
[0040] In an optional implementation, a data quality monitoring result is generated based on the field verification result and the event comparison result, including at least one of the following:
[0041] Analyze at least one of field abnormality information, field abnormal value information, abnormal log related to the abnormal field, and first event abnormality information of the event to which the abnormal field belongs from the field verification result;
[0042] Get additional information related to the exception log;
[0043] Analyze the abnormal information of the second event from the event comparison result;
[0044] The first event abnormality information and the second event abnormality information are combined to obtain at least one of third event abnormality information and product abnormality information.
[0045] In an optional implementation, after generating the data quality monitoring result based on the field verification result and the event comparison result, the method further includes:
[0046] If at least one of a field anomaly and an event anomaly is determined to exist according to the data quality monitoring result, an alarm message is generated;
[0047] Send an alarm message to the target terminal, carrying the request address of the data quality monitoring result;
[0048] In response to a request instruction for a data quality monitoring result, the target terminal is controlled to display the data quality monitoring result.
[0049] According to another aspect of an embodiment of the present application, a data processing device is provided, the device comprising:
[0050] The acquisition module is used to obtain the buried event data reported by the data source. The buried event data includes the field information of each field, the verification rule of each field and the event information of each event;
[0051] The field verification module is used to verify the field information of each field to be verified according to the verification rules of the field;
[0052] An event comparison module, used to determine the associated events among at least two events, and for each pair of associated events, compare the event information corresponding to the associated events;
[0053] The monitoring result generation module is used to generate data quality monitoring results based on field verification results and event comparison results.
[0054] In an optional implementation, the verification rule of each field includes a verification type of each field and a verification standard of each field. When the field verification module is used to verify the field information of the field according to the verification rule of the field, it is specifically used for at least one of the following:
[0055] If the verification type corresponding to the field is a range verification type, the field information is verified to see if it is within the range given by the verification standard;
[0056] If the verification type corresponding to the field is an enumeration verification type, check whether the field information of the field is one of the enumeration values given by the verification standard;
[0057] If the validation type corresponding to the field is a regular validation type, the field information of the field is checked to see if it meets the expression given by the validation standard.
[0058] In an optional implementation, when the field verification module is used to verify the field information of the field according to the verification rule of the field, it is specifically used to:
[0059] Determine whether the field information of the field is empty;
[0060] For a field whose field information is an empty value, determine whether it is normal for the field information to be reported as an empty value based on the scenario information contained in the field information;
[0061] For fields whose field information is not empty, the field information is verified according to the field verification rules.
[0062] In an optional implementation, when the field verification module is used to verify the field information of each field to be verified according to the verification rule of the field, it is specifically used to:
[0063] Based on the field information of the fields, the fields are combined in pairs to calculate the correlation between the fields and obtain the strongly correlated fields;
[0064] For each pair of strongly correlated fields, a joint verification rule is determined by combining two verification rules corresponding to the strongly correlated fields, and the two field information corresponding to the strongly correlated fields are verified according to the joint verification rule.
[0065] In an optional implementation, when the event comparison module is used to determine the associated event in at least two events, it is specifically used to:
[0066] Among the at least two events, the associated event is determined according to at least one of the following mapping relationships:
[0067] a first mapping relationship of event occurrence, the first mapping relationship comprising at least one of the following: an association relationship between a click event and a pre-click exposure event, and an association relationship between a click event and a jump exposure event;
[0068] The second mapping relationship between related events of different data sources includes at least one of the following: an association relationship between client events and background events, and an association relationship between background events and database events.
[0069] In an optional implementation manner, when the event comparison module is used to compare the event information corresponding to the associated event, it is specifically used for at least one of the following:
[0070] Calculate the intersection and union of the event information corresponding to the associated event, and determine whether the event information corresponding to the associated event is normal based on the intersection and union and the comparison configuration information;
[0071] The difference of the fields of the event information corresponding to the associated event is calculated, and whether the event information corresponding to the associated event is normal is determined based on the difference.
[0072] In an optional implementation, when the event comparison module is used to determine whether the event information corresponding to the associated event is normal, it is specifically used for at least one of the following:
[0073] Determine whether the reporting of event information of any event in the associated events is missing;
[0074] Determine whether the event information of any event in the associated events is overreported;
[0075] When it is determined based on the field verification result that the field meets the verification rule, it is determined whether the field of the event information of any event in the associated events is wrong.
[0076] In an optional implementation, a generating or receiving module is configured to:
[0077] For the associated event with the first mapping relationship, generating comparison configuration information corresponding to the first pre-mapping relationship;
[0078] For the associated event with the second mapping relationship, in response to a request to set comparison configuration information for the second pre-mapped relationship, comparison configuration information corresponding to the second pre-mapped relationship is received.
[0079] In response to a request to set comparison configuration information for the second pre-mapped relationship, comparison configuration information is received.
[0080] In an optional implementation, when the event comparison module is used to compare the event information corresponding to the associated event, it is specifically used to:
[0081] If there is a time difference in the event information corresponding to the associated event, the associated event is sliced according to a predetermined time length to obtain event information corresponding to the associated event in at least two time slices;
[0082] The event information is compared with the event information corresponding to the associated event in each time slice.
[0083] In an optional implementation, when the monitoring result generation module is used to generate the data quality monitoring result based on the field verification result and the event comparison result, it is specifically used for at least one of the following:
[0084] Analyze at least one of field abnormality information, field abnormal value information, abnormal log related to the abnormal field, and first event abnormality information of the event to which the abnormal field belongs from the field verification result;
[0085] Get additional information related to the exception log;
[0086] Analyze the abnormal information of the second event from the event comparison result;
[0087] The first event abnormality information and the second event abnormality information are combined to obtain at least one of third event abnormality information and product abnormality information.
[0088] In an optional implementation, it further includes: an alarm module;
[0089] After the monitoring result generation module is used to generate data quality monitoring results based on the field verification results and event comparison results, the alarm module is used to:
[0090] If at least one of a field anomaly and an event anomaly is determined to exist according to the data quality monitoring result, an alarm message is generated;
[0091] Send an alarm message to the target terminal, carrying the request address of the data quality monitoring result;
[0092] In response to a request instruction for a data quality monitoring result, the target terminal is controlled to display the data quality monitoring result.
[0093] According to another aspect of an embodiment of the present application, an electronic device is provided. The electronic device includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the data processing method provided in the embodiment of the present application.
[0094] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data processing method provided in the embodiments of the present application is implemented.
[0095] According to another aspect of an embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the data processing method provided in the embodiment of the present application is implemented.
[0096] The data processing method, device, electronic device, storage medium and program product provided in the embodiments of the present application obtain the buried event data reported by the data source, and the buried event data includes field information of each field, verification rules of each field and event information of each event; for each field to be verified, the field information of the field is verified according to the verification rules of the field; the associated events in at least two events are determined, and for each pair of associated events, the event information corresponding to the associated events is compared; based on the field verification results and the event comparison results, a data quality monitoring result is generated, and the data quality monitoring result can intuitively reflect the overall quality of the buried event data at the field granularity and the event granularity, realize the discovery of abnormal problems, and provide effective assistance for product development and buried optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.
[0098] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;
[0099] Figure 2 A schematic diagram of the architecture of a data processing system provided in an embodiment of the present application;
[0100] Figure 3 A schematic diagram of a joint verification method provided in an embodiment of the present application;
[0101] Figure 4 A schematic diagram of a first mapping relationship of an event occurrence provided in an embodiment of the present application;
[0102] Figure 5 A schematic diagram of associating multiple events with multiple events provided in an embodiment of the present application;
[0103] Figure 6 A schematic diagram of a time slice cross-check based on an embodiment of the present application;
[0104] Figure 7 A schematic diagram of a complete cross-check process provided in an embodiment of the present application;
[0105] Figure 8a A schematic diagram of an ETL process for tracking event data provided in an embodiment of the present application;
[0106] Figure 8b A schematic diagram of field granularity and event granularity monitoring provided in an embodiment of the present application;
[0107] Figure 8c A schematic diagram of product particle size monitoring provided in an embodiment of the present application;
[0108] Figure 8d Schematic diagram of monitoring alarm provided in the embodiment of the present application
[0109] Figure 9a A schematic diagram of a first display method of monitoring results provided in an embodiment of the present application;
[0110] Figure 9b A schematic diagram of a second display method of monitoring results provided in an embodiment of the present application;
[0111] Fig.9c A schematic diagram of a third display method of monitoring results provided in an embodiment of the present application;
[0112] Figure 9d A schematic diagram of a fourth display method of monitoring results provided in an embodiment of the present application;
[0113] Fig.9e A schematic diagram of a fifth display method of monitoring results provided in an embodiment of the present application;
[0114] Figure 9f A schematic diagram of a sixth display method of monitoring results provided in an embodiment of the present application;
[0115] Figure 9g A schematic diagram of a seventh display method of monitoring results provided in an embodiment of the present application;
[0116] Figure 9h A schematic diagram of an eighth display method of monitoring results provided in an embodiment of the present application;
[0117] Figure 9i A schematic diagram of a ninth display method of monitoring results provided in an embodiment of the present application;
[0118] Fig.10 A schematic diagram of a data processing structure provided in an embodiment of the present application;
[0119] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0120] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0121] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the information, data, steps, operations, elements and / or components presented, but do not exclude the implementation as other information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field, etc. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0122] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0123] An embodiment of the present application provides a method for monitoring the quality of buried event data, which focuses on the quality monitoring of the buried event data itself and is used to solve the quality problem of the buried event data itself.
[0124] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0125] The present application provides a data processing method, such as Figure 1 As shown, the method includes:
[0126] Step S101: Acquire the buried event data reported by the data source, where the buried event data includes field information of each field, verification rules of each field, and event information of each event;
[0127] In the embodiment of the present application, the data source refers to a platform with a tracking code, which can also be called a tracking platform. The data source can collect data of specified events in its platform, that is, tracking event data, and report it to the server. Among them, the data source includes but is not limited to the client, the background, the database, etc. The server obtains the tracking event data reported by each data source and executes the data processing method of the embodiment of the present application, such as Figure 2The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0128] In the embodiment of the present application, different data sources are accessed to the buried event data according to a unified specification. Specifically, the buried event data includes field information for each field, verification rules for each field, and event information for each event. Optionally, different data sources can be accessed using a unified API (Application Programming Interface). Unified specifications help to standardize subsequent processing procedures.
[0129] The field information includes but is not limited to field identifier, field name, field type, field value, etc. It should be noted that each field name is globally unique. If the event of data source a and the event of data source b use the same field name, the configuration corresponding to the field name is exactly the same.
[0130] Event information includes but is not limited to event identifier (event_code), event name, event trigger time (event_time), event public parameters, event private parameters, etc. Among them, each event name is also globally unique. Event public parameters and event private parameters are descriptions of product behavior, usually reflected in fields. Public parameters are parameters that will be reported by all events under products and modules, such as version, uid (User Identification) generated by the business, etc. Private parameters are customized for each event and may not be available for other events, such as cpu_use_rate (central processing unit utilization) of quality events.
[0131] Step S102: for each field to be checked, the field information of the field is checked according to the field check rule;
[0132] In the embodiment of the present application, the verification rules corresponding to the fields are used to verify each field to be verified. Among them, the fields to be verified can be all fields, or some fields determined from all fields according to requirements. Those skilled in the art can set it according to actual conditions, and the embodiment of the present application is not limited here. The verification rule of the field refers to the verification method of the corresponding rules for the type of the field to achieve effective verification of different types of fields.
[0133] In the embodiment of the present application, the one-by-one verification of the fields can also be called single-source verification, that is, during the verification process, attention is paid to whether each field complies with its own verification rules.
[0134] Since the key to determining whether there is a problem with the data is to verify the legitimacy of the field, the quality of the buried event data can be monitored at the field granularity by judging the field accuracy, anomaly rate, and anomaly value distribution.
[0135] Step S103: determining associated events among at least two events, and for each pair of associated events, comparing event information corresponding to the associated events;
[0136] In the embodiment of the present application, related events in the events are searched, such as events and events related to each other in the client, client events and their related background events, background events and their related database events, etc., and each pair of related events is compared.
[0137] In the embodiment of the present application, the joint comparison of related events can also be called cross-checking, that is, the similarities and differences between two related events are paid attention to during the verification process, and the degree of conformity of the two related events is judged relatively objectively. Cross-checking can be used as a supplement to single-source verification to solve the verification blind spots of single-source verification.
[0138] Step S104: Generate data quality monitoring results based on the field verification results and event comparison results.
[0139] In the embodiment of the present application, the data quality monitoring results generated based on the field verification results and the event comparison results can intuitively reflect the overall quality of the embedded event data at the field granularity and event granularity, realize the discovery of abnormal problems, and provide effective assistance for product development and embedded point optimization.
[0140] In the embodiment of the present application, a feasible implementation method is provided for step S102. The verification rule of each field includes the verification type of each field and the verification standard of each field. Then, according to the verification rule of the field, the field information of the field is verified, including at least one of the following:
[0141] (1) If the verification type corresponding to the field is a range verification type, the field information is checked to see whether it is within the range given by the verification standard;
[0142] This field check type is applicable to numeric fields. For example, for a field with a range check type, the corresponding check standard is that the field value is set to a range of 0 to 100. If the reported value of the field is not within this range, it is an abnormal situation (including but not limited to abnormal fields and abnormal values, etc.).
[0143] (2) If the verification type corresponding to the field is an enumeration verification type, verify whether the field information of the field is one of the enumeration values given by the verification standard;
[0144] This field check type is applicable to numeric and character fields. For example, if a field with an enumeration check type has a corresponding check standard of field enumeration values a, b, and c, and the reported value of the field is d, it is an abnormal situation (including but not limited to abnormal fields and abnormal values).
[0145] (3) If the verification type corresponding to the field is a regular verification type, the field information of the field is verified to see whether it satisfies the expression given by the verification standard.
[0146] This field check type is applicable to character fields. For example, for a field with a regular check type, the corresponding check standard is to start with a letter and then 4 digits. If the reported value of the field is checked to start with a number, it is an abnormal situation (including but not limited to abnormal fields and abnormal values, etc.).
[0147] In the embodiment of the present application, before determining whether a field has an abnormal situation, it is also possible to determine whether the field is reported as empty, and to count the empty value rate of the field.
[0148] Specifically, according to the field verification rule, the field information of the field is verified, including: determining whether the field information of the field is a null value.
[0149] For fields whose field information is a null value, determine whether it is normal for the field information of the field to be reported as a null value based on the scenario information contained in the field information of the field; that is, in the embodiment of the present application, whether the null value (or vacancy rate) of the field is normal needs to be judged in combination with different scenarios. For example, it is normal for a field to have no reported value in scenario a, and the field should be reported 100% in scenario b under normal circumstances. If there is a null value or a high null value rate, it is an abnormal situation. Among them, the scenario information is usually included in the field information. As an example, the field information reported to clients of different operating systems may carry operating system-related fields. A field usually has no reported value in operating system x, but has a reported value in operating system y. It can be judged whether it is normal for the field information of the current field to be reported as a null value based on the operating system-related fields included in the field information.
[0150] For fields whose field information is not empty, the field information is verified according to the field verification rules. The specific verification rules can be found in the above introduction and will not be repeated here.
[0151] In the embodiment of the present application, considering that the fields are distributed in multiple businesses and the relationship between the fields is relevant in multiple businesses, a feasible implementation method is also provided for step S102. Specifically, step S102 may include: based on the field information of the fields, combining the fields in pairs to calculate the correlation between the fields to obtain strongly correlated fields; for each pair of strongly correlated fields, combining the two verification rules corresponding to the strongly correlated fields to determine the joint verification rule, and verifying the two field information corresponding to the strongly correlated fields according to the joint verification rule.
[0152] Optionally, this implementation can be performed on data that has been verified by the above field verification rules. In practical applications, this implementation can cope with more complex scenarios to solve the misjudgment caused by only judging whether the field has been reported and whether it meets the verification rules.
[0153] For example, for field L, it is normal if it has no value in the scenario related to field M, but it is abnormal if it has no value in the scenario related to field N. For another example, for field R, the verification rules in the scenario related to field S are a, b, c, and the verification rules in the scenario related to field T are d, e, f. Then, by combining the fields with strong correlation, you can make judgments on scenarios with more complex actual situations.
[0154] For the embodiment of the present application, firstly, it is necessary to find out which fields are relevant. Specifically, based on the field information of the fields, the fields are combined in pairs to calculate the correlation between the fields and obtain the strongly relevant fields. Optionally, as Figure 3 As shown, the fields in the verified data are combined in pairs to perform correlation calculation. Those skilled in the art can select a suitable correlation calculation method according to actual conditions, and the embodiments of the present application are not limited here. Optionally, a chi-square check can be performed on the pairwise relationship of the fields. For example, a chi-square check is first performed on field A and field B to calculate the correlation between field A and field B, then a chi-square check is performed on field A and field C to calculate the correlation between field A and field C, then a chi-square check is performed on field A and field D to calculate the correlation between field A and field D, and the following calculations are performed by analogy until each two fields have been subjected to correlation calculations, and then a field combination with a strong correlation between the fields can be found.
[0155] Furthermore, for each pair of strongly correlated fields, a joint verification rule is determined by combining the two verification rules corresponding to the strongly correlated fields, and the two field information corresponding to the strongly correlated fields are verified according to the joint verification rule. Figure 3In the example, it is assumed that the strongly correlated fields include field A and field B, field A and field C, etc., and the non-strongly correlated fields include field A and field D, field B and field C, etc. After finding the strongly correlated field combinations such as field A and field B, field A and field C, etc., joint verification rules are set for these field combinations for verification.
[0156] As an example, field A is the client model, field B is the operating system (such as windows, mac, android, ios, etc.), for client P, the operating system must be O, then determine the joint verification rules corresponding to the strongly correlated fields A and B, such as the association relationship between the client and the operating system, and then verify the strong fields A and B according to the joint verification rules. For example, the values of different B fields can be verified by setting the joint verification rules corresponding to the associated A fields respectively, but it is not limited to this, and other joint verification methods can also be used.
[0157] In the embodiment of the present application, a feasible implementation method is provided for determining the associated event in at least two events in step S103. Specifically, the associated event can be determined in at least two events according to at least one of the following mapping relationships:
[0158] (1) The first mapping relationship of the event occurrence, optionally, such as Figure 4 As shown, the first mapping relationship of the event occurrence mainly includes at least one of the following hidden relationships:
[0159] 1. The relationship between click events and pre-click exposure events
[0160] The pre-click exposure event can also be understood as a page exposure event, and the click event can also be understood as an element (such as a button) click event.
[0161] Among them, pages refer to client pages of different operating systems, web pages, etc. Elements refer to the components of a page, usually buttons, lists, tips, etc.
[0162] Specifically, the correlation between the pre-click page exposure event and the element click event is: before the element click event occurs, the page exposure event must occur. If this correlation is not met, it is considered an abnormal situation to be reported.
[0163] 2. The relationship between click events and jump exposure events
[0164] A click event can also be understood as an element (such as a button) click event, and a jump exposure event can also be understood as a page jump exposure event after a click.
[0165] Specifically, the correlation between the element click event and the post-click page jump exposure event is:
[0166] a. After clicking on an element, it will jump to the next page (in actual applications, it is possible to exclude the situation where the page does not jump due to some reasons such as request failure). That is, the element click event will trigger the jump to the next page and the exposure event of the next page. If it is not triggered, it is considered an abnormal situation to be reported;
[0167] b. The number of element click events is a subset of the next page exposure event (the next page may come from multiple entrances). If a page exposure event occurs and no click event occurs at any entrance, it is considered an abnormal situation to be reported.
[0168] In the embodiment of the present application, by fully exploring the above two association relationships, the objects for comparison and verification having the first mapping relationship can be obtained, the comparison and verification logic can be automatically generated, and monitoring can be performed.
[0169] (2) A second mapping relationship of related events between different data sources, where the data source includes at least one of the following: a client, a backend, and a database.
[0170] In addition to mining hidden relationships such as pages and elements, the comparison configuration can also explicitly configure comparison events (i.e., the mapping relationships input by relevant personnel). Optionally, the second mapping relationship mainly includes at least one of the following explicit relationships: the association relationship between client events and background events, the association relationship between background events and database events, etc.
[0171] As an example, a client event may trigger a background event. In theory, the magnitude of the former is a subset of the latter. If not, it is considered an abnormal situation to be reported.
[0172] In the embodiment of the present application, a feasible implementation method is provided for comparing the event information corresponding to the associated event in step S103, specifically, including at least one of the following:
[0173] (1) Calculate the intersection and union of the event information corresponding to the associated event, and determine whether the event information corresponding to the associated event is normal based on the intersection and union and the comparison configuration information;
[0174] Among them, for the associated events with the first mapping relationship, since the hidden relationship between them is determined, the comparison configuration information corresponding to the first pre-mapped relationship can be directly generated;
[0175] For the associated events with the second mapping relationship, since the explicit relationship between them requires additional configuration, the comparison configuration information corresponding to the second pre-mapped relationship may be received in response to a request to set the comparison configuration information for the second pre-mapped relationship.
[0176] In the embodiment of the present application, the same data source implements cross-checking through the default comparison configuration information of the implicit mapping relationship, and different data sources implement cross-checking through explicit comparison configuration information. The comparison configuration information can indicate which intersections and unions of the associated events are normal and which intersections and unions are abnormal, thereby determining whether the event information corresponding to the associated events is normal.
[0177] (2) Calculate the difference in the fields of the event information corresponding to the associated event, and determine whether the event information corresponding to the associated event is normal based on the difference.
[0178] Among them, the fields of event information corresponding to the associated events can serve as references to each other, and the differences between them can be calculated to monitor whether there are missing, over-reported, erroneous and other problems in the report.
[0179] Specifically, determining whether the event information corresponding to the associated event is normal includes at least one of the following:
[0180] 1. Determine whether the reporting of event information of any event in the associated events is missing;
[0181] In the embodiment of the present application, cross-checking can use different data sources as reference systems to discover each other's missing reports. Compared with a single data source that has no reference system and cannot monitor its own missing reports, cross-checking can supplement the missing reports monitoring.
[0182] 2. Determine whether the event information of any event in the associated events is overreported;
[0183] In the embodiment of the present application, cross-checking can use different data sources as reference systems to detect the problem of over-reporting. Compared with a single data source, which has no reference system and cannot monitor whether it is over-reporting, cross-checking can supplement over-reporting monitoring.
[0184] 3. When it is determined based on the field verification result that the field meets the verification rule, determine whether the field of the event information of any event in the associated event is wrong.
[0185] In the embodiment of the present application, single-source verification can only verify whether the field value complies with the verification rules, and cannot solve the problem of whether the value is correct. For example, the enumeration values of a field are a, b, c, d. The reported value is c, and the single-source verification judges that it complies with the normal enumeration. But if the actual value should be d, then the single-source verification has no way of knowing that the reported value is c, which is abnormal. The cross-check can find that the two values are different when the reported value is c when the value of the cross-data source is d, thus exposing the reporting error.
[0186] In the embodiment of the present application, in the case where there is a time difference in the event information corresponding to the associated event, considering that the two parties of the cross-check do not have a clear condition for association, there may be multiple associations, for example Figure 5 As shown in the figure, a button has three click events within a period of time, and the page exposure event occurs three times when jumping to the next page. Due to the lack of clear association conditions (since there is a time difference between clicks and jumps, they cannot be associated at the same time), when the association calculation is performed for the first button click event, three page exposure events may be calculated. Similarly, the second and third button click events will calculate three page exposure events. The three button click events will calculate a total of nine page exposure events, which is three times more than the actual three times that should be calculated, resulting in a huge amount of calculation.
[0187] To solve this problem, an embodiment of the present application provides a feasible implementation method for comparing the event information corresponding to the associated events in step S103. Specifically, it may include: if there is a time difference in the event information corresponding to the associated events, slicing the associated events according to a predetermined time length to obtain the event information corresponding to the associated events in at least two time slices; for the event information corresponding to the associated events in each time slice, comparing the event information.
[0188] In actual applications, those skilled in the art can set the predetermined time length according to needs, such as 20 minutes, etc., and the embodiments of the present application are not limited thereto.
[0189] As an example, Figure 6 As shown, the time is sliced into 20-minute slices, and the cross-objects in the same slice are cross-calculated. For example, the first button click event and the page exposure event after the first jump are included in the first 20-minute slice, the second button click event and the page exposure event after the second jump are included in the second 20-minute slice, and the third button click event and the page exposure event after the third jump are included in the third 20-minute slice. Comparing cross-events for each time switch can greatly reduce the amount of calculation.
[0190] It should be noted that in order to verify the occurrence of some extreme situations, such as the situation where the two parties of the cross-comparison are distributed in different time slices, resulting in abnormal calculation results, the inventor has found through a large number of statistics on actual business scenarios that this probability is less than 0.5%, which is within an acceptable range.
[0191] Based on at least one of the above embodiments, a complete process of cross-checking can be shown as 7, which mainly includes: determining comparison items (events with mapping relationships) from the comparison configuration source (including buried point event data and comparison configuration information), including but not limited to click events (i.e. Figure 7 Element events in ) and pre-click exposure events (i.e. Figure 7 The comparison of client events and background events, background events and database events may also include the comparison of client fields and background fields, background fields and database fields. After the comparison items are determined (organized as source data and comparison data, respectively), the comparison calculations are optimized for the comparison items, including but not limited to intersection and union calculations, field difference calculations, etc. For comparison items with time differences, they can also be divided into time slices for comparison calculations, and finally the cross-check results (i.e., event comparison results) are output.
[0192] In the embodiment of the present application, an optional implementation is provided for step S101. Specifically, the buried event data reported by the data source is obtained, which may be data after ETL (Extract, Transform, Load), such as Figure 8a shown.
[0193] Optionally, the ETL process includes data cleaning, which mainly involves cleaning and replacing data that does not meet the requirements. Furthermore, the data can be converted into a format that meets the needs of subsequent processing.
[0194] Optionally, the ETL process includes parameter extraction. The parameters (fields) of an event include private parameters and public parameters. Public parameters are fixed for a product and module, and each event needs to be reported. If there is no public parameter, it is left blank, such as client version, event name, etc. Private parameters are determined by the business scenario and are not fixed. For example, event 1 has a private parameter field_0, but event 2 does not. Parameter extraction is to extract private parameters and their values from the private parameter list one by one. As an example, suppose there is a private parameter list:
[0195] private_field_0:value_0;
[0196] private_field_1:value_1;
[0197] …
[0198] private_field_n:value_n.
[0199] This method is convenient for reporting (adding or removing fields does not require changing the protocol), but it is not convenient for processing. You need to extract the fields from the list one by one first.
[0200] Optionally, the ETL process includes converting columns to rows, that is, converting fields into independent units to facilitate upper-level processing.
[0201] Assume the original format is: log_id_0 event name_0 public parameter 1: value public parameter 2: value ... public parameter n: value extracted private parameter 1: value private parameter 2: value ... private parameter n: value
[0202] The converted format can be:
[0203] log_id_0 event name_0 parameter 0 value parameter type (public parameter / private parameter)
[0204] log_id_0 event name_0 parameter 1 value parameter type (public parameter / private parameter)
[0205] …
[0206] log_id_0 event name_0 parameter n value parameter type (public parameter / private parameter)
[0207] For example, the original record has 7 public parameters and 3 private parameters, but after conversion it has 10 lines.
[0208] Optionally, the ETL process includes filtering and sampling. Because it involves huge subsequent verification calculations, a layer of filtering and sampling will be performed to reduce the subsequent calculation amount while trying not to affect the verification effect. Optionally, filtering can exclude some historical versions from the verification process because the verification of historical versions is less meaningful. Optionally, sampling is performed uniformly with a sampling rate of 1 / 10 (which can be adjusted according to actual conditions) based on a large base number. These two methods can greatly reduce the subsequent calculation amount.
[0209] In the embodiment of the present application, an optional implementation is provided for step S104, which may specifically include at least one of the following:
[0210] (1) analyzing at least one of field abnormality information, field abnormal value information, abnormal log related to the abnormal field, and first event abnormality information of the event to which the abnormal field belongs from the field verification result;
[0211] like Figure 8b As shown, after checking the legitimacy of the field and whether the field is empty, the field abnormality information, such as field correctness rate, field abnormality rate, field null value rate, etc., can be analyzed from the obtained field verification results, but not limited to these; and the field abnormal value information, such as field abnormal value distribution, etc., can be analyzed, but not limited to these. Furthermore, the problematic field can directly query the original log to locate the record with the error.
[0212] Furthermore, the first event abnormality information of the event to which the abnormal field belongs can be analyzed, that is, the abnormality of the event can be determined. An event consists of multiple fields, and multiple fields in an event may be abnormal. As long as one field is abnormal, the event can be considered abnormal, and the proportion of abnormal events (which can be called error rate) can be counted, such as the overall error rate, the error rate of each dimension, the error rate ranking, the error magnitude ranking, etc., but not limited to this. In addition to determining the error rate of an event, the volatility of the number of events, the year-on-year and month-on-month comparison of the number of events compared with the previous period (such as one month, one week and / or one day, etc.) can also be counted.
[0213] Optionally, events can be distinguished by version and data source dimensions to count error rates, which can more intuitively reflect abnormal situations of different versions and data sources and facilitate positioning.
[0214] (2) Obtain additional information related to the exception log;
[0215] When querying the original log for the problematic field, you can include additional information of other dimensions, such as the network used (4G, 5G, or WiFi, etc.), power level, timestamp, etc. This makes it very convenient to locate the abnormal log.
[0216] (3) Analyzing abnormal information of the second event from the event comparison results;
[0217] Whether the event report is abnormal can be analyzed from the event comparison result. The specific content can be similar to or different from the first event abnormal information, and can be set according to the actual situation, which will not be repeated.
[0218] (4) The first event abnormality information and the second event abnormality information are combined to obtain at least one of third event abnormality information and product abnormality information.
[0219] The first event abnormality information and the second event abnormality information may be displayed in combination or separately, which is not limited in the embodiment of the present application.
[0220] Optionally, events can be summarized to product granularity to perform error rate and row count statistics, such as product error rate, overall magnitude, error rate fluctuation, magnitude fluctuation, etc. Figure 8c As shown, it is easy to understand abnormal situations from the product perspective.
[0221] In an embodiment of the present application, after step S104, it may also include: if it is determined based on the data quality monitoring results that at least one of a field anomaly and an event anomaly exists, generating an alarm message; sending an alarm message to the target terminal, carrying the request address of the data quality monitoring results; and in response to a request instruction for the data quality monitoring results, controlling the target terminal to display the data quality monitoring results.
[0222] Alternatively, if Figure 8d As shown, the alarm processing can be targeted at abnormal situations of any granularity, such as product granularity, event granularity, field granularity, field abnormal value granularity, abnormal log granularity, etc., but is not limited to these.
[0223] In an embodiment of the present application, the target terminal may be a terminal related to the target personnel, such as a developer or tester, etc., and may be handed over to the developer to locate the anomaly and perform optimization. Optionally, the sending method of the alarm information is not specifically limited, such as through SMS, email, AI phone, instant messaging software, etc. Among them, the alarm information may carry the request address of the data quality monitoring result, such as a URL (Uniform Resource Locator) link, etc., to facilitate the target personnel to request to view the data quality monitoring result.
[0224] In the embodiments of the present application, an optional implementation method is provided for displaying the data quality monitoring results, specifically: Figure 9a As shown in the figure, the event configuration at the product level, such as the total number of buried points and the distribution in various data sources, can be displayed using the dashboard, but is not limited to this; Figure 9b As shown, it includes product-level event reporting, such as the number of reported events, reporting accuracy, reporting records, etc. Fig.9c As shown, it includes statistics on abnormal events at the product level, such as unreported registered events, unregistered reported events, etc. Figure 9d As shown, it includes the display of the top 10 reported events at the product level, such as event name, reported number, month-on-month fluctuation, year-on-year fluctuation, etc. Fig.9e As shown in the figure, it includes the display of the top 10 error events at the product level, such as event name, error number, error rate, etc. Quality monitoring at the event level is as follows: Figure 9f As shown in the figure, you can see the error rate, year-on-year fluctuation, month-on-month fluctuation and trend chart of the event. Click on the specific event name to jump to the quality monitoring page at the event field level. Figure 9g As shown in the figure, you can see the error rate, null value rate, etc. of each field in the event. Click the field (parameter) name to jump to the distribution display of field abnormal values. Figure 9h As shown, you can see the distribution of abnormal (error) values of the reported fields (parameters). Click "Click to view specific cases" to jump to the page showing the specific abnormal log, which is convenient for the target personnel to locate the cause. Figure 9iAs shown, the naming of the comparison items may be included, such as the name of the left unit vs the name of the right unit. The left and right units may be different event names, or event names and data source names, etc., and the indicators introduced above may be used to determine whether there is a problem with the reporting of the event. Among them, the incomplete details of each example diagram can be found in the description above, and will not be repeated. In the embodiment of the present application, through the multi-level and multi-granular quality monitoring result display, it is possible to advance the positioning layer by layer from the macroscopic overall product quality to the secondary event granularity, to the field granularity, the field outlier granularity, and the abnormal log granularity, which not only reflects the overall situation but also highlights the details of the problem and provides cause positioning, providing effective assistance for product development and optimization of buried points. Those skilled in the art should understand that the above-mentioned several display methods are only schematic descriptions and do not constitute limitations on the embodiments of the present application. Appropriate changes based on these examples may also be applicable to the present application, so they should also be included in the scope of protection of the present application.
[0225] The data processing method provided in the embodiment of the present application has found quality problems in more than 300 events, including some common problems (such as some public problems) and personalized problems (such as some private problems) when used for quality problem discovery in the tracking point release stage. It was found in the detection during the background service change stage that some problems caused by some changes to the background service that were not self-detected can be monitored in the first place by this solution and exposed to the developers, which can be repaired and resolved in time, which significantly reflects the importance of tracking point event data quality detection and the practicality of this solution.
[0226] In each optional embodiment of the present application, the various data related to the object involved, when the embodiment of the present application is applied to a specific product or technology, needs to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiment of the present application involves data related to the object, these data need to be obtained with the authorization and consent of the object and in compliance with the relevant laws, regulations and standards of the country and region.
[0227] Optionally, the data processing involved in the embodiments of the present application can be implemented based on cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. Cloud computing refers to the delivery and use mode of IT infrastructure, which means obtaining the required resources through the network in an on-demand and easily scalable manner; generalized cloud computing refers to the delivery and use mode of services, which means obtaining the required services through the network in an on-demand and easily scalable manner. This service can be IT and software, Internet-related, or other services. With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the promotion of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Unlike previous parallel distributed computing, the emergence of cloud computing will promote revolutionary changes in the entire Internet model and enterprise management model in terms of concept.
[0228] The field of big data involved in the embodiments of the present application refers to a collection of data that cannot be captured, managed, and processed by conventional software tools within a certain time frame. It is a massive, high-growth, and diversified information asset that requires a new processing model to have stronger decision-making power, insight discovery, and process optimization capabilities. With the advent of the cloud era, big data has also attracted more and more attention. Big data requires special technologies to effectively process large amounts of data within a tolerable elapsed time. Technologies suitable for big data include large-scale parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the Internet, and scalable storage systems.
[0229] The database involved in the embodiments of the present application can be regarded as an electronic file cabinet in short, which is a place to store electronic files. Users can add, query, update, delete, etc. the data in the files. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application program.
[0230] Optionally, some steps of the data processing method provided in the embodiment of the present application can be implemented based on artificial intelligence (AI) technology. For example, the generation of display reports, AI alarms, etc. AI is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. With the research and progress of artificial intelligence technology, artificial intelligence technology has been widely studied and applied in many fields. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0231] The present application embodiment provides a data processing device, such as Fig.10 As shown, the data processing device 100 may include: an acquisition module 1001, a field verification module 1002, an event comparison module 1003 and a monitoring result generation module 1004, wherein:
[0232] The acquisition module 1001 is used to acquire the buried event data reported by the data source, and the buried event data includes field information of each field, verification rules of each field and event information of each event;
[0233] The field verification module 1002 is used to verify the field information of each field to be verified according to the verification rule of the field;
[0234] The event comparison module 1003 is used to determine the associated events in at least two events, and for each pair of associated events, compare the event information corresponding to the associated events;
[0235] The monitoring result generation module 1004 is used to generate data quality monitoring results based on the field verification results and event comparison results.
[0236] In an optional implementation, the verification rule of each field includes a verification type of each field and a verification standard of each field. When the field verification module 1002 is used to verify the field information of the field according to the verification rule of the field, it is specifically used for at least one of the following:
[0237] If the verification type corresponding to the field is a range verification type, the field information is verified to see if it is within the range given by the verification standard;
[0238] If the verification type corresponding to the field is an enumeration verification type, check whether the field information of the field is one of the enumeration values given by the verification standard;
[0239] If the validation type corresponding to the field is a regular validation type, the field information of the field is checked to see if it meets the expression given by the validation standard.
[0240] In an optional implementation, when the field verification module 1002 is used to verify the field information of the field according to the verification rule of the field, it is specifically used to:
[0241] Determine whether the field information of the field is empty;
[0242] For a field whose field information is an empty value, determine whether it is normal for the field information to be reported as an empty value based on the scenario information contained in the field information;
[0243] For fields whose field information is not empty, the field information is verified according to the field verification rules.
[0244] In an optional implementation, the field verification module 1002 is used to verify the field information of each field to be verified according to the verification rule of the field, and is specifically used to:
[0245] Based on the field information of the fields, the fields are combined in pairs to calculate the correlation between the fields and obtain the strongly correlated fields;
[0246] For each pair of strongly correlated fields, a joint verification rule is determined by combining two verification rules corresponding to the strongly correlated fields, and the two field information corresponding to the strongly correlated fields are verified according to the joint verification rule.
[0247] In an optional implementation, when the event comparison module 1003 is used to determine the associated event in at least two events, it is specifically used to:
[0248] Among the at least two events, the associated event is determined according to at least one of the following mapping relationships:
[0249] a first mapping relationship of event occurrence, the first mapping relationship comprising at least one of the following: an association relationship between a click event and a pre-click exposure event, and an association relationship between a click event and a jump exposure event;
[0250] The second mapping relationship between related events of different data sources includes at least one of the following: an association relationship between client events and background events, and an association relationship between background events and database events.
[0251] In an optional implementation manner, when the event comparison module 1003 is used to compare the event information corresponding to the associated event, it is specifically used for at least one of the following:
[0252] Calculate the intersection and union of the event information corresponding to the associated event, and determine whether the event information corresponding to the associated event is normal based on the intersection and union and the comparison configuration information;
[0253] The difference of the fields of the event information corresponding to the associated event is calculated, and whether the event information corresponding to the associated event is normal is determined based on the difference.
[0254] In an optional implementation, when the event comparison module 1003 is used to determine whether the event information corresponding to the associated event is normal, it is specifically used for at least one of the following:
[0255] Determine whether the reporting of event information of any event in the associated events is missing;
[0256] Determine whether the event information of any event in the associated events is overreported;
[0257] When it is determined based on the field verification result that the field meets the verification rule, it is determined whether the field of the event information of any event in the associated events is wrong.
[0258] In an optional implementation, the generating or receiving module 1005 is configured to:
[0259] For the associated event with the first mapping relationship, generating comparison configuration information corresponding to the first pre-mapping relationship;
[0260] For the associated event with the second mapping relationship, in response to a request to set comparison configuration information for the second pre-mapped relationship, comparison configuration information corresponding to the second pre-mapped relationship is received.
[0261] In response to a request to set comparison configuration information for the second pre-mapped relationship, comparison configuration information is received.
[0262] In an optional implementation, when the event comparison module 1003 is used to compare the event information corresponding to the associated event, it is specifically used to:
[0263] If there is a time difference in the event information corresponding to the associated event, the associated event is sliced according to a predetermined time length to obtain event information corresponding to the associated event in at least two time slices;
[0264] The event information is compared with the event information corresponding to the associated event in each time slice.
[0265] In an optional implementation, the monitoring result generation module 1004, when used to generate the data quality monitoring result based on the field verification result and the event comparison result, is specifically used for at least one of the following:
[0266] Analyze at least one of field abnormality information, field abnormal value information, abnormal log related to the abnormal field, and first event abnormality information of the event to which the abnormal field belongs from the field verification result;
[0267] Get additional information related to the exception log;
[0268] Analyze the abnormal information of the second event from the event comparison result;
[0269] The first event abnormality information and the second event abnormality information are combined to obtain at least one of third event abnormality information and product abnormality information.
[0270] In an optional implementation, it further includes: an alarm module 1006;
[0271] After the monitoring result generation module 1004 is used to generate the data quality monitoring result based on the field verification result and the event comparison result, the alarm module 1006 is used to:
[0272] If at least one of a field anomaly and an event anomaly is determined to exist according to the data quality monitoring result, an alarm message is generated;
[0273] Send an alarm message to the target terminal, carrying the request address of the data quality monitoring result;
[0274] In response to a request instruction for a data quality monitoring result, the target terminal is controlled to display the data quality monitoring result.
[0275] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device and the beneficial effects produced, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0276] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, and the processor executes the above-mentioned computer program to implement the steps of the above-mentioned method embodiments.
[0277] In an alternative embodiment, an electronic device is provided, such as Fig.11 As shown, Fig.11 The electronic device 1100 shown includes: a processor 1101 and a memory 1103. The processor 1101 and the memory 1103 are connected, such as through a bus 1102. Optionally, the electronic device 1100 may also include a transceiver 1104, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 1104 is not limited to one, and the structure of the electronic device 1100 does not constitute a limitation on the embodiments of the present application.
[0278] Processor 1101 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1101 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0279] The bus 1102 may include a path to transmit information between the above components. The bus 1102 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1102 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0280] The memory 1103 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0281] The memory 1103 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 1101. The processor 1101 is used to execute the computer program stored in the memory 1103 to implement the steps shown in the above method embodiment.
[0282] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0283] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0284] The terms "first", "second", "third", "1", "2", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than that shown or described in the drawings.
[0285] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0286] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A data processing method, characterized in that: include: Acquire the buried event data reported by the data source, wherein the buried event data includes field information of each field, a verification rule of each field, and event information of each event; For each field to be verified, verify the field information of the field according to the verification rule of the field; Determine associated events among at least two events, and for each pair of associated events, compare the event information corresponding to the associated events; Generate data quality monitoring results based on field verification results and event comparison results.
2. The data processing method according to claim 1, characterized in that: The verification rule of each field includes a verification type of each field and a verification standard of each field. Verifying the field information of the field according to the verification rule of the field includes at least one of the following: If the verification type corresponding to the field is a range verification type, verify whether the field information of the field is within the range given by the verification standard; If the verification type corresponding to the field is an enumeration verification type, verify whether the field information of the field is one of the enumeration values given by the verification standard; If the verification type corresponding to the field is a regular verification type, a verification is performed to determine whether the field information of the field satisfies an expression given by the verification standard.
3. The data processing method according to claim 1, characterized in that: The verifying the field information of the field according to the verification rule of the field includes: Determine whether the field information of the field is a null value; For a field whose field information is a null value, determining whether it is normal for the field information of the field to be reported as a null value according to the scenario information included in the field information of the field; For fields whose field information is not a null value, the field information is verified according to the verification rule of the field.
4. The data processing method according to any one of claims 1 to 3, characterized in that: For each field to be checked, checking the field information of the field according to the check rule of the field includes: Based on the field information of the fields, the fields are combined in pairs to calculate the correlation between the fields, and a strongly correlated field is obtained; For each pair of strongly correlated fields, a joint verification rule is determined in combination with the two verification rules corresponding to the strongly correlated fields, and the two field information corresponding to the strongly correlated fields are verified according to the joint verification rule.
5. The data processing method according to claim 1, characterized in that: The determining of the associated event among the at least two events comprises: Among the at least two events, the associated event is determined according to at least one of the following mapping relationships: a first mapping relationship of event occurrence, wherein the first mapping relationship includes at least one of the following: an association relationship between a click event and a pre-click exposure event, and an association relationship between a click event and a jump exposure event; A second mapping relationship between related events between different data sources, wherein the second mapping relationship includes at least one of the following: an association relationship between client events and background events, and an association relationship between background events and database events.
6. The data processing method according to claim 5, characterized in that: The comparing the event information corresponding to the associated event includes at least one of the following: Calculating the intersection and union of the event information corresponding to the associated event, and determining whether the event information corresponding to the associated event is normal according to the intersection and union and the comparison configuration information; The difference of the fields of the event information corresponding to the associated event is calculated, and whether the event information corresponding to the associated event is normal is determined according to the difference.
7. The data processing method according to claim 6, characterized in that: The determining whether the event information corresponding to the associated event is normal includes at least one of the following: Determining whether the reporting of the event information of any event in the associated events is missing; Determine whether the event information of any event in the associated events is overreported; In the case where it is determined based on the field verification result that the field meets the verification rule, it is determined whether the field of the event information of any event in the associated events is wrong.
8. The data processing method according to claim 6, characterized in that: For the associated event having the first mapping relationship, the method further includes: generating the comparison configuration information corresponding to the first pre-mapping relationship; For the associated event having the second mapping relationship, the method further includes: In response to a request for setting comparison configuration information for the second pre-mapped relationship, the comparison configuration information corresponding to the second pre-mapped relationship is received.
9. The data processing method according to any one of claims 1, 5-8, characterized in that: The comparing the event information corresponding to the associated event includes: If there is a time difference between the event information corresponding to the associated event, slicing the associated event according to a predetermined time length to obtain the event information corresponding to the associated event in at least two time slices; The event information corresponding to the associated event in each time slice is compared.
10. The data processing method according to claim 1, characterized in that: The data quality monitoring result is generated based on the field verification result and the event comparison result, including at least one of the following: Analyze at least one of field abnormality information, field abnormal value information, abnormal log related to the abnormal field, and first event abnormality information of the event to which the abnormal field belongs from the field verification result; Obtaining additional information related to the exception log; Analyzing the abnormal information of the second event from the event comparison result; The first event abnormality information and the second event abnormality information are combined to obtain at least one of third event abnormality information and product abnormality information.
11. The data processing method according to claim 1, characterized in that: After generating the data quality monitoring result based on the field verification result and the event comparison result, the method further includes: If at least one of a field anomaly and an event anomaly is determined to exist according to the data quality monitoring result, an alarm message is generated; Sending an alarm message to the target terminal, carrying the request address of the data quality monitoring result; In response to a request instruction for the data quality monitoring result, the target terminal is controlled to display the data quality monitoring result.
12. A data processing device, characterized in that: include: An acquisition module is used to acquire the buried event data reported by the data source, wherein the buried event data includes field information of each field, a verification rule of each field, and event information of each event; A field verification module, used for verifying the field information of each field to be verified according to the verification rule of the field; An event comparison module, used to determine a related event among at least two events, and for each pair of related events, compare the event information corresponding to the related event; The monitoring result generation module is used to generate data quality monitoring results based on field verification results and event comparison results.
13. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Cited By
Intelligent data report generation method and system and storage medium
CN119088861A
Point location verification method, device and equipment based on building twinborn database and medium
CN119720341A
Point checking method and device based on building twin database, equipment and medium
CN119720341B
