Monitoring document generation method, device, computer equipment and readable storage medium

By automatically determining and running the order of monitoring instructions based on historical abnormal health conditions in client applications and generating monitoring documents, the problem of inefficiency of traditional methods is solved, and efficient exception monitoring and analysis is achieved.

CN114327638BActive Publication Date: 2025-08-26SHANGHAI LIANYING ZHIYUAN MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111609450.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-08-26
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

Traditional methods are less efficient in generating dump documents and cannot efficiently monitor the abnormal health status of client applications.

Method used

Based on the historical abnormal health status of the target process, multiple target exception monitoring instructions are determined from the instruction library, and the target running order is determined based on their attribute information, and these instructions are automatically run to generate monitoring documents.

Benefits of technology

It improves the efficiency of generating dump documents, saves exception monitoring time, and can promptly analyze and resolve process exceptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327638B_ABST
    Figure CN114327638B_ABST
Patent Text Reader

Abstract

The present application relates to a monitoring document generation method, apparatus, computer equipment, and readable storage medium. The method comprises: determining multiple target abnormality monitoring instructions from an instruction library based on the historical abnormal operation status of a target process; determining a target operation order for the multiple target abnormality monitoring instructions based on attribute information of the multiple target abnormality monitoring instructions; and executing the multiple target abnormality monitoring instructions according to the target operation order to obtain the monitoring document. This method eliminates the need to manually query and add abnormality monitoring instructions only when an abnormal operation status occurs in the target process, thereby saving abnormality monitoring time. Furthermore, the method can automatically execute multiple target abnormality monitoring instructions according to the target operation order of each target abnormality monitoring instruction to obtain a dump document, thereby improving the efficiency of generating the dump document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer system maintenance, and in particular to a monitoring document generation method, apparatus, computer equipment, and readable storage medium. Background Art

[0002] The widespread adoption of Microsoft operating systems has created a robust ecosystem for a wide variety of client applications. However, during the operation of client applications, some abnormalities may occur. To detect these abnormalities, it's necessary to generate dump files and analyze the client application's program performance.

[0003] In conventional technology, when a client application encounters an abnormal operation, an abnormal monitoring instruction is added to the client application program to capture the running program and generate a dump file. However, the efficiency of generating a dump file using conventional methods is low. Summary of the Invention

[0004] Based on this, it is necessary to provide a monitoring document generation method, device, computer equipment and readable storage medium to address the above technical problems.

[0005] A monitoring document generation method, the method comprising:

[0006] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0007] determining a target execution order of the plurality of target abnormality monitoring instructions according to attribute information of the plurality of target abnormality monitoring instructions;

[0008] According to the target running sequence, the multiple target abnormality monitoring instructions are run to obtain the monitoring document.

[0009] In one embodiment, the attribute information includes an initial execution order of target abnormality monitoring instructions in the instruction library; and determining a target execution order of the multiple target abnormality monitoring instructions based on the attribute information of the multiple target abnormality monitoring instructions includes:

[0010] The plurality of target abnormality monitoring instructions are sorted according to the initial running order of each target abnormality monitoring instruction to obtain a target running order of each target abnormality monitoring instruction.

[0011] In one embodiment, executing the plurality of target abnormality monitoring instructions according to the target execution order to obtain the monitoring document includes:

[0012] Obtain resource operation parameters corresponding to the target process;

[0013] Determining the execution time of the target abnormality monitoring instruction based on the resource operation parameters corresponding to each abnormal operation status;

[0014] According to the target running sequence, the running is started at the execution time of each target abnormality monitoring instruction to monitor the running process of the target process to obtain the monitoring document.

[0015] In one embodiment, determining the execution time of the target abnormality monitoring instruction based on the resource operation parameters corresponding to each abnormal operation status includes:

[0016] The time corresponding to when the value of the resource operation parameter is greater than the operation threshold is determined as the execution time of the target abnormality monitoring instruction.

[0017] In one embodiment, the attribute information includes the name of the target abnormality monitoring instruction, and the determining of multiple target abnormality monitoring instructions from an instruction library based on historical abnormal operation status of the target process includes:

[0018] A target name is determined according to the historical abnormal operation status, and the plurality of target abnormality monitoring instructions are determined from the instruction library according to the target name.

[0019] In one embodiment, the method further comprises:

[0020] An abnormality analysis is performed on the monitoring document to obtain the abnormal operation reason of the running target process.

[0021] A monitoring document generation device, comprising:

[0022] A target instruction determination module is used to determine a target abnormality monitoring instruction from an instruction library based on the historical abnormal operation status of the target process;

[0023] An execution sequence determination module, configured to determine a target execution sequence of the target abnormality monitoring instruction according to attribute information of the target abnormality monitoring instruction;

[0024] The monitoring document acquisition module is used to control the target abnormality monitoring instruction to monitor the running process of the target process according to the target running sequence to obtain the monitoring document.

[0025] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0026] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0027] determining a target execution order of the plurality of target abnormality monitoring instructions according to attribute information of the plurality of target abnormality monitoring instructions;

[0028] According to the target running sequence, the multiple target abnormality monitoring instructions are run to obtain the monitoring document.

[0029] A readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0030] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0031] determining a target execution order of the plurality of target abnormality monitoring instructions according to attribute information of the plurality of target abnormality monitoring instructions;

[0032] According to the target running sequence, the multiple target abnormality monitoring instructions are run to obtain the monitoring document.

[0033] The above-mentioned monitoring document generation method, device, computer equipment and readable storage medium, the computer equipment can determine multiple target abnormal monitoring instructions from the instruction library based on the historical abnormal operation status of the target process, determine the target operation order of the multiple target abnormal monitoring instructions according to the attribute information of the multiple target abnormal monitoring instructions, and run the multiple target abnormal monitoring instructions according to the target operation order to obtain the monitoring document; this method does not require the process of manually querying and adding abnormal monitoring instructions when the target process has an abnormal operation status, which can save abnormal status monitoring time. At the same time, the method can automatically run multiple target abnormal monitoring instructions according to the target operation order of each target abnormal monitoring instruction to obtain a dump document, thereby improving the efficiency of generating the dump document. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a diagram of the internal structure of a computer device in one embodiment;

[0035] Figure 2 A flowchart of a monitoring document generation method according to an embodiment;

[0036] Figure 3 A flowchart of a method for obtaining monitoring documents in another embodiment;

[0037] Figure 4 It is a structural block diagram of a monitoring document generation device in another embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0039] The monitoring document generation method provided in this application can be applied to Figure 1 The computer equipment shown. Figure 1 As shown, the computer device includes a processor, memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store pipelines and pipeline attribute information. The network interface of the computer device is used to communicate with external endpoints via a network connection. When executed by the processor, the computer program implements a monitoring document generation method.

[0040] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0041] In one embodiment, Figure 2 As shown, a monitoring document generation method is provided, which is applied to Figure 1 The computer device in the example is used to illustrate the process, including the following steps:

[0042] S100 , based on the historical abnormal operation status of the target process, determine a plurality of target abnormality monitoring instructions from an instruction library.

[0043] Specifically, the historical abnormal operation status of the target process can be various emergencies such as high CPU usage, memory expansion, application non-responsiveness, unexpected exit, program explosion, unexpected crash, etc. These emergencies can be determined through the display interface of the application being used or the web page being browsed. The above-mentioned instruction library can be an information library that is pre-created and stores abnormal monitoring instructions for monitoring different abnormal operation conditions of various processes. The abnormal monitoring instructions can monitor various running processes in real time, and these abnormal monitoring instructions can be monitoring instructions of the operating system. The process can be an interactive process, a batch process, a computer system daemon process, etc. In this embodiment, the above-mentioned target process can be any one of these processes. Among them, the computer device can filter out the target abnormal monitoring instructions corresponding to the historical abnormal operation status of the target process from the instruction library according to actual needs. The above-mentioned target abnormal monitoring instructions can be -mm instructions, -mp instructions, -mc instructions, -ma instructions, -mk instructions, -u instructions, -md instructions, -a instructions, etc., and each instruction has a corresponding monitoring function.

[0044] The abnormal monitoring instructions for monitoring each abnormal operating condition of the target process correspond to the abnormal operating condition. In this embodiment, the total number of the above-mentioned historical abnormal operating conditions can be greater than 1. The total number of historical abnormal operating conditions and the total number of target abnormal monitoring instructions can be equal.

[0045] It should be noted that the exception monitoring instructions can be stored in the instruction library according to the process type and the type of abnormal operation condition. Different abnormal operation conditions of each process require corresponding exception monitoring instructions for abnormality monitoring. Therefore, during the specific operation process, the exception monitoring instructions corresponding to the different abnormal operation conditions of each process can be sorted according to different functions to obtain the initial operation order when all the exception monitoring instructions corresponding to the different abnormal operation conditions of each process are executed.

[0046] S200: Determine a target execution order of the multiple target abnormality monitoring instructions according to attribute information of the multiple target abnormality monitoring instructions.

[0047] Specifically, the attribute information of the target exception monitoring instruction can be the start-up running time of the target exception monitoring instruction, the conflict relationship of the target exception monitoring instruction, the available status of the target exception monitoring instruction, etc. The conflict relationship of the target exception monitoring instruction can be understood as when the current target exception monitoring instruction is running, one or more other target exception detection instructions cannot run synchronously. The available status of the target exception monitoring instruction can characterize whether the target exception monitoring instruction is currently running or not, and the available status can be represented by a binary value. The exception monitoring instructions for each abnormal running condition of the monitoring process can be stored in the instruction set.

[0048] It should be noted that the computer device can perform calculation processing, conversion processing and / or analysis processing on the attribute information of multiple target abnormality monitoring instructions, and determine the processing results as the target running order of the multiple target abnormality monitoring instructions.

[0049] S300: Execute multiple target abnormality monitoring instructions according to the target execution sequence to obtain a monitoring document.

[0050] Specifically, the computer device can sequentially execute multiple target exception monitoring instructions according to the target execution sequence, and generate a monitoring file based on the instruction execution results. Optionally, each target exception monitoring instruction has a corresponding target execution sequence. The monitoring file may include the abnormal operation program and / or the normal operation program of the target process.

[0051] In this embodiment, the target exception monitoring instruction may also be an instruction for monitoring unhandled exception programs.

[0052] In the above-mentioned monitoring document generation method, the computer device can determine multiple target abnormal monitoring instructions from the instruction library based on the historical abnormal operation status of the target process, determine the target operation order of the multiple target abnormal monitoring instructions according to the attribute information of the multiple target abnormal monitoring instructions, and run the multiple target abnormal monitoring instructions according to the target operation order to obtain the monitoring document; this method does not require the process of manually querying and adding abnormal monitoring instructions when the target process has an abnormal operation status, which can save the abnormal status monitoring time. At the same time, the method can automatically run multiple target abnormal monitoring instructions according to the target operation order of each target abnormal monitoring instruction to obtain a dump document, thereby improving the efficiency of generating the dump document. Furthermore, the generated dump document can be analyzed in a timely manner to quickly resolve abnormal conditions that occur in the running process.

[0053] As one of the embodiments, the attribute information includes the initial running order of the target abnormality monitoring instructions in the instruction library; the step of determining the target running order of multiple target abnormality monitoring instructions based on the attribute information of multiple target abnormality monitoring instructions in the above S200 may include: sorting the multiple target abnormality monitoring instructions according to the initial running order of each target abnormality monitoring instruction to obtain the target running order of each target abnormality monitoring instruction.

[0054] Specifically, the attribute information of the target exception monitoring instruction may include the initial running order of the target exception monitoring instruction. The initial running order of different target exception monitoring instructions may also be different. The initial running order of the target exception monitoring instruction may also be represented by a binary value. The initial running order of the exception monitoring instruction for each abnormal running condition of the monitoring process may be equal to the corresponding target running order, or may not be equal to the corresponding target running order.

[0055] It should be noted that the computer device can sort the initial running order of multiple target abnormality monitoring instructions according to the sorting rules to obtain a sorting result, and then reassign the initial running order of each target abnormality monitoring instruction in turn according to the sorting rules to obtain the target running order of each target abnormality monitoring instruction. The sorting rules can be from small to large or from large to small. In this embodiment, if the target running order of each target abnormality monitoring instruction is incorrect, it will cause each target abnormality monitoring instruction to fail to start and run normally.

[0056] For example, if there are 5 target abnormality monitoring instructions, namely instruction 1, instruction 2, instruction 3, instruction 4 and instruction 5, the initial running order of instruction 1 is 7, the initial running order of instruction 2 is 2, the initial running order of instruction 3 is 21, the initial running order of instruction 4 is 10, and the initial running order of instruction 5 is 19, then the initial running order of these 5 target abnormality monitoring instructions is sorted according to the rule from small to large, and the sorting result is that the initial running order of instruction 2 is 2, the initial running order of instruction 1 is 7, the initial running order of instruction 4 is 10, the initial running order of instruction 5 is 19, and the initial running order of instruction 3 is 21. Then, according to the rule from small to large, the initial running orders of multiple target abnormality monitoring instructions are reassigned in turn to obtain the target running order of instruction 2. The target running order of instruction 1 is 2, the target running order of instruction 4 is 3, the target running order of instruction 5 is 4, and the target running order of instruction 3 is 5; if the initial running order of these 5 target abnormality monitoring instructions is sorted according to the rule from large to small, the sorting result is that the initial running order of instruction 3 is 21, the initial running order of instruction 5 is 19, the initial running order of instruction 4 is 10, the initial running order of instruction 1 is 7, and the initial running order of instruction 2 is 2. Then, according to the rule from large to small, the initial running orders of multiple target abnormality monitoring instructions are reassigned in turn, and the target running order of instruction 3 is 1, the target running order of instruction 5 is 2, the target running order of instruction 4 is 3, the target running order of instruction 1 is 4, and the target running order of instruction 2 is 5.

[0057] The above-mentioned monitoring document generation method can determine the target running order of multiple target exception monitoring instructions, and further run the multiple target exception monitoring instructions according to the target running order to obtain the monitoring document; this method does not require the process of manually querying and adding exception monitoring instructions when the target process has an abnormal running condition, which can save the abnormal condition monitoring time. At the same time, the method can automatically run multiple target exception monitoring instructions according to the target running order of each target exception monitoring instruction to obtain a dump document, thereby improving the efficiency of generating dump documents.

[0058] As one example, Figure 3As shown, the step of executing multiple target abnormality monitoring instructions according to the target execution order and obtaining the monitoring document in S300 can be implemented by the following steps:

[0059] S310: Obtain resource operation parameters corresponding to the target process.

[0060] Specifically, the computer device can obtain the resource operation parameters generated in real time during the operation of the target process, and can also obtain the values ​​of the resource operation parameters. The resource operation parameters can be the CPU usage rate, CPU operation time, CPU resource occupancy ratio, thread memory occupation, thread operation time, number of threads running, thread loading time, etc. At the same time, various abnormal operation conditions can be monitored in real time through one or more resource operation parameters.

[0061] S320: Determine the execution time of the target abnormality monitoring instruction based on the resource operation parameters corresponding to each abnormal operation status.

[0062] It should be noted that the computer device can perform calculation processing, comparison processing, analysis processing and / or data conversion processing on the resource operation parameters corresponding to each abnormal operation status to determine the execution time of the target abnormal monitoring instruction corresponding to each abnormal operation status.

[0063] Among them, the step of determining the execution time of the target abnormal monitoring instruction through the resource operation parameters corresponding to each abnormal operation status in the above S320 may include: determining the time corresponding to when the value of the resource operation parameter is greater than the operation threshold as the execution time of the target abnormal monitoring instruction.

[0064] It is understandable that the computer device can compare the values ​​of one or more resource operation parameters corresponding to each abnormal operation state with the corresponding operation threshold value, and determine the execution time of the target abnormality monitoring instruction corresponding to each abnormal operation state based on the comparison processing result and the time when the resource operation parameter value is obtained. Each resource operation parameter has a corresponding operation threshold value, and the operation threshold values ​​corresponding to different resource operation parameters can be the same or different, and there is no limitation on this. The above-mentioned comparison processing result can be that the value of the resource operation parameter is greater than the corresponding operation threshold value, the value of the resource operation parameter is equal to the corresponding operation threshold value, or the value of the resource operation parameter is less than the corresponding operation threshold value.

[0065] In this embodiment, if the moment corresponding to when the value of the resource operation parameter is greater than the operation threshold can be determined as the execution time of the target abnormality monitoring instruction, in this case, the moment of obtaining the value of the resource operation parameter can be approximately equal to the moment corresponding to when the value of the resource operation parameter is greater than the operation threshold.

[0066] S330. According to the target running sequence, the operation is started at the execution time of each target abnormality monitoring instruction to monitor the running process of the target process to obtain a monitoring document.

[0067] It is also understood that the computer device can start running at the execution time of the corresponding target abnormality monitoring instructions in accordance with the target running order of each target abnormality monitoring instruction, so as to monitor the running process of the target process and obtain a monitoring document. The execution time of different target abnormality monitoring instructions can be the same or different. Therefore, at the same time, one or more target abnormality monitoring instructions can be run synchronously. However, when multiple target abnormality monitoring instructions are run synchronously, the conflict relationship between the target abnormality monitoring instructions must be satisfied, and some target abnormality monitoring instructions cannot be run synchronously.

[0068] The above-mentioned monitoring document generation method can obtain the resource operating parameters corresponding to the target process, determine the execution time of the target abnormal monitoring instruction through the resource operating parameters corresponding to each abnormal operating condition, and start the operation at the execution time of each target abnormal monitoring instruction according to the target operation order to monitor the operation process of the target process and obtain the monitoring document. This method does not require manual query and addition of abnormal monitoring instructions when the target process has an abnormal operating condition, which can save abnormal condition monitoring time. At the same time, this method can automatically monitor the target process quickly in real time, thereby improving the efficiency of generating dump documents.

[0069] As one of the embodiments, the attribute information includes the name of the target exception monitoring instruction. The step of determining multiple target exception monitoring instructions from the instruction library based on the historical abnormal operation status of the target process in the above S100 may include: determining the target name according to the historical abnormal operation status, and determining multiple target exception monitoring instructions from the instruction library according to the target name.

[0070] Specifically, the attribute information of the target abnormality monitoring instruction may include the name of the target abnormality monitoring instruction, and different target abnormality monitoring instructions have different names. Among them, based on the various historical abnormal operating conditions that have occurred in the target process, the names of the abnormality monitoring instructions required to monitor each historical abnormal operating condition, i.e., the target name, are determined. Furthermore, the computer device can filter out multiple target abnormality monitoring instructions corresponding to multiple target names from all abnormality monitoring instructions in the instruction library. In addition, the instruction library can also store identifiers that correspond one-to-one to each abnormality monitoring instruction and the name of each abnormality monitoring instruction, and can also search for multiple abnormality monitoring instructions corresponding to the identifier in the instruction library based on the identifier of the target name, i.e., the target abnormality monitoring instruction.

[0071] Furthermore, the computer device can start running these multiple target abnormality monitoring instructions in a preset order to monitor the target process in real time. The preset order can be any order, and the preset order corresponding to different target abnormality monitoring instructions can be the same or different.

[0072] The above-mentioned monitoring document generation method can determine multiple target exception monitoring instructions, and further start running multiple target exception monitoring instructions to obtain monitoring documents; this method does not require the process of manually querying and adding exception monitoring instructions when the target process has an abnormal operating condition, which can save abnormal condition monitoring time. At the same time, this method can automatically run multiple target exception monitoring instructions to obtain dump documents, thereby improving the efficiency of generating dump documents.

[0073] As one of the embodiments, before executing the step in S300, the monitoring document generation method may further include: performing an abnormality analysis on the monitoring document to obtain the cause of the abnormal operation of the target process.

[0074] Specifically, the computer device can use a customized exception handling function to perform exception analysis on all programs in the monitoring document to determine the cause of the abnormal operation of the target process. The exception analysis process can include comparing, analyzing, and / or calculating attribute information such as CPU usage, CPU runtime, CPU resource usage ratio, thread memory usage, thread runtime, number of threads running, and thread load time for all programs included in the monitoring document with standard thresholds corresponding to normal process operation.

[0075] It should be noted that the above-mentioned abnormal operation reasons of the target process can be understood as abnormal operation reasons of the abnormal operation status of the target process. In this embodiment, the above-mentioned abnormal operation status can be high CPU explosion, memory expansion, application non-responsiveness, and unexpected crash. Among them, the abnormal operation reasons of high CPU explosion can be high CPU usage, long CPU running time and / or large CPU resource occupancy ratio, etc.; the abnormal operation reasons of memory expansion can be many running threads, large CPU resource occupancy ratio, etc.; the abnormal operation reasons of application non-responsiveness can be large CPU resource occupancy ratio, long thread running time, long CPU running time, etc.; the abnormal operation reasons of unexpected crash can be errors in program logic, incompatibility between program and application system, etc.

[0076] The above monitoring document generation method can perform abnormal analysis on the monitoring document to obtain the abnormal operation reason of the target process, and can promptly analyze the quickly generated dump document and quickly resolve abnormal conditions in the running process based on the analysis results.

[0077] To facilitate understanding by those skilled in the art, the monitoring document generation method provided in this application is described by taking a computer device as an example. Specifically, the method includes:

[0078] (1) Determine the target name according to the historical abnormal operation status of the target process, and determine multiple target abnormality monitoring instructions from the instruction library according to the target name.

[0079] (2) According to the initial running order of each target abnormality monitoring instruction, multiple target abnormality monitoring instructions are sorted to obtain the target running order of each target abnormality monitoring instruction.

[0080] (3) Obtain the resource operation parameters corresponding to the target process.

[0081] (4) The time corresponding to when the value of the resource operation parameter is greater than the operation threshold is determined as the execution time of the target abnormality monitoring instruction.

[0082] (5) According to the target running sequence, the operation is started at the execution time of each target abnormal monitoring instruction to monitor the running process of the target process and obtain the monitoring document.

[0083] (6) Perform abnormal analysis on the monitoring document to obtain the abnormal operation reason of the target process.

[0084] The execution process of the above (1) to (6) can be specifically referred to the description of the above embodiment. The implementation principles and technical effects are similar and will not be repeated here.

[0085] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2-3 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The order of execution of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0086] In one embodiment, Figure 4 As shown, a monitoring document generation device is provided, comprising: a target instruction determination module 11, an operation sequence determination module 12 and a monitoring document acquisition module 13, wherein:

[0087] A target instruction determination module 11 is configured to determine a target abnormality monitoring instruction from an instruction library based on the historical abnormal operation status of the target process;

[0088] An execution sequence determination module 12 is configured to determine a target execution sequence of the target abnormality monitoring instruction according to the attribute information of the target abnormality monitoring instruction;

[0089] The monitoring document acquisition module 13 is used to control the target abnormality monitoring instruction to monitor the running process of the target process according to the target running sequence to obtain the monitoring document.

[0090] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0091] In one embodiment, the attribute information includes the initial running order of the target exception monitoring instructions in the instruction library; the running order determination module 12 is specifically used to sort multiple target exception monitoring instructions according to the initial running order of each target exception monitoring instruction to obtain the target running order of each target exception monitoring instruction.

[0092] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0093] In one embodiment, the monitoring document acquisition module 13 includes: an operation parameter acquisition unit, an execution time determination unit, and a monitoring unit, wherein:

[0094] An operating parameter acquisition unit is used to obtain resource operating parameters corresponding to the target process;

[0095] An execution time determination unit, configured to determine the execution time of a target abnormality monitoring instruction based on resource operation parameters corresponding to each abnormal operation status;

[0096] The monitoring unit is used to start running at the execution time of each target abnormal monitoring instruction according to the target running sequence, so as to monitor the running process of the target process and obtain the monitoring document.

[0097] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0098] In one embodiment, the execution time determination unit is specifically configured to determine the time corresponding to when the value of the resource operation parameter is greater than the operation threshold as the execution time of the target abnormality monitoring instruction.

[0099] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0100] In one embodiment, the attribute information includes the name of the target abnormality monitoring instruction; the target instruction determination module 11 is specifically used to determine the target name according to the historical abnormal operation status, and determine multiple target abnormality monitoring instructions from the instruction library according to the target name.

[0101] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0102] In one embodiment, the monitoring document generation device further includes: an abnormality analysis module, wherein:

[0103] The exception analysis module is used to perform exception analysis on the monitoring document and obtain the cause of the abnormal operation of the target process.

[0104] The monitoring document generation device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0105] The specific definition of the monitoring document generation device can be found in the definition of the monitoring document generation method above and will not be repeated here. Each module in the monitoring document generation device described above can be implemented in whole or in part via software, hardware, or a combination thereof. Each of the modules described above can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0106] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0107] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0108] determining a target execution order of the multiple target abnormality monitoring instructions based on attribute information of the multiple target abnormality monitoring instructions;

[0109] According to the target running order, run multiple target exception monitoring instructions to obtain monitoring documents.

[0110] In one embodiment, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0111] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0112] determining a target execution order of the multiple target abnormality monitoring instructions based on attribute information of the multiple target abnormality monitoring instructions;

[0113] According to the target running order, run multiple target exception monitoring instructions to obtain monitoring documents.

[0114] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0115] Based on the historical abnormal operation status of the target process, multiple target abnormal monitoring instructions are determined from the instruction library;

[0116] determining a target execution order of the multiple target abnormality monitoring instructions based on attribute information of the multiple target abnormality monitoring instructions;

[0117] According to the target running order, run multiple target exception monitoring instructions to obtain monitoring documents.

[0118] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0119] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A monitoring document generation method, characterized in that: The method comprises: Based on historical abnormal operating conditions of the target process, a plurality of target abnormality monitoring instructions are determined from an instruction library; the instruction library is a pre-created information library storing abnormality monitoring instructions for monitoring different abnormal operating conditions of various processes, wherein the abnormality monitoring instructions for monitoring each historical abnormal operating condition of the target process correspond one-to-one to each of the historical abnormal operating conditions; Sorting the plurality of target abnormality monitoring instructions according to attribute information of the plurality of target abnormality monitoring instructions to obtain a target running order of the plurality of target abnormality monitoring instructions; the attribute information including an initial running order of the target abnormality monitoring instructions in the instruction library; According to the target running sequence, the multiple target abnormality monitoring instructions are run to obtain the monitoring document.

2. The method according to claim 1, characterized in that The step of executing the plurality of target abnormality monitoring instructions according to the target execution order to obtain the monitoring document includes: Obtain resource operation parameters corresponding to the target process; Determining the execution time of the target abnormality monitoring instruction based on the resource operation parameters corresponding to each abnormal operation status; According to the target running sequence, the running is started at the execution time of each target abnormality monitoring instruction to monitor the running process of the target process to obtain the monitoring document.

3. The method according to claim 2, characterized in that The step of determining the execution time of the target abnormality monitoring instruction by using the resource operation parameters corresponding to each abnormal operation status includes: The time corresponding to when the value of the resource operation parameter is greater than the operation threshold is determined as the execution time of the target abnormality monitoring instruction.

4. The method according to claim 1, wherein The attribute information includes the name of the target abnormality monitoring instruction; the determining of multiple target abnormality monitoring instructions from the instruction library based on the historical abnormal operation status of the target process includes: A target name is determined according to the historical abnormal operation status, and the plurality of target abnormality monitoring instructions are determined from the instruction library according to the target name.

5. The method according to claim 4, characterized in that The method further comprises: Perform an abnormality analysis on the monitoring document to obtain the abnormal operation reason of the target process.

6. A monitoring document generation device, characterized in that: The device comprises: a target instruction determination module, configured to determine, from an instruction library, a plurality of target abnormality monitoring instructions based on historical abnormal operating conditions of a target process; the instruction library being a pre-created information library storing abnormality monitoring instructions for monitoring different abnormal operating conditions of various processes, wherein the abnormality monitoring instructions for monitoring each historical abnormal operating condition of the target process correspond one-to-one to each of the historical abnormal operating conditions; an execution sequence determination module, configured to sort the plurality of target abnormality monitoring instructions according to attribute information of the plurality of target abnormality monitoring instructions to obtain a target execution sequence of the target abnormality monitoring instructions; the attribute information including an initial execution sequence of the target abnormality monitoring instructions in the instruction library; The monitoring document acquisition module is used to control the target abnormality monitoring instruction to monitor the running process of the target process according to the target running sequence to obtain the monitoring document.

7. The device according to claim 6, characterized in that The monitoring document acquisition module includes: An operating parameter acquisition unit, configured to acquire resource operating parameters corresponding to the target process; an execution time determination unit, configured to determine the execution time of the target abnormality monitoring instruction according to the resource operation parameters corresponding to each abnormal operation status; The monitoring unit is used to start running at the execution time of each target abnormality monitoring instruction according to the target running sequence, so as to monitor the running process of the target process and obtain the monitoring document.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

10. A program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Automatic reliability evaluation system and evaluation method based on Zynq FPGA

    CN112015604A

  • Automatic monitoring method and system for business system

    CN112615737A