Alarm method and device, electronic equipment, storage medium and program product

By receiving a new alarm message and determining a processing method based on its positional relationship with the target queue, the problem of excessive redundant data in alarm processing in the prior art is solved, and alarm efficiency and timeliness are improved.

CN118802471AActive Publication Date: 2024-10-18LINKZHILIAN (CHONGQING) TECH CO LTD +2

Patent Information

Application Number
CN202410714244.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-18
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

There is too much redundant data in the existing alarm processing methods, which results in a large amount of data processing, reduces alarm efficiency, and affects the timeliness of alarms.

Method used

By receiving new alarm messages and determining the processing method based on its positional relationship with the target queue, the target queue is the data queue corresponding to the target rule, which is used to maintain the priority related to the alarm rules and directly determine the processing method of the new alarm message to avoid one-by-one correlation. Analyze known alarms.

Benefits of technology

It reduces the amount of data processing, improves alarm efficiency and timeliness, and overcomes the problem of too much redundant data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802471A_ABST
    Figure CN118802471A_ABST
Patent Text Reader

Abstract

The invention provides an alarm method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: receiving a new alarm message; determining a processing mode of the new alarm message based on a position relationship between the new alarm message and the target queue; the target queue is a data queue corresponding to the target rule; the target rule is an alarm rule associated with the new alarm message; one data queue is used for sequentially maintaining the priority of alarm messages related to one alarm rule. In conclusion, according to the technical scheme provided by the invention, association analysis with a large number of known alarms is not needed in the alarm processing process, the problem of excessive redundant data is solved, the data processing amount is relatively small, and the alarm efficiency and the alarm timeliness are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to an alarm method, device, electronic device, storage medium and program product. Background Art

[0002] At present, the application scenarios of equipment are very wide, and the real-time and efficient processing of alarm information is particularly important for the maintenance of equipment in certain scenarios. The existing alarm method can perform a large number of association analyses with known alarms at different latitudes when receiving alarm information under the preset association rules to determine the fault information. In this way, there will be too much redundant data in the alarm processing process, a large amount of data processing, which will reduce the alarm efficiency and affect the timeliness of the alarm. Summary of the invention

[0003] The present disclosure provides an alarm method, device, electronic device, storage medium and program product, which are used to solve the problems of excessive redundant data, large data processing volume, reduced alarm efficiency and affected alarm timeliness in the alarm processing process to a certain extent.

[0004] In a first aspect, the present disclosure provides an alarm method, including: receiving a new alarm message; determining a processing method for the new alarm message based on a positional relationship between the new alarm message and a target queue; the target queue is a data queue corresponding to a target rule; the target rule is an alarm rule associated with the new alarm message; a data queue is used to sequentially maintain the priority of an alarm message related to an alarm rule.

[0005] In addition, according to the method of the first aspect of the present disclosure, based on the positional relationship between the new alarm message and the target queue, a processing method for the new alarm message is determined, including: comparing the priority of the new alarm message with the first message; the first message is the highest priority alarm message in the target queue; when the priority of the new alarm message is higher than the priority of the first message, adding the new alarm message to the head of the target queue; when the priority of the new alarm message is not higher than the priority of the first message, discarding the new alarm message.

[0006] In addition, according to the method of the first aspect of the present disclosure, the first message and the new alarm message have the same scope; the scope includes: global or local area.

[0007] In addition, according to the method of the first aspect of the present disclosure, the scope of the first message is global; and the priority of the first message is higher than that of the second message, and the scope of the second message is the same as that of the new alarm message.

[0008] In addition, according to the method of the first aspect of the present disclosure, the data queue includes at least one of the following forms: a stack, a linked list, an array, and a binary tree.

[0009] In addition, according to the method of the first aspect of the present disclosure, the number of target rules is one or more; when there are multiple target rules, the processing method of the new alarm message is determined based on the position relationship between the new alarm message and the target queue, including: traversing each target queue in turn, and determining the processing method of the new alarm message based on the position relationship between the new alarm message and the target queue.

[0010] In addition, according to the method of the first aspect of the present disclosure, the data queue is also used to maintain the alarm number of each alarm message.

[0011] In addition, according to the method of the first aspect of the present disclosure, when the data queue maintains alarm messages of multiple scopes, the method further includes: adjusting the priority of each alarm message in the data queue based on the number of alarms.

[0012] In the second aspect, the present disclosure provides an alarm device, including: a receiving unit for receiving a new alarm message; a determination unit for determining a processing method for the new alarm message based on a positional relationship between the new alarm message and a target queue; the target queue is a data queue corresponding to a target rule; the target rule is an alarm rule associated with the new alarm message; a data queue is used to sequentially maintain the priority of an alarm message related to an alarm rule.

[0013] In a third aspect, the present disclosure provides an electronic device, comprising: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the electronic device executes the method as described in any embodiment of the first aspect.

[0014] In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium for storing computer-readable instructions, which, when executed by a processor, causes the processor to execute the method described in any embodiment of the first aspect.

[0015] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any embodiment of the first aspect.

[0016] The present disclosure provides an alarm method, device, electronic device, storage medium and program product. The present disclosure receives a new alarm message and determines the processing method of the new alarm message according to the positional relationship between the received new alarm message and the target queue. Among them, the target queue is a data queue corresponding to the target rule. The target rule is the alarm rule associated with the new alarm message. A data queue is used to maintain the priority of an alarm message related to an alarm rule. In summary, the technical solution provided by the present disclosure can receive a new alarm message and can determine the associated alarm rule according to the new alarm message. Once the alarm rule is determined, the target queue corresponding to the rule can be found. This queue maintains the alarm message related to the alarm rule in order of priority. The positional relationship between the new alarm message and the target queue means the priority of the new alarm message compared to the alarm messages received by the corresponding alarm rule, so that the processing method of the new alarm message is determined accordingly. In this way, in the process of alarm processing, the processing method of the new alarm information can be determined only according to the maintained target queue. The target queue sequentially maintains the priority of the alarm message of the associated alarm rule. In other words, there is no need to correlate and analyze each alarm message one by one. Instead, the processing method of the new alarm message can be automatically determined based on the position relationship between the target queue that maintains the alarm message priority and the new alarm message. In this way, during the alarm processing process, there is no need to correlate and analyze a large number of known alarms, which overcomes the problem of excessive redundant data, reduces the amount of data processing, and improves the efficiency and timeliness of alarms.

[0017] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 A flowchart of an alarm method provided by an embodiment of the present disclosure;

[0020] Figure 2 A diagram showing the relationship between the alarm message and the alarm rules provided in the embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of determining an alarm message processing method under a stack structure provided in an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of a method for processing a new alarm message by determining multiple target queues provided in an embodiment of the present disclosure;

[0023] Figure 5 A schematic diagram of data queue sorting provided by an embodiment of the present disclosure;

[0024] Figure 6 A flowchart of a preferred complete alarm method provided by an embodiment of the present disclosure;

[0025] Figure 7 A structural block diagram of an alarm device provided in an embodiment of the present disclosure;

[0026] Figure 8 A hardware block diagram of an electronic device provided in an embodiment of the present disclosure;

[0027] Fig. 9 A schematic diagram of a computer-readable storage medium provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0029] At present, the application scenarios of equipment are very extensive, which also puts forward higher requirements for the real-time and efficient processing of alarm information. Especially in certain specific scenarios, the real-time and efficient processing of alarm information is crucial to the timeliness of equipment maintenance. The existing alarm processing method generally performs multi-dimensional and large-scale correlation analysis with known alarms according to preset correlation rules after receiving the alarm information to identify and determine the specific fault information. However, this method leads to the accumulation of redundant data in the alarm processing process, increases the data processing load, and thus reduces the alarm response speed, which may affect the timeliness of the alarm.

[0030] Therefore, the present application proposes an alarm method, which can directly determine whether to issue an alarm based on the position relationship between the new alarm information and the target queue. First, Figure 1 FIG. 1 is a flowchart illustrating an alarm method provided by an embodiment of the present disclosure. Figure 1 As shown, the alarm method according to an embodiment of the present disclosure includes:

[0031] In step S101, a new alarm message is received.

[0032] In the disclosed embodiment, the new alarm message may indicate a certain abnormal situation or potential fault of the current device. The new alarm message may include at least one message such as fault type, occurrence time, fault module, and related device information. The way to receive the new alarm message includes but is not limited to at least one of the following: establishing a thread to listen for reception, calling an application program interface, etc., which is not limited here.

[0033] In step S102, the processing method of the new alarm message is determined based on the position relationship between the new alarm message and the target queue; the target queue is the data queue corresponding to the target rule; the target rule is the alarm rule associated with the new alarm message; a data queue is used to sequentially maintain the priority of alarm messages related to an alarm rule.

[0034] In the embodiments of the present disclosure, the alarm rules may be rules for dividing the alarms according to the alarm causes of the alarm messages, such as: if high temperature causes an alarm, all alarms that cause high temperature may be divided into one alarm rule; if exceeding a threshold causes an alarm, all alarms that exceed the threshold may be divided into one alarm rule; if safety causes an alarm, all alarms that cause safety problems may be divided into one alarm rule. The specific division criteria of the alarm rules are not limited here. For example, Figure 2 As shown, Figure 2 A relationship diagram between alarm messages and alarm rules provided in an embodiment of the present disclosure. Figure 2 It can be seen that there are different association rules (ie, the alarm rules of the present disclosure), and each association rule has multiple alarm information associated with the rule.

[0035] The target rule can be understood as the alarm rule associated with the new alarm message, which can be one or more. For example, if the new alarm message is a temperature overload of a certain component, the alarm rule associated with the new alarm message can be at least one of a high temperature alarm rule and an over-threshold alarm rule.

[0036] The target queue can be the data queue corresponding to the target rule. The data queue can be used to sequentially maintain the priority of the alarm messages related to the rule. The data queue is essentially a sequential priority queue and can be updated in real time. The form of the data queue includes but is not limited to at least one of the following: stack, linked list, array, binary tree. Among them, the stack can be a last-in-first-out data structure, and at least one operation such as push (adding elements to the top of the stack) and pop (removing the top element of the stack) can be performed. The linked list can be used to link data together through pointers or references. The linked list is suitable for scenarios that require dynamic resizing and do not require continuous memory space. The array can be a continuous memory space of fixed size for storing data of the same type. The binary tree can be a tree data structure with a maximum of two child nodes for each node.

[0037] It should be noted that each alarm rule can correspond to a data queue, that is, the alarm rule and the data queue are in a one-to-one correspondence. The data queue can be understood as the priority of the alarm messages received within a period of time, rather than the preset fixed priority of all alarm messages in the alarm rule. That is, the priority order of the data queue is different from the fixed priority setting. The data queue can flexibly adjust the processing order according to the actual alarm messages received.

[0038] The alarm messages in the data queue can be sorted according to the priority order, which can be sorted according to a preset standard or can be customized, which is not limited here. Figure 2 As shown, Figure 2 The alarm information of each association rule (i.e., the alarm rule of the present disclosure) has a priority ranking (i.e., the data queue of the present disclosure). The identifier of the alarm message can indicate the order in which the alarm signal is received, and the data in the brackets of the alarm message can indicate the order of priority. The higher the priority, the higher the impact of the alarm, and it can be processed first.

[0039] The position relationship between the new alarm message and the target queue can be understood as the relative position or priority position of the new alarm message in the target queue.

[0040] The new alarm message may be processed by forwarding the new alarm message to an upper layer device for alarm, or by discarding the new alarm message without alarming, which is not specifically limited here.

[0041] Specifically, when a new alarm message is received, the corresponding target queue can be determined according to the alarm rule associated with the new alarm message (referred to as the target rule). Then, the position of the new alarm message in the target queue can be determined according to the current state of the target queue (i.e., the alarm messages already in the queue and their priorities), and then the processing mode of the new alarm can be determined as issuing an alarm or discarding the alarm.

[0042] In summary, the technical solution provided by the present disclosure can receive new alarm messages and determine the associated alarm rules according to the new alarm messages. Once the alarm rules are determined, the target queue corresponding to the rules can be found. This queue maintains the alarm messages related to the alarm rules in order of priority. According to the positional relationship between the new alarm message and the target queue, it means that the priority of the new alarm message compared to the alarm messages received by the corresponding alarm rule is determined accordingly. In this way, in the process of alarm processing, the processing method of the new alarm information can be determined only according to the maintained target queue. The target queue sequentially maintains the priority of the alarm messages of the associated alarm rules. In other words, it is not necessary to associate and analyze each alarm message one by one, but directly determine the processing method of the new alarm message according to the positional relationship between the target queue that maintains the priority of the alarm information and the new alarm information. In this way, in the process of alarm processing, there is no need to associate and analyze with a large number of known alarms, which overcomes the problem of too much redundant data, and the data processing volume is small, which improves the alarm efficiency and the timeliness of the alarm.

[0043] As follows, it will be specifically described how to determine the processing method of the new alarm message according to the position relationship between the new alarm message and the target queue.

[0044] According to an embodiment of the present disclosure, a method for determining a processing method of a new alarm message based on a position relationship between the new alarm message and the target queue includes:

[0045] Compare the priority of the new alarm message with the first message; the first message is the highest priority alarm message in the target queue;

[0046] When the priority of the new alarm message is higher than the priority of the first message, the new alarm message is added to the head of the target queue;

[0047] When the priority of the new alarm message is not higher than the priority of the first message, the new alarm message is discarded.

[0048] In the embodiment of the present disclosure, the priority may be sorted according to a preset standard or may be a custom setting, which is not limited here.

[0049] Specifically, the new alarm message can be parsed to obtain key information including the alarm level (priority) and the like. According to the alarm rule associated with the new alarm message, the corresponding target queue is determined. The highest priority alarm message (i.e., the first message) is obtained from the target queue. The priority of the new alarm message is compared with the priority of the first message. If the priority of the new alarm message is higher than that of the first message, the new alarm message can be added to the head of the target queue, that is, the alarm can be issued in the order of the queue, which means that the newly added alarm will immediately trigger the alarm action and be processed in sequence according to the priority order of the alarms in the queue; the new alarm message can also be added to the head of the target queue (only to maintain the priority of the alarm message in the target queue, and the alarm is not triggered immediately), and then the alarm is processed as needed. If the priority of the new alarm message is not higher than that of the first message, the new alarm message can be discarded.

[0050] For example, Figure 3 As shown, Figure 3 A schematic diagram of determining an alarm message processing method under a stack structure provided in an embodiment of the present disclosure. Figure 3 In the method, a stack can be used to save the received alarms (i.e., an alarm message of an alarm rule is saved through a stack, and this alarm stack is the data queue or target queue of the present disclosure), and the alarm priority from the bottom of the stack to the top of the stack (i.e., the priority of the alarm messages related to the alarm rule is sorted) increases. When a new alarm is received, the priority is first compared with the alarm at the top of the stack (i.e., the first message of the present disclosure). Only when the priority is not less than the top of the stack (i.e., the priority of the new alarm message of the present disclosure is higher than the priority of the first message), the new alarm is pushed onto the stack and the alarm is issued. Otherwise (i.e., the priority of the new alarm message of the present disclosure is not higher than the priority of the first message), it indicates that the alarm should be discarded under the rule. In the stack, when an alarm is cleared or needs to be discarded, the corresponding alarm can also be deleted from the saved stack (i.e., the target queue of the present disclosure).

[0051] As described above, the position relationship between the new alarm message and the target queue can be used to efficiently determine the processing method of the new alarm message.

[0052] As follows, in an embodiment of the present disclosure, the effective area of ​​the alarm message may be further considered in the target queue, and then the processing method of the new alarm message may be determined according to the priority of the first message of the target queue and the priority of the new alarm message.

[0053] According to the embodiment of the present disclosure, the scope of the first message is the same as that of the new alarm message; the scope includes: global or local area.

[0054] In the embodiments of the present disclosure, the scope includes global or local areas. Among them, the scope can be understood as the scope of action (i.e., the scope of influence) of the alarm message. The scope can be global, indicating that the alarm message affects the entire system or the entire scene; or it can be a local area, indicating that the alarm message only affects a specific area in the system or scene. Exemplarily, when the system or scene only includes terminal devices, since the terminal device receives alarms from the hardware domain and the software domain, each alarm has a different scope. When encountering an abnormal event, an alarm can represent a global fault (i.e., the scope of the alarm message of the present disclosure is global), and it can also be a fault of a certain functional module (i.e., the scope of the alarm message of the present disclosure is a local area). The functional module can be divided into at least one module such as a service quality module, a traffic quality module, a network quality module, a status module, a central processing unit (CPU) utilization rate module, and a fan temperature.

[0055] If the scope of the first message (i.e., the highest priority message of the target queue) is the same as the scope of the new alarm message, the processing method of the new alarm message can be determined based on the comparison between the priority of the new alarm message and the priority of the first message. This may lead to the following situations:

[0056] When the scope of the new alarm message is a local area, the scope of the first message can be a local area of ​​the same area or a global area. In this way, the processing method of the new alarm message can be determined based on the comparison between the priority of the first message and the priority of the new alarm message.

[0057] When the scope of the new alarm message is global, the scope of the first message can only be global, so that the scope can be the same. The processing method of the new alarm message is determined based on the comparison of the priority of the first message with the priority of the new alarm message.

[0058] In summary, when the scope of the first message is global, it can be processed preferentially. If the scope of the first message is global, regardless of the scope of the new alarm message, the priority of the first message can be directly compared with the priority of the new alarm message.

[0059] According to the embodiment of the present disclosure, the scope of the first message is global; and the priority of the first message is higher than that of the second message, and the scope of the second message is the same as that of the new alarm message.

[0060] In the disclosed embodiment, if the scope of the first message is global, it means that it affects the entire system or the entire scenario. In this case, any new alarm message, regardless of its scope, can be directly compared with its priority. Since the priority of the first message is known to be higher than the second message (a new alarm with the same scope), this means that the global message has the highest priority processing right. Even if the new alarm has the same scope as the second message, its processing will be after the global message processing.

[0061] The above specifically describes how to determine the processing method of the new alarm message by using the position relationship between a target queue corresponding to a target rule and the new alarm message. The target rule corresponding to the new alarm message may be one or more.

[0062] As follows, when there are multiple target rules, a method for determining a processing method of a new alarm message based on a position relationship between the new alarm message and the target queue includes:

[0063] Each target queue is traversed in turn, and based on the position relationship between the new alarm message and the target queue, a processing method of the new alarm message is determined.

[0064] In the disclosed embodiment, when there are multiple target rules, multiple target queues may be corresponding. Each target queue may have different scopes, that is, multiple target queues of different scopes are formed by queuing independently for different scopes. When there are multiple target rules, a merged target merge queue may also be corresponding, and multiple target queues of different scopes may be merged into one target merge queue.

[0065] Specifically, when there are multiple target queues, each individual target queue can be traversed in turn, and the position of the new alarm message in the target queue can be determined based on the current state of each target queue (i.e., the alarm messages already in the queue and their priorities), and the processing method of the new alarm message can be determined. When there are multiple target queues, the target merged queue (a merged target queue) that is a combination of multiple target queues can also be directly traversed, and the position of the new alarm message in the target queue can be determined based on the current state of the target queue (i.e., the alarm messages already in the queue and their priorities), and the processing method of the new alarm message can be determined. The method for determining the processing method of the new alarm message based on the positional relationship between the new alarm message and the target queue has been described above and will not be repeated here.

[0066] For example, Figure 4 As shown, Figure 4 A schematic diagram of a method for determining a new alarm message processing method for multiple target queues provided in an embodiment of the present disclosure. Figure 4The target queue is represented in the form of a stack, and the function module A, the function module B and the function module C can be understood as the target queues corresponding to the multiple target rules of the present disclosure, and the alarm merging stack can be understood as the target merged queue merged by the multiple target queues of the present disclosure.

[0067] Specifically, Figure 4 Different color blocks represent alarms with different scopes (i.e., the target queue of the present disclosure). The merged stack already contains an alarm stack that can describe the current association status of each functional module. For example, the functional module A, B, and C sub-stacks extended from the merged stack (i.e., a merged target queue of the present disclosure) in the figure are marked with blocks of corresponding colors to indicate the effective scope of each sub-stack in the merged stack. The alarm ID indicates the order in which the alarms are received, and the numbers in brackets represent the priority of the alarms. Although the merged stack cannot guarantee a monotonically increasing priority from the bottom of the stack to the top of the stack, each of its sub-stacks can guarantee its monotonicity.

[0068] When determining the processing method of the new alarm information under multiple target rules, each functional module (i.e., the target queue of the present disclosure) can be traversed in turn, and the processing method of the new alarm message can be determined according to the position of the new alarm message in the target queue. Alternatively, the alarm merge stack (a merged target queue) can be traversed, and the processing method of the new alarm message can be determined according to the position of the new alarm message in the target queue.

[0069] On the basis of any of the foregoing embodiments, further, the data queue of the present disclosure may also be used to maintain the alarm times of each alarm message.

[0070] In the disclosed embodiment, the data queue is updated in real time and can be used to maintain the alarm count of each alarm message. Specifically, when a new alarm message is received, it can be checked whether the message already exists in the data queue. If it does, the alarm count of the message is increased; if it does not, the message is added to the data queue and the alarm count is set to 1. The method for adding a message to the data queue can be to determine the position in the data queue according to a preset priority order and add it. The specific number change rules are not limited here.

[0071] When the data queue maintains the alarm number of each alarm message and the data queue maintains alarm messages of multiple scopes, the method for determining the queue priority according to an embodiment of the present disclosure includes:

[0072] Based on the number of alarms, the priority of each alarm message in the data queue is adjusted.

[0073] In the implementation of the present disclosure, the data queue is essentially a sequential priority queue. When the data queue is used to maintain the alarm times of each alarm message, the priority order of each alarm message with different scopes and the same priority can be adjusted according to the alarm times. Specifically, for any two alarm messages with different scopes and the same priority, the alarm message with a higher alarm times will be ranked higher in the data queue. In layman's terms, when the alarm messages have different scopes and the same priority, the one with a higher alarm times will be ranked higher. The specific adjustment method is not limited here.

[0074] For example, Figure 5 As shown, Figure 5 A schematic diagram of data queue sorting provided for an embodiment of the present disclosure. Figure 5 The data queue is represented in the form of a stack, which can maintain the alarm number of each alarm message. When the scopes of the alarm messages are different and the priorities are the same, the priority can be adjusted by the alarm number. The higher the alarm number, the higher the priority of the data queue.

[0075] For example, Figure 6 A flowchart of a preferred complete alarm method provided by an embodiment of the present disclosure. Figure 6 In , the data queue is represented in the form of a stack. Figure 6 As shown, the complete alarm method according to the embodiment of the present disclosure includes:

[0076] First, when an alarm message is received, all rule sets (i.e., target rules of the present disclosure) involved in the alarm message can be determined. Enter a rule and traverse the saved alarm priority stack (i.e., target queue of the present disclosure) from the top of the stack to the bottom of the stack.

[0077] Next, when the current stack node visited by the traversal is the bottom of the stack, it means that there is no alarm in the stack that intersects with it. Through this rule, the next rule screening is entered (which is equivalent to directly entering the traversal of the next target queue if the node visited by the traversal is the alarm information with the lowest priority).

[0078] Then, when it is determined that the currently traversed access stack node is a global alarm (i.e., the first message of the present disclosure is global) or acts on the same functional module as the received alarm (i.e., the first message of the present disclosure has the same scope as the new alarm message), the following judgment steps can be performed: when the priority of the received alarm is higher than or equal to the priority of the stack node, the rule is passed and the next rule is screened; when the priority of the received alarm is lower than the priority of the stack node, it indicates that the rule has not been passed, the alarm is discarded, and the process ends.

[0079] Furthermore, it should be noted that when the scope of the currently received alarm is global and the priority is lower than the current stack node, since the global alarm intersects (i.e., repeats) with alarms in all scopes, this means that the rule is not passed, the alarm is discarded, and the process ends.

[0080] Finally, if the constraints in the above rules are not met, continue to traverse the rules corresponding to the alarm information (ie, the target rules of the present disclosure). When all rules are passed, the alarm is updated to the top of the stack of all rules, and the alarm is received and reported to the upper layer for processing.

[0081] The present disclosure also provides an alarm device. Figure 7 A structural block diagram of an alarm device provided in an embodiment of the present disclosure, such as Figure 7 As shown, the alarm device 700 includes:

[0082] The receiving unit 701 is used to receive a new alarm message.

[0083] Determination unit 702 is used to determine the processing method of the new alarm message based on the position relationship between the new alarm message and the target queue; the target queue is the data queue corresponding to the target rule; the target rule is the alarm rule associated with the new alarm message; a data queue is used to sequentially maintain the priority of alarm messages related to an alarm rule.

[0084] In an exemplary embodiment, a processing method for the new alarm message is determined based on the positional relationship between the new alarm message and the target queue, including: comparing the priority of the new alarm message with the first message; the first message is the highest priority alarm message in the target queue; when the priority of the new alarm message is higher than the priority of the first message, adding the new alarm message to the head of the target queue; when the priority of the new alarm message is not higher than the priority of the first message, discarding the new alarm message.

[0085] In an exemplary embodiment, the first message and the new alarm message have the same scope; the scope includes: global or local area.

[0086] In an exemplary embodiment, the scope of the first message is global; and the priority of the first message is higher than that of the second message, and the scope of the second message is the same as that of the new alarm message.

[0087] In an exemplary embodiment, the data queue includes at least one of the following forms: a stack, a linked list, an array, and a binary tree.

[0088] In an exemplary embodiment, the number of target rules is one or more; when there are multiple target rules, the processing method of the new alarm message is determined based on the position relationship between the new alarm message and the target queue, including: traversing each target queue in turn, and determining the processing method of the new alarm message based on the position relationship between the new alarm message and the target queue.

[0089] In an exemplary embodiment, the data queue is also used to maintain the alarm times of each alarm message.

[0090] In an exemplary embodiment, when the data queue maintains alarm messages of multiple scopes, the method further includes: adjusting the priority of each alarm message in the data queue based on the number of alarms.

[0091] Figure 8 A hardware block diagram of an electronic device provided in an embodiment of the present disclosure. The electronic device 800 according to an embodiment of the present disclosure includes at least a processor; and a memory for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the alarm method described in any of the above embodiments of the present disclosure.

[0092] Figure 8 The electronic device 800 shown specifically includes: a central processing unit (CPU) 801, a graphics processing unit (GPU) 802 and a memory 803. These units are interconnected via a bus 804. The central processing unit (CPU) 801 and / or the graphics processing unit (GPU) 802 can be used as the above-mentioned processor, and the memory 803 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 800 may also include a communication unit 805, a storage unit 806, an output unit 807, an input unit 808 and an external device 809, which are also connected to the bus 804.

[0093] Fig. 9 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure. Fig. 9 As shown, a computer-readable storage medium 900 according to an embodiment of the present disclosure has computer-readable instructions 901 stored thereon. When the computer-readable instructions 901 are executed by the processor, the alarm method described with reference to the above figures according to any of the foregoing embodiments of the present disclosure is executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may, for example, include random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.

[0094] The present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the alarm method described in any of the foregoing embodiments of the present disclosure.

[0095] As mentioned above, the present disclosure provides an alarm method, device, electronic device, storage medium and program product. The present disclosure receives a new alarm message and determines the processing method of the new alarm message according to the positional relationship between the received new alarm message and the target queue. Among them, the target queue is the data queue corresponding to the target rule. The target rule is the alarm rule associated with the new alarm message. A data queue is used to maintain the priority of an alarm message related to an alarm rule. In summary, the technical solution provided by the present disclosure can receive a new alarm message and can determine the associated alarm rule according to the new alarm message. Once the alarm rule is determined, the target queue corresponding to the rule can be found. This queue maintains the alarm message related to the alarm rule in order of priority. The positional relationship between the new alarm message and the target queue means the priority of the new alarm message compared to the alarm messages received by the corresponding alarm rule, so that the processing method of the new alarm message is determined accordingly. In this way, in the process of alarm processing, the processing method of the new alarm information can be determined only according to the maintained target queue. The target queue sequentially maintains the priority of the alarm message of the associated alarm rule. In other words, there is no need to correlate and analyze each alarm message one by one. Instead, the processing method of the new alarm message can be automatically determined based on the position relationship between the target queue that maintains the alarm message priority and the new alarm message. In this way, during the alarm processing process, there is no need to correlate and analyze a large number of known alarms, which overcomes the problem of excessive redundant data, reduces the amount of data processing, and improves the efficiency and timeliness of alarms.

[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 be beyond the scope of this disclosure.

[0097] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0098] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0099] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0100] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0101] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0102] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0103] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. An alarm method, It is characterized in that The method comprises: Receive new alarm messages; Based on the positional relationship between the new alarm message and the target queue, determine the processing method of the new alarm message; the target queue is the data queue corresponding to the target rule; the target rule is the alarm rule associated with the new alarm message; one of the data queues is used to sequentially maintain the priority of an alarm message related to the alarm rule.

2. The method according to claim 1, It is characterized in that The determining, based on the position relationship between the new alarm message and the target queue, a processing method of the new alarm message includes: Comparing the priority of the new alarm message with the first message; the first message is the highest priority alarm message in the target queue; When the priority of the new alarm message is higher than the priority of the first message, adding the new alarm message to the head of the target queue; When the priority of the new alarm message is not higher than the priority of the first message, the new alarm message is discarded.

3. The method according to claim 2, It is characterized in that The first message and the new alarm message have the same scope; the scope includes: global or local area.

4. The method according to claim 2, It is characterized in that The scope of the first message is global; and the priority of the first message is higher than that of the second message, and the scope of the second message is the same as that of the new alarm message.

5. The method according to any one of claims 1 to 5, It is characterized in that The data queue includes at least one of the following forms: a stack, a linked list, an array, and a binary tree.

6. The method according to any one of claims 1 to 5, It is characterized in that The number of the target rules is one or more; When there are multiple target rules, determining the processing method of the new alarm message based on the position relationship between the new alarm message and the target queue includes: Each target queue is traversed in turn, and based on the position relationship between the new alarm message and the target queue, a processing method of the new alarm message is determined.

7. The method according to any one of claims 1 to 6, It is characterized in that The data queue is also used to maintain the alarm times of each alarm message.

8. The method according to claim 7, It is characterized in that When the data queue maintains alarm messages of multiple scopes, the method further includes: Based on the number of alarms, the priority of each alarm message in the data queue is adjusted.

9. An alarm device, It is characterized in that The device comprises: A receiving unit, used for receiving a new alarm message; A determination unit, used to determine the processing method of the new alarm message based on the position relationship between the new alarm message and the target queue; the target queue is a data queue corresponding to the target rule; the target rule is the alarm rule associated with the new alarm message; one of the data queues is used to sequentially maintain the priority of an alarm message related to the alarm rule.

10. An electronic device, It is characterized in that include: a memory for storing computer readable instructions; as well as A processor is used to run the computer-readable instructions so that the electronic device executes the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium for storing computer-readable instructions, It is characterized in that When the computer-readable instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 8.

12. A computer program product, It is characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 8 when the computer program is executed by a processor.

Citation Information

Patent Citations

  • Alarm data processing method and device based on Internet of Things terminal, terminal and medium

    CN115955387A

  • Method and device for dynamically and intelligently sequencing priorities of police positioning equipment

    CN116244485A

  • Alarm data processing method and system, electronic equipment and storage medium

    CN117608983A

  • Progressive caching of filter rules

    US20230236978A1

Cited By

  • Alarm control method and device of baseboard management controller

    CN121116762A

  • Alarm control method and device of baseboard management controller

    CN121116762B