A data collection method, device, equipment and medium

By burying points at the target location to construct data acquisition points, monitor and collect data, the problem of low efficiency of big data collection is solved and efficient data collection and management are achieved.

CN115022388BActive Publication Date: 2024-09-17JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210612345.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-09-17
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

In the era of big data, it is difficult for existing technologies to efficiently collect, manage and process data, especially due to the huge amount of data, which cannot be captured and processed using conventional software tools within a certain period of time.

Method used

Construct the data acquisition point by burying the point at the target location, monitor whether the preset data collection start conditions are met, trigger the data acquisition process, collect and send the data to the preset data processing terminal for processing.

Benefits of technology

It achieves efficient and convenient collection and management of large amounts of data, and can solve positioning problems, troubleshoot problems, and analyze user behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022388B
    Figure CN115022388B
Patent Text Reader

Abstract

The present application discloses a data collection method, device, equipment and medium, and is designed in the field of information technology. The method includes: monitoring whether the current target data acquisition point meets the preset data collection start condition; the target data acquisition point is a data acquisition point constructed after performing a point-burying operation on the target position in advance; if the current target data acquisition point meets the data collection start condition, the data acquisition process of the target data acquisition point is triggered to collect the data on the target position through the target data acquisition point; the data on the target position is sent to a preset data processing terminal to process the data through the preset data processing terminal. Through the above technical solution, a large amount of data can be collected and managed efficiently and conveniently, which is conducive to solving positioning problems, troubleshooting problems and analyzing user behaviors. In summary, the present application can efficiently collect data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a data collection method, device, equipment and medium. Background Art

[0002] At present, the Internet has entered the era of big data. Today's society is a rapidly developing society with advanced technology, information flow, closer communication between people, and more convenient life. Big data is the product of this high-tech era. In the era of data leadership, all companies are collecting as much data information as possible, such as user behavior, page changes, error messages, etc. However, due to the huge amount of data, it is impossible to crawl, manage and process its content with conventional software tools within a certain period of time. In summary, the problem of how to efficiently collect data needs to be further solved. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a data collection method, device, equipment and medium, which can efficiently collect data. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a data collection method, comprising:

[0005] Monitor whether the current target data acquisition point meets the preset data acquisition start condition; the target data acquisition point is a data acquisition point constructed after performing a point-burying operation at the target position in advance;

[0006] If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point;

[0007] The data at the target location is sent to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0008] Optionally, the monitoring of whether the current target data acquisition point satisfies a preset data acquisition start condition includes:

[0009] Monitoring whether a request for collecting data at the target location is obtained;

[0010] If yes, it is determined that the current target data acquisition point satisfies the data collection start condition.

[0011] Optionally, the monitoring whether a data collection request for the target location is obtained, and if so, determining whether the current target data acquisition point satisfies the data collection start condition, includes:

[0012] monitoring whether a request for collecting business data at the target location is obtained, and if so, determining whether the current business data acquisition point satisfies the data collection start condition;

[0013] Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including:

[0014] If the current business data acquisition point meets the data collection start condition, the business data acquisition process of the business data acquisition point is triggered to collect the corresponding business data at the target location through the business data acquisition point.

[0015] Optionally, the monitoring of whether the current target data acquisition point satisfies a preset data acquisition start condition includes:

[0016] Monitor whether there is data flowing through the target data acquisition point at present;

[0017] If yes, it is determined that the current target data acquisition point satisfies the data collection start condition.

[0018] Optionally, the monitoring whether data is currently flowing through the target data acquisition point, and if so, determining that the current target data acquisition point meets the data collection start condition, includes:

[0019] Monitoring whether data is currently flowing through a common component data acquisition point, and if so, determining whether the common component data acquisition point currently meets the data collection start condition;

[0020] Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including:

[0021] If the current common component data acquisition point satisfies the data acquisition start condition, the data acquisition process of the common component data acquisition point is triggered to acquire the common component data at the target position through the common component data acquisition point.

[0022] Optionally, the monitoring whether data is currently flowing through the target data acquisition point, and if so, determining that the current target data acquisition point meets the data collection start condition, includes:

[0023] Monitoring whether data is currently flowing through a page data acquisition point, and if so, determining whether the current page data acquisition point meets the data collection start condition;

[0024] Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including:

[0025] If the current page data acquisition point satisfies the data acquisition start condition, the data acquisition process of the page data acquisition point is triggered to acquire the page data at the target position through the page data acquisition point.

[0026] Optionally, the monitoring whether data is currently flowing through the target data acquisition point, and if so, determining that the current target data acquisition point meets the data collection start condition, includes:

[0027] Monitoring whether data is currently flowing through the interface data acquisition point, and if so, determining whether the current interface data acquisition point meets the data collection start condition;

[0028] Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including:

[0029] If the current interface data acquisition point satisfies the data acquisition start condition, the data acquisition process of the interface data acquisition point is triggered to acquire the interface data at the target position through the interface data acquisition point.

[0030] Optionally, also include:

[0031] The page errors that occur are monitored through the front-end code exception monitoring tool, and the Vue underlying errors are monitored through the error handling investigation tool. The page errors and the Vue underlying errors are then captured and sent to the preset data processing terminal to complete the collection of error data.

[0032] In a second aspect, the present application discloses a data collection device, comprising:

[0033] A start condition judgment module is used to monitor whether the current target data acquisition point meets the preset data acquisition start condition; the target data acquisition point is a data acquisition point constructed after performing a point embedding operation at the target position in advance;

[0034] A data acquisition module, configured to trigger a data acquisition process of the target data acquisition point if the current target data acquisition point satisfies the data acquisition start condition, so as to acquire data at the target position through the target data acquisition point;

[0035] The data sending module is used to send the data at the target location to a preset data processing terminal so that the data can be processed by the preset data processing terminal.

[0036] In a third aspect, the present application discloses an electronic device, comprising:

[0037] Memory, used to store computer programs;

[0038] The processor is used to execute the computer program to implement the steps of the data collection method disclosed above.

[0039] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the data acquisition method disclosed above are implemented.

[0040] When collecting data, the present application first monitors whether the current target data acquisition point meets the preset data collection start condition; the target data acquisition point is a data acquisition point constructed after a point-burying operation is performed in advance at the target position; then, if the current target data acquisition point meets the data collection start condition, the data acquisition process of the target data acquisition point is triggered to collect the data at the target position through the target data acquisition point, and finally the data at the target position is sent to the preset data processing terminal to process the data through the preset data processing terminal. It can be seen that in this embodiment, the target data is acquired through the target data acquisition point obtained after a point-burying operation is performed in advance at the target position, and the acquired target data is sent to the preset data processing terminal so that the data can be processed by the preset data processing terminal. Therefore, when the present application is collecting data of big data, the corresponding data acquisition point is obtained by pre-implementing the point-burying operation at the target location where relevant data needs to be obtained. When it is detected that the current target data acquisition point meets the data collection start condition, the front-end data such as user behavior, page changes, etc. are collected, and data collection and transmission are performed, so that the data at each location can be obtained through the preset corresponding data acquisition point, and a large amount of data can be collected and managed efficiently and conveniently, which is conducive to solving positioning problems, troubleshooting problems and analyzing user behavior. In summary, the present application can collect data efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 A flow chart of a data collection method provided for this application;

[0043] Figure 2 A specific data collection method flow chart provided for this application;

[0044] Figure 3 A specific data collection method flow chart provided for this application;

[0045] Figure 4 A specific data collection method flow chart provided for this application;

[0046] Figure 5 A specific data collection method flow chart provided for this application;

[0047] Figure 6 A specific data collection method flow chart provided for this application;

[0048] Figure 7 A specific data collection method flow chart provided for this application;

[0049] Figure 8 A schematic diagram of the structure of a data acquisition device provided in this application;

[0050] Fig. 9 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0051] 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 only 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.

[0052] In the era of data-driven development, all companies are trying to collect as much data information as possible, such as user behavior, page changes, error messages, etc. However, due to the huge amount of data, it is impossible to crawl, manage and process its content using conventional software tools within a certain period of time. To this end, the present application provides a data collection method that can efficiently collect data.

[0053] The embodiment of the present invention discloses a data collection method, see Figure 1 As shown, the method includes:

[0054] Step S11: monitor whether the current target data acquisition point meets the preset data collection start condition; the target data acquisition point is a data acquisition point constructed after performing a point burying operation at the target position in advance.

[0055] In this embodiment, before collecting data for the target data, a verification process is also included, in which a verification before uploading or a merging of uploading parameters can be performed. Furthermore, it is monitored whether the current target data acquisition point meets the preset data acquisition start conditions, wherein the preset data acquisition start conditions are set in advance by the user according to the actual needs of collecting data at the target location, and the data acquisition start conditions include but are not limited to obtaining the corresponding data collection request and monitoring the data flowing through the target location. The target data acquisition point is a data acquisition point constructed after performing a point-burying operation on the target location where data needs to be acquired, wherein the point-burying operation mainly relies on Vue. It can be understood that the target data acquisition point can be constructed according to the actual needs of the user.

[0056] In this embodiment, it is monitored whether the current data acquisition point meets the preset data acquisition start condition, and subsequent operations are performed according to the detection result. Through the above technical solution, by monitoring whether the data acquisition point meets the preset data acquisition condition, the data acquisition process is carried out according to the monitoring result, so that the conditions for data acquisition are diversified, so that flexible data acquisition operations can be performed according to user needs when performing data acquisition.

[0057] Step S12: If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point.

[0058] In this embodiment, if the current target data point satisfies the data collection start condition, the corresponding data acquisition process of the target data acquisition point is triggered, and the data at the target position is collected through the target data acquisition point. Through the above technical solution, when the target data point satisfies the data collection start condition, the corresponding data acquisition process is triggered and the data at the target position is acquired, so that the preset data processing terminal can process the preset data later, so that the data at each position can be acquired through the preset corresponding data acquisition point, and a large amount of data can be collected and managed efficiently and conveniently.

[0059] Step S13: sending the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0060] In this embodiment, the preset data processing terminal is a preset data processing terminal corresponding to the target data, and the target data is processed by the preset data processing terminal. Through the above technical solution, after the target data acquisition point acquires the target data, the target data is sent so that the data is processed by the preset data processing terminal to complete the acquisition process for the target data.

[0061] It can be seen that in this embodiment, the target data is acquired by obtaining the target data acquisition point after performing the point-burying operation on the target position in advance, and the acquired target data is sent to the preset data processing terminal, so as to facilitate the processing of the data by the preset data processing terminal. Therefore, when the present application performs data collection of big data, the corresponding data acquisition point is obtained by pre-performing the point-burying operation at the target position where the relevant data needs to be obtained. When it is detected that the current target data acquisition point meets the data collection start condition, the front-end data such as user behavior, page changes, etc. are collected, and data collection and transmission are performed, so that the data at each position can be obtained through the preset corresponding data acquisition point, and a large amount of data can be collected and managed efficiently and conveniently, which is conducive to solving positioning problems, troubleshooting problems and analyzing user behaviors. In summary, the present application can efficiently collect data.

[0062] See also Figure 2 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0063] Step S21: monitoring whether a data collection request for the target location is obtained. If yes, determining whether the current target data acquisition point satisfies the data collection start condition.

[0064] In this embodiment, before performing target data collection in terms of business, it also includes actively burying points at key business points. Monitor whether a collection request for the data at the target location is obtained. When the collection request for the data at the target location is obtained, it is determined that the current target data acquisition point meets the data collection start condition. Through the above technical solution, the target data acquisition point is created by burying points in advance at the key business points, and it is determined whether the start condition is met by monitoring whether the corresponding collection request is obtained. When the corresponding collection request is obtained, it is determined that the data collection condition is met, so that the data can be sent through the target data acquisition point later.

[0065] Step S22: If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point.

[0066] In this embodiment, if the current business data acquisition point meets the data collection start condition, the business data acquisition process of the business data acquisition point is triggered, so as to actively collect the corresponding business data at the target location through the business data acquisition point. Active collection is to upload the branch logic under different scenarios by actively calling the collection method. Specifically, under the business module, if it is necessary to make corresponding points according to the business branch, it can be directly uploaded through the data collection and analysis software, and the content includes but is not limited to event ID, event attributes and event attribute values. Through the above technical solution, when the target data acquisition point meets the data collection start condition, the corresponding data collection process is carried out to facilitate the acquisition of the target business data, thereby performing business data processing operations.

[0067] Step S23: sending the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0068] It can be seen that in this embodiment, whether the current target data acquisition point meets the data acquisition start condition is determined by monitoring whether a data acquisition request for the target location is obtained. Through the above technical solution, the target data acquisition point is created by pre-implementing a point-burying operation at the key points of the business, and whether the start condition is met is determined by monitoring whether the corresponding acquisition request is obtained, so that when the corresponding acquisition request is obtained, the corresponding data active collection and data sending and other related operations are performed, thereby meeting various business needs.

[0069] See also Figure 3 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0070] Step S31: monitor whether there is data flowing through the target data acquisition point at present; if so, determine whether the current target data acquisition point meets the data collection start condition.

[0071] In this embodiment, data monitoring is performed at the target data acquisition point to monitor whether there is data flowing through the target data acquisition point. When data flows through the target data acquisition point, the current target data is determined. Through the above technical solution, when data flows through the target data monitoring point, it is determined that the current target data acquisition point meets the data collection start condition and the target data is automatically collected, thereby ensuring the timeliness of relevant data collection.

[0072] Step S32: If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point.

[0073] Step S33: Send the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0074] It can be seen that when data flows through the target data monitoring point, it is determined that the current target data acquisition point meets the data collection start condition and the target data is automatically collected, thereby ensuring the timeliness of relevant data collection.

[0075] See also Figure 4 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0076] Step S41: monitoring whether data is currently flowing through the common component data acquisition point, and if so, determining whether the current common component data acquisition point meets the data collection start condition.

[0077] In this embodiment, the public component data acquisition point is a data acquisition point that automatically collects point information in the public component. The public component data acquisition point is mainly an action data acquisition point, which mainly relies on the click of the button. By rewriting the button component, the data is received through the attributes in the component, and it is automatically sent after the click is detected. The data is uniformly buried in the public logic, and the relevant data is automatically collected, including but not limited to the public button component and the routing public section. In the point burying event, such as a button click, the attribute value 'dcInfo' is assigned to the button component. The value is in object format, and the content includes event ID, event attributes, event attribute values ​​and other information. Among them, the event ID is to bury the page event and distinguish the event ID. Each event has an independent ID. Through the above technical solution, the public component is uniformly buried before data collection, so that when collecting public component data, it can be directly obtained through the pre-built public component data acquisition point, ensuring the timeliness of public component data acquisition.

[0078] Step S42: If the current common component data acquisition point satisfies the data acquisition start condition, the data acquisition process of the common component data acquisition point is triggered to acquire the common component data at the target position through the common component data acquisition point.

[0079] Step S43: sending the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0080] In this embodiment, unified point burying of common components is performed in advance before data collection, so that when collecting common component data, it can be directly obtained through pre-built common component data acquisition points, ensuring the timeliness of common component data acquisition.

[0081] See also Figure 5 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0082] Step S51: monitoring whether there is data flowing through the page data acquisition point at present, and if so, determining whether the current page data acquisition point satisfies the data collection start condition.

[0083] In this embodiment, the page data acquisition point mainly relies on the global routing guard functions beforeEach and afterEach of Vue-router, and the data points are respectively buried before and after entering the page. When Vue is instantiated, the collection method class is mounted on the Vue prototype through Vue.use. Specifically, data burial points are added to the global routing guards beforeEach and afterEach of Vue-router, and the burial point data is sent to the data collection and analysis software after the burial point is triggered. Through the above technical solution, the page data is collected so that the page data can be sent to the corresponding data processing terminal for processing.

[0084] Step S52: If the current page data acquisition point satisfies the data acquisition start condition, the data acquisition process of the page data acquisition point is triggered to acquire the page data at the target position through the page data acquisition point.

[0085] Step S53: sending the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0086] In this embodiment, it is monitored whether there is data flowing through the page data acquisition point. If so, it is determined that the current page data acquisition point meets the data acquisition start condition. If the current page data acquisition point meets the data acquisition start condition, the data acquisition process of the page data acquisition point is triggered to collect the page data at the target location through the page data acquisition point, so that the page data can be sent to the corresponding data processing terminal in a timely manner for processing.

[0087] See also Figure 6 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0088] Step S61: monitoring whether data is currently flowing through the interface data acquisition point, and if so, determining whether the current interface data acquisition point meets the data collection start condition.

[0089] In this embodiment, before data collection is performed, the interface data acquisition point is constructed at the corresponding interface through a point-burying operation, and when data flows through the interface data acquisition point, it is determined that the interface data acquisition point meets the data collection start condition. Through the above technical solution, when the interface data acquisition point meets the data collection start condition, the data acquisition process of the interface data acquisition point is triggered to collect the interface data at the target location through the interface data acquisition point, so that the data is processed by the preset data processing terminal.

[0090] Step S62: If the current interface data acquisition point satisfies the data acquisition start condition, the data acquisition process of the interface data acquisition point is triggered to acquire the interface data at the target position through the interface data acquisition point.

[0091] Step S63: Send the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0092] It can be seen that in this embodiment, the interface data at the target position is collected through the interface data acquisition point, so that the data is processed by the preset data processing terminal.

[0093] See also Figure 7 As shown, the embodiment of the present invention discloses a specific data collection method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0094] Step S71: monitor whether the current target data acquisition point meets the preset data collection start condition; the target data acquisition point is a data acquisition point constructed after performing a point burying operation at the target position in advance.

[0095] Step S72: If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point.

[0096] Step S73: Send the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal.

[0097] Step S74: Monitor the page errors that occur through the front-end code exception monitoring tool, and monitor the Vue underlying errors through the error handling investigation tool, then capture the page errors and the Vue underlying errors and send them to the preset data processing terminal to complete the collection of error data.

[0098] In this embodiment, the page errors that occur are monitored by the front-end code exception monitoring tool. Specifically, the window.onerror (i.e., the front-end code exception monitoring tool) event is used to monitor the errors that occur in the page and capture them. After capturing, the data is parsed and uploaded, and the content includes the error description, the file where the error occurred, the number of lines of code where the error occurred, the number of columns of code where the error occurred, etc. The Vue underlying errors are monitored by the error handling investigation tool. Specifically, the errors thrown by the Vue underlying layer are monitored and captured by Vue.config.errorHandler (i.e., the error handling investigation tool). After capturing, the data is parsed and uploaded, including the error description, the component where the error occurred, the error call stack, etc. Through the above technical solution, when restoring the error scene, the customer's operation trajectory can be restored according to the collected information and the error code can be located in combination with the location where the error information occurs, so as to facilitate the bug scene recovery through the collected error information, thereby facilitating the location and troubleshooting of problems.

[0099] It can be seen that in this embodiment, by monitoring and collecting page errors and Vue underlying errors, when restoring the error scene, the customer's operation trajectory can be restored according to the collected information and the error code can be located in combination with the location where the error information occurs, so as to facilitate bug scene recovery through the collected error information, thereby facilitating location and troubleshooting and other problems.

[0100] See also Figure 8 The embodiment of the present application discloses a data acquisition device, comprising:

[0101] The start condition judgment module 11 is used to monitor whether the current target data acquisition point meets the preset data acquisition start condition; the target data acquisition point is a data acquisition point constructed after performing a point burying operation on the target position in advance;

[0102] The data acquisition module 12 is used to trigger the data acquisition process of the target data acquisition point if the current target data acquisition point meets the data acquisition start condition, so as to acquire data at the target position through the target data acquisition point;

[0103] The data sending module 13 is used to send the data at the target location to a preset data processing terminal so that the data can be processed by the preset data processing terminal.

[0104] It can be seen that in this embodiment, the target data is acquired by obtaining the target data acquisition point after performing the point-burying operation on the target position in advance, and the acquired target data is sent to the preset data processing terminal, so as to facilitate the processing of the data by the preset data processing terminal. Therefore, when the present application performs data collection of big data, the corresponding data acquisition point is obtained by pre-performing the point-burying operation at the target position where the relevant data needs to be obtained. When it is detected that the current target data acquisition point meets the data collection start condition, the front-end data such as user behavior, page changes, etc. are collected, and data collection and transmission are performed, so that the data at each position can be obtained through the preset corresponding data acquisition point, and a large amount of data can be collected and managed efficiently and conveniently, which is conducive to solving positioning problems, troubleshooting problems and analyzing user behaviors. In summary, the present application can efficiently collect data.

[0105] In some specific embodiments, the start condition judgment module 11 specifically includes:

[0106] A request detection unit, used to monitor whether a collection request for data at the target location is obtained;

[0107] The condition judgment unit is used to determine whether the current target data acquisition point meets the data collection start condition if yes.

[0108] In some specific embodiments, the start condition judgment module 11 is specifically used to: monitor whether a collection request for the business data at the target location is obtained, and if so, determine whether the current business data acquisition point meets the data collection start condition;

[0109] Correspondingly, the data acquisition module 12 is specifically used to: if the current business data acquisition point meets the data acquisition start condition, trigger the business data acquisition process of the business data acquisition point to collect the corresponding business data at the target location through the business data acquisition point.

[0110] In some specific embodiments, the start condition judgment module 11 specifically includes:

[0111] A data monitoring unit, used to monitor whether there is data flowing through the target data acquisition point;

[0112] The condition judgment unit is used to determine whether the current target data acquisition point meets the data collection start condition if yes.

[0113] In some specific embodiments, the start condition judgment module 11 is specifically used to: monitor whether there is data flowing through the common component data acquisition point at present, and if so, determine whether the current common component data acquisition point meets the data collection start condition;

[0114] Correspondingly, the data acquisition module 12 is specifically used to: if the current public component data acquisition point meets the data acquisition start condition, trigger the data acquisition process of the public component data acquisition point to collect the public component data at the target position through the public component data acquisition point.

[0115] In some specific embodiments, the start condition judgment module 11 is specifically used to: monitor whether there is data flowing through the page data acquisition point at present, and if so, determine that the current page data acquisition point meets the data collection start condition;

[0116] Correspondingly, the data acquisition module 12 is specifically used to: if the current page data acquisition point meets the data acquisition start condition, trigger the data acquisition process of the page data acquisition point to acquire the page data at the target position through the page data acquisition point.

[0117] In some specific embodiments, the start condition judgment module 11 is specifically used to: monitor whether there is data flowing through the interface data acquisition point at present, and if so, determine whether the current interface data acquisition point meets the data collection start condition;

[0118] Correspondingly, the data acquisition module 12 is specifically used to: if the current interface data acquisition point meets the data acquisition start condition, trigger the data acquisition process of the interface data acquisition point to collect the interface data at the target position through the interface data acquisition point.

[0119] In some specific embodiments, the data acquisition device further includes:

[0120] The data collection module is used to monitor the page errors that occur through the front-end code exception monitoring tool, and monitor the Vue underlying errors through the error handling investigation tool, and then capture the page errors and the Vue underlying errors and send them to the preset data processing terminal to complete the collection of error data.

[0121] Fig. 9 An electronic device 20 provided in an embodiment of the present application is shown. The electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data acquisition method disclosed in any of the above embodiments. In addition, the electronic device 20 in this embodiment may be specifically an electronic computer.

[0122] In this embodiment, the power supply 23 is used to provide voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0123] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0124] The operating system 221 is used to manage and control the hardware devices on the electronic device 20, and the computer program 222 may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data collection method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.

[0125] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed data acquisition method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0126] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0127] The data acquisition method, device, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A data collection method, It is characterized in that include: Monitor whether the current target data acquisition point meets the preset data collection start conditions; The target data acquisition point is a data acquisition point constructed after a point-burying operation is performed in advance at the target position; the data acquisition start condition includes obtaining a corresponding data acquisition request and monitoring data flowing through the target position; If the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to acquire data at the target position through the target data acquisition point; Sending the data at the target location to a preset data processing terminal so that the data is processed by the preset data processing terminal; The method further includes: monitoring the page errors that occur through a front-end code exception monitoring tool, and monitoring the Vue underlying errors through an error handling investigation tool, and then capturing the page errors and the Vue underlying errors and sending them to the preset data processing terminal to complete the collection of error data; The page errors that occur are monitored through the front-end code exception monitoring tool, and the Vue underlying errors are monitored through the error handling investigation tool, and then the page errors and the Vue underlying errors are captured and sent to the preset data processing terminal to complete the collection of error data, including: monitoring and capturing errors that occur in the page through the window.onerror event to obtain a page error; the page error includes an error description, an error occurrence file, the number of error occurrence code lines, and the number of error occurrence code columns; monitoring and capturing errors thrown by the Vue underlying layer through Vue.config.errorHandler to obtain a Vue underlying error; the Vue underlying error includes an error description, an error occurrence component, and an error call stack; parsing the page error and the Vue underlying error and sending them to the preset data processing terminal to complete the collection of error data; The monitoring of whether the current target data acquisition point satisfies the preset data acquisition start condition includes: monitoring whether data is currently flowing through the target data acquisition point; if yes, determining that the current target data acquisition point satisfies the data acquisition start condition; The monitoring of whether data is currently flowing through the target data acquisition point, and if so, determining that the current target data acquisition point meets the data collection start condition, includes: monitoring whether data is currently flowing through the common component data acquisition point, and if so, determining that the current common component data acquisition point meets the data collection start condition; the common component data acquisition point is a data acquisition point that automatically collects buried point information in the common component; Or, monitoring whether data is currently flowing through the page data acquisition point, and if so, determining whether the current page data acquisition point meets the data collection start condition; or, monitoring whether data is currently flowing through the interface data acquisition point, and if so, determining whether the current interface data acquisition point satisfies the data collection start condition; Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including: if the current public component data acquisition point satisfies the data acquisition start condition, the data acquisition process of the public component data acquisition point is triggered to collect public component data at the target position through the public component data acquisition point; Or, if the current page data acquisition point meets the data collection start condition, the data acquisition process of the page data acquisition point is triggered to collect the page data at the target location through the page data acquisition point; the page data acquisition point relies on the global routing guard functions beforeEach and afterEach of Vue-router, and the points are buried before and after entering the page respectively. When Vue is instantiated, the collection method class is mounted on the Vue prototype through Vue.use; Or, if the current interface data acquisition point satisfies the data acquisition start condition, the data acquisition process of the interface data acquisition point is triggered to acquire the interface data at the target position through the interface data acquisition point; The sending of the data at the target location to a preset data processing terminal comprises: sending the data at the target location to a preset data processing terminal through data collection and analysis software; The method further includes: restoring the customer operation track according to the collected data, and locating the error code in combination with the location where the error data occurs, so as to facilitate on-site bug recovery through the collected error data.

2. The data collection method according to claim 1, It is characterized in that The monitoring of whether the current target data acquisition point meets the preset data acquisition start condition includes: Monitoring whether a request for collecting data at the target location is obtained; If yes, it is determined that the current target data acquisition point satisfies the data collection start condition.

3. The data collection method according to claim 2, It is characterized in that The monitoring whether a data collection request for the target location is obtained, and if so, determining that the current target data acquisition point meets the data collection start condition, includes: Monitoring whether a request for collecting business data at the target location is obtained, and if so, determining whether the current business data acquisition point satisfies the data collection start condition; Correspondingly, if the current target data acquisition point satisfies the data acquisition start condition, the data acquisition process of the target data acquisition point is triggered to collect data at the target position through the target data acquisition point, including: If the current business data acquisition point meets the data collection start condition, the business data acquisition process of the business data acquisition point is triggered to collect the corresponding business data at the target location through the business data acquisition point.

4. A data acquisition device, It is characterized in that include: The start condition judgment module is used to monitor whether the current target data acquisition point meets the preset data collection start condition; The target data acquisition point is a data acquisition point constructed after a point-burying operation is performed in advance at the target position; the data acquisition start condition includes obtaining a corresponding data acquisition request and monitoring data flowing through the target position; A data acquisition module, configured to trigger a data acquisition process of the target data acquisition point if the current target data acquisition point satisfies the data acquisition start condition, so as to acquire data at the target position through the target data acquisition point; A data sending module, used for sending the data at the target location to a preset data processing terminal so that the data can be processed by the preset data processing terminal; The device is also used to monitor the page errors that occur through the front-end code exception monitoring tool, and monitor the Vue underlying errors through the error handling investigation tool, and then capture the page errors and the Vue underlying errors and send them to the preset data processing terminal to complete the collection of error data; The device is also used to monitor and capture errors occurring in a page through the window.onerror event to obtain a page error; the page error includes an error description, an error occurrence file, an error occurrence code line number, and an error occurrence code column number; the error thrown by the Vue bottom layer is monitored and captured through Vue.config.errorHandler to obtain a Vue bottom layer error; the Vue bottom layer error includes an error description, an error occurrence component, and an error call stack; Parse the page error and the Vue underlying error and send them to the preset data processing terminal to complete the collection of error data; The start condition judgment module is specifically used to monitor whether there is data flowing through the target data acquisition point at present; if so, determine whether the current target data acquisition point meets the data collection start condition; The device is also used to monitor whether there is data flowing through the common component data acquisition point at present, and if so, determine that the current common component data acquisition point meets the data collection start condition; the common component data acquisition point is a data acquisition point that automatically collects buried point information in the common component; Or, monitoring whether data is currently flowing through the page data acquisition point, and if so, determining whether the current page data acquisition point meets the data collection start condition; or, monitoring whether data is currently flowing through the interface data acquisition point, and if so, determining whether the current interface data acquisition point satisfies the data collection start condition; Correspondingly, the device is further configured to trigger the data acquisition process of the common component data acquisition point if the current common component data acquisition point satisfies the data acquisition start condition, so as to acquire the common component data at the target position through the common component data acquisition point; Or, if the current page data acquisition point meets the data collection start condition, the data acquisition process of the page data acquisition point is triggered to collect the page data at the target location through the page data acquisition point; the page data acquisition point relies on the global routing guard functions beforeEach and afterEach of Vue-router, and the points are buried before and after entering the page respectively. When Vue is instantiated, the collection method class is mounted on the Vue prototype through Vue.use; Or, if the current interface data acquisition point satisfies the data acquisition start condition, the data acquisition process of the interface data acquisition point is triggered to acquire the interface data at the target position through the interface data acquisition point; The data sending module is specifically used to send the data at the target location to a preset data processing terminal through data collection and analysis software; The device is also used to restore the customer's operation track according to the collected data, and locate the error code in combination with the location where the error data occurs, so as to facilitate bug on-site recovery through the collected error data.

5. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the data collection method according to any one of claims 1 to 3.

6. A computer-readable storage medium, It is characterized in that Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the data acquisition method according to any one of claims 1 to 3 are implemented.