An alarm processing method and device and related equipment
Through the hash table and mutex lock mechanism, the inconsistency problem of multi-threaded alarm data processing is solved, the accuracy and efficiency of alarm data are improved, and the accuracy of user screening information is ensured.
Patent Information
- Application Number
- CN202411192930.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-08-28
Smart Images

Figure CN118869439B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of alarm technology, and in particular to an alarm processing method, apparatus, and related equipment. Background Art
[0002] As business scale grows and networking becomes increasingly complex, the system may generate a large number of alarms, placing increasing demands on the performance of network management systems in handling alarms. Currently, multi-threaded and multi-replica parallel processing is commonly used to improve performance. However, because alarm data is not simply listed but requires logical processing such as duplicate determination, it is stateful data. Simply using multi-threaded or multi-replica stacking can cause data inconsistency. Specifically, due to thread preemption, it may be impossible to accurately determine whether an alarm is duplicated. If errors occur, it will confuse users when filtering information, reducing user usability. Summary of the Invention
[0003] The present application provides an alarm processing method, apparatus and related equipment.
[0004] In a first aspect, the present application provides an alarm processing method, the method comprising:
[0005] Calculate the target hash value of the received target alarm;
[0006] Determine whether there is a target table entry that matches the target hash value in the hash table, wherein an entry includes a hash value and an alarm sequence identifier corresponding to the alarm;
[0007] If it is determined that a target table entry matching the target hash value exists in the hash table, determining whether the target alarm sequence identifier corresponding to the target table entry is a first flag;
[0008] If it is determined that the target alarm sequence identifier is not the first mark, the target alarm is processed, and the correspondence between the processed alarm data and the target alarm sequence identifier is stored in the alarm database, wherein the alarm database maintains a mapping relationship between each alarm sequence identifier and the corresponding alarm data.
[0009] Optionally, a corresponding mutex is set for each hash value; the method further includes:
[0010] If it is determined that there is no target table entry matching the target hash value in the hash table, setting the target alarm sequence identifier corresponding to the target hash value to a first mark, and storing the target hash value and the first mark in the hash table;
[0011] Obtaining a mutex corresponding to the target hash value, processing the target alarm, and obtaining processed target alarm data;
[0012] generating a second flag corresponding to the target alarm based on a preset algorithm, and changing the value of the target alarm sequence identifier in the target table entry from the first flag to the second flag;
[0013] The corresponding relationship between the target alarm data and the target alarm sequence identifier is stored in an alarm database.
[0014] Optionally, the method further includes:
[0015] If it is determined that the target alarm sequence identifier is the first mark, periodically performing an operation of determining whether the target alarm sequence indicates the first mark;
[0016] When it is determined that the target alarm sequence identifier is not the first mark, the mutex corresponding to the target hash value is acquired, the target alarm is processed, and the correspondence between the alarm data of the target alarm and the target alarm sequence identifier is stored in the alarm database.
[0017] Optionally, the step of calculating a target hash value of the received target alarm includes:
[0018] Based on the alarm key information of the target alarm, a target hash value of the target alarm is calculated.
[0019] In a second aspect, the present application provides an alarm processing device, the device comprising:
[0020] A calculation unit, configured to calculate a target hash value of a received target alarm;
[0021] a determination unit, configured to determine whether there is a target entry in the hash table that matches the target hash value, wherein an entry includes a hash value and an alarm sequence identifier corresponding to the alarm;
[0022] If the judging unit determines that a target entry matching the target hash value exists in the hash table, the judging unit is further configured to judge whether the target alarm sequence identifier corresponding to the target entry is a first flag;
[0023] A processing unit, if the judgment unit determines that the target alarm sequence identifier is not the first mark, the processing unit is used to process the target alarm and store the correspondence between the processed alarm data and the target alarm sequence identifier in the alarm database, wherein the alarm database maintains a mapping relationship between each alarm sequence identifier and the corresponding alarm data.
[0024] Optionally, a corresponding mutex is set for each hash value; the device further includes a setting unit, an updating unit and a storage unit:
[0025] If the judging unit determines that there is no target table entry matching the target hash value in the hash table, the setting unit is configured to set the target alarm sequence identifier corresponding to the target hash value to a first mark, and store the target hash value and the first mark in the hash table;
[0026] The processing unit is used to obtain the mutex corresponding to the target hash value, process the target alarm, and obtain processed target alarm data;
[0027] The updating unit is configured to generate a second flag corresponding to the target alarm based on a preset algorithm, and modify the value of the target alarm sequence identifier in the target table entry from the first flag to the second flag;
[0028] The storage unit is used to store the corresponding relationship between the target alarm data and the target alarm sequence identifier in an alarm database.
[0029] Optionally, if the determination unit determines that the target alarm sequence identifier is a first mark, the determination unit is further configured to periodically perform an operation of determining whether the target alarm sequence identifier is a first mark;
[0030] When the judgment unit determines that the target alarm sequence identifier is not the first mark, the processing unit is used to obtain the mutex lock corresponding to the target hash value and process the target alarm, and the storage unit is used to store the correspondence between the alarm data of the target alarm and the target alarm sequence identifier in the alarm database.
[0031] Optionally, when calculating the target hash value of the received target alarm, the calculation unit is specifically configured to:
[0032] Based on the alarm key information of the target alarm, a target hash value of the target alarm is calculated.
[0033] In a third aspect, an embodiment of the present application provides an alarm processing device, the alarm processing device comprising:
[0034] a memory for storing program instructions;
[0035] The processor is configured to call the program instructions stored in the memory and execute the steps of the method as described in any one of the first aspects above according to the obtained program instructions.
[0036] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the above-mentioned first aspects.
[0037] In summary, the alarm processing method provided in the embodiments of the present application comprises the following steps: calculating a target hash value of a target alarm received; judging whether a target entry matching the target hash value exists in a hash table, wherein one entry comprises a hash value and an alarm sequence identifier of a corresponding alarm; if it is judged that the target entry matching the target hash value exists in the hash table, judging whether the target alarm sequence identifier corresponding to the target entry is a first mark; if it is judged that the target alarm sequence identifier is not the first mark, processing the target alarm, and storing the corresponding relationship between the processed alarm data and the target alarm sequence identifier in an alarm database, wherein the alarm database maintains a mapping relationship between each alarm sequence identifier and corresponding alarm data.
[0038] By using the alarm processing method provided in the embodiments of the present application, mutual exclusion locks are respectively set for different types of alarms, and the alarm processing can be performed in multiple threads or multiple copies, and meanwhile, for the same type of alarms, a sequential processing rule is set to avoid the problems of missed judgment and wrong judgment caused by thread preemption, so as to cause the actual alarm data of the alarm target to be incorrect or inconsistent. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the description of the embodiments of the present application or the prior art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can also be obtained by those skilled in the art according to these drawings.
[0040] Figure 1 A thread preemption mutual exclusion lock processing logic diagram in the prior art;
[0041] Figure 2 A detailed flowchart of an alarm processing method provided in the embodiments of the present application;
[0042] Figure 3 A structure diagram of an alarm processing device provided in the embodiments of the present application;
[0043] Figure 4 A hardware architecture diagram of an alarm processing device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0044] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "an" and "the" used in the present application and claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means any or all possible combinations of the associated listed items.
[0045] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" used may also be interpreted as "at the time of" or "when" or "in response to determining".
[0046] Currently, to maintain consistency in distributed scenarios, mutual exclusion locks or distributed locks are used. For example, see Figure 1 The figure below shows a logical diagram of thread preemption mutex lock processing in the prior art. When a thread or replica processing an alarm detects a duplicate, it first acquires a mutex lock or distributed lock. Only one thread or replica can operate on the storage at a time, thus resolving data inconsistencies caused by thread preemption.
[0047] However, when multiple threads or replicas compete for a single mutex or distributed lock, this creates a performance bottleneck. A large number of threads or replicas can become stuck waiting for the lock, resulting in performance degradation and preventing the full parallelization benefits of multi-threading and multi-replica processing.
[0048] This application proposes a method of using serial number marking in combination with a database, which can ensure the consistency of repeated judgments of stateful alarm data in distributed scenarios and reduce congestion.
[0049] For example, see Figure 2 FIG. 1 is a detailed flow chart of an alarm processing method provided in an embodiment of the present application, the method comprising the following steps:
[0050] Step 200: Calculate the target hash value of the received target alarm;
[0051] In the embodiment of the present application, when calculating the target hash value of the received target alarm, a preferred implementation method is:
[0052] Based on the alarm key information of the above target alarm, the target hash value of the above target alarm is calculated.
[0053] In practical applications, the key alarm information of an alarm is used as the basis for determining duplicate alarms. That is, the hash value calculated for the same key alarm information is the same. For example, the device identifier can be defined as the key alarm information, that is, an alarm generated by a device is defined as a duplicate alarm for that device. Of course, in specific implementations, the key alarm information can also be customized based on user needs, but this is not specifically limited in the embodiments of this application.
[0054] Specifically, when an alarm is received, the key alarm information of the alarm is obtained, and then the hash value of the alarm is calculated based on the hash algorithm.
[0055] Step 210: Determine whether there is a target entry in the hash table that matches the target hash value.
[0056] Specifically, an entry includes a hash value of the corresponding alarm and an alarm sequence identifier;
[0057] In actual applications, the alarm processing device locally maintains a hash table, in which entries of each received alarm and its corresponding alarm sequence identifier are maintained.
[0058] Then, after receiving the target alarm, it can be determined whether other alarms that are duplicates of the target alarm have been received by determining whether there is a target table entry in the hash table that matches the hash value of the target alarm.
[0059] For example, taking the hash value as the Key and the alarm sequence identifier as the Value as an example, it is determined whether there is a target table entry in the hash table whose Key value is the hash value of the target alarm.
[0060] Step 220: If it is determined that a target entry matching the target hash value exists in the hash table, it is determined whether the target alarm sequence identifier corresponding to the target entry is the first flag.
[0061] In the embodiment of the present application, a corresponding mutex is set for each hash value. Then, the above alarm processing method may further include the following steps:
[0062] If it is determined that there is no target table entry matching the target hash value in the hash table, the target alarm sequence identifier corresponding to the target hash value is set to a first mark, and the target hash value and the first mark are stored in the hash table.
[0063] For example, the Key value of the target alarm is Key1, and the initial value of the target alarm series mark is 0.
[0064] Next, obtain the mutex lock corresponding to the above-mentioned target hash value, process the above-mentioned target alarm, and obtain the processed target alarm data; generate the second mark corresponding to the above-mentioned target alarm based on the preset algorithm, and modify the value of the above-mentioned target alarm sequence identifier in the above-mentioned target table item from the first mark to the second mark; store the correspondence between the above-mentioned target alarm data and the above-mentioned target alarm sequence identifier in the alarm database.
[0065] That is, the target alarm is the first alarm of the type of alarm, at this time, the target hash value of the target alarm and the target alarm sequence identifier initial value (first mark, for example, the initial value is 0) are directly maintained in the hash table. Then, the alarm processing process acquires the mutual exclusion lock corresponding to the target hash value, processes the target alarm, obtains the processed target alarm data, and generates a second mark for uniquely identifying the target alarm based on a preset algorithm (such as a snowflake algorithm). That is, the alarm sequence identifier initial value (first mark) of each alarm is the same, but the second mark of the alarm sequence identifier of different types of alarms (non-repeating alarms) is different.
[0066] After generating the second mark of the target alarm, the value of the target alarm sequence identifier included in the target table entry in the hash table is modified from the first mark to the second mark, and the second mark is used to uniquely identify the type of alarm (target alarm). Finally, the mapping relationship between the target alarm data obtained by the analysis processing and the second mark is stored in the alarm database, and the user can find the alarm data corresponding to the second mark from the alarm database based on the second mark.
[0067] Step 230: If it is determined that the above target alarm sequence identifier is not the first mark, the above target alarm is processed, and the corresponding relationship between the processed alarm data and the above target alarm sequence identifier is stored in the alarm database.
[0068] Among them, the alarm database maintains the mapping relationship between each alarm sequence identifier and the corresponding alarm data.
[0069] In the embodiments of the present application, if it is determined that the target alarm sequence identifier is not the first mark but the second mark, it means that the target alarm sequence is a repeated alarm, and the alarm of the same type as the target alarm has been processed before, that is, the second mark has been allocated for this type of alarm. At this time, the value of the target alarm sequence identifier in the hash table can be used as the second mark of the target alarm, the mutual exclusion lock corresponding to the target hash value is acquired, the target alarm is processed, the processed target alarm data is obtained, and the mapping relationship between the target alarm data and the second mark of the target alarm is stored in the alarm database. In the alarm database, the data of each alarm can be updated / aggregated based on the second mark of the target alarm.
[0070] That is, the alarm data associated with the second mark of the target alarm already stored in the alarm database is aggregated with the target alarm data.
[0071] Further, if it is determined that the above target alarm sequence identifier is the first mark, the operation of determining whether the above target alarm sequence identifier is the first mark is periodically performed;
[0072] When it is determined that the target alarm sequence identifier is not the first mark, a mutex corresponding to the target hash value is acquired, the target alarm is processed, and a corresponding relationship between alarm data of the target alarm and the target alarm sequence identifier is stored in an alarm database.
[0073] If it is determined that the target alarm sequence identifier is the first mark, it indicates that the first alarm of this type of alarm has not been processed. At this time, the mutex corresponding to the target hash value cannot be acquired. The target alarm sequence identifier is periodically determined whether it is updated to the second mark. Only when it is determined that the target alarm sequence identifier is updated to the second mark and there is no alarm sequence identifier corresponding to the target hash value that is the first mark, the mutex corresponding to the target hash value is acquired, and the target alarm is processed subsequently.
[0074] Based on the same inventive concept as the above embodiments, an exemplary structure of an alarm processing device provided by the embodiments is shown in FIG. 1. The device includes: Figure 3 The device includes:
[0075] A computing unit 30 is configured to calculate a target hash value of a target alarm received;
[0076] A judging unit 31 is configured to determine whether there is a target entry in a hash table that matches the target hash value, wherein one entry includes a hash value and an alarm sequence identifier of a corresponding alarm.
[0077] If the judging unit 31 determines that there is a target entry in the hash table that matches the target hash value, the judging unit 31 is further configured to determine whether a target alarm sequence identifier corresponding to the target entry is the first mark.
[0078] A processing unit 32 is configured to process the target alarm and store a corresponding relationship between processed alarm data and the target alarm sequence identifier in an alarm database if the judging unit 31 determines that the target alarm sequence identifier is not the first mark, wherein a mapping relationship between each alarm sequence identifier and corresponding alarm data is maintained in the alarm database.
[0079] Optionally, a corresponding mutex is set for each hash value. The device further includes a setting unit, an updating unit, and a storage unit.
[0080] If the judging unit 31 determines that there is no target entry in the hash table that matches the target hash value, the setting unit is configured to set a target alarm sequence identifier corresponding to the target hash value as the first mark and store the target hash value and the first mark in the hash table.
[0081] The processing unit 32 is used to obtain the mutex corresponding to the target hash value, process the target alarm, and obtain processed target alarm data;
[0082] The updating unit is configured to generate a second flag corresponding to the target alarm based on a preset algorithm, and modify the value of the target alarm sequence identifier in the target table entry from the first flag to the second flag;
[0083] The storage unit is used to store the corresponding relationship between the target alarm data and the target alarm sequence identifier in an alarm database.
[0084] Optionally, if the judging unit 31 determines that the target alarm sequence identifier is the first mark, the judging unit 31 is further configured to periodically perform an operation of judging whether the target alarm sequence identifier is the first mark;
[0085] When the judgment unit 31 determines that the target alarm sequence identifier is not the first mark, the processing unit 32 is used to obtain the mutex lock corresponding to the target hash value and process the target alarm, and the storage unit is used to store the correspondence between the alarm data of the target alarm and the target alarm sequence identifier in the alarm database.
[0086] Optionally, when calculating the target hash value of the received target alarm, the calculation unit 30 is specifically configured to:
[0087] Based on the alarm key information of the target alarm, a target hash value of the target alarm is calculated.
[0088] The above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), one or more digital singnal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a unit is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0089] Furthermore, the alarm processing device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the alarm processing device can be found in Figure 4 As shown, the alarm processing device may include: a memory 40 and a processor 41,
[0090] The memory 40 is used to store program instructions. The processor 41 calls the program instructions stored in the memory 40 and executes the above method embodiment according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.
[0091] Optionally, the present application also provides an alarm processing device, comprising at least one processing element (or chip) for executing the above method embodiment.
[0092] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above method embodiments.
[0093] Here, the machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage media, or a combination thereof.
[0094] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.
[0095] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0096] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0097] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0098] Furthermore, these computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0100] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An alarm processing method, characterized in that: The method comprises: Calculate the target hash value of the received target alarm; Determine whether there is a target table entry that matches the target hash value in the hash table, wherein an entry includes a hash value and an alarm sequence identifier corresponding to the alarm; If it is determined that a target table entry matching the target hash value exists in the hash table, determining whether the target alarm sequence identifier corresponding to the target table entry is a first flag; If it is determined that the target alarm sequence identifier is not the first mark, the target alarm is processed, and the correspondence between the processed alarm data and the target alarm sequence identifier is stored in the alarm database, wherein the alarm database maintains a mapping relationship between each alarm sequence identifier and the corresponding alarm data.
2. The method according to claim 1, wherein A corresponding mutex lock is set for each hash value; the method further includes: If it is determined that there is no target table entry matching the target hash value in the hash table, setting the target alarm sequence identifier corresponding to the target hash value to a first mark, and storing the target hash value and the first mark in the hash table; Obtaining a mutex corresponding to the target hash value, processing the target alarm, and obtaining processed target alarm data; generating a second flag corresponding to the target alarm based on a preset algorithm, and changing the value of the target alarm sequence identifier in the target table entry from the first flag to the second flag; The corresponding relationship between the target alarm data and the target alarm sequence identifier is stored in an alarm database.
3. The method according to claim 1 or 2, wherein: The method further comprises: If it is determined that the target alarm sequence identifier is the first mark, periodically performing an operation of determining whether the target alarm sequence indicates the first mark; When it is determined that the target alarm sequence identifier is not the first mark, the mutex corresponding to the target hash value is acquired, the target alarm is processed, and the correspondence between the alarm data of the target alarm and the target alarm sequence identifier is stored in the alarm database.
4. The method according to claim 1, wherein The steps of calculating the target hash value of the received target alarm include: Based on the alarm key information of the target alarm, a target hash value of the target alarm is calculated.
5. An alarm processing device, characterized in that: The device comprises: A calculation unit, configured to calculate a target hash value of a received target alarm; a determination unit, configured to determine whether there is a target entry in the hash table that matches the target hash value, wherein an entry includes a hash value and an alarm sequence identifier corresponding to the alarm; If the judging unit determines that a target entry matching the target hash value exists in the hash table, the judging unit is further configured to judge whether the target alarm sequence identifier corresponding to the target entry is a first flag; A processing unit, if the judgment unit determines that the target alarm sequence identifier is not the first mark, the processing unit is used to process the target alarm and store the correspondence between the processed alarm data and the target alarm sequence identifier in the alarm database, wherein the alarm database maintains a mapping relationship between each alarm sequence identifier and the corresponding alarm data.
6. The device according to claim 5, characterized in that A corresponding mutex lock is set for each hash value; the device also includes a setting unit, an updating unit and a storage unit: If the judging unit determines that there is no target table entry matching the target hash value in the hash table, the setting unit is configured to set the target alarm sequence identifier corresponding to the target hash value to a first mark, and store the target hash value and the first mark in the hash table; The processing unit is used to obtain the mutex corresponding to the target hash value, process the target alarm, and obtain processed target alarm data; The updating unit is configured to generate a second flag corresponding to the target alarm based on a preset algorithm, and modify the value of the target alarm sequence identifier in the target table entry from the first flag to the second flag; The storage unit is used to store the corresponding relationship between the target alarm data and the target alarm sequence identifier in an alarm database.
7. The device according to claim 5 or 6, characterized in that The device further comprises: If the determination unit determines that the target alarm sequence identifier is the first mark, the determination unit is further configured to periodically perform an operation of determining whether the target alarm sequence identifier is the first mark; When the judgment unit determines that the target alarm sequence identifier is not the first mark, the processing unit is used to obtain the mutex lock corresponding to the target hash value and process the target alarm, and the storage unit is used to store the correspondence between the alarm data of the target alarm and the target alarm sequence identifier in the alarm database.
8. The device according to claim 5, wherein When calculating the target hash value of the received target alarm, the calculation unit is specifically used to: Based on the alarm key information of the target alarm, a target hash value of the target alarm is calculated.
9. An alarm processing device, characterized in that: The alarm processing device includes: a memory for storing program instructions; The processor is configured to call the program instructions stored in the memory, and execute the steps of the method according to any one of claims 1 to 4 according to the obtained program instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method for handling database storage of alarm information of network management system
CN103595569A
DDoS attack determination method and device
CN109889550A