An alarm method and device, electronic equipment, storage medium and program product

CN118802471BActive Publication Date: 2025-12-09LINKZHILIAN (CHONGQING) TECH CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing alarm methods suffer from excessive redundant data and large data processing volume during the processing, resulting in low alarm efficiency and affecting timeliness.

Method used

By receiving new alarm messages and determining their positional relationship with the target queue, the processing method for new alarm messages is determined. The priority of alarm messages is maintained by the order of the target queue, which directly determines the processing method for new alarm messages, avoiding redundant correlation analysis.

Benefits of technology

It reduced the amount of data processing, improved alarm efficiency and timeliness, and optimized the alarm handling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802471B_ABST
    Figure CN118802471B_ABST
Patent Text Reader

Abstract

The present disclosure provides an alarm method, device, electronic equipment, storage medium and program product. The present disclosure receives a new alarm message; determines the processing mode of the new alarm message based on the 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; one data queue is used to sequentially maintain the priority of the alarm messages related to one alarm rule. In summary, the technical solution provided by the present disclosure can overcome the problem of excessive redundant data in the alarm processing process without the need for association analysis with a large number of known alarms, thereby reducing the amount of data processing, improving the alarm efficiency and timeliness of the alarm.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to an alarm method and device, electronic equipment, storage medium and program product. BACKGROUND

[0002] At present, the application scenarios of devices are very extensive, and real-time and efficient processing of alarm information is particularly important for the maintenance of devices in some scenarios. The existing alarm method can be that when receiving an alarm information under a preset association rule, a large number of association analyses of different latitudes are performed on the known alarms, so as to determine the fault information. In this way, too much redundant data in the alarm processing process, large data processing amount, and low alarm efficiency will affect the timeliness of the alarm. SUMMARY

[0003] The present disclosure provides an alarm method and device, electronic equipment, storage medium and program product, which can solve the problem of too much redundant data in the alarm processing process, large data processing amount, low alarm efficiency and the influence on the timeliness of the alarm to a certain extent.

[0004] In a first aspect, the present disclosure provides an alarm method, comprising: 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 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; and one data queue is used to sequentially maintain the priority of the alarm message related to one alarm rule.

[0005] In addition, according to the method of the first aspect of the present disclosure, the processing mode of the new alarm message is determined based on the position relationship between the new alarm message and the target queue, comprising: comparing the priority of the new alarm message with that of a 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 that of the first message, the new alarm message is added to the head of the target queue; and when the priority of the new alarm message is not higher than that of the first message, the new alarm message is discarded.

[0006] In addition, according to the method of the first aspect of the present disclosure, the scope of the first message and the new alarm message is the same; 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 a second message, and the scope of the second message and the new alarm message is the same.

[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: stack, linked list, array and 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 the target rules are multiple, the processing manner of the new alarm message is determined based on the positional relationship between the new alarm message and the target queue, including: sequentially traversing each target queue, and determining the processing manner of the new alarm message based on the positional 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 times 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 alarm times.

[0012] In the second aspect, the present disclosure provides an alarm device, including: a receiving unit configured to receive a new alarm message; a determining unit configured to determine a processing manner of 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; and one data queue is used to sequentially maintain the priority of an alarm message related to one alarm rule.

[0013] In the third aspect, the present disclosure provides an electronic device, including: a memory configured to store computer readable instructions; and a processor configured to run the computer readable instructions, so that the electronic device executes the method according to any one of the embodiments of the first aspect.

[0014] In the fourth aspect, the present disclosure provides a non-transitory computer readable storage medium, configured to store computer readable instructions, when the computer readable instructions are executed by a processor, the processor executes the method according to any one of the embodiments of the first aspect.

[0015] In the fifth aspect, the present disclosure provides a computer program product, including a computer program, when the computer program is executed by a processor, the method according to any one of the embodiments of the first aspect is implemented.

[0016] The present disclosure provides an alarm method, device, electronic equipment, storage medium and program product. The present disclosure receives a new alarm message, and determines a processing manner of the new alarm message according to a position relationship between the received 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. One data queue is used to maintain the priority of the alarm messages related to one 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. The queue maintains the alarm messages related to the alarm rule in order of priority. The position relationship between the new alarm message and the target queue means that the priority of the new alarm message compared to the alarm messages received by the alarm rule, and thus the processing manner of the new alarm message is determined accordingly. In this way, in the alarm processing process, the processing method of the new alarm information can be determined according to the maintained target queue. The target queue is used to maintain the priority of the alarm messages related to the associated alarm rule. In other words, instead of associating and analyzing each alarm message one by one, the processing manner of the new alarm message can be automatically determined according to the position relationship between the target queue maintaining the priority of the alarm information and the new alarm information. In the alarm processing process, there is no need to associate and analyze a large number of known alarms, the problem of excessive redundant data is overcome, the data processing amount is small, and the alarm efficiency and timeliness are improved.

[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 subject technology claimed. BRIEF DESCRIPTION OF DRAWINGS

[0018] The foregoing and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description, which proceeds with reference to the accompanying drawings. The accompanying drawings are provided to assist in understanding the present disclosure and constitute a part of the specification, together with the detailed description, to explain the present disclosure and, like reference numerals refer to like elements throughout. In the drawings:

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

[0020] Figure 2 A relationship diagram between an alarm message and an alarm rule provided by an embodiment of the present disclosure;

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

[0022] Figure 4 A schematic diagram of determining a new alarm message processing manner by multiple target queues provided by an embodiment of the present disclosure is provided.

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

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

[0025] Figure 7 A structural block diagram of an alarm device provided by an embodiment of the present disclosure is provided.

[0026] Figure 8 A hardware block diagram of an electronic device provided by an embodiment of the present disclosure is provided.

[0027] Figure 9 A schematic diagram of a computer readable storage medium provided by an embodiment of the present disclosure is provided. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present disclosure more apparent, the following will describe example embodiments according to the present disclosure in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a 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 by the example embodiments described herein.

[0029] At present, device application scenarios are very extensive, which also puts forward higher requirements for real-time and efficient processing of alarm information. Especially in some specific scenarios, real-time and efficient processing of alarm information is crucial for the timeliness of device maintenance. The existing alarm processing method generally performs multi-dimensional and large-scale correlation analysis according to the preset correlation rules and known alarms after receiving the alarm information, to identify and determine the specific fault information. However, this method leads to 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 perform alarm according to the positional relationship between the new alarm information and the target queue. First, Figure 1 is a flowchart of an alarm method provided by an embodiment of the present disclosure. As Figure 1 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 embodiments of the present disclosure, the new alarm message can represent the occurrence of a certain abnormal situation or potential failure of the device at present. The new alarm message can include at least one of the following: a failure type, a time of occurrence, a failure module, and related device information. The way of receiving the new alarm message includes, but is not limited to, at least one of the following: thread monitoring and receiving, application program interface calling, and the like, without limitation.

[0033] In step S102, a processing mode of the new alarm message is determined 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. One data queue is used to sequentially maintain the priority of the alarm messages related to one alarm rule.

[0034] In the embodiments of the present disclosure, the alarm rule can be a rule divided according to the alarm reason of the alarm message, for example, all alarms caused by high temperature can be divided into one alarm rule, all alarms exceeding a threshold value can be divided into one alarm rule, and all alarms caused by safety problems can be divided into one alarm rule. The specific division standard of the alarm rule is not limited herein. For example, as shown in FIG. 1, Figure 2 Figure 2 a relationship diagram between the alarm message and the alarm rule provided by the embodiments of the present disclosure is provided. Figure 2 It can be seen that there are different association rules (i.e., the alarm rules of the present disclosure), and each association rule has a plurality of alarm information associated with the rule.

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

[0036] The target queue can be a 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: a stack, a linked list, an array, and a binary tree. The stack can be a last-in first-out data structure and can perform at least one of the following operations: stack pushing (adding an element at the top of the stack) and stack popping (removing an element at the top of the stack). The linked list can be a data structure in which data is linked together through a pointer or a reference. The linked list is suitable for scenarios that need to be dynamically adjusted in size and does not require continuous memory space. The array can be a fixed-size continuous memory space used to store data of the same type. The binary tree can be a tree-shaped data structure in which each node has at most two child nodes.

[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 dynamically maintaining the priority of the received alarm message in a period of time, rather than the 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, and the data queue can flexibly adjust the processing order according to the actual received alarm message.

[0038] The alarm messages in the data queue can be sorted according to the priority order. The priority order can be sorted according to the preset standard or be self-defined, which is not limited here. For example, as shown in the above Figure 2 , Figure 2 Each association rule (that is, the alarm rule of the present disclosure) has alarm information with priority order (that is, the data queue of the present disclosure). The identification of the alarm message can represent the order of receiving the alarm signal, and the data in the brackets of the alarm message can represent the order of the priority. The higher the priority, the higher the impact of the alarm, which 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 the priority position of the new alarm message in the target queue.

[0040] The processing mode of the new alarm message can be to forward the new alarm message to the upper device for alarm, or to determine to discard the new alarm message and not to alarm, 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 (denoted as the target rule) associated with the new alarm message. Then, the position of the new alarm message in the target queue can be determined according to the current state of the target queue (that is, the alarm message and its priority already in the queue), and the processing mode of the new alarm is determined to be alarm or discard alarm.

[0042] In summary, the technical solution provided by the present disclosure can receive a new alarm message and determine an associated alarm rule according to the new alarm message. Once the alarm rule is determined, a target queue corresponding to the rule can be found. The queue maintains alarm messages related to the alarm rule in order of priority. According to the positional relationship between the new alarm message and the target queue, the priority of the new alarm message relative to the alarm rule is determined, and the processing method of the new alarm message is determined accordingly. In this way, in the alarm processing process, the processing method of the new alarm message can be determined according to the target queue. The target queue maintains the priority of the alarm messages associated with the alarm rule in order. In other words, instead of associating and analyzing each alarm message one by one, the processing method of the new alarm message can be determined directly according to the positional relationship between the target queue that maintains the priority of the alarm message and the new alarm message. In this way, in the alarm processing process, there is no need to associate 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 the alarm.

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

[0044] The method for determining the processing method of the new alarm message according to the positional relationship between the new alarm message and the target queue according to the embodiment of the present disclosure includes:

[0045] Comparing the priority of the new alarm message with the priority of 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 can be sorted according to a preset standard or can be self-defined, which is not limited here.

[0049] Specifically, the new alarm message can be parsed to obtain key information including alarm level (priority), etc. According to the alarm rule associated with the new alarm message, the corresponding target queue is determined. The alarm message with the highest priority (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 the priority of the first message, the new alarm message can be added to the head of the target queue, i.e. the alarm can be performed according to the queue order, which means that the newly added alarm will trigger the alarm action immediately, and the alarms in the queue are processed in the order of priority; or the new alarm message can 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 processing is performed according to the need. If the priority of the new alarm message is not higher than the priority of the first message, the new alarm message can be discarded.

[0050] As shown in the examples, Figure 3 Figure 3 The schematic diagram for determining the alarm message processing mode under the stack structure provided by the embodiments of the present disclosure. Figure 3 In the embodiments, the received alarms can be saved by a stack (i.e. the alarms of an alarm rule are saved by a stack, and the alarm stack is the data queue or the target queue of the present disclosure), and the priority of the alarms from the bottom to the top of the stack (i.e. the priority of the alarm messages related to the alarm rule is sorted) is increasing. When a new alarm is received, the priority is compared with the alarm at the top of the stack (i.e. the first message of the present disclosure), and only when the priority is not less than the top (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 to the stack to perform the alarm. 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 a certain alarm is cleared or needs to be discarded, the corresponding alarm in the saved stack (i.e. the target queue of the present disclosure) can also be deleted.

[0051] Therefore, the position relationship between the new alarm message and the target queue can be used to efficiently determine the processing mode of the new alarm message.

[0052] In the embodiments of the present disclosure, the action area of the alarm message in the target queue can be further considered, and then the processing mode of the new alarm message is determined according to the priority of the first message of the target queue and the priority of the new alarm message.

[0053] The scope of the first message and the new alarm message is the same according to the embodiments of the present disclosure; the scope includes: global or local area.

[0054] ​In the embodiments of the present disclosure, the scope includes a global or local area. The scope can be understood as the scope (i.e. the impact range) of the alarm message. The scope can be global, indicating that the alarm message affects the entire system or the entire scene; or local area, indicating that the alarm message only affects a certain specific area in the system or scene. For example, when the system or scene only includes terminal devices, since the terminal devices accept alarms of hardware domains and software domains, each alarm has a different scope. When an abnormal event occurs, one alarm can represent a global failure (i.e. the scope of the alarm message of the present disclosure is global), and another alarm can represent a failure of a certain functional module (i.e. the scope of the alarm message of the present disclosure is a local area), which can include at least one of a service quality module, a traffic quality module, a network quality module, a state module, a central processing unit (CPU) usage rate module, and a fan temperature.

[0055] When 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 manner of the new alarm message can be determined according to the comparison of the priority of the new alarm message and the priority of the first message, which can result in the following cases:

[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 global. In this way, the processing manner of the new alarm message can be determined according to the comparison of 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 is the same, and the processing manner of the new alarm message can be determined according to the comparison of the priority of the first message and the priority of the new alarm message.

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

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

[0060] In the embodiments of the present disclosure, if the scope of the first message is global, it means that it affects the entire system or the entire scene. In this case, any new alarm message can be directly compared with its priority regardless of its scope. Since the priority of the first message is known to be higher than that of the second message (and the same scope as the new alarm), it means that the global message has the highest priority for processing. The new alarm will be processed after the global message even if it has the same scope as the second message.

[0061] The above specifically illustrates how to determine the processing manner of the new alarm message by using the positional relationship between the new alarm message and the target queue corresponding to the target rule. The target rule corresponding to the new alarm message can be one or more.

[0062] The following specifically illustrates the method for determining the processing manner of the new alarm message based on the positional relationship between the new alarm message and the target queue when the target rule is multiple, which includes:

[0063] The target queues are sequentially traversed, and the processing manner of the new alarm message is determined based on the positional relationship between the new alarm message and the target queue.

[0064] In the embodiments of the present disclosure, when the target rule is multiple, multiple target queues can be corresponded. Each target queue can have a different scope, that is, multiple target queues of different scopes are independently queued for different scopes. When the target rule is multiple, a merged target queue can also be corresponded, and multiple target queues of different scopes are merged into one target queue.

[0065] Specifically, when the target queue is multiple, each individual target queue can be sequentially traversed, and the position of the new alarm message in the target queue is determined according to the current state of each target queue (i.e., the alarm messages and their priorities already in the queue), and the processing manner of the new alarm message is determined. When the target queue is multiple, the target queue can also be directly traversed (one merged target queue), and the position of the new alarm message in the target queue is determined according to the current state of the target queue (i.e., the alarm messages and their priorities already in the queue), and the processing manner of the new alarm message is determined. The method for determining the processing manner 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, as shown in FIG. 1, Figure 4 Figure 4 FIG. 1 is a schematic diagram of the multiple target queues provided by the embodiments of the present disclosure for determining the processing manner of the new alarm message. Figure 4 ​The target queue is represented in the form of a stack, and the functional module A, the functional module B and the functional module C can be understood as the target queue corresponding to the plurality of target rules of the present disclosure, and the alarm merging stack can be understood as the target merging queue obtained by merging the plurality of target queues of the present disclosure.

[0067] Specifically, Figure 4 In the merging stack, different color blocks represent alarms of different action scopes (i.e., the target queue of the present disclosure), and the merging stack has already implicitly included the alarm stack capable of describing the current association state of each functional module. For example, the functional module A, B and C sub-stacks extended from the merging stack (i.e., the merged target queue of the present disclosure) are marked with color blocks of corresponding colors to indicate the effective range of each sub-stack in the merging stack. The alarm ID indicates the order of receiving the alarm, and the number in the brackets represents the priority of the alarm. Although the merging stack cannot guarantee that the priority is monotonically increasing from the bottom to the top of the stack, each sub-stack of the merging stack can guarantee the monotonicity.

[0068] In the plurality of target rules, when determining the processing mode of the new alarm information, each functional module (i.e., the target queue of the present disclosure) can be traversed in sequence, and the processing mode of the new alarm information can be determined according to the position of the new alarm information in the target queue. Alternatively, the alarm merging stack (a merged target queue) can be traversed, and the processing mode of the new alarm information can be determined according to the position of the new alarm information in the target queue.

[0069] Further based on any one of the foregoing embodiments, the data queue of the present disclosure can also be used to maintain the alarm number of each alarm message.

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

[0071] When the data queue maintains the alarm number of each alarm message and the data queue maintains a plurality of scope alarm messages, the method for determining the queue priority according to the embodiments of the present disclosure includes:

[0072] Adjusting the priority of each alarm message in the data queue based on the alarm number.

[0073] In the embodiments of the present disclosure, the data queue is essentially a sequential priority queue, and the data queue is used to maintain the alarm times of alarm messages, so that the alarm information of different scopes and same priority can be adjusted in priority order according to the alarm times. Specifically, for any two alarm messages of different scopes and same priority, the higher the alarm times of the alarm message, the higher the order in the data queue. In a popular way, when the alarm information is of different scopes and same priority, the alarm message with higher alarm times is ranked in the front. The specific adjustment method is not limited here.

[0074] As shown in Figure 5 , a schematic diagram of data queue ordering provided by the embodiments of the present disclosure is shown. Figure 5 Figure 5 In the embodiments of the present disclosure, the data queue is in the form of a stack, and can maintain the alarm times of alarm messages. When the scopes of the alarm messages are different and the priorities are the same, the priorities can be adjusted according to the alarm times. The higher the alarm times, the higher the priority order in the data queue.

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

[0076] Firstly, when receiving an alarm message, all rule sets (i.e. target rules of the present disclosure) involved in the alarm message can be determined. Entering a certain rule, the alarm priority stack (i.e. target queue of the present disclosure) already saved is traversed from the top of the stack to the bottom of the stack.

[0077] Then, when the current stack node of the traversal access is the bottom of the stack, it is indicated that there is no alarm intersecting with it in the stack, and the next rule is selected (equivalent to if the node of the traversal access is the alarm information of the lowest priority, the next target queue is directly entered for traversal).

[0078] Then, when it is determined that the current traversal access stack node is a global alarm (i.e. the first message of the present disclosure is global) or acts on the same function module as the received alarm (i.e. the scope of the first message is the same as that of 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 next rule is selected; when the priority of the received alarm is lower than the priority of the stack node, it is indicated that the rule is not passed, the alarm is discarded, and the process is ended.

[0079] ​Further, it is noted that when the current received alarm is global and has a lower priority than the current stack node, since the global alarm intersects (i.e. duplicates) all range alarms, it means that the alarm does not pass the rule, the alarm is discarded, and the process ends.

[0080] Finally, if the constraint in the above rule is not met, the alarm information corresponding to the rule (i.e. the target rule of the present disclosure) is continuously traversed. 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 As shown in the structure block diagram of an alarm device provided by an embodiment of the present disclosure, Figure 7 The alarm device 700 includes:

[0082] A receiving unit 701 is configured to receive a new alarm message.

[0083] A determining unit 702 is configured to determine a processing manner of 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; and one data queue is used to sequentially maintain a priority of an alarm message related to one alarm rule.

[0084] In an exemplary embodiment, the determining of the processing manner of the new alarm message based on the positional relationship between the new alarm message and the target queue includes: performing a priority comparison between the new alarm message and a first message; the first message is a 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, the new alarm message is added to a head of the target queue; and when the priority of the new alarm message is not higher than the priority of the first message, the new alarm message is discarded.

[0085] In an exemplary embodiment, the first message and the new alarm message have the same scope; and 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 a second message, and the second message and the new alarm message have the same scope.

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

[0088] In an example embodiment, the number of target rules is one or more; when the target rules are multiple, the processing manner of the new alarm message is determined based on the positional relationship between the new alarm message and the target queue, including: sequentially traversing each target queue, and determining the processing manner of the new alarm message based on the positional relationship between the new alarm message and the target queue.

[0089] In an example embodiment, the data queue is further used to maintain the alarm number of each alarm message.

[0090] In an example 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 alarm number.

[0091] Figure 8 A hardware block diagram of an electronic device is provided for 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 run by the processor, the processor executes the alarm method described in any of the preceding 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 connected to each other through a bus 804. The central processing unit (CPU) 801 and / or the graphics processing unit (GPU) 802 can be used as the processor described above, and the memory 803 can be used as the memory described above for storing computer readable instructions. In addition, the electronic device 800 can further include a communication unit 805, a storage unit 806, an output unit 807, an input unit 808, and an external device 809, and these units are also connected to the bus 804.

[0093] Figure 9 A schematic diagram of a computer readable storage medium is provided for an embodiment of the present disclosure. As shown, the 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 run by a processor, the alarm method according to any of the preceding embodiments of the present disclosure described with reference to the above figures is executed. The computer readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory, etc. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, optical disc, magnetic disc, etc. Figure 9

[0094] ​The present disclosure further provides a computer program product comprising a computer program which, when executed by a processor, implements the alarm method according to any one of the preceding embodiments.

[0095] In summary, 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 manner of the new alarm message according to the positional relationship between the received 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. One data queue is used to maintain the priority of the alarm messages related to one 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 messages related to the alarm rule in order of priority. The positional relationship between the new alarm message and the target queue means that the priority of the new alarm message compared to the alarm messages received by the alarm rule. Therefore, the processing manner of the new alarm message is determined accordingly. In this way, in the alarm processing process, the processing method of the new alarm information can be determined according to the maintained target queue. The target queue is used to maintain the priority of the alarm messages related to the associated alarm rule. In other words, it is not necessary to analyze each alarm message one by one, but the processing manner of the new alarm message can be automatically determined according to the positional relationship between the target queue maintaining the priority of the alarm information and the new alarm information. In the alarm processing process, there is no need to analyze a large number of known alarms, which overcomes the problem of excessive redundant data, reduces the data processing amount, and improves the alarm efficiency and timeliness.

[0096] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.

[0097] The above describes the basic principles of the present disclosure in combination with specific embodiments, but it should be pointed out that the advantages, advantages, effects and the like mentioned in the present disclosure are only examples and not limitations, and these advantages, advantages, effects and the like cannot be considered as the must-have of each embodiment of the present disclosure. In addition, the above specific details are only for the purpose of example and understanding, and the above details do not limit the present disclosure to the above specific details.

[0098] The block diagrams of devices, apparatuses, equipment, systems referred to in the present disclosure are merely illustrative examples and are not intended to require or imply that the connection, arrangement, configuration must be as shown in the block diagrams. These devices, apparatuses, equipment, systems can be connected, arranged, configured in any manner as will be appreciated by those skilled in the art. Words such as "include," "contain," "have," etc. are open-ended words that are to be interpreted to mean "including but not limited to," and are to be interpreted not to exclude other items. The words "or" and "and" as used herein are to be interpreted as the word "and / or," and are to be interpreted not to exclude other items. The word "such as" as used herein is to be interpreted as the phrase "such as but not limited to," and is to be interpreted not to exclude other items.

[0099] Also, as used herein, the term "or" as used in the context of "at least one of A, B, or C" means A or B or C or any combination thereof. Further, the term "example" is used to mean "serving as an example, instance, or illustration," and is not to be construed as preferred or advantageous over other examples. The term "include" is used to mean "comprise or consist of, whether or not associated with the term "including."

[0100] It is also important to note that the systems and methods of the present disclosure can be embodied in a variety of forms including, but not limited to, a data processor, a computer program product, a computer, one or more tangible computer readable storage devices, one or more computer-implemented methods, information, or a bit of information. Additionally, the systems and methods of the present disclosure can be embodied as one or more computers or computer-implements methods that can be used in a networked environment.

[0101] Various changes, modifications and improvements in the herein described technologies can be made within the teachings of the technology, particularly in light of the above teachings. It is therefore intended that the here disclosed technology not be limited to the particular composition, means, methods and / or acts described as the application can be practiced with variations within the scope of the technology. Also, the language used in this specification should not be limited to the specific examples described herein, but rather should be construed to cover any alternatives that fall within the scope of the technology as defined by the appended claims. Accordingly, the application is not limited to that precisely as shown and described.

[0102] The above description of the disclosed aspects is meant to be illustrative of the application and not limiting, as the same is intended to be encompassed by the following claims. Numerous modifications of the aspects described herein can be made in accordance with the description without departing from the scope of the application. The scope of the application is limited only by the following claims.

[0103] The foregoing description has been presented for the purposes of illustration and description. Furthermore, the description is not intended to limit the embodiments of the disclosure to the forms disclosed herein. Although the various example aspects and embodiments have been described herein with regard to particular aspects and embodiments, those skilled in the art will recognize that certain modifications, changes, substitutions, additions and sub-combinations can be made without departing from the spirit of the disclosure.

Claims

1. An alarm method, characterized in that, The method includes: Receive new alarm messages; Based on the positional relationship between the new alarm message and the target queue, the processing method for the new alarm message is determined; 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 data queue is used to sequentially maintain the priority of alarm messages related to one alarm rule; The step of determining the processing method of the new alarm message based on its positional relationship with the target queue includes: comparing the priority of the new alarm message with that of a 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 that 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 that of the first message, discarding the new alarm message. The number of target rules is one or more; when there are multiple target rules, the step of determining the processing method of the new alarm message based on the positional relationship between the new alarm message and the target queue includes: sequentially traversing each target queue and determining the processing method of the new alarm message based on the positional relationship between the new alarm message and the target queue.

2. The method according to claim 1, characterized in that, The first message has the same scope as the new alarm message; the scope includes: global or local areas.

3. The method according to claim 1, 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, while the scope of the second message is the same as that of the new alarm message.

4. The method according to any one of claims 1-3, characterized in that, The data queue includes at least one of the following forms: stack, linked list, array, and binary tree.

5. The method according to any one of claims 1-4, characterized in that, The data queue is also used to maintain the alarm count for each alarm message.

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

7. An alarm device, characterized in that, The device includes: The receiving unit is used to receive new alarm messages; The determining unit is used to determine the processing method of the new alarm message based on the positional 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; one data queue is used to sequentially maintain the priority of alarm messages related to one alarm rule; The step of determining the processing method of the new alarm message based on its positional relationship with the target queue includes: comparing the priority of the new alarm message with that of a 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 that 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 that of the first message, discarding the new alarm message. The number of target rules is one or more; when there are multiple target rules, the step of determining the processing method of the new alarm message based on the positional relationship between the new alarm message and the target queue includes: sequentially traversing each target queue and determining the processing method of the new alarm message based on the positional relationship between the new alarm message and the target queue.

8. An electronic device, characterized in that, include: Memory, used to store computer-readable instructions; as well as A processor for executing the computer-readable instructions, causing the electronic device to perform the method as described in any one of claims 1-6.

9. A non-transitory computer-readable storage medium for storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by a processor, the processor performs the method as described in any one of claims 1-6.

10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • 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