A method, device and storage medium for processing warning information
By compressing and classifying multiple alarm information and determining alarm correlation groups, the problem of difficulty in troubleshooting application anomalies in complex network environments is solved, and rapid positioning and efficient processing are achieved.
Patent Information
- Application Number
- CN202111648947.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-30
AI Technical Summary
In a complex network environment, the calling relationships between applications are complex. When an application fails or is abnormal, a large amount of alarm information is generated, which increases the difficulty of troubleshooting and makes it difficult to quickly locate the source of the abnormal event.
By obtaining multiple alarm information, performing compression processing, generating target alarm information based on applications, alarm time periods and monitoring indicators, classifying alarm information of the same type, determining alarm association groups, including applications with upstream and downstream relationships, and assigning alarm levels In order to quickly locate the source of the exception and optimize the processing process.
It reduces the amount of alarm information processed, simplifies the troubleshooting process, and improves the processing efficiency of operation and maintenance personnel. It can quickly locate the source of abnormal events and handle alarm information reasonably.
Smart Images

Figure CN114398230B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an alarm information processing method, device and storage medium. Background Art
[0002] The execution of an event in the network depends on multiple applications, and there is a calling relationship between each application. If an application fails or is abnormal, the application will issue an alarm message, and at the same time, the upstream or downstream of the application will also issue an alarm message.
[0003] As the Internet becomes larger and larger, the calling relationships between applications are becoming more and more complex. If an application fails or is abnormal, a large number of alarm messages will be generated, which will increase the difficulty of troubleshooting and make it impossible to quickly locate the abnormal root cause of the event. Summary of the invention
[0004] The present invention provides an alarm information processing method, device and storage medium, which solve the problem that a large amount of alarm information is difficult to check and the abnormal root cause of the event is difficult to locate.
[0005] In order to achieve the above object, the present invention adopts the following technical scheme:
[0006] In a first aspect, the present invention provides an alarm information processing method, the method comprising: obtaining multiple alarm information, each alarm information comprising an application, an alarm time period and a monitoring indicator, the application is an application generating the alarm information, the alarm time period is a time period at which the alarm information is generated, and the monitoring indicator is an indicator satisfied by the application generating the alarm information;
[0007] Compress multiple alarm information according to the application, alarm time period and monitoring indicators in each alarm information to obtain at least one target alarm information;
[0008] According to the alarm type corresponding to the application in each target alarm information, target alarm information with the same alarm type corresponding to the application is classified into one category to obtain at least one information set;
[0009] Determine, according to the alarm type corresponding to each information set, an alarm association group corresponding to each information set, each alarm association group including target alarm information of applications having upstream and downstream relationships in the information set;
[0010] Determine the alarm level of each target alarm information in each alarm association group, the alarm level is a major alarm or a minor alarm.
[0011] In a possible implementation, the alarm type includes a first type and a second type, and according to the alarm type corresponding to each information set, determining the alarm association group corresponding to each information set includes:
[0012] If the alarm type corresponding to the information set is the first type, the target alarm information included in the information set is matched with multiple pre-stored alarm templates to obtain a successfully matched target template, and a corresponding alarm association group is determined according to each target template, and each alarm template includes preset alarm information of applications with upstream and downstream relationships;
[0013] If the alarm type corresponding to the information set is the second type, an application call chain associated with the application in the target alarm information included in the information set is obtained, and a corresponding alarm association group is obtained based on the application call chain.
[0014] In one possible implementation, each preset alarm information includes an application, and the target alarm information included in the information set is matched with multiple pre-stored alarm templates to obtain a successfully matched target template, including: matching the application in each target alarm information included in the information set with the application in each preset alarm information in each alarm template to obtain a target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the application in the preset alarm information included in the target template corresponds to the same application in the target alarm information included in the information set.
[0015] In a possible implementation, determining a corresponding alarm association group according to each target template includes: determining target alarm information of upstream and downstream applications including the target template as an alarm association group;
[0016] If the target template is a template of a preset type, when it is determined that the most upstream application in the target template has an upstream application, alarm information of the upstream application is added to the alarm association group corresponding to the target template.
[0017] In a possible implementation, multiple pieces of alarm information are compressed according to the application, alarm time period, and monitoring indicator in each piece of alarm information to obtain at least one piece of target alarm information, including: alarm information with the same application, in the same time period, and with the same monitoring indicator are divided into one group to obtain at least one alarm information group;
[0018] Any alarm information in each alarm information group is determined as a target corresponding to each alarm information group.
[0019] In a possible implementation, the method further includes: generating a notification message corresponding to each piece of target warning information according to the application included in each piece of target warning information and the warning level of the piece of target warning information;
[0020] Based on the mapping relationship between the application and the account, a notification message corresponding to the target alarm information is sent to the account corresponding to the application in each target alarm information.
[0021] The alarm information processing method provided by the embodiment of the present invention can compress multiple alarm information according to the application, alarm time period and monitoring index to obtain at least one target alarm information. In this way, the processing amount of alarm information is greatly reduced. Since the application that generates the alarm information has different alarm types, each target alarm information is classified according to the alarm type corresponding to the application in each target alarm information, and the target alarm information with the same alarm type corresponding to the application is classified into one category to obtain at least one information set, and the target alarm information of the application with upstream and downstream relationships included in the same information set is determined as an alarm association group. According to the alarm association group, the abnormal root cause of the event can be quickly located, simplifying the processing flow. Determine the alarm level of each alarm information in each alarm association group, the alarm level is a primary alarm or a secondary alarm, and different alarm levels have different urgency and processing methods, which can prompt the operation and maintenance personnel to handle the alarm information in a reasonable way, while reducing the number of operation and maintenance personnel involved and improving processing efficiency.
[0022] In a second aspect, the present invention provides an alarm information processing device, the device comprising: an acquisition unit, used to acquire multiple alarm information, each alarm information comprising an application, an alarm time period and a monitoring index, the application is an application generating the alarm information, the alarm time period is a time period at which the alarm information is generated, and the monitoring index is an index satisfied by the application generating the alarm information;
[0023] A compression unit, configured to compress the multiple pieces of alarm information according to the application, alarm time period and monitoring index in each piece of alarm information acquired by the acquisition unit, to obtain at least one piece of target alarm information;
[0024] a classification unit, configured to classify target alarm information with the same alarm type corresponding to the application into one category according to the alarm type corresponding to the application in each target alarm information obtained by the compression unit, so as to obtain at least one information set;
[0025] An association unit, configured to determine an alarm association group corresponding to each information set according to the alarm type corresponding to each information set obtained by the classification unit, wherein each alarm association group includes target alarm information of applications having an upstream and downstream relationship in the information set;
[0026] The determination unit is used to determine the alarm level of each target alarm information in each alarm association group, and the alarm level is a major alarm or a minor alarm.
[0027] In one possible implementation, the association unit is specifically used to: if the alarm type corresponding to the information set obtained by the classification unit is the first type, then match the target alarm information included in the information set obtained by the classification unit with multiple pre-stored alarm templates to obtain a successfully matched target template, and determine the corresponding alarm association group according to each target template, each alarm template including preset alarm information of applications with upstream and downstream relationships; if the alarm type corresponding to the information set obtained by the classification unit is the second type, then obtain an application call chain associated with the application in the target alarm information included in the information set obtained by the classification unit, and obtain the corresponding alarm association group based on the application call chain.
[0028] In one possible implementation, the association unit is specifically used to match the application in each target alarm information included in the information set obtained by the classification unit with the application in each preset alarm information in each alarm template to obtain a target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
[0029] In one possible implementation, the association unit is specifically used to: determine the target alarm information of the upstream and downstream applications including the target template as an alarm association group; if the target template is a template of a preset type, then when it is determined that the most upstream application in the target template has an upstream application, the alarm information of the upstream application is added to the alarm association group corresponding to the target template.
[0030] In one possible implementation, the compression unit is specifically used to: divide alarm information with the same application, the same time period, and the same monitoring indicators into a group to obtain at least one alarm information group; determine any alarm information in each alarm information group as the target alarm information corresponding to each alarm information group to obtain at least one target alarm information.
[0031] In a possible implementation, the alarm information processing device also includes: a notification unit; the notification unit is used to generate a notification message corresponding to each target alarm information based on the application included in each target alarm information obtained by the classification unit and the alarm level of the target alarm information determined by the determination unit; based on the mapping relationship between the application and the account, send the notification message corresponding to the target alarm information to the account corresponding to the application in each target alarm information.
[0032] In a third aspect, the present invention provides an alarm information processing device, comprising: a processor and a memory, the memory storing computer instructions that can be executed by the processor, and the processor being used to execute the computer instructions to implement any optional alarm information processing method as in the first aspect.
[0033] In a fourth aspect, the present invention provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an alarm information processing device, the alarm information processing device executes any one of the optional alarm information processing methods in the first aspect.
[0034] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any optional alarm information processing method as described in the first aspect.
[0035] For the specific description of the second to fifth aspects and their various implementations in the present invention, reference can be made to the detailed description in the first aspect and its various implementations; and for the beneficial effects of the second to fifth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the structure of an alarm information processing device provided by an embodiment of the present invention;
[0037] Figure 2 One of the flowcharts of a method for processing alarm information provided by an embodiment of the present invention;
[0038] Figure 3 A second flowchart of a method for processing alarm information provided by an embodiment of the present invention;
[0039] Figure 4 A third flowchart of a method for processing alarm information provided by an embodiment of the present invention;
[0040] Figure 5 A fourth flowchart of a method for processing alarm information provided by an embodiment of the present invention;
[0041] Figure 6 A fifth flowchart of a method for processing alarm information provided by an embodiment of the present invention;
[0042] Figure 7 A sixth flow chart of a method for processing alarm information provided by an embodiment of the present invention;
[0043] Figure 8 A seventh flowchart of a method for processing alarm information provided by an embodiment of the present invention;
[0044] Fig. 9 A schematic diagram of the composition of an alarm information processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, the use of "based on" or "according to" means openness and inclusiveness, because the process, steps, calculations or other actions "based on" or "according to" one or more of the conditions or values may be based on additional conditions or values beyond the described values in practice.
[0047] Nowadays, the scale of the Internet is getting larger and larger, and the calling relationships between applications are becoming more and more complex. When an application fails or is abnormal, a large number of alarm messages will be generated. Since different applications may be operated and maintained by different personnel, these alarm messages are independent of each other and are notified to different operation and maintenance personnel separately. This not only increases the difficulty of troubleshooting, but also makes it difficult to conduct an overall assessment of the event. In addition, for Internet companies that adopt a distributed microservice architecture, thousands of applications are operated and maintained by different teams. In this case, all operation and maintenance personnel can only manually integrate these alarm messages through group chats or meetings, and then locate and troubleshoot to determine the root cause of the abnormality.
[0048] In order to solve the problem that a large amount of alarm information is difficult to check and locate the abnormal root cause of the event, the embodiment of the present invention provides an alarm information processing method, device and storage medium. The alarm information processing method provided by the embodiment of the present invention can compress multiple alarm information according to the application, alarm time period and monitoring index to obtain at least one target alarm information. In this way, the processing amount of alarm information is greatly reduced. Since the application that generates the alarm information has different alarm types, each target alarm information is classified according to the alarm type corresponding to the application in each target alarm information, and the target alarm information with the same alarm type corresponding to the application is classified into one category to obtain at least one information set, and the target alarm information of the application with upstream and downstream relationships included in the same information set is determined as an alarm association group. According to the alarm association group, the abnormal root cause of the event can be quickly located, simplifying the processing flow. Determine the alarm level of each alarm information in each alarm association group, the alarm level is a primary alarm or a secondary alarm, and different alarm levels have different urgency and processing methods, which can prompt the operation and maintenance personnel to handle the alarm information in a reasonable way, while reducing the number of operation and maintenance personnel involved and improving processing efficiency.
[0049] To facilitate understanding, the terms or nouns involved in the embodiments of the present invention are first introduced here.
[0050] 1. Application call chain: During the execution of an event, the call information between applications, including but not limited to time, interface, level, and results, is logged, and then all the logged data is connected into a tree-like chain.
[0051] The execution subject of the alarm information processing method provided in the embodiment of the present invention is an alarm information processing device, which may be an electronic device or a server, or a central processing unit (CPU) in the electronic device or the server.
[0052] Figure 1 The following is a schematic diagram of the composition of an alarm information processing device provided by an embodiment of the present invention. Figure 1 As shown, the alarm information processing device may include: at least one processor 11, a memory 12, a communication interface 13 and a communication bus 14.
[0053] The processor 11 is the control center of the alarm information processing device, which may be a CPU, a microprocessing unit, or one or more integrated circuits for controlling the execution of the program of the embodiment of the present invention.
[0054] As an embodiment, the processor 11 may include one or more CPUs, such as Figure 1 CPU0 and CPU1 are shown in the figure.
[0055] The memory 12 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 12 may exist independently and be connected to the processor 11 via the communication bus 14. The memory 12 may also be integrated with the processor 11.
[0056] The communication interface 13 uses any transceiver or other device for communicating with other devices or communication networks, such as radio access networks (RAN), wireless local area networks (WLAN), etc. The communication interface 13 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.
[0057] The communication bus 14 may include a pathway for transmitting information between the above-mentioned components.
[0058] It should be pointed out that Figure 1 The structure shown in the figure does not constitute a limitation on the alarm information processing device, except Figure 1 In addition to the components shown, the alarm information processing device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0059] Based on the introduction of the structure of the above-mentioned alarm information processing device, an embodiment of the present invention provides an alarm information processing method. The method is applied in the process of the alarm information processing device processing alarm information. Figure 2 As shown, the alarm information processing method may include the following steps 201-205.
[0060] 201. An alarm information processing device obtains multiple alarm information, each alarm information includes an application, an alarm time period and a monitoring indicator. The application is the application that generates the alarm information, the alarm time period is the time period when the alarm information is generated, and the monitoring indicator is the indicator that the application meets to generate the alarm information.
[0061] Each application in the network is configured with multiple monitoring indicators. When multiple monitoring indicators configured for the application are triggered during the execution of an event, the application will issue an alarm. The alarm information includes but is not limited to the application that generates the alarm information, the time period when the alarm information is generated, and the triggered monitoring indicators.
[0062] It is understandable that, depending on the importance of the application generating the alarm information in the event execution process, the alarm information can be issued only once, or it can be issued at a certain frequency until the abnormality is eliminated or the operation and maintenance personnel confirm to stop. When the alarm information is selected to be issued at a certain frequency until the abnormality is eliminated or the operation and maintenance personnel confirm to stop, a large number of alarm information will be generated, which increases the difficulty of troubleshooting.
[0063] 202. The alarm information processing device compresses multiple alarm information according to the application, alarm time period and monitoring index in each alarm information to obtain at least one target alarm information.
[0064] 203. The alarm information processing device classifies target alarm information with the same alarm type corresponding to the application into one category according to the alarm type corresponding to the application in each piece of target alarm information, to obtain at least one information set.
[0065] The target alarm information is generated by different applications, and the alarm types corresponding to different applications may be the same or different. Exemplarily, the alarm type may include a first type and a second type. The first type and the second type are: a non-application customized service alarm type, an application customized service alarm type, and.
[0066] Exemplarily, alarm information having a non-application customized service alarm type includes, but is not limited to, host monitoring alarms, network monitoring alarms, and application basic indicator alarms.
[0067] It can be understood that the alarm information processing device classifies target alarm information with the same alarm type corresponding to the application into one category to obtain at least one information set, and performs the operation of step 204 on the target alarm information included in the same information set according to different alarm types.
[0068] 204. The alarm information processing device determines an alarm association group corresponding to each information set according to the alarm type corresponding to each information set, where each alarm association group includes target alarm information of applications having an upstream and downstream relationship in the information set.
[0069] It is understandable that different alarm types have different association rules, and the alarm information processing device determines the alarm association group corresponding to each information set according to the alarm type corresponding to each information set and according to different association rules, and the alarm association group includes at least one. The applications corresponding to the target alarm information included in each alarm association group have an upstream and downstream relationship.
[0070] 205. The alarm information processing device determines the alarm level of each target alarm information in each alarm association group, where the alarm level is a major alarm or a minor alarm.
[0071] It is understandable that the applications corresponding to the target alarm information in each alarm association group have an upstream-downstream relationship. The application at the downstream generates alarm information due to the failure of calling the application at the upstream. In some cases, when the fault or abnormality of the application at the upstream is eliminated, the fault of the application at the downstream is automatically eliminated. Therefore, the alarm level of each application's alarm information is different. Generally, the target alarm information corresponding to the application at the upstream in an alarm association group is determined as the primary alarm, and the target alarm information corresponding to the application at the downstream in an alarm association group is determined as the secondary alarm.
[0072] The alarm information processing method provided by the embodiment of the present invention can compress multiple alarm information according to the application, alarm time period and monitoring index to obtain at least one target alarm information. In this way, the processing amount of alarm information is greatly reduced. Since the application that generates the alarm information has different alarm types, each target alarm information is classified according to the alarm type corresponding to the application in each target alarm information, and the target alarm information with the same alarm type corresponding to the application is classified into one category to obtain at least one information set, and the target alarm information of the application with upstream and downstream relationships included in the same information set is determined as an alarm association group. According to the alarm association group, the abnormal root cause of the event can be quickly located, simplifying the processing flow. Determine the alarm level of each alarm information in each alarm association group, the alarm level is a primary alarm or a secondary alarm, and different alarm levels have different urgency and processing methods, which can prompt the operation and maintenance personnel to handle the alarm information in a reasonable way, while reducing the number of operation and maintenance personnel involved and improving processing efficiency.
[0073] Optionally, in the embodiment of the present invention, if the alarm type corresponding to the information set is the first type, combined with Figure 2 ,like Figure 3 As shown, the above step 204 can be implemented through steps 206 and 207.
[0074] 206. If the alarm type corresponding to the information set is the first type, the alarm information processing device matches the target alarm information included in the information set with multiple pre-stored alarm templates to obtain a successfully matched target template.
[0075] The first type may be a non-application custom business alarm type. Multiple applications corresponding to the non-application custom business alarm type form an application topology diagram. The application topology diagram includes the calling relationship between each application and reflects the upstream and downstream relationship between applications. Based on the application topology diagram, multiple alarm templates may be generated. The alarm templates include information such as template ID, template name, alarm type, alarm source, etc. Multiple alarm templates are stored in an alarm template library.
[0076] When the alarm type corresponding to the information set is a non-application customized service alarm type, the alarm information processing device matches the target alarm information included in the information set with multiple alarms in the alarm template library one by one to obtain a successfully matched target template. The successfully matched target template can be one or more.
[0077] 207. The alarm information processing device determines a corresponding alarm association group according to each target template, where each alarm template includes preset alarm information of applications having upstream and downstream relationships.
[0078] The alarm information processing device determines at least one target alarm information in the information set that matches the same target template as an alarm association group. When the number of target alarm information in the alarm association group is one, it can be determined that the abnormal root cause of the event is the application error or abnormality corresponding to this target alarm information. When the number of target alarm information in the alarm association group is multiple, the upstream and downstream relationship of the application corresponding to the target alarm information can be determined based on the upstream and downstream relationship of the application corresponding to the preset alarm information included in the successfully matched target template.
[0079] If the alarm type corresponding to the information set is the second type, combined with Figure 2 ,like Figure 4 As shown, the above step 204 can be implemented through step 208.
[0080] 208. If the alarm type corresponding to the information set is the second type, the alarm information processing apparatus obtains an application call chain associated with the application in the target alarm information included in the information set, and obtains a corresponding alarm association group based on the application call chain.
[0081] The second type may be an application-defined service alarm type, and multiple applications corresponding to the application-defined service alarm type will generate an application call chain from the call information during the call process. When an error or exception occurs in a certain application, the alarm information processing device obtains the application call chain corresponding to the target alarm information included in the information set, and according to the application call chain, the target alarm information corresponding to the applications on the same application call chain is divided into the same alarm association group.
[0082] Optional, combined Figure 3,like Figure 5 As shown, the above step 206 may specifically include step 209.
[0083] 209. If the alarm type corresponding to the information set is the first type, the alarm information processing device matches the application in each target alarm information included in the information set with the application in each preset alarm information in each alarm template to obtain a target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
[0084] Exemplarily, when the target alarm information included in the alarm information set is alarm A issued by application A, alarm B issued by application B, alarm C issued by application C, alarm D issued by application D, and alarm E issued by application E. Alarm templates include but are not limited to {alarm A'}, {alarm B'}, {alarm C'}, {alarm D'}, {alarm E'}, {alarm A', alarm B'}, {alarm B', alarm C'}, {alarm A', alarm B', alarm C'} and {alarm D', alarm E'}, wherein alarm A', alarm B', alarm C', alarm D' and alarm E' are preset alarm information corresponding to application A, application B, application C, application D and application E respectively, then {alarm A', alarm B', alarm C'} and {alarm D', alarm E'} are determined as target templates, the applications in the preset alarm information included in the target templates are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
[0085] Optional, combined Figure 3 ,like Figure 6 As shown, the above step 207 may specifically include steps 210 and 211.
[0086] 210. The alarm information processing device determines the target alarm information of the upstream and downstream applications including the target template as an alarm association group.
[0087] For example, when the host goes down, an application M downtime alarm will be issued, and the downstream application N will be triggered to issue an offline alarm, as well as an application P call failure alarm, namely, alarm M, alarm N, and alarm P. At this time, the matched target template is {alarm M', alarm N', alarm P'}, and the alarm information processing device determines alarm M, alarm N, and alarm P as an alarm association group, and alarm M, alarm N, and alarm P have an upstream and downstream relationship, and then according to the upstream and downstream relationship, the upstream application M is determined to be the root cause of the abnormality.
[0088] 211. If the target template is a template of a preset type, the alarm processing device adds alarm information of the upstream application to the alarm association group corresponding to the target template when determining that the most upstream application in the target template has an upstream application.
[0089] Due to the upstream and downstream relationship of the preset alarm information, in the execution of some applications, if an error or anomaly occurs, an application upstream of the application will also issue an alarm message. However, if the upstream application is not triggered to issue an alarm message for some reason, it needs to be supplemented. Therefore, when the target template obtained is a template of a preset type, and the most upstream application in the target template has an upstream application, the alarm information of the upstream application is added to the alarm association group corresponding to the target template.
[0090] Optionally, in this embodiment, combined with Figure 1 ,like Figure 7 As shown, the above step 202 may specifically include step 212 and step 213.
[0091] 212. The alarm information processing device divides the alarm information with the same application, the same time period, and the same monitoring indicators into one group to obtain at least one alarm information group.
[0092] 213. The alarm information processing device determines any alarm information in each alarm information group as target alarm information corresponding to each alarm information group, and obtains at least one target alarm information.
[0093] Optionally, in this embodiment, combined with Figure 1 ,like Figure 8 As shown, after executing the above step 205, the alarm information processing device can execute steps 214 and 215.
[0094] 214. The alarm information processing device generates a notification message corresponding to each piece of target alarm information according to the application included in each piece of target alarm information and the alarm level of the target alarm information.
[0095] Since the preset alarm information corresponding to different applications has different alarm levels in different alarm templates, the alarm information processing device can generate a notification message corresponding to each target alarm information according to the application included in each target alarm information and the alarm level corresponding to the preset alarm information corresponding to the application in the target template. Notification messages include but are not limited to Error and Warnig. Error requires active confirmation by the operation and maintenance manager, but Warnig does not. In this way, the number of personnel involved in operation and maintenance can be reduced and processing efficiency can be improved.
[0096] 215. The alarm information processing device sends a notification message corresponding to the target alarm information to the account corresponding to the application in each piece of target alarm information based on the mapping relationship between the application and the account.
[0097] Each application is mapped to an account, which includes the contact information of the operation and maintenance personnel of the corresponding application. The alarm information processing device sends a notification message corresponding to the target alarm information to the corresponding account based on the mapping relationship between the application and the account, so that the operation and maintenance personnel can handle application errors or exceptions in a timely and accurate manner and maintain the normal operation of the network.
[0098] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the device. It is understandable that in order to realize the above functions, the device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiment disclosed in this article, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0099] Fig. 9 A possible schematic diagram of the composition of the alarm information processing device involved in the above embodiment is shown. Fig. 9 As shown, the alarm information processing device may include: an acquisition unit 901, a compression unit 902, a classification unit 903, an association unit 904, a determination unit 905 and a notification unit 906.
[0100] The acquisition unit 901 is used to obtain multiple alarm information, each alarm information includes an application, an alarm time period and a monitoring indicator. The application is the application that generates the alarm information, the alarm time period is the time period when the alarm information is generated, and the monitoring indicator is the indicator that the application meets to generate the alarm information.
[0101] The compression unit 902 is used to compress multiple pieces of alarm information according to the application, alarm time period and monitoring index in each piece of alarm information obtained by the acquisition unit 901 to obtain at least one piece of target alarm information.
[0102] The classification unit 903 is used to classify target alarm information with the same alarm type corresponding to the application into one category according to the alarm type corresponding to the application in each target alarm information obtained by the compression unit 902, so as to obtain at least one information set.
[0103] The association unit 904 is used to determine the alarm association group corresponding to each information set according to the alarm type corresponding to each information set obtained by the classification unit 903, and each alarm association group includes target alarm information of applications with upstream and downstream relationships in the information set.
[0104] The determination unit 905 is used to determine the alarm level of each target alarm information in each alarm association group, and the alarm level is a major alarm or a minor alarm.
[0105] Further, the association unit 904 is specifically used to: if the alarm type corresponding to the information set obtained by the classification unit 903 is the first type, then the target alarm information included in the information set obtained by the classification unit 903 is matched with multiple pre-stored alarm templates to obtain a successfully matched target template; determine the corresponding alarm association group according to each target template, and each alarm template includes preset alarm information of applications with upstream and downstream relationships. If the alarm type corresponding to the information set obtained by the classification unit 903 is the second type, then obtain the application call chain associated with the application in the target alarm information included in the information set obtained by the classification unit 903, and obtain the corresponding alarm association group based on the application call chain.
[0106] Furthermore, the association unit 904 is specifically used to match the application in each target alarm information included in the information set obtained by the classification unit 903 with the application in each preset alarm information in each alarm template to obtain a target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
[0107] Further, the association unit 904 is specifically configured to: determine the target alarm information of the upstream and downstream applications including the target template as an alarm association group;
[0108] Optionally, the association unit 904 is further configured to, if the target template is a template of a preset type, add alarm information of the upstream application to the alarm association group corresponding to the target template when it is determined that the most upstream application in the target template has an upstream application.
[0109] Furthermore, the compression unit 902 is specifically used to: divide the alarm information with the same application, the same time period, and the same monitoring indicators into a group to obtain at least one alarm information group; determine any alarm information in each alarm information group as the target alarm information corresponding to each alarm information group to obtain at least one target alarm information.
[0110] The alarm information processing device also includes a notification unit 906, which is used to generate a notification message corresponding to each target alarm information according to the application included in each target alarm information obtained by the classification unit 903 and the alarm level of the target alarm information determined by the determination unit 905; based on the mapping relationship between the application and the account, send the notification message corresponding to the target alarm information to the account corresponding to the application in each target alarm information.
[0111] Of course, the alarm information processing device provided by the embodiment of the present invention includes but is not limited to the above modules.
[0112] The alarm information processing device provided by the embodiment of the present invention is used to execute the above alarm information processing method, and thus can achieve the same effect as the above alarm information processing method.
[0113] Another embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an alarm information processing device, the alarm information processing device executes each step executed by the alarm information processing device in the method flow shown in the above method embodiment.
[0114] Another embodiment of the present invention further provides a computer program product, which includes computer instructions. When the computer instructions are executed on an alarm information processing device, the alarm information processing device executes each step executed by the alarm information processing device in the method flow shown in the above method embodiment.
[0115] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for processing alarm information, characterized in that: include: Acquire multiple pieces of alarm information, each piece of alarm information includes an application, an alarm time period, and a monitoring indicator, wherein the application is an application that generates the alarm information, the alarm time period is a time period when the alarm information is generated, and the monitoring indicator is an indicator that the application satisfies when generating the alarm information; Compressing the multiple pieces of alarm information according to the application, alarm time period and monitoring indicators in each piece of alarm information to obtain at least one piece of target alarm information; According to the alarm type corresponding to the application in each target alarm information, target alarm information with the same alarm type corresponding to the application is classified into one category to obtain at least one information set; Determine, according to the alarm type corresponding to each information set, an alarm association group corresponding to each information set, each alarm association group including target alarm information of applications having upstream and downstream relationships in the information set; Determine the alarm level of each target alarm information in each alarm association group, wherein the alarm level is a major alarm or a minor alarm; The alarm type includes a first type and a second type, and determining the alarm association group corresponding to each information set according to the alarm type corresponding to each information set includes: If the alarm type corresponding to the information set is the first type, matching the target alarm information included in the information set with a plurality of pre-stored alarm templates to obtain a successfully matched target template; Determine a corresponding alarm association group according to each target template, each alarm template including preset alarm information of applications having upstream and downstream relationships; If the alarm type corresponding to the information set is the second type, an application call chain associated with the application in the target alarm information included in the information set is obtained, and a corresponding alarm association group is obtained based on the application call chain.
2. The alarm information processing method according to claim 1, characterized in that: Each preset alarm information includes an application, and the target alarm information included in the information set is matched with a plurality of pre-stored alarm templates to obtain a successfully matched target template, including: Match the application in each target alarm information included in the information set with the application in each preset alarm information in each alarm template to obtain the target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
3. The alarm information processing method according to claim 2, characterized in that: The determining a corresponding alarm association group according to each target template includes: Determine the target alarm information of the upstream and downstream applications including the target template as an alarm association group; If the target template is a template of a preset type, when it is determined that the most upstream application in the target template has an upstream application, alarm information of the upstream application is added to the alarm association group corresponding to the target template.
4. The method for processing alarm information according to any one of claims 1 to 3, characterized in that: The compressing the multiple pieces of alarm information according to the application, alarm time period and monitoring index in each piece of alarm information to obtain at least one piece of target alarm information includes: The alarm information with the same application, the same time period and the same monitoring indicators is divided into one group to obtain at least one alarm information group; Any warning information in each warning information group is determined as target warning information corresponding to each warning information group to obtain the at least one target warning information.
5. The method for processing alarm information according to any one of claims 1 to 3, characterized in that: The method further comprises: Generate a notification message corresponding to each piece of target warning information according to the application included in each piece of target warning information and the warning level of the target warning information; Based on the mapping relationship between the application and the account, a notification message corresponding to the target alarm information is sent to the account corresponding to the application in each target alarm information.
6. An alarm information processing device, characterized in that: include: An acquisition unit, used to acquire multiple pieces of alarm information, each piece of alarm information includes an application, an alarm time period and a monitoring indicator, the application is an application that generates the alarm information, the alarm time period is a time period when the alarm information is generated, and the monitoring indicator is an indicator that the application satisfies when generating the alarm information; A compression unit, configured to compress the plurality of pieces of alarm information according to the application, alarm time period and monitoring index in each piece of alarm information acquired by the acquisition unit, to obtain at least one piece of target alarm information; a classification unit, configured to classify target alarm information with the same alarm type corresponding to the application into one category according to the alarm type corresponding to the application in each target alarm information obtained by the compression unit, so as to obtain at least one information set; an association unit, configured to determine an alarm association group corresponding to each information set according to the alarm type corresponding to each information set obtained by the classification unit, wherein each alarm association group includes target alarm information of applications having an upstream and downstream relationship in the information set; A determination unit, configured to determine an alarm level of each target alarm information in each alarm association group, wherein the alarm level is a primary alarm or a secondary alarm; The association unit is specifically used for: If the alarm type corresponding to the information set obtained by the classification unit is the first type, matching the target alarm information included in the information set obtained by the classification unit with a plurality of pre-stored alarm templates to obtain a successfully matched target template; Determine a corresponding alarm association group according to each target template, each alarm template including preset alarm information of applications having upstream and downstream relationships; If the alarm type corresponding to the information set obtained by the classification unit is the second type, an application call chain associated with the application in the target alarm information included in the information set obtained by the classification unit is obtained, and a corresponding alarm association group is obtained based on the application call chain.
7. The alarm information processing device according to claim 6, characterized in that: The association unit is specifically used for: Match the application in each target alarm information included in the information set obtained by the classification unit with the application in each preset alarm information in each alarm template to obtain the target template, and the target template satisfies the following conditions: the applications included in the preset alarm information are different from each other, and the applications in the preset alarm information included in the target template correspond to the same applications in the target alarm information included in the information set.
8. The alarm information processing device according to claim 7, characterized in that: The association unit is specifically used for: Determine the target alarm information of the upstream and downstream applications including the target template as an alarm association group; If the target template is a template of a preset type, when it is determined that the most upstream application in the target template has an upstream application, alarm information of the upstream application is added to the alarm association group corresponding to the target template.
9. The alarm information processing device according to any one of claims 6 to 8, characterized in that: The compression unit is specifically used for: The alarm information with the same application, the same time period and the same monitoring indicators are divided into a group to obtain at least one alarm information group; any alarm information in each alarm information group is determined as the target alarm information corresponding to each alarm information group to obtain the at least one target alarm information.
10. The alarm information processing device according to any one of claims 6 to 8, characterized in that: The alarm information processing device further includes: a notification unit; The notification unit is used to generate a notification message corresponding to each piece of target alarm information based on the application included in each piece of target alarm information obtained by the classification unit and the alarm level of the target alarm information determined by the determination unit; based on the mapping relationship between the application and the account, send the notification message corresponding to the target alarm information to the account corresponding to the application in each piece of target alarm information.
11. An alarm information processing device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer instructions that can be executed by the processor, and the processor is used to execute the computer instructions to implement the alarm information processing method as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the alarm information processing device, the alarm information processing device executes the alarm information processing method according to any one of claims 1 to 5.
