Early warning method, device, electronic device and storage medium
By obtaining the process data and results of the data construction system, identifying the data construction failure and generating early warning information, the problems of low processing efficiency and poor user experience caused by the data construction failure are solved, and more efficient system optimization and user experience improvement are achieved.
Patent Information
- Application Number
- CN202210730267.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-06-24
AI Technical Summary
When using a data construction system for data construction, data construction may fail, resulting in low processing efficiency and poor user experience, and it is difficult to optimize the data construction system in a timely manner.
By obtaining the process data and the result of the number request corresponding to the number request, if the data structure fails, the target response code is obtained based on the process data, an early warning information is generated, and the early warning information is output according to the corresponding output method, so as to promptly notify relevant personnel to optimize the data construction system.
It improves the processing efficiency when data construction fails, improves user experience, and promptly notifies relevant personnel to optimize the data construction system, avoiding system bottlenecks caused by failure.
Smart Images

Figure CN115202909B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and particularly to a warning method, device, electronic device, and storage medium. Background Art
[0002] A data construction system is a system used to construct pseudo data. Generally, after developing a function or product, the developed function or product can be tested with pseudo data to ensure that the function or product can operate normally.
[0003] However, when using a data construction system to construct data, data construction failures may occur. However, it is usually difficult for users to contact the provider of the data construction service in a timely manner, and the provider usually has difficulty understanding the user's usage situation and optimizing the data construction system in a timely manner, resulting in low processing efficiency when data construction fails and poor user experience. Summary of the Invention
[0004] Embodiments of this application provide a warning method, device, electronic device, and storage medium, which can improve the processing efficiency when data construction fails, and thus improve the user experience.
[0005] An embodiment of this application provides a warning method, including:
[0006] Obtain the process data and data construction result corresponding to the data construction request, where the process data is the data generated during the execution of the data construction request;
[0007] If the data construction result indicates that data construction fails, obtain a target response code based on the process data, where the target response code is used to indicate the reason for the data construction failure;
[0008] Generate a warning message according to the target response category corresponding to the target response code;
[0009] Output the warning message according to the target output method corresponding to the target response category;
[0010] If the data construction result indicates that data construction is successful, display a prompt message to notify the user that data construction is successful.
[0011] An embodiment of this application also provides a warning device, including:
[0012] A data acquisition module, configured to obtain the process data and data construction result corresponding to the data construction request, where the process data is the data generated during the execution of the data construction request;
[0013] A target response code acquisition module, configured to, if the data construction result indicates that data construction fails, acquire a target response code based on the process data, where the target response code is used to indicate the reason for the data construction failure;
[0014] A generation module, configured to generate a warning message according to a target response category corresponding to the target response code;
[0015] An output module, configured to output the warning message according to a target output manner corresponding to the target response category;
[0016] A prompt module, configured to, if the data construction result indicates that data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0017] An embodiment of the present application further provides an electronic device, including a memory storing multiple instructions; the processor loads the instructions from the memory to execute the steps in any one of the warning methods provided by the embodiments of the present application.
[0018] An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any one of the warning methods provided by the embodiments of the present application.
[0019] The embodiments of the present application can acquire process data and a data construction result generated when executing a data construction request. When the data construction result indicates that data construction fails, a target response code is acquired from the process data, and a warning message is generated based on a target response category corresponding to the target response code, and then the warning message is output according to a target output manner corresponding to the target response category; when the data construction result indicates that data construction is successful, a prompt message is displayed to notify the user that the data construction is successful. When data construction is successful, displaying a prompt message can facilitate the user to understand the data construction result; when data construction fails, a warning message is output to timely notify relevant personnel to optimize the data construction system, thereby improving the processing efficiency when data construction fails, and further improving the user experience of data construction. Description of the Drawings
[0020] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.
[0021] Figure 1 It is a schematic diagram of the scenario of the warning method provided by the embodiment of the present application;
[0022] Figure 2It is a schematic flowchart of the warning method provided by an embodiment of the present application;
[0023] Figure 3 It is an overall architecture diagram of the warning method provided by an embodiment of the present application;
[0024] Figure 4 It is a schematic structural diagram of the warning device provided by an embodiment of the present application;
[0025] Figure 5 It is a schematic structural diagram of the electronic device provided by an embodiment of the present application. Detailed implementation manners
[0026] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0027] The embodiments of the present application provide a warning method, a device, an electronic device, and a storage medium.
[0028] Among them, the warning device can be specifically integrated in an electronic device, and the electronic device can be a device such as a terminal or a server. Among them, the terminal can be a device such as a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, or a personal computer (PC); the server can be a single server or a server cluster composed of multiple servers.
[0029] In some embodiments, the warning device can also be integrated in multiple electronic devices. For example, the warning device can be integrated in multiple servers, and multiple servers are used to implement the warning method of the present application.
[0030] In some embodiments, the server can also be implemented in the form of a terminal.
[0031] For example, refer to Figure 1, showing a system schematic diagram of the warning method provided by the embodiments of the present application. The system may include at least one user terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The user terminal 1000 held by the user can be connected to the server 2000 through the network 4000. Among them, the user terminal 1000 is any device with computing hardware that can support and execute a software product corresponding to the data structure; the server 2000 can be a single server or a server cluster; the network 4000 can be a wireless network or a wired network, such as the wireless network being a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different user terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to the server 2000. In addition, the system may further include at least one database 3000, which is used to store the data generated by the user when using the data structure software on the user terminal 1000.
[0032] The server 2000 can receive a data construction request from the user terminal 1000, obtain the process data and the data construction result corresponding to the data construction request, where the process data is the data generated during the execution of the data construction request; if the data construction result indicates that the data construction fails, obtain a target response code based on the process data, and the target response code is used to indicate the reason for the data construction failure; generate a warning message according to the target response category corresponding to the target response code; output the warning message according to the target output method corresponding to the target response category; if the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0033] The following will be described in detail respectively.
[0034] In this embodiment, a warning method applied to data construction is provided. As Figure 2 shown, the specific process of this warning method can be as follows:
[0035] S110. Obtain the process data and the data construction result corresponding to the data construction request, where the process data is the data generated during the execution of the data construction request.
[0036] A data construction request refers to a request for data construction. For example, a data construction system is installed on the user terminal, and the user can use this data construction system to construct data. The data construction request is the request initiated by the user in the data construction system for data construction.
[0037] After receiving a data construction request, the data construction system can perform data construction based on the request. During the process of data construction, a series of data will be generated, which are process data, that is, the data generated during the execution of the data construction request.
[0038] The data construction result refers to the final result of the data construction system performing data construction based on the data construction request. For example, the data construction is successful, the data construction fails, and so on.
[0039] Among them, the data construction request can be initiated actively by the user or automatically generated. When obtaining the process data and data construction result corresponding to the data construction request, it can be to obtain the data construction request generated at a preset time interval, and / or receive the data construction request initiated by the user; perform data construction based on the data construction request, and obtain the data in the data construction based on a preset data logging strategy to obtain the process data; when the data construction request is executed, obtain the data construction result.
[0040] When the user needs to perform data construction, the user can initiate a data construction request through the data construction system. Among them, the data construction system can provide content related to data construction on the graphical user interface of the user terminal. For example, a preset control can be provided, and the preset control is used to generate a data construction request; when a user operation acting on the preset control is detected, a corresponding data construction request can be generated.
[0041] Among them, the user operation can refer to operations such as clicking, double-clicking, swiping, dragging, etc., which can be specifically set according to actual needs and are not specifically limited here.
[0042] When the user uses the data construction system to perform data construction, the situation of data construction failure may occur. In order to perceive in advance the possible abnormalities of the data construction system and discover problems as much as possible before the user uses it, the user operation can be simulated to automatically generate a data construction request. Specifically, the data construction request can be generated at a preset time interval. For example, a data construction request is generated every 5 minutes.
[0043] In some embodiments, in order to better predict the abnormalities of the data construction system, the time data of the user actively initiating the data construction request can be combined to determine the time interval for generating the data construction request. For example, it can be to divide 24 hours of a day into 2 parts to obtain a first time period and a second time period. The first time period is from 8 o'clock to 20 o'clock, and the second time period is from 20 o'clock to 8 o'clock. Usually, the user will use the data construction system more frequently in the first time period. In order to avoid affecting the normal use of the user, the data construction request can be generated in the second time period.
[0044] When generating a data generation request during the second time period, the data generation request can be generated based on the time data of the data generation requests received during the first time period. For example, 100 data generation requests are received during the first time period, among which 80 data generation requests are concentrated within 1 minute, and the remaining 20 are received sporadically. Thus, within any one minute of the second time period, data generation requests can be generated at a time interval of 1 / 80 minute, and in the remaining time, data generation requests can be generated at a preset time interval.
[0045] After obtaining the data generation request, data construction can be performed based on the data generation request, and data in the data construction can be obtained based on a preset data logging strategy to obtain process data; when the data construction is completed, a data generation result is obtained.
[0046] Data logging is related technologies and their implementation processes for capturing, processing, and sending for specific user operations or events. Specific data logging methods can be code data logging, visual data logging, etc., which can be selected according to actual needs. A preset data logging strategy refers to a strategy preset for capturing specific data. Through the preset data logging strategy, corresponding data can be obtained, such as data input by users, data during the data construction process, etc. These data can be called process data. When the data generation request is completed, the corresponding data generation result is obtained. Among them, the completion of the data generation request can mean that the entire data construction process has been successfully executed and the data generation is finally successful, or it can mean that the data construction process has terminated due to an exception in the data construction system or incorrect information input by the user, resulting in a failed data generation. That is, the data generation result can indicate whether the data construction is successful or failed.
[0047] S120. If the data generation result indicates that the data construction fails, obtain a target response code based on the process data, where the target response code is used to indicate the reason for the failure of the data construction.
[0048] If the data generation result indicates that the data construction fails, it means that the corresponding data has not been generated through the data construction system. To further analyze the reason for the failure of the data construction, a target response code can be obtained based on the process data. Among them, the target response code can be used to indicate the reason for the failure of the data construction.
[0049] The process data is obtained through a preset data logging strategy, and the data therein can include users' operation data and the system's execution data. Users' operation data can refer to users' click operations, input operations, etc., and the execution data can include the response situation of each data interaction, etc. The target response code can represent the response situation of the data interaction during the execution of the data generation request.
[0050] S130. Generate a warning message according to the target response category corresponding to the target response code.
[0051] After obtaining the target response code, an early warning message can be generated according to the target response category corresponding to the target response code. For example, the target response category can be determined based on the mapping relationship between the response code and the response category and the target response code, where the response code includes the target response code and the response category includes the target response category; if the target response category is a specified category, the early warning message is generated based on the process data; if the target response category is not the specified category, the early warning message is generated based on the target response code.
[0052] Among them, the mapping relationship between the response code and the response category can be preset. For example, the mapping relationship between the response code and the response category can refer to Table 1.
[0053] Table 1
[0054] Response code Response code A Response code B Response codes C - E Response category User category Network category System category
[0055] According to Table 1, it can be seen that response code A corresponds to the user category, response code B corresponds to the network category, and response codes C to E correspond to the system category. Thus, the target response category corresponding to the target response code can be determined.
[0056] In some embodiments, the target response code may only include one response code, and then the target response category corresponding to the target response code can be directly determined according to the mapping relationship between the response code and the response category.
[0057] In some embodiments, the target response code may include multiple different response codes, and then the target response category can be comprehensively determined according to the mapping relationship between the response code and the response category and the priority of the response category. For example, the response category corresponding to each response code in the target response code can be determined according to the mapping relationship between the response code and the response category, and then the response category with the highest priority is determined as the target response category according to the priority of the response category.
[0058] For example, the priorities of the user category, the network category, and the system category decrease in sequence. That is, when the response code of the user category is included in the target response code, the user category can be directly determined as the target response category; if only the response codes of the network category and the system category are included in the target response code, the network category can be determined as the target response category; if only the response code of the system category is included in the target response code, the system category is determined as the target response category.
[0059] After determining the target response category, it can be determined whether the target response category is a specified category; if the target response category is the specified category, warning information is generated based on the process data; if the target response category is not the specified category, warning information is generated based on the target response code. The specified category can be preset. For example, the system category can be set as the specified category. Then, when the target response category is the system category, warning information can be generated based on the process data. If the target response category is the user category or the network category, warning information can be generated based on the target response code.
[0060] When the target response category is the system category, that is, the specified category, it can be considered that the data construction fails due to the abnormality of the data construction system. These problems cannot be solved by users themselves and usually need to contact the provider of the data construction service to solve. Therefore, when the target response category is the specified category, information such as the information input by the user and the requested time can be obtained from the process data to generate warning information. Among them, generating warning information using the information input by the user can help the provider of the data construction service quickly locate the corresponding data when the data construction fails.
[0061] When the target response category is not the specified category, for example, if the target response category is the network category, it indicates that the data construction fails due to network reasons, and warning information can be generated based on the target response code to prompt the user to check the network. Another example is that if the target response category is the user category, it indicates that the data construction fails due to incorrect information input by the user, and warning information can be generated based on the target response code to prompt the user to re-enter the data.
[0062] S140. Output the warning information according to the target output method corresponding to the target response category.
[0063] The output methods for different response categories are also different. After determining the target response category, the corresponding target output method can also be determined so as to output the warning information according to the target output method. This step may include: searching for the output method corresponding to the target response category in the mapping relationship between the response category and the output method; determining the output method corresponding to the target response category as the target output method; using the target output method to output the warning information.
[0064] In some embodiments, the mapping relationship between the response category and the output method may be preset. For example, reference can be made to Table 2.
[0065] Table 2
[0066] Response category User category Network category System category Output method Second method Second method First method
[0067] In Table 2, both the user category and the network category correspond to the second method, and the system category corresponds to the first method. When the target response category is the user category or the network category, the corresponding target output method is the second method. When the target response category is the system category, the corresponding target output method is the first method.
[0068] If the target output method is the first method, obtain the target communication address and send a warning message to the target communication address. Here, the target communication address refers to the communication address of an organization or user that provides data construction services, and this target communication address can be an email address, a phone number, etc. When sending a warning message to the target communication address, it can be sending the warning message to this email address or sending it to this phone number, so that the provider of the data construction service can learn about the user's usage situation, and thus can improve the data construction system. And the user can obtain assistance without performing any operations, and the response to user support and the solution efficiency experience are better.
[0069] If the target output method is the second method, the warning message can be directly displayed. Specifically, the display position is on the graphical user interface provided by the electronic device used by the user for data construction, so as to prompt the user to re-enter the data or check the network to ensure the success of the next data construction.
[0070] It should be noted that after outputting the warning message in the first method, a specified message can also be displayed so that the user can learn about the handling situation corresponding to the failure of data construction. Here, the specified message can be "The person in charge has been notified to conduct problem troubleshooting. Please try again later". After seeing this specified message, the user can temporarily not continue to try data construction and wait for a period of time before proceeding.
[0071] S150. If the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0072] If the data construction result indicates that the data construction is successful, a prompt message can be directly displayed to notify the user that the data construction is successful.
[0073] In some embodiments, whether the data construction is successful or failed, the process data and construction result corresponding to the construction request can be obtained. Based on these data, data analysis can be performed so that the provider of the data construction service can better optimize the data construction system and improve the user's data construction experience.
[0074] For example, it can be the statistics of the data construction success rate. Specifically, it can be to obtain the total number of data construction requests obtained within a preset time period; among the data construction results corresponding to the data construction requests, determine the number of data construction results indicating successful data construction as the successful number; based on the total number and the successful number, calculate the data construction success rate within the preset time period.
[0075] Among them, the preset time period can be a time period of any duration set in advance, such as one day, one week, one month, etc., and can be specifically set according to actual needs, and no specific limitation is made here. First, it can be the total number of data generation requests obtained within the preset time period, that is, the number of data generation requests received within the preset time period. Then, among the data generation results corresponding to the data generation requests, determine the number of data generation results indicating successful data construction, denoted as the successful number; then divide the successful number by the total data volume to obtain the data generation success rate within the preset time period.
[0076] After obtaining the data generation success rate, further data analysis can be carried out according to the type of user. For example, the data generation requests can be classified according to the user type of the initiator of the data generation request to obtain the data generation requests corresponding to each user type; for each user type, obtain the number of data generation requests corresponding to this user type as the first number, and determine the number of data generation results indicating successful data construction as the second number; calculate the ratio of the first number to the total number to obtain the usage rate corresponding to each user type; calculate the ratio of the second number to the first number to obtain the success rate corresponding to each user type. The foregoing data generation requests can be initiated by users or automatically generated, and different users may belong to different departments. Therefore, the user type of the initiator of the data generation request can include the department to which the user belongs, system generation, etc.
[0077] The data generation requests can be classified according to the user type to obtain the data generation requests corresponding to the user type; then, for each user type, obtain the number of data generation requests as the first number, and obtain the number of data generation results indicating successful data construction as the second number. Based on the ratio of the first number to the total number, the usage rate corresponding to this user type can be obtained, and then calculate the ratio of the second number to the first number to obtain the success rate corresponding to this user type. Based on this analysis, it can be known which parts of the users do not use the data construction system and the success rate of use, so that targeted promotion and optimization can be carried out to improve the usage rate and use success rate of the data construction system.
[0078] Of course, more data analysis can also be carried out based on these data, which can be specifically set according to actual needs, and no specific limitation is made here.
[0079] To more clearly elaborate the overall execution process of the above warning method, reference can be made to Figure 3 , which shows the overall architecture diagram of the warning method.
[0080] In Figure 3Among them, first, a data generation request can be actively initiated by a normal user, or a data generation request can be automatically generated based on heartbeat checks. Then, the data generation request can be executed, and process data and data generation results can be logged with data points.
[0081] The process data and data generation results logged with data points can specifically include: data generation attributes, operation instructions, response codes, provider information, warning content, warning methods, and so on. Among them, the data generation attributes can refer to the types of data generation, such as data of card A, data of card B, and so on; the operation instructions refer to the specific operation instructions corresponding to the types of data generation; the response code can be used to reflect the data generation results; the provider information can include the contact information of the provider, and so on; the warning content can include the specific input data of the user; the warning method is the aforementioned first method or the second method.
[0082] Then, if the data generation result indicates that data construction fails, the target response code can be obtained from the process data, and then warning information can be generated based on the target response code, and it can be determined whether to send the warning information. If the warning information is sent, the information of the provider is obtained, and the warning information is sent to the corresponding provider.
[0083] If the warning information is not sent, the warning information can be directly displayed on the page.
[0084] If the data generation result indicates that data construction is successful, a prompt message can be generated for display.
[0085] Then, based on the process data and data generation results, data analysis can be performed. For example, analysis of success rates and usage analysis can be carried out. Among them, the analysis of success rates can be the analysis of success rates within a preset time period, such as daily success rate reports, weekly success rate reports, and so on. The usage can include weekly, annual, monthly usage, scenario usage, group dimension, department, or external usage, and so on. Among them, the scenario usage refers to the corresponding usage in the scenario of constructing different types of data. By analyzing the process data points, the usage of the data construction system can be comprehensively understood, so as to improve the usage rate of the data construction system and the success rate of data generation.
[0086] The warning scheme provided by the embodiments of the present application can be applied to various data construction scenarios. For example, taking the construction of test data as an example, the success rate of data generation in the data construction system can be improved, and the processing efficiency when data generation fails can be improved, enhancing the user experience.
[0087] Through the method provided by the embodiments of the present application, the process data and data generation results generated when executing the data generation request can be obtained. When the data generation result indicates that data construction fails, warning information is generated to promptly notify relevant personnel to optimize the data construction system, thereby improving the processing efficiency when data generation fails and enhancing the user experience.
[0088] To better implement the above method, an embodiment of the present application further provides an early warning device, which can be specifically integrated in an electronic device, and the electronic device can be a device such as a terminal or a server. Among them, the terminal can be a device such as a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, or a personal computer; the server can be a single server or a server cluster composed of multiple servers.
[0089] For example, in this embodiment, taking the early warning device being specifically integrated in an electronic device as an example, the method of the embodiment of the present application will be described in detail.
[0090] For example, as Figure 4 shown, the early warning device 200 may include a data acquisition module 210, a target response code acquisition module 220, a generation module 230, an output module 240, and a prompt module 250.
[0091] The data acquisition module 210 is configured to acquire the process data and the data construction result corresponding to the data creation request, and the process data is the data generated by executing the data creation request;
[0092] The target response code acquisition module 220 is configured to, if the data construction result indicates that the data construction fails, acquire a target response code based on the process data, and the target response code is used to indicate the reason for the data construction failure;
[0093] The generation module 230 is configured to generate an early warning message according to the target response category corresponding to the target response code;
[0094] The output module 240 is configured to output the early warning message according to the target output method corresponding to the target response category;
[0095] The prompt module 250 is configured to, if the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0096] In some embodiments, the data acquisition module 210 is further configured to:
[0097] acquire the data creation request generated at a preset time interval, and / or receive the data creation request initiated by the user;
[0098] perform data construction based on the data creation request, and acquire the data in the data construction based on a preset data logging strategy to obtain the process data;
[0099] acquire the data construction result when the data creation request is executed.
[0100] In some embodiments, the generation module 230 is further configured to:
[0101] Determine the target response category based on the mapping relationship between the response code and the response category and the target response code, where the response code includes the target response code and the response category includes the target response category;
[0102] If the target response category is a specified category, generate the warning information based on the process data;
[0103] If the target response category is not the specified category, generate the warning information based on the target response code.
[0104] In some embodiments, the output module 240 is further configured to:
[0105] In the mapping relationship between the response category and the output method, find the output method corresponding to the target response category;
[0106] Determine the output method corresponding to the target response category as the target output method;
[0107] Use the target output method to output the warning information.
[0108] In some embodiments, the output module 240 is further configured to:
[0109] If the target output method is the first method, obtain the target communication address and send the warning information to the target communication address;
[0110] If the target output method is the second method, display the warning information.
[0111] In some embodiments, the warning device 200 further includes a data analysis module, configured to:
[0112] Obtain the total number of data generation requests obtained within a preset time period;
[0113] Among the data generation results corresponding to the data generation requests, determine the number of data generation results indicating successful data construction as the successful number;
[0114] Based on the total number and the successful number, calculate the data generation success rate within the preset time period.
[0115] In some embodiments, after obtaining the total number of data generation requests obtained within a preset time period, the data analysis module is further configured to:
[0116] According to the user type of the initiator of the data generation request, classify the data generation requests to obtain the data generation requests corresponding to each user type;
[0117] For each user type, obtain the number of data creation requests corresponding to the user type as the first quantity, and determine the number of data creation results indicating successful data construction as the second quantity;
[0118] Calculate the ratio of the first quantity to the total quantity to obtain the usage rate corresponding to each user type;
[0119] Calculate the ratio of the second quantity to the first quantity to obtain the success rate corresponding to each user type.
[0120] In specific implementation, each of the above modules can be implemented as an independent entity, or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation of each of the above modules, reference can be made to the method embodiments described above, which will not be elaborated here.
[0121] As can be seen from the above, the warning device of this embodiment can obtain the process data generated when executing the data creation request and the data creation result. When the data creation result indicates that the data construction fails, obtain the target response code from the process data, generate a warning message based on the target response category corresponding to the target response code, and then output the warning message according to the target output mode corresponding to the target response category; when the data creation result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful. Displaying the prompt message when the data creation is successful can facilitate the user to understand the data creation result; when the data creation fails, output the warning message to timely notify the relevant personnel to optimize the data construction system, thereby improving the processing efficiency when the data creation fails, and further improving the user experience of data construction.
[0122] Correspondingly, an embodiment of the present application further provides an electronic device, which can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer, a personal digital assistant (Personal Digital Assistant, PDA), etc.
[0123] As Figure 5 shown, Figure 5 is a schematic structural diagram of the electronic device provided by the embodiment of the present application. The electronic device 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. Among them, the processor 301 is electrically connected to the memory 302. Those skilled in the art can understand that the structural diagram of the electronic device shown in the figure does not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.
[0124] The processor 301 is the control center of the electronic device 300, connecting various parts of the entire electronic device 300 through various interfaces and circuits. By running or loading software programs and / or modules stored in the memory 302, and by calling the data stored in the memory 302, it executes various functions of the electronic device 300 and processes data.
[0125] In the embodiment of the present application, the processor 301 in the electronic device 300 will load the instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:
[0126] Obtain the process data and the data construction result corresponding to the data construction request, where the process data is the data generated during the execution of the data construction request;
[0127] If the data construction result indicates that the data construction fails, obtain a target response code based on the process data, and the target response code is used to indicate the reason for the data construction failure;
[0128] Generate a warning message according to the target response category corresponding to the target response code;
[0129] Output the warning message according to the target output method corresponding to the target response category;
[0130] If the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0131] For the specific implementation of each of the above operations, reference can be made to the previous embodiments, and details will not be elaborated here.
[0132] Optionally, as Figure 5 shown, the electronic device 300 further includes: a touch display screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. Among them, the processor 301 is electrically connected to the touch display screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307 respectively. Those skilled in the art can understand that Figure 5 the structure of the electronic device shown in
[0133] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by a user's interaction with the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can be used to collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 301, and can receive and execute the commands sent by the processor 301. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to implement input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two independent components to implement input and output functions. That is, the touch display screen 303 can also be used as part of the input unit 306 to implement the input function.
[0134] The radio frequency circuit 304 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals with the network device or other electronic devices.
[0135] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and then converted into audio data. After the audio data is output to the processor 301 for processing, it is transmitted through the radio frequency circuit 304 to, for example, another electronic device, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earphone jack to provide communication between a peripheral earphone and the electronic device.
[0136] The input unit 306 can be used to receive input numerical, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0137] The power supply 307 is used to supply power to each component of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 307 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0138] Although Figure 5 not shown in the figure, the electronic device 300 may also include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.
[0139] In the above embodiments, the descriptions of each embodiment have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] As can be seen from the above, the electronic device provided in this embodiment can obtain the process data generated when executing the data construction request and the data construction result. When the data construction result indicates that the data construction fails, obtain the target response code from the process data, generate a warning message based on the target response category corresponding to the target response code, and then output the warning message according to the target output mode corresponding to the target response category; when the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful. When the data construction is successful, displaying the prompt message can facilitate the user to understand the data construction result; when the data construction fails, outputting the warning message can timely notify relevant personnel to optimize the data construction system, thereby improving the processing efficiency when the data construction fails, and further improving the user experience of data construction.
[0141] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0142] Therefore, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute the steps in any of the warning methods provided by the embodiments of the present application. For example, the computer program can execute the following steps:
[0143] Obtain the process data corresponding to the data generation request and the data generation result, where the process data is the data generated during the execution of the data generation request;
[0144] If the data generation result indicates that the data construction fails, obtain a target response code based on the process data, where the target response code is used to indicate the reason for the data construction failure;
[0145] Generate a warning message according to the target response category corresponding to the target response code;
[0146] Output the warning message according to the target output mode corresponding to the target response category;
[0147] If the data generation result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
[0148] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.
[0149] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc.
[0150] Since the computer program stored in the storage medium can execute the steps in any of the warning methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the warning methods provided in the embodiments of the present application can be realized. For details, reference may be made to the previous embodiments, which will not be elaborated herein.
[0151] The above has introduced in detail a warning method, device, storage medium and electronic device provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A warning method, characterized in that, the method includes: obtaining a data generation request generated at a preset time interval, and / or receiving a data generation request initiated by a user; performing data construction based on the data generation request, and obtaining data in the data construction based on a preset data embedding strategy to obtain process data, where the process data is data generated during the execution of the data generation request, the process data is obtained through a preset data embedding strategy, the process data includes the operation data of the user and the execution data of the system, the operation data includes the click operation and input operation of the user, and the execution data includes the response situation of each data interaction; obtaining a data generation result when the data generation request is executed; if the data generation result indicates that the data construction fails, obtaining a target response code based on the process data, where the target response code is used to indicate the reason for the failure of the data construction; determining a target response category based on the mapping relationship between the response code and the response category and the target response code, where the response code includes the target response code, and the response category includes the target response category; if the target response category is a specified category, generating a warning message based on the process data; if the target response category is not the specified category, generating a warning message based on the target response code; outputting the warning message according to the target output method corresponding to the target response category; if the data generation result indicates that the data construction is successful, displaying a prompt message to notify the user that the data construction is successful.
2. The method according to claim 1, characterized in that, the outputting the warning message according to the target output method corresponding to the target response category includes: searching for the output method corresponding to the target response category in the mapping relationship between the response category and the output method; determining the output method corresponding to the target response category as the target output method; using the target output method to output the warning message.
3. The method according to claim 1, characterized in that, the outputting the warning message based on the target output method includes: if the target output method is the first method, obtaining a target communication address and sending the warning message to the target communication address; if the target output method is the second method, displaying the warning message.
4. The method according to any one of claims 1 to 3, characterized in that, the method further includes: obtaining the total number of data generation requests obtained within a preset time period; determining the number of data generation results indicating successful data construction in the data generation results corresponding to the data generation requests as the successful number; calculating the data generation success rate within the preset time period based on the total number and the successful number.
5. The method according to claim 4, characterized in that, after the obtaining the total number of data generation requests obtained within a preset time period, the method further includes: classifying the data generation requests according to the user type of the initiator of the data generation request to obtain the data generation requests corresponding to each user type; For each user type, obtain the number of data construction requests corresponding to the user type as the first quantity, and determine the number of data construction results indicating successful data construction as the second quantity; Calculate the ratio of the first quantity to the total quantity to obtain the usage rate corresponding to each user type; Calculate the ratio of the second quantity to the first quantity to obtain the success rate corresponding to each user type.
6. An early warning device, characterized in that, the device includes: A data acquisition module, configured to acquire data construction requests generated at preset time intervals and / or receive data construction requests initiated by users; perform data construction based on the data construction requests, and acquire data in the data construction based on a preset data embedding strategy to obtain process data, where the process data is data generated during the execution of the data construction requests, the process data is obtained through a preset data embedding strategy, the process data includes operation data of users and execution data of the system, the operation data includes click operations and input operations of users, and the execution data includes response conditions of each data interaction; acquire a data construction result when the data construction request is executed; A target response code acquisition module, configured to, if the data construction result indicates that the data construction fails, acquire a target response code based on the process data, where the target response code is used to indicate the reason for the failure of the data construction; A generation module, configured to determine a target response category based on the mapping relationship between response codes and response categories and the target response code, where the response codes include the target response code and the response categories include the target response category; if the target response category is a specified category, generate an early warning message based on the process data; if the target response category is not the specified category, generate an early warning message based on the target response code; An output module, configured to output the early warning message according to a target output manner corresponding to the target response category; A prompt module, configured to, if the data construction result indicates that the data construction is successful, display a prompt message to notify the user that the data construction is successful.
7. An electronic device, characterized in that, it includes a processor and a memory, and the memory stores multiple instructions; the processor loads the instructions from the memory to execute the steps in the early warning method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the early warning method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Test data generation method and device, storage medium and intelligent equipment
CN111221726A
Burying point data access control method and device, computer equipment and storage medium
CN113420099A