Data processing method and related equipment

By obtaining and processing hidden data in the microservice architecture, business indicators are directly generated, which solves the cost and difficulty problems of storing and analyzing user behavior data in the existing technology, and achieves efficient user behavior monitoring and analysis.

CN113901153BActive Publication Date: 2024-09-24MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111204173.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2024-09-24
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In a microservice architecture where multiple systems work together, existing technology requires configuring slave libraries or data warehouses to store and analyze operating data of user behaviors, resulting in increased system operating costs and increased difficulty in monitoring and analysis.

Method used

By obtaining buried point data, determining its calculation type and calculation rules, directly processing the buried point data to generate business indicators, avoiding the storage and query operations of operating data, and reducing the operating cost of the system.

Benefits of technology

It realizes the analysis and monitoring of user behavior, reduces system operating costs, simplifies the monitoring and analysis process, and avoids the need to configure slave libraries or data warehouses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901153B
    Figure CN113901153B
Patent Text Reader

Abstract

The present invention provides a data processing method and related equipment, the method comprising: acquiring multiple buried point data; determining the calculation type corresponding to each buried point data, and determining the target buried point data according to the calculation type corresponding to the buried point data; or, determining the calculation type and calculation rule corresponding to each buried point data, and determining the target buried point data according to the calculation type and calculation rule corresponding to the buried point data; processing the buried point data and the target buried point data to generate business indicators. In the above process, there is no need to configure a slave library or a data warehouse for storing the operating data of the system, and perform relevant calculations on the operating data to obtain business indicators. Since there is no need to configure a slave library or a data warehouse in each step involved in the embodiment of the present invention, the operating cost of the system is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method and related equipment. Background Art

[0002] At present, in the microservice architecture where multiple systems work together, a user's behavior often involves the calls of multiple systems. By configuring the database to store the operation data generated by multiple systems, query operations are performed on the operation data in the database to generate business indicators that can reflect user behavior, so as to analyze and monitor user behavior. When there is abnormal user behavior, such as a user logging in too many times in a short period of time, an alarm message is issued.

[0003] However, in order not to affect the stability of the microservice architecture and store a large amount of operating data, it is often necessary to configure a slave library or data warehouse to store the operating data generated by multiple systems, which increases the operating cost of the system. Summary of the invention

[0004] The embodiment of the present invention provides a data processing method and related equipment to solve the technical problem that in the prior art, user behavior is analyzed through operation data, which requires configuring a slave library or data warehouse to store the operation data, thereby increasing the operation cost of the system.

[0005] In a first aspect, an embodiment of the present invention provides a data processing method, including:

[0006] Acquire multiple buried point data, where the buried point data is used to characterize the user's operation behavior;

[0007] Determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data;

[0008] Alternatively, determining the calculation type and calculation rule corresponding to each of the buried point data, and determining the target buried point data according to the calculation type and calculation rule corresponding to the buried point data;

[0009] Among them, the target buried point data is at least part of the buried point data associated with the calculation type of the buried point data; the buried point data and the target buried point data are processed to generate business indicators, wherein the business indicators are used to characterize user behavior within a first preset time period.

[0010] In a second aspect, an embodiment of the present invention provides a data processing system, including:

[0011] Middleware, used to send tracking data to the processing system;

[0012] The monitoring platform is used to send the calculation type and calculation rule corresponding to each of the buried point data to the processing system;

[0013] A search engine for storing and displaying business indicators generated by the processing system;

[0014] The processing system is used to implement the steps of the above data processing method.

[0015] In a third aspect, an embodiment of the present invention provides a data processing device, including:

[0016] An acquisition module, used to acquire a plurality of buried point data, wherein the buried point data is used to characterize the operation behavior of the user;

[0017] A first determination module is used to determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data;

[0018] A second determination module is used to determine the calculation type and calculation rule corresponding to each of the buried point data, and determine the target buried point data according to the calculation type and calculation rule corresponding to the buried point data; wherein the target buried point data is at least part of the buried point data associated with the calculation type of the buried point data;

[0019] A processing module is used to process the buried point data and the target buried point data to generate business indicators, wherein the business indicators are used to characterize user behavior within a first preset time period.

[0020] In a fourth aspect, an embodiment of the present invention provides a server, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned data processing method when executed by the processor.

[0021] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above-mentioned data processing method when executed by a processor.

[0022] In an embodiment of the present invention, multiple buried point data are obtained; the calculation type corresponding to each buried point data is determined; the target buried point data is determined according to the calculation type corresponding to the buried point data; or, the calculation type and calculation rule corresponding to each buried point data are determined, and the target buried point data is determined according to the calculation type and calculation rule corresponding to the buried point data; the buried point data and the target buried point data are processed to generate business indicators. In the above process, by obtaining the buried point data representing the user's operation behavior, the calculation type and calculation rule corresponding to each buried point data are determined, and then each buried point data and the target buried point data corresponding to each buried point data are processed to generate business indicators. There is no need to configure a slave library or a data warehouse to store the system's operating data, and perform relevant calculations on the operating data to obtain business indicators. Since there is no need to configure a slave library or a data warehouse in each step involved in the embodiment of the present invention, the operating cost of the system is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0024] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention;

[0025] Figure 2 This is one of the application scenario schematic diagrams of the data processing method provided by the embodiment of the present invention;

[0026] Figure 3 This is the second schematic diagram of an application scenario of the data processing method provided by an embodiment of the present invention;

[0027] Figure 4 is a structural diagram of a data processing system provided by an embodiment of the present invention;

[0028] Figure 5 is a structural diagram of a data processing device provided by an embodiment of the present invention;

[0029] Figure 6 It is a structural diagram of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] In the related art, for a microservice architecture in which multiple systems work together, the method for analyzing and monitoring user behavior is usually to configure a slave library or data warehouse to store the operating data generated by multiple systems, perform query operations on the operating data, and generate business indicators that can reflect user behavior.

[0032] However, the above implementation requires configuration of slave libraries or data warehouses, which increases the operating cost of the system, and requires configuration of special query statements to perform query operations on the operating data in the database, which increases the technical difficulty of monitoring and analyzing user behavior.

[0033] Based on the above technical problems, the present invention provides a data processing method. Figure 1 , Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the following steps are included:

[0034] 101. Obtain multiple buried point data.

[0035] It should be understood that in a microservice architecture where multiple systems work together, a user's operation behavior will generate one or more embedded data. The above-mentioned operation behaviors include but are not limited to: application calls, page browsing, data flow, and system internal calls. The embedded data is some data related to the user's operation behavior generated by coding, that is, the embedded data is used to characterize the user's operation behavior.

[0036] In this step, after the buried point data is generated, the buried point data can be directly obtained, or the buried point data can be stored in a message queue and read from the message queue in sequence. The above message queue can be a middleware, that is, the generated buried point data is stored in the middleware, and the buried point data is obtained from the middleware by using a stream operation.

[0037] 102. Determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data.

[0038] It should be noted that each point-of-sale data includes an event name. The event name is also called an event. An event is the smallest data unit of the point-of-sale data, representing a specific business process, business operation, business status, or data change. Each event has unique content and follows the same data structure. For example, when a user clicks the login button on a mobile app, the background login service will be called, which will generate point-of-sale data. The event names corresponding to these point-of-sale data can be defined as login events.

[0039] The buried data also includes event attributes, which represent the detailed data of the event. One event corresponds to multiple event attributes. In the buried data, the data type of the event attribute is fixed, including numbers, strings, timestamps, and Boolean values. Taking the login event as an example, the event attributes of the login event include the type of mobile phone used for login, login method, mobile phone system type, login result, etc.

[0040] The tracking data also includes the viewing dimension. For example, the login event includes the attribute of the mobile phone system type. If the viewing dimension is the mobile phone system type and the total number per minute is calculated, it means that the total number of users who log in on each mobile phone system in each minute is counted.

[0041] In this step, after obtaining the buried data, an optional implementation method is to determine the calculation type corresponding to each buried data based on the event name of the buried data. Among them, the calculation type includes a single event type and a joint event type. The single event type means that the buried data is only aggregated with other buried data with the same event attribute. For example, to calculate the number of user logins within one minute, in this case, it is required to sum the buried data with the attribute of login operation obtained within one minute.

[0042] The joint event type indicates that the buried data is aggregated with other buried data with different event attributes. For example, to calculate the login success rate of users within one minute, in this case, it is required to sum the buried data with the attribute of login operation obtained within one minute to obtain the total number of logins within one minute; and sum the buried data with the attribute of successful login obtained within one minute to obtain the number of successful logins within one minute; and then divide the number of successful logins by the total number of logins to obtain the login success rate.

[0043] An optional implementation is that, when the calculation type corresponding to the buried point data represents the processing of buried point data with the same event attributes, the target buried point data corresponding to the buried point data can be determined according to the calculation type corresponding to the buried point data. The target buried point data is at least part of the buried point data associated with the calculation type of the buried point data.

[0044] 103, determine the calculation type and calculation rule corresponding to each of the buried point data, and determine the target buried point data according to the calculation type and calculation rule corresponding to the buried point data.

[0045] In this step, after obtaining the buried point data, an optional implementation method is to determine the calculation type and calculation rule corresponding to each buried point data based on the event name of the buried point data. Among them, the calculation rule is pre-set by the user, and the calculation rule is expressed in the form of a field. The calculation rule corresponding to each buried point data can be the same or different. It should be understood that when a single event type is aggregated for multiple buried point data, the calculation rules of these buried point data are the same.

[0046] Another optional implementation is, when the calculation type corresponding to the buried point data represents the processing of buried point data with the same attributes of different events, the target buried point data corresponding to the buried point data is determined according to the calculation type and calculation rules corresponding to the buried point data. For specific implementation methods, please refer to the subsequent embodiments.

[0047] 104. Process the buried point data and the target buried point data to generate business indicators.

[0048] The business indicator is used to characterize the user behavior within the first preset time period. For example, the business indicator can be a string of characters that characterizes the number of times a user logs in within one minute.

[0049] Here, for the specific technical solution of aggregating the buried point data and the target buried point data to generate business indicators, please refer to the subsequent embodiments.

[0050] See also Figure 2 , Figure 2 This is one of the application scenario diagrams of the data processing method provided by the embodiment of the present invention. The data processing method provided by this embodiment can be applied to a data processing system, which includes middleware, a monitoring platform, a search engine and a data processing system.

[0051] Among them, the above-mentioned middleware can be Kafka middleware, the above-mentioned search engine can be an ES search engine, and the above-mentioned data processing system can be a Flink system.

[0052] like Figure 2As shown, when the user generates an operation behavior, the buried point data is generated to the kafka middleware. It should be understood that the above operation behavior can be at least one of application call, page browsing, data flow and system internal call. The Kafka middleware sends the buried point data to the flink system. For each buried point data, the flink system obtains the calculation rules corresponding to the buried point data from the monitoring platform. Optionally, the flink system sends the event name in the buried point data to the monitoring platform, and the monitoring platform feeds back the calculation rules corresponding to the event name. It is easy to understand that the monitoring platform stores the mapping relationship between the event name and the calculation rule. After the flink system obtains the calculation rules, it uses the calculation rules to calculate multiple associated buried point data and generate business indicators. Subsequently, the flink system sends the business indicators to the ES search engine. The ES search engine can display all business indicators, and these business indicators can be configured accordingly. When the value of the business indicator is greater than the preset threshold, it indicates that the system is abnormal, and the ES search engine issues an alarm message.

[0053] For further information, see Figure 3 , Figure 3 This is the second schematic diagram of the application scenario of the data processing method provided by the embodiment of the present invention. Figure 3 As shown in the figure, the possible application scenarios are: when the user generates an operation behavior, the buried point data is generated and stored in the preset message queue. In the message queue, the buried point data is read in sequence according to the storage time sequence of the buried point data, and the calculation rules corresponding to the currently read buried point data are obtained. Figure 2 The same method in the illustrated scenario is to obtain the calculation rules corresponding to the buried data based on the event name in the buried data. Further, the buried data is calculated using the calculation rules to obtain the business indicators. After the business indicators are generated, the business indicators are saved. For example, the business indicators can be saved to a preset database, or saved to an ES search engine.

[0054] In an embodiment of the present invention, multiple buried point data are obtained; the calculation type corresponding to each buried point data is determined; the target buried point data is determined according to the calculation type corresponding to the buried point data; or, the calculation type and calculation rule corresponding to each buried point data are determined, and the target buried point data is determined according to the calculation type and calculation rule corresponding to the buried point data; the buried point data and the target buried point data are processed to generate business indicators. In the above process, by obtaining the buried point data representing the user's operation behavior, the calculation type and calculation rule corresponding to each buried point data are determined, and then each buried point data and the target buried point data corresponding to each buried point data are processed to generate business indicators. Therefore, there is no need to configure a slave library or a data warehouse to store the operating data of the system, and perform relevant calculations on the operating data to obtain business indicators. Since the slave library or data warehouse does not need to be configured in each step involved in the embodiment of the present invention, the operating cost of the system is greatly reduced.

[0055] Optionally, the method of determining the calculation type and calculation rule corresponding to each of the buried point data includes:

[0056] According to the event name of the buried data, a query is performed in a preset key-value database to obtain the calculation type and calculation rule corresponding to the buried data.

[0057] In this embodiment, a key-value database is pre-set, and the key-value database may be Redis. Figure 2 In the application scenario shown, the monitoring system may be configured to include the key-value database, wherein the key-value database stores a mapping relationship between event names, calculation types, and calculation rules.

[0058] Exemplarily, the data stored in the key-value database may be in the following format: event name_calculation type; {indicator name, calculation KEY}.

[0059] The generation process of the above calculation KEY is: set a string to represent the event name in the embedded data, the attribute field in the embedded data, the preset aggregation rule, the preset filtering rule and the preset viewing dimension, hash encode the string, obtain the hash value corresponding to the string, use the above hash value as the input of the preset conversion function, obtain an 8-bit string, and determine this 8-bit string as the calculation KEY.

[0060] If there are two buried point data with the same calculation key but different indicator names, then in the aggregation processing of these two buried point data, since the calculation rules of these two buried point data are the same, only one calculation is required, and there is no need to calculate the relevant data content of these two buried point data separately, thereby reducing the amount of calculation in the aggregation processing process.

[0061] The above indicator names are the names set in the preset aggregation rules. The above preset aggregation rules, preset filtering rules and preset viewing dimensions can be used as calculation rules.

[0062] In this embodiment, after acquiring the buried point data, the event name of the buried point data is input into a preset key-value database for query to obtain the calculation type and calculation rule corresponding to the buried point data, wherein the calculation rule can be obtained by parsing the calculation KEY.

[0063] Optionally, determining the target buried point data according to the calculation type corresponding to the buried point data includes:

[0064] If the calculation type corresponding to the buried point data is used to characterize the processing of buried point data with the same event attributes, the buried point data with the same calculation type and event attributes are determined as the target buried point data.

[0065] In this embodiment, in the key-value database, the calculation type can be set to 0, thereby indicating that the calculation type represents the aggregation processing of the buried point data with the same event attributes.

[0066] When the calculation type of the buried point data is 0, the buried point data with the same event attribute and the obtained calculation type of 0 can be determined as the target buried point data. Further, the buried point data and the target buried point data are aggregated to generate business indicators.

[0067] It should be understood that the above-mentioned aggregation processing method can be to add the number of buried point data and the number of target buried point data, or to subtract the number of buried point data and the number of target buried point data, or to multiply the number of buried point data and the number of target buried point data, or to divide the number of buried point data and the number of target buried point data, or to count the number of buried point data and the number of target buried point data. It should be understood that the specific calculation method of the aggregation processing is set by the calculation rule corresponding to the buried point data.

[0068] In this embodiment, when the calculation type of the buried data represents the aggregation processing of the buried data with the same event attributes, a method for aggregating this part of the buried data is defined to generate business indicators that can represent user behavior.

[0069] To understand this, see the following example:

[0070] The calculation type of the tracking data is 0. The calculation rule of the tracking data represents the number of users who log in to each mobile phone system. The event name of the tracking data is "login event", the event attribute of the tracking data is "mobile phone system", and the viewing dimension of the tracking data is "Android system". In other words, the user behavior represented by one tracking data is that the user logs in to the application once using a mobile phone with an Android system.

[0071] In this case, the number of buried data obtained within 1 minute can be counted, and the first key-value data can be generated based on the number of buried data. The key in the key-value data represents the viewing dimension of the buried data, and the value represents the number of logins.

[0072] The calculation type of the target tracking data is 0. The calculation rule of the target tracking data represents the number of users who log in to each mobile phone system. The event name of the target tracking data is "login event", the event attribute of the target tracking data is "mobile phone system", and the viewing dimension of the target tracking data is "IOS system". In other words, the user behavior represented by one target tracking data is that the user logs in to the application once using a mobile phone with an IOS system.

[0073] In this case, the number of target embedding data obtained within 1 minute can be counted, and the second key-value data can be generated based on the number of target embedding data. The key in the key-value data represents the viewing dimension of the target embedding data, and the value represents the number of logins.

[0074] The first key-value data and the second key-value data are aggregated to obtain a business indicator, which represents the number of times a user logs in using a mobile phone of an IOS system and the number of times a user logs in using a mobile phone of an Android system within one minute.

[0075] Optionally, the determining the target buried point data corresponding to each buried point data according to the calculation type and calculation rule corresponding to the buried point data includes:

[0076] In the case where the calculation type corresponding to each of the buried point data is used to characterize the processing of buried point data with different event attributes, the buried point data whose event attribute is the target event attribute is determined as the target buried point data.

[0077] In this embodiment, in the key-value database, the calculation type can be set to 1 or 2. In the process of aggregating the buried point data, the buried point data with calculation type 1 and the target buried point data with calculation type 2 associated with the buried point data are jointly calculated to generate business indicators.

[0078] When determining that the calculation type of the buried point data represents a joint calculation, the calculation rule of the buried point data includes a target event attribute, which is the event attribute of the target buried point data that is pre-set by the calculation rule to be jointly calculated with the buried point data, and then the buried point data including the event attribute is determined as the target buried point data.

[0079] The calculation rules are used to generate the first aggregated data corresponding to the buried point data and the second aggregated data corresponding to the target buried point data. It should be understood that the aggregated data includes the indicator name, which is set by the calculation rules, and the indicator name of the first aggregated data and the second aggregated data is the same. In this way, the aggregated data with the same indicator name can be merged to obtain the business indicator.

[0080] In this embodiment, when the calculation type of the buried data represents joint calculation, a method of aggregating this part of the buried data is defined to generate business indicators that can represent user behavior.

[0081] To understand this, see the following example:

[0082] The calculation type of the buried data is 1. The calculation rule of the buried data represents the statistics of the login success rate of users using each mobile phone system. The event name of the buried data is "login event", the event attribute of the buried data is "mobile phone system", and the viewing dimension of the buried data is "number of successful logins of the system". In other words, the user behavior represented by one buried data is that the user successfully logged in once using a mobile phone.

[0083] In this case, the number of buried data obtained within 1 minute can be counted, and the first aggregated data can be generated based on the number of buried data. The first aggregated data includes an indicator name, which can be the loginSuccessRate field pre-set in the calculation rule. It should be understood that according to different event attributes, the first aggregated data can be divided into 2 categories. The first category of first aggregated data represents the number of times a user successfully logs in using an Android phone, and the second category of first aggregated data represents the number of times a user successfully logs in using an IOS phone.

[0084] The calculation type of the target tracking data is 2. The calculation rule of the target tracking data represents the statistical login success rate of users using each mobile phone system to log in. The event name of the target tracking data is "login event", the event attribute of the target tracking data is "mobile phone system", and the viewing dimension of the target tracking data is "total number of logins in the system". In other words, the user behavior represented by 1 target tracking data is that the user logs in once using a mobile phone.

[0085] In this case, the number of target buried data acquired within 1 minute can be counted, and the second aggregated data can be generated based on the number of target buried data. The second aggregated data includes an indicator name, which can be a loginSuccessRate field that is pre-set to be the same as the indicator name of the first aggregated data. It should be understood that the second aggregated data can be divided into two categories according to different event attributes. The first category of second aggregated data represents the total number of users logging in using Android phones, and the second category of second aggregated data represents the total number of users logging in using IOS phones.

[0086] Divide the first aggregated data and the second aggregated data with the same indicator name, that is, divide the number of successful user logins by the total number of user logins, to obtain a business indicator that represents the user login success rate. It should be understood that in the process of merging the first aggregated data and the second aggregated data, the first category of first aggregated data and the first category of second aggregated data can also be divided so that the generated business indicator represents the login success rate corresponding to the Android system mobile phone; of course, the second category of first aggregated data and the second category of second aggregated data can also be divided so that the generated business indicator represents the login success rate corresponding to the IOS system mobile phone.

[0087] Optionally, the method further comprises:

[0088] Generate first target data corresponding to each first buried point data;

[0089] Generate second target data corresponding to each of the target buried point data;

[0090] The processing of the buried point data and the target buried point data to generate business indicators includes:

[0091] The first original value and the second original value are processed to generate the business indicator.

[0092] In this embodiment, the calculation type of the buried point data represents joint calculation, that is, the value of the calculation type of the buried point data in the key-value database is 1 or 2, and the calculation rule of the buried point data includes a target field, that is, some fields in the calculation rule are preset fields, and the target field is used to represent the case where the original value calculation of the first buried point data and the target buried point data is performed, and the first target data corresponding to each first buried point data and the second target data corresponding to each target buried point data are generated. Among them, the first buried point data is non-target buried point data.

[0093] It should be understood that the method of determining the target buried point data is consistent with the above-mentioned method of determining the target buried point data according to the calculation type and calculation rules corresponding to the buried point data, and will not be repeated here.

[0094] In this embodiment, the first target data includes an associated field and a first original value, and the second target data includes an associated field and a second original value. The associated field is used to associate the first target data with the second target data so that the original value of the first target data and the second target data is calculated, and the associated field may be a partial field in the calculation rule. The first original value is a value corresponding to the event attribute of the first buried point data, and the second original value is a value corresponding to the event attribute of the second buried point data.

[0095] Furthermore, the calculation rules are used to process the first original value and the second original value to generate business indicators. Among them, the calculation window corresponding to the business indicator obtained by the original value calculation can be set to ten minutes, that is, the original value calculation can be performed on the buried data obtained within ten minutes to generate business indicators. The calculation process of the above-mentioned first original value and the second original value can be to perform weighted summation of the first original value and the second original value; or to perform aggregation processing on the first original value and the second original value, for example, to perform addition operation on the first original value and the second original value, to perform subtraction operation on the first original value and the second original value, to perform multiplication operation on the first original value and the second original value, to perform division operation on the first original value and the second original value; or to perform other calculations on the first original value and the second original value.

[0096] In this embodiment, when the calculation type of the buried data represents joint calculation and the calculation rule represents original value calculation, a method of aggregating this part of the buried data is defined to generate business indicators that can represent user behavior.

[0097] To understand this, see the following example:

[0098] One implementation scenario is that after a user fails to log in, SMS verification is required. The time interval between the SMS sending time and the login failure time can reflect the service capability of the SMS platform. A business indicator can be used to characterize the time interval between the SMS sending time and the login failure time. The calculation rule corresponding to the business indicator is the sending time of the SMS event minus the login time of the login failure event. The above calculation rule is also the calculation rule corresponding to the buried data associated with the business indicator. The SMS sending event and the login failure event are associated through the user name, that is, the association key can be set to the user name.

[0099] In this scenario, the calculation type of the buried data is 1. The calculation rule of the buried data represents the time interval between the SMS sending time and the login failure time. The event name of the buried data is "login failure event", and the event attribute of the buried data is "login failure time". That is to say, 1 buried data represents the time when the user fails to log in.

[0100] Using the calculation rules, the first target data corresponding to the buried data is generated. The first target data includes an associated key and a first original value. The associated key can be the "msgTime_1" field pre-set in the calculation rules, and the first original value can be 2100. The first target data indicates that the user with the user name 1 failed to log in at 21:00.

[0101] The calculation type of the target buried data is 2. The calculation rule of the target buried data represents the time interval between the SMS sending time and the login failure time. The event name of the target buried data is "Send SMS Event", and the event attribute of the target buried data is "Send SMS Time", that is, 1 target buried data represents the time when the SMS platform sends the SMS. Among them, the event attribute of the target buried data is pre-set in the calculation rule, so that the target buried data can be determined based on the calculation rule.

[0102] Using the calculation rules, the second target data corresponding to the target buried data is generated. The second target data includes an associated key and a second original value. The associated key can be the "msgTime_1" field pre-set in the calculation rules, and the second original value can be 2105. The target buried data represents that the SMS platform sends a text message to the user with the user name 1 at 21:05.

[0103] As described above, the calculation rule represents the sending time of the SMS sending event minus the login time of the login failure event. Therefore, the second original value can be subtracted from the first original value to generate a business indicator, which represents that the time interval between the SMS sending time and the login failure time is 5 minutes.

[0104] Optionally, before the first original value and the second original value are processed to generate the business indicator, the method further includes:

[0105] In the case where the calculation rule includes the first identifier, the associated field is input into a preset key value database for query to obtain a target original value;

[0106] The first original value is updated to the target original value.

[0107] The first identifier may be a field preset in the calculation rule, and the first identifier is used to update the first original value. When the calculation rule includes the first identifier, the associated field is input into a preset key value database for query to obtain the target original value, and the first original value is updated to the target original value.

[0108] The key-value database stores a mapping relationship between associated fields and target original values. Optionally, each time a buried point data is obtained, the target original value stored in the key-value database is updated.

[0109] To understand this, see the following example:

[0110] A possible situation is that within the ten-minute calculation window, the user fails to log in multiple times, but the SMS service platform only sends a text message once. In this case, it is necessary to subtract the SMS sending time from the latest login failure time to obtain the time interval between the SMS sending time and the login failure time.

[0111] The user failed to log in three times within the ten-minute calculation window. The time of the three failed logins was 21:00, 21:03 and 21:07 respectively. During this process, three buried data points were obtained. The first buried data point indicates that the time when the user failed to log in was 21:00, the second buried data point indicates that the time when the user failed to log in was 21:03, and the third buried data point indicates that the time when the user failed to log in was 21:07. The associated fields corresponding to these three buried data points are the same.

[0112] When the first buried point data is obtained, the first target data corresponding to the buried point data is obtained by using the calculation rules, and the target original value stored in the key-value database is set to 21:00 based on the associated field in the first target data; when the second buried point data is obtained, the target original value stored in the key-value database is modified to 21:03 in the same way as above; when the third buried point data is obtained, the target original value stored in the key-value database is modified to 21:07 in the same way as above. Finally, the target original value stored in the key-value database is 21:07.

[0113] In the process of processing the first original value and the second original value, the second original value is set to 21:10. If the calculation rule includes the first identifier, the associated field is input into the key value database for query, the target original value 21:07 is obtained, and the first original value is updated to 21:07. Subsequently, the first original value is subtracted from the second original value to generate a business indicator, which represents that the time interval between the SMS sending time and the login failure time is 3 minutes.

[0114] Optionally, before the first original value and the second original value are processed to generate the business indicator, the method further includes:

[0115] In the case where the calculation rule includes the second identifier, the associated field of the second target data is input into a preset key value database for query;

[0116] If it is found that the key-value database has a calculation flag corresponding to the associated field, the calculation flag is deleted from the key-value database.

[0117] The above-mentioned second identifier can be a field preset by the calculation rule, and the second identifier is used to determine whether to process the first original value and the second original value. In the case where the calculation rule includes the second identifier, the associated field is input into the preset key value database for query. If the calculation flag corresponding to the associated field is obtained by querying the key value database, the first original value and the second original value are processed to generate business indicators, and then the calculation flag is deleted from the key value database. Among them, the calculation flag is used to characterize the processing of the first original value and the second original value. Optionally, the field corresponding to the calculation flag is the same as the associated field, or some of the fields corresponding to the calculation flag are the same as the associated field.

[0118] To understand this, see the following example:

[0119] A possible situation is that within the ten-minute calculation window, the user fails to log in, the SMS platform sends two SMS messages, but the user terminal used by the user does not receive the first SMS message. In this case, when calculating the time interval between the SMS sending time and the login failure time, it is necessary to subtract the earliest SMS sending time from the login failure time.

[0120] The user failed to log in at 21:06, so the first original value is 21:06. The SMS platform sent a text message at 21:07 and another text message at 21:08, which generated two target buried data points. The first target buried data point represents the text message sending time as 21:07, and the second target buried data point represents the text message sending time as 21:08.

[0121] As shown in the example above, the associated field corresponding to the target buried data can be "msgTime_1". Based on the setting of the relevant fields in the calculation rules, when the first target buried data is obtained, a calculation flag "flag_msgTime_1" is generated and stored in the key-value database. The calculation flag is assigned a value of "1". Optionally, the timeout period of the calculation flag is 600 seconds. In other words, the key corresponding to a stored data in the key-value database is "flag_msgTime_1" and the value is "1".

[0122] In the process of calculating the first original value and the second original value, if there are multiple second original values, that is, the first second original value is 2107 and the second second original value is 2108, the multiple second original values ​​are sorted in the order of the generation time of the corresponding target burial point data.

[0123] Further, the associated field is input into the key-value database. If there is a calculation flag in the key-value database, the first second original value is subtracted from the first original value to obtain a business indicator, which represents that the time interval between the SMS sending time and the login failure time is 1 minute.

[0124] Then, the calculation flag is deleted in the key-value database. In this way, when the second second original value is processed according to the order of the second original value, since the calculation indicator does not exist in the key-value database, the second second original value and the first original value are not calculated, and the time interval between the SMS sending time and the login failure time is determined to be represented by a unique business indicator, and the business indicator is obtained by subtracting the earliest SMS sending time from the login failure time.

[0125] Optionally, after generating the business indicator, the method includes:

[0126] In response to the input of the business indicators, business indicators of the same type are merged.

[0127] It should be understood that, except for the business indicators obtained when the calculation type represents the original value calculation, the calculation window corresponding to the remaining business indicators is one minute. It can be understood that the data processing system generates business indicators each time based on the aggregation processing of multiple buried point data obtained within one minute.

[0128] For example, when the business indicator represents the number of user logins, one business indicator represents the number of user logins within 1 minute.

[0129] In this embodiment, the user can perform relevant inputs on the data processing system, and perform aggregation processing on multiple business indicators of the same type. The obtained aggregated business indicators can represent the user behavior within the second preset time period.

[0130] For example, if the user wants to obtain a business indicator representing the number of logins within one hour, the user can execute relevant input, which can be a programming command, to add 60 business indicators representing the number of logins to obtain an aggregated business indicator, which represents the number of user logins within one hour.

[0131] See also Figure 4 , Figure 4 is a structural diagram of a data processing system provided by an embodiment of the present invention, such as Figure 4 As shown, the data processing system 200 includes:

[0132] Middleware 201, used to send the buried point data to the processing system 204;

[0133] The monitoring platform 202 is used to send the calculation type and calculation rule corresponding to each of the buried point data to the processing system 204;

[0134] A search engine 203, used to store and display the business indicators generated by the processing system 204;

[0135] The processing system 204 can implement the steps of the above data processing method embodiment.

[0136] See also Figure 5 , Figure 5 is a structural diagram of a data processing device provided by an embodiment of the present invention, such as Figure 5 As shown, the data processing device 300 includes:

[0137] An acquisition module 301 is used to acquire multiple buried point data;

[0138] A first determination module 302 is used to determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data;

[0139] The second determination module 303 is used to determine the calculation type and calculation rule corresponding to each of the buried point data, and determine the target buried point data according to the calculation type and calculation rule corresponding to the buried point data;

[0140] The processing module 304 is used to process the buried point data and the target buried point data to generate business indicators.

[0141] Optionally, the first determining module 302 is specifically configured to:

[0142] According to the event name of the buried data, a query is performed in a preset key-value database to obtain the calculation type and calculation rule corresponding to the buried data.

[0143] Optionally, the second determining module 303 is specifically configured to:

[0144] If the calculation type corresponding to the buried point data is used to characterize the processing of buried point data with the same event attributes, the buried point data with the same calculation type and event attributes are determined as the target buried point data.

[0145] Optionally, the second determining module 303 is further specifically configured to:

[0146] If the calculation type corresponding to each of the buried point data is used to characterize the processing of buried point data with different event attributes, the buried point data whose event attribute is the target event attribute is determined as the target buried point data.

[0147] Optionally, the data processing device 300 further includes:

[0148] A first generating module generates first target data corresponding to each first buried point data;

[0149] A second generating module generates second target data corresponding to each of the target buried point data;

[0150] The processing module 304 is specifically used for:

[0151] The first original value and the second original value are processed to generate the business indicator.

[0152] Optionally, the data processing device 300 further includes:

[0153] A first query module, configured to input the associated field into a preset key value database for query to obtain a target original value when the calculation rule includes a first identifier;

[0154] An updating module is used to update the first original value to the target original value.

[0155] Optionally, the data processing device 300 further includes:

[0156] A second query module, used for inputting the associated field into a preset key value database for query when the calculation rule includes a second identifier;

[0157] The deleting module is used to delete the calculation mark in the key-value database if it is found that the calculation mark corresponding to the associated field exists in the key-value database.

[0158] Optionally, the data processing device 300 further includes:

[0159] The merging module is used to merge the business indicators of the same type in response to the input of the business indicators.

[0160] The data processing device provided in the embodiment of the present invention can implement each process of the data processing method in the above method embodiment, and will not be described again here to avoid repetition.

[0161] See also Figure 6 , Figure 6 is a structural diagram of a server provided by an embodiment of the present invention, such as Figure 6 As shown, the server 400 includes: a processor 401, a transceiver 402, a memory 403 and a bus interface, wherein:

[0162] The processor 401 is configured to perform the following operations:

[0163] Get multiple buried point data;

[0164] Determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data;

[0165] Alternatively, determining the calculation type and calculation rule corresponding to each of the buried point data, and determining the target buried point data according to the calculation type and calculation rule corresponding to the buried point data;

[0166] The buried point data and the target buried point data are processed to generate business indicators.

[0167] It should be understood that in this embodiment, the processor 401 and the transceiver 402 can implement Figure 1 To avoid repetition, the various processes in the method embodiment are not described here.

[0168] exist Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 401 and various circuits of memory represented by memory 403 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 402 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 404 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0169] The processor 401 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 401 when performing operations.

[0170] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0171] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0173] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A data processing method, characterized in that: include: Acquire multiple buried point data, where the buried point data is used to characterize the user's operation behavior; Determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data; Alternatively, determine the calculation type and calculation rule corresponding to each of the buried point data, and determine the target buried point data according to the calculation type and calculation rule corresponding to the buried point data; wherein the calculation type includes a single event type and a joint event type, the single event type is used to characterize the processing of the buried point data with the same event attributes, the joint event type is used to characterize the processing of the buried point data with different event attributes, and the target buried point data is at least part of the buried point data associated with the calculation type of the buried point data; The buried point data and the target buried point data are processed to generate business indicators, wherein the business indicators are used to characterize user behavior within a first preset time period.

2. The method according to claim 1, characterized in that The method of determining the calculation type and calculation rule corresponding to each of the buried point data includes: According to the event name of the buried data, a query is performed in a preset key-value database to obtain the calculation type and calculation rule corresponding to the buried data.

3. The method according to claim 1, characterized in that The determining the target buried point data according to the calculation type corresponding to the buried point data includes: If the calculation type corresponding to the buried point data is used to characterize the processing of buried point data with the same event attributes, the buried point data with the same calculation type and event attributes are determined as the target buried point data.

4. The method according to claim 1, characterized in that: The calculation rules include target event attributes; The determining the target buried point data according to the calculation type and calculation rule corresponding to the buried point data includes: If the calculation type corresponding to the buried point data is used to characterize the processing of buried point data with different event attributes, the buried point data whose event attribute is the target event attribute is determined as the target buried point data.

5. The method according to claim 3 or 4, characterized in that: The calculation rule includes a target field, and the target field is used to represent the original value calculation of the first buried point data and the target buried point data. The method also includes: Generate first target data corresponding to each of the first buried point data; the first target data includes an associated field and a first original value, the first original value is a value corresponding to an event attribute of the first buried point data, and the first buried point data is non-target buried point data; Generate second target data corresponding to each of the target buried data; the second target data includes an associated field and a second original value, the second original value is a value corresponding to the event attribute of the target buried data, and the associated field is used to associate the first target data and the second target data, so that the original value of the first target data and the second target data is calculated; The processing of the buried point data and the target buried point data to generate business indicators includes: The first original value and the second original value are processed to generate the business indicator.

6. The method according to claim 5, characterized in that Before the first original value and the second original value are processed to generate the business indicator, the method further includes: In the case where the calculation rule includes a first identifier, the associated field is input into a preset key value database for query to obtain a target original value, and the first identifier is used to update the first original value; The first original value is updated to the target original value.

7. The method according to claim 5, characterized in that Before the first original value and the second original value are processed to generate the business indicator, the method further includes: In the case where the calculation rule includes a second identifier, the associated field is input into a preset key value database for query, and the second identifier is used to determine whether to process the first original value and the second original value; If it is found that the key-value database has a calculation flag corresponding to the associated field, the calculation flag is deleted from the key-value database, wherein the calculation flag is used to indicate that the first original value and the second original value are processed.

8. The method according to claim 1, characterized in that After generating the business indicator, the method includes: In response to the input of the business indicators, business indicators of the same type are merged, and the merged business indicators are used to characterize user behavior within a second preset time period.

9. A data processing system, characterized in that: include: Middleware, used to send tracking data to the processing system; The monitoring platform is used to send the calculation type and calculation rule corresponding to each of the buried point data to the processing system; A search engine for storing and displaying business indicators generated by the processing system; The processing system is used to implement the steps of the data processing method according to any one of claims 1 to 8.

10. A data processing device, characterized in that: include: An acquisition module, used to acquire a plurality of buried point data, wherein the buried point data is used to characterize the operation behavior of the user; A first determination module is used to determine the calculation type corresponding to each of the buried point data, and determine the target buried point data according to the calculation type corresponding to the buried point data; A second determination module is used to determine the calculation type and calculation rule corresponding to each of the buried point data, and determine the target buried point data according to the calculation type and calculation rule corresponding to the buried point data; wherein the calculation type includes a single event type and a joint event type, the single event type is used to characterize the processing of the buried point data with the same event attributes, and the joint event type is used to characterize the processing of the buried point data with different event attributes, and the target buried point data is at least part of the buried point data associated with the calculation type of the buried point data; A processing module is used to process the buried point data and the target buried point data to generate business indicators, wherein the business indicators are used to characterize user behavior within a first preset time period.

11. A server, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the data processing method according to any one of claims 1 to 8 when executed by the processor.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 8 are implemented.