Filtering processing method and device for intelligent operation and maintenance alarm information and electronic equipment
By judging the filtering conditions of fault alarm information in the intelligent operation and maintenance system and performing cache or queue processing, the problem that conventional alarm filtering programs cannot adapt to the delayed arrival of alarm information is solved. Flexible configuration and real-time caching are achieved to ensure that alarms are ensured. Accurate filtering of information and system stability.
Patent Information
- Application Number
- CN202410714572.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
Conventional alarm filtering programs cannot effectively meet the needs of alarm information filtering in intelligent operation and maintenance systems. The configuration is complex and cannot adapt to the problem of delayed arrival of alarm information.
By judging whether the traversal of the alarm information queue has been completed, if the traversal has not been completed, it is judged whether the fault alarm information meets the preset filtering conditions, and is stored in the cache or queue to be sent, and is processed accordingly according to the fault recovery alarm information to ensure that it is paired Alarm information is not filtered by errors and cached to the REDIS cache database in real time.
It realizes the flexible configuration of alarm filtering program, automatically calculates the delay data of alarm information, and revise the fault duration to ensure that paired alarm information is not filtered incorrectly. The cached information is updated in real time. It is highly adaptable and ensures that the filtering program continues to be correct during configuration upgrades. Work.
Smart Images

Figure CN118573545A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic equipment for filtering and processing intelligent operation and maintenance alarm information. Background Art
[0002] The intelligent operation and maintenance subsystem uses cloud platforms, big data processing and communication technologies to complete centralized status monitoring, fault handling, analysis and prediction, and production management of all equipment in the signal system. The intelligent operation and maintenance system usually needs to filter and process the alarm information of the equipment due to certain technical or management reasons to meet the actual needs of operation and maintenance management. For example: equipment false alarms caused by equipment maintenance, alarm information with a very short fault duration and little impact, and alarm information that should be filtered out technically or management-wise.
[0003] Conventional alarm filtering programs are implemented for certain data filtering. On the one hand, the alarm filtering configuration is relatively complicated. On the other hand, since alarm information appears in pairs (such as fault occurrence alarm information, fault recovery alarm information), and the alarm information of existing intelligent operation and maintenance systems is sometimes delayed (the time when the equipment failure occurs and the time when the filtering alarm program reads the alarm information are delayed), it cannot meet the needs of alarm information filtering. Summary of the invention
[0004] The present application provides a method, device and electronic equipment for filtering and processing intelligent operation and maintenance alarm information to solve the problem that conventional alarm filtering programs cannot meet the needs of alarm filtering.
[0005] The first aspect of the present application provides a method for filtering and processing intelligent operation and maintenance alarm information, including the following steps: determining whether the current alarm information queue has completed traversal; if the current alarm information queue has not completed traversal, then when the fault occurrence alarm information does not have corresponding fault recovery alarm information, determining whether the fault occurrence alarm information meets the preset filtering conditions; if the fault occurrence alarm information meets the preset filtering conditions, storing the fault occurrence alarm information in a cache alarm queue; if the fault occurrence alarm information does not meet the preset filtering conditions, storing the fault occurrence alarm information in a to-be-sent alarm queue.
[0006] Optionally, after storing the fault occurrence alarm information into the cache alarm queue, it includes: judging whether a fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or whether the fault occurrence alarm information does not meet the preset filtering condition, or whether the time when the fault occurrence alarm information is stored in the cache alarm queue exceeds a preset time length; if a fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or the fault occurrence alarm information does not meet the preset filtering condition, or the time when the fault occurrence alarm information is stored in the cache alarm queue exceeds a preset time length, then it is judged that the fault occurrence alarm information meets the preset removal condition, and the fault occurrence alarm information is removed.
[0007] Optionally, after the fault occurrence alarm information does not contain the corresponding fault recovery alarm information, it includes: if the fault occurrence alarm information contains the corresponding fault recovery alarm information, determining whether the fault occurrence alarm information exists in the cached alarm queue, the alarm queue to be sent, or the sent alarm queue based on the ID of the fault occurrence alarm information; if the fault occurrence alarm information exists in the cached alarm queue, deleting the fault occurrence alarm information in the cached alarm queue, or, if the fault occurrence alarm information exists in the alarm queue to be sent, adding the fault recovery alarm information to the alarm queue to be sent, or, if the fault occurrence alarm information exists in the sent alarm queue, adding the fault recovery alarm information to the alarm queue to be sent.
[0008] Optionally, the above-mentioned filtering and processing method of intelligent operation and maintenance alarm information also includes: reading the alarm queue to be sent according to a preset period, and writing the alarm information to be sent in the alarm queue to be sent into the corresponding Kafka interface; judging whether the alarm information to be sent is successfully written into the Kafka interface; if the alarm information to be sent is not successfully written into the Kafka interface, then re-storing the alarm information to be sent into the alarm queue to be sent; if the alarm information to be sent has been successfully sent, then storing the alarm information to be sent into the sent alarm queue.
[0009] Optionally, after determining whether the current alarm information queue has completed traversal, the method further includes: if the current alarm information queue has completed traversal, clearing the current alarm information queue.
[0010] The second aspect of the present application provides a filtering and processing device for intelligent operation and maintenance alarm information, including: a first judgment module, used to judge whether the current alarm information queue has completed traversal; a second judgment module, used to judge whether the fault occurrence alarm information meets the preset filtering conditions if the current alarm information queue has not completed traversal, when there is no corresponding fault recovery alarm information for the fault occurrence alarm information; a filtering module, used to store the fault occurrence alarm information into a cache alarm queue if the fault occurrence alarm information meets the preset filtering conditions, and store the fault occurrence alarm information into a to-be-sent alarm queue if the fault occurrence alarm information does not meet the preset filtering conditions.
[0011] Optionally, after storing the fault occurrence alarm information into the cache alarm queue, the filtering module is also used to: determine whether fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or whether the fault occurrence alarm information does not meet the preset filtering condition, or whether the time the fault occurrence alarm information is stored in the cache alarm queue exceeds a preset time length; if fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or the fault occurrence alarm information does not meet the preset filtering condition, or the fault occurrence alarm information is stored in the cache alarm queue for more than a preset time length, then it is determined that the fault occurrence alarm information meets the preset removal condition, and the fault occurrence alarm information is removed.
[0012] Optionally, when the fault occurrence alarm information does not contain the corresponding fault recovery alarm information, the second judgment module is also used to: if the fault occurrence alarm information contains the corresponding fault recovery alarm information, determine whether the fault occurrence alarm information exists in the cached alarm queue, the alarm queue to be sent, or the sent alarm queue based on the ID of the fault occurrence alarm information; if the fault occurrence alarm information exists in the cached alarm queue, delete the fault occurrence alarm information in the cached alarm queue, or, if the fault occurrence alarm information exists in the alarm queue to be sent, add the fault recovery alarm information to the alarm queue to be sent, or, if the fault occurrence alarm information exists in the sent alarm queue, add the fault recovery alarm information to the alarm queue to be sent.
[0013] Optionally, the above-mentioned intelligent operation and maintenance alarm information filtering and processing device also includes: a reading module, which is used to read the alarm queue to be sent according to a preset period, and write the alarm information to be sent in the alarm queue to be sent into the corresponding Kafka interface; a third judgment module, which is used to judge whether the alarm information to be sent is successfully written into the Kafka interface; a processing module, which is used to re-store the alarm information to be sent into the alarm queue to be sent if the alarm information to be sent is not successfully written into the Kafka interface, and if the alarm information to be sent has been successfully sent, store the alarm information to be sent into the sent alarm queue.
[0014] Optionally, after determining whether the current alarm information queue has completed traversal, the first determination module is further configured to: if the current alarm information queue has completed traversal, clear the current alarm information queue.
[0015] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the filtering and processing method of intelligent operation and maintenance alarm information as described in the above embodiment.
[0016] The fourth aspect of the present application provides a computer program product on which a computer program is stored, and the program is executed by a processor to implement the filtering and processing method of intelligent operation and maintenance alarm information as described in the above embodiment.
[0017] In the above implementation, it is determined whether the current alarm information queue has been traversed. If the current alarm information queue has not been traversed, then when the fault alarm information does not have the corresponding fault recovery alarm information, it is determined whether the fault alarm information meets the preset filtering conditions. If the fault alarm information meets the preset filtering conditions, the fault alarm information is stored in the cache alarm queue. If the fault alarm information does not meet the preset filtering conditions, the fault alarm information is stored in the to-be-sent alarm queue. Thus, the problem that conventional alarm filtering programs cannot meet the needs of alarm filtering is solved. The configuration of the alarm filtering program is flexible and simple, and can well meet the user's requirements for alarm information filtering. The alarm filtering program will automatically calculate the delay data of the delayed arrival of the alarm information, and revise the calculation of the fault duration accordingly. It has good adaptability and can cache the equipment fault alarm information for a certain period of time to ensure that the paired alarm information will not be filtered incorrectly. The cached alarm information is cached in real time in the REDIS cache database to ensure that the filtering program and configuration can continue to work correctly when upgraded.
[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0020] Figure 1 A flowchart of a method for filtering and processing intelligent operation and maintenance alarm information provided according to an embodiment of the present application;
[0021] Figure 2 A schematic diagram of skylight repair data in a MYSQL database according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of converting skylight repair data into filtering rule data according to an embodiment of the present application;
[0023] Figure 4 A data diagram of the delay in calculating the arrival delay of the alarm information according to an embodiment of the present application;
[0024] Figure 5 A schematic diagram of alarm information filtering rule data according to an embodiment of the present application;
[0025] Figure 6 This is a schematic diagram of alarm information filtering rule data according to another embodiment of the present application;
[0026] Figure 7 A flowchart of a method for filtering and processing intelligent operation and maintenance alarm information according to an embodiment of the present application;
[0027] Figure 8 This is a process operation diagram of an alarm filtering program according to an embodiment of the present application;
[0028] Fig. 9 The resource occupancy of the alarm filtering program according to an embodiment of the present application;
[0029] Fig.10 This is an example diagram of a filtering and processing device for intelligent operation and maintenance alarm information according to an embodiment of the present application;
[0030] Fig.11 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Description of the drawings:
[0032] 10- filtering and processing device for intelligent operation and maintenance alarm information; 100- first judgment module; 200- second judgment module; 300- filtering module. DETAILED DESCRIPTION
[0033] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0034] The following describes the filtering and processing method, device and electronic device of the intelligent operation and maintenance alarm information of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the conventional alarm filtering program mentioned in the above background technology cannot meet the demand for alarm filtering, the present application provides a filtering and processing method for intelligent operation and maintenance alarm information, in which it is determined whether the current alarm information queue has completed traversal. If the current alarm information queue has not completed traversal, then when there is no corresponding fault recovery alarm information for the fault occurrence alarm information, it is determined whether the fault occurrence alarm information meets the preset filtering conditions. If the fault occurrence alarm information meets the preset filtering conditions, the fault occurrence alarm information is stored in the cache alarm queue. If the fault occurrence alarm information does not meet the preset filtering conditions, the fault occurrence alarm information is stored in the to-be-sent alarm queue. In this way, the problem that conventional alarm filtering programs cannot meet the needs of alarm filtering is solved. The configuration of the alarm filtering program is flexible and simple, and can well adapt to the user's requirements for alarm information filtering. The alarm filtering program will automatically calculate the delay data of the delayed arrival of the alarm information, and revise the calculation of the fault duration accordingly. It has good adaptability and can cache the alarm information of equipment failure for a certain period of time to ensure that paired alarm information will not be filtered incorrectly. The cached alarm information is cached in real time in the REDIS cache database to ensure that the filtering program and configuration can continue to work correctly when upgraded.
[0035] Specifically, Figure 1 A flowchart of a method for filtering and processing intelligent operation and maintenance alarm information provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the filtering and processing method of the intelligent operation and maintenance alarm information includes the following steps:
[0037] In step S101, it is determined whether the current alarm information queue has been traversed.
[0038] In step S102, if the current alarm information queue has not been traversed, then when the fault occurrence alarm information does not have corresponding fault recovery alarm information, it is determined whether the fault occurrence alarm information meets the preset filtering condition.
[0039] In step S103, if the fault alarm information meets the preset filtering condition, the fault alarm information is stored in the cache alarm queue; if the fault alarm information does not meet the preset filtering condition, the fault alarm information is stored in the to-be-sent alarm queue.
[0040] Among them, the preset filtering condition can be understood as when there is no corresponding fault recovery alarm information in the fault occurrence alarm information, if the delay of the fault occurrence alarm information is less than a certain threshold, then it is determined that the fault occurrence alarm information meets the preset filtering condition. Generally, the filtering fault occurrence alarm information or the fault recovery alarm information is judged whether it meets the preset filtering condition based on factors such as the time of fault occurrence, the time of fault recovery, the name, category, and location of the equipment where the fault occurred. Technical personnel in this field can set the filtering rules by themselves.
[0041] Specifically, the sunroof maintenance information input by the user is stored in a specific table in the MYSQL database, such as Figure 2 As shown, the filtering program periodically queries the database to obtain the current effective skylight maintenance time and the affected equipment and other information. After necessary verification, the skylight maintenance information is converted into filtering rule data. The query statement is as follows: f"SELECT * FROM
[0042] {self.table}WHERE state! = 'deleted' AND start_time <= '{t1}' AND end_time > = '{t2}'", where t1 and t2 are the current timestamp plus the configured query cycle interval. The filtering rules mainly define the time range, device type, and location information of the alarm information. For details, please refer to the attached Figure 3 The program reads the configuration file or queries the database to obtain the configuration data of the filtered alarm and the configuration data of the non-filtered alarm, and converts the time-related parameters into timestamp data for the convenience of subsequent time calculation.
[0043] The filter program reads the Kafka interface to obtain alarm information of various devices. Alarm information usually appears in pairs, with fault occurrence alarm information first and fault recovery alarm information later. The ID value of the same alarm information is the same. The alarm information needs to calculate the delay time of delayed arrival and store it in the alarm information. For the fault occurrence alarm information, the delay is the current timestamp minus the timestamp of the fault occurrence. For the fault recovery alarm information, the delay is the current timestamp minus the timestamp of the fault recovery. The schematic diagram of the alarm information delay arrival delay data is as follows: Figure 4 shown.
[0044] For the fault occurrence alarm information and fault recovery alarm information, first calculate whether filtering is required according to various filtering rules. Generally, filtering is performed according to factors such as the fault occurrence time, fault recovery time, the name of the device where the fault occurred, the category, and the location. For the fault occurrence alarm information, the fault recovery time is the current timestamp minus the delay of the delayed arrival of the fault. params is the parameter table (the input values involved in calculating whether to filter in the alarm information), and eval calculates the oper_exp formula (i.e., the filtering rules, which support all single-line program statements in PYTHON), which can calculate whether the fault occurrence alarm information needs to be filtered. The filtering rules in the embodiments of the present application are as follows: Figure 5 and Figure 6 shown.
[0045] If the fault alarm information can be filtered according to the filtering rules, and there is no corresponding fault recovery alarm information for the fault alarm information, since the recovery time of the time parameter involved in the calculation will change with time, the fault alarm information needs to be stored in the cache alarm queue. If the fault alarm information does not meet the preset filtering conditions, the fault alarm information will be stored in the alarm queue to be sent.
[0046] Optionally, in some embodiments, after storing the fault occurrence alarm information in the cache alarm queue, it includes: determining whether a fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or whether the fault occurrence alarm information does not meet a preset filtering condition, or whether the time the fault occurrence alarm information is stored in the cache alarm queue exceeds a preset time length; if a fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or the fault occurrence alarm information does not meet a preset filtering condition, or the fault occurrence alarm information is stored in the cache alarm queue for more than a preset time length, then it is determined that the fault occurrence alarm information meets the preset removal condition, and the fault occurrence alarm information is removed.
[0047] The preset duration may be a threshold value pre-set by a user, a threshold value obtained through a limited number of experiments, or a threshold value obtained through a limited number of computer simulations, and is not specifically limited here.
[0048] It should be understood that the alarm information in the cached alarm queue needs to be checked every cycle, and the alarm information that meets the conditions needs to be removed from the queue. If a fault recovery alarm message with the same ID value as the fault occurrence alarm message is received, or the alarm message does not meet the preset filtering conditions, or the delay of the alarm message to date exceeds the configured maximum cache alarm message time value (i.e., the preset duration), the alarm message is removed. In addition, the queue of cached alarm information uses the alarm KEY value and the serialized value of the device (the internal attribute value __dict__ of the device class) to store it in the REDIS cache database every cycle, so that the cached alarm message queue can also be read from the REDIS cache database when the filter program is restarted.
[0049] Optionally, in some embodiments, when there is no corresponding fault recovery alarm information for the fault occurrence alarm information, it includes: if there is corresponding fault recovery alarm information for the fault occurrence alarm information, determining whether there is fault occurrence alarm information in the cached alarm queue, or the alarm queue to be sent, or the alarm queue that has been sent based on the ID of the fault occurrence alarm information; if there is fault occurrence alarm information in the cached alarm queue, deleting the fault occurrence alarm information in the cached alarm queue, or, if there is fault occurrence alarm information in the alarm queue to be sent, adding the fault recovery alarm information to the alarm queue to be sent, or, if there is fault occurrence alarm information in the alarm queue that has been sent, adding the fault recovery information to the alarm queue to be sent.
[0050] Specific as Figure 7 As shown, if the fault occurrence alarm information has corresponding fault recovery alarm information, it is necessary to use the ID value of the fault occurrence alarm information to check whether the corresponding fault occurrence alarm information has been cached. If there is fault occurrence alarm information in the cache alarm queue, it is necessary to delete the fault occurrence alarm information from the cache alarm queue.
[0051] If the fault alarm information is in the alarm queue to be sent, the fault recovery alarm information will be directly added to the alarm queue to be sent and wait to be sent together. If the fault alarm information already exists in the sent alarm queue, the fault recovery alarm information will be directly added to the alarm queue to be sent.
[0052] Optionally, in some embodiments, the above-mentioned filtering and processing method of intelligent operation and maintenance alarm information also includes: reading the alarm queue to be sent according to a preset period, and writing the alarm information to be sent in the alarm queue to be sent into the corresponding Kafka interface; judging whether the alarm information to be sent is successfully written into the Kafka interface; if the alarm information to be sent is not successfully written into the Kafka interface, then re-storing the alarm information to be sent into the alarm queue to be sent; if the alarm information to be sent has been successfully sent, then storing the alarm information to be sent into the sent alarm queue.
[0053] Specifically, the filter program periodically reads the to-be-sent alarm queue and writes the to-be-sent alarm information in the to-be-sent alarm queue into the corresponding Kafka interface. If the to-be-sent alarm information is not successfully written into the Kafka interface in this cycle, the to-be-sent alarm information needs to be stored in the to-be-sent alarm queue again for the next cycle. If the to-be-sent alarm information has been successfully sent, the alarm information needs to be stored in the sent alarm queue.
[0054] Optionally, in some embodiments, after determining whether the current alarm information queue has been traversed, the method further includes: if the current alarm information queue has been traversed, clearing the current alarm information queue.
[0055] It can be understood that if the current alarm information queue is completed, the current alarm information queue will be cleared, and the relevant alarm information will be stored in the cache database REDIS when it changes. When the on-site filtering program and configuration are changed and upgraded (the filtering program is restarted in a short time), the cached alarm information can be read to ensure that the filtered alarm information is stable and reliable.
[0056] In actual application scenarios, the filter alarm filtering program has been successfully used in the intelligent operation and maintenance systems of Chongqing Metro Line 5 and Hefei Line 3. It runs stably and reliably, and the filtered alarm information is accurate and reliable. Figure 8 shown.
[0057] The alarm filter program uses Python code and runs on a dedicated LINUX server. It has been running stably for half a year. The filter rules for alarm information of various devices and multiple user requirements can accurately filter relevant alarm information according to the needs, and the filter rules are simple and flexible to configure and easy to use. Check the CPU occupancy and memory occupancy of the alarm filter program process on the LINUX server. The parameters are 1.0% and 0.1%, such as Fig. 9 As shown, the program's resource usage is also excellent.
[0058] Subsequently, this alarm filtering program will also be used in the intelligent operation and maintenance systems of multiple lines, laying a solid foundation for the intelligent operation and maintenance of urban rail transit.
[0059] According to the filtering and processing method of intelligent operation and maintenance alarm information proposed in the embodiment of the present application, it is determined whether the current alarm information queue has been traversed. If the current alarm information queue has not been traversed, then when the fault alarm information does not have the corresponding fault recovery alarm information, it is determined whether the fault alarm information meets the preset filtering conditions. If the fault alarm information meets the preset filtering conditions, the fault alarm information is stored in the cache alarm queue. If the fault alarm information does not meet the preset filtering conditions, the fault alarm information is stored in the to-be-sent alarm queue. Thus, the problem that conventional alarm filtering programs cannot meet the needs of alarm filtering is solved. The configuration of the alarm filtering program is flexible and simple, and can well adapt to the user's requirements for alarm information filtering. The alarm filtering program will automatically calculate the delay data of the delayed arrival of the alarm information, and revise the calculation of the fault duration accordingly. It has good adaptability and can cache the equipment fault alarm information for a certain period of time to ensure that the paired alarm information will not be filtered incorrectly. The cached alarm information is cached in real time in the REDIS cache database to ensure that the filtering program and configuration can continue to work correctly when upgraded.
[0060] Next, a filtering and processing device for intelligent operation and maintenance alarm information proposed in an embodiment of the present application is described with reference to the accompanying drawings.
[0061] Fig.10 It is a block diagram of a filtering and processing device for intelligent operation and maintenance alarm information according to an embodiment of the present application.
[0062] like Fig.10 As shown, the intelligent operation and maintenance alarm information filtering and processing device 10 includes: a first judgment module 100, a second judgment module 200 and a filtering module 300.
[0063] Among them, the first judgment module 100 is used to judge whether the current alarm information queue has been traversed; the second judgment module 200 is used to judge whether the fault occurrence alarm information meets the preset filtering conditions if the current alarm information queue has not been traversed, when there is no corresponding fault recovery alarm information for the fault occurrence alarm information; the filtering module 300 is used to store the fault occurrence alarm information into the cache alarm queue if the fault occurrence alarm information meets the preset filtering conditions, and store the fault occurrence alarm information into the alarm queue to be sent if the fault occurrence alarm information does not meet the preset filtering conditions.
[0064] Optionally, in some embodiments, after storing the fault occurrence alarm information in the cache alarm queue, the filtering module 300 is also used to: determine whether fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or whether the fault occurrence alarm information does not meet the preset filtering conditions, or whether the time the fault occurrence alarm information is stored in the cache alarm queue exceeds the preset time length; if fault recovery alarm information with the same ID value as the fault occurrence alarm information is received, or the fault occurrence alarm information does not meet the preset filtering conditions, or the time the fault occurrence alarm information is stored in the cache alarm queue exceeds the preset time length, then it is determined that the fault occurrence alarm information meets the preset removal conditions, and the fault occurrence alarm information is removed.
[0065] Optionally, in some embodiments, when there is no corresponding fault recovery alarm information for the fault occurrence alarm information, the second judgment module 200 is also used to: if there is corresponding fault recovery alarm information for the fault occurrence alarm information, determine whether there is fault occurrence alarm information in the cached alarm queue, or the alarm queue to be sent, or the sent alarm queue based on the ID of the fault occurrence alarm information; if there is fault occurrence alarm information in the cached alarm queue, delete the fault occurrence alarm information in the cached alarm queue, or, if there is fault occurrence alarm information in the alarm queue to be sent, add the fault recovery alarm information to the alarm queue to be sent, or, if there is fault occurrence alarm information in the alarm queue to be sent, add the fault recovery alarm information to the alarm queue to be sent.
[0066] Optionally, in some embodiments, the above-mentioned intelligent operation and maintenance alarm information filtering and processing device 10 also includes: a reading module, which is used to read the alarm queue to be sent according to a preset period, and write the alarm information to be sent in the alarm queue to be sent into the corresponding Kafka interface; a third judgment module, which is used to judge whether the alarm information to be sent is successfully written into the Kafka interface; a processing module, which is used to re-store the alarm information to be sent into the alarm queue to be sent if the alarm information to be sent is not successfully written into the Kafka interface, and if the alarm information to be sent has been successfully sent, the alarm information to be sent is stored in the sent alarm queue.
[0067] Optionally, in some embodiments, after determining whether the current alarm information queue has been traversed, the first determination module 100 is further configured to: clear the current alarm information queue if the current alarm information queue has been traversed.
[0068] It should be noted that the above explanation of the embodiment of the method for filtering and processing intelligent operation and maintenance alarm information is also applicable to the filtering and processing device for intelligent operation and maintenance alarm information of this embodiment, and will not be repeated here.
[0069] According to the filtering and processing device for intelligent operation and maintenance alarm information proposed in the embodiment of the present application, it is determined whether the current alarm information queue has been traversed. If the current alarm information queue has not been traversed, then when the fault occurrence alarm information does not have the corresponding fault recovery alarm information, it is determined whether the fault occurrence alarm information meets the preset filtering conditions. If the fault occurrence alarm information meets the preset filtering conditions, the fault occurrence alarm information is stored in the cache alarm queue. If the fault occurrence alarm information does not meet the preset filtering conditions, the fault occurrence alarm information is stored in the to-be-sent alarm queue. Thus, the problem that conventional alarm filtering programs cannot meet the needs of alarm filtering is solved. The configuration of the alarm filtering program is flexible and simple, and can well adapt to the user's requirements for alarm information filtering. The alarm filtering program will automatically calculate the delay data of the delayed arrival of the alarm information, and revise the calculation of the fault duration accordingly. It has good adaptability and can cache the equipment fault occurrence alarm information for a certain period of time to ensure that the paired alarm information will not be filtered incorrectly. The cached alarm information is cached in real time in the REDIS cache database to ensure that the filtering program and configuration can continue to work correctly when upgraded.
[0070] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0071] A memory 1101 , a processor 1102 , and a computer program stored in the memory 1101 and executable on the processor 1102 .
[0072] When the processor 1102 executes the program, the filtering and processing method of the intelligent operation and maintenance alarm information provided in the above embodiment is implemented.
[0073] Furthermore, the electronic device further comprises:
[0074] The communication interface 1103 is used for communication between the memory 1101 and the processor 1102 .
[0075] The memory 1101 is used to store computer programs that can be executed on the processor 1102 .
[0076] The memory 1101 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0077] If the memory 1101, the processor 1102 and the communication interface 1103 are implemented independently, the communication interface 1103, the memory 1101 and the processor 1102 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0078] Optionally, in a specific implementation, if the memory 1101, the processor 1102 and the communication interface 1103 are integrated on a chip, the memory 1101, the processor 1102 and the communication interface 1103 can communicate with each other through an internal interface.
[0079] The processor 1102 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0080] An embodiment of the present application also provides a computer program product, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned filtering and processing method for intelligent operation and maintenance alarm information is implemented.
[0081] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "some examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0082] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "special" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0083] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0084] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0085] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0086] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer program product, which, when executed, includes one or a combination of the steps of the method embodiment.
[0087] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0088] The program product mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for filtering and processing intelligent operation and maintenance alarm information, characterized in that: The following steps are involved: Determine whether the current alarm information queue has completed traversal; If the current alarm information queue has not been traversed, then when the fault occurrence alarm information does not have corresponding fault recovery alarm information, it is determined whether the fault occurrence alarm information meets the preset filtering condition; If the fault alarm information meets the preset filtering condition, the fault alarm information is stored in a cache alarm queue; if the fault alarm information does not meet the preset filtering condition, the fault alarm information is stored in a to-be-sent alarm queue.
2. The method according to claim 1, characterized in that After storing the fault occurrence alarm information in the cache alarm queue, the method includes: Determine whether a fault recovery alarm message with the same ID value as the fault occurrence alarm message is received, or whether the fault occurrence alarm message does not meet the preset filtering condition, or whether the time for which the fault occurrence alarm message is stored in the cache alarm queue exceeds a preset time length; If a fault recovery alarm message with the same ID value as the fault occurrence alarm message is received, or the fault occurrence alarm message does not meet the preset filtering condition, or the time the fault occurrence alarm message is stored in the cache alarm queue exceeds the preset time length, it is determined that the fault occurrence alarm message meets the preset removal condition, and the fault occurrence alarm message is removed.
3. The method according to claim 1, characterized in that After the fault occurrence alarm information does not contain the corresponding fault recovery alarm information, the method includes: If the fault occurrence alarm information has the corresponding fault recovery alarm information, determine whether the fault occurrence alarm information exists in the cached alarm queue, the to-be-sent alarm queue, or the sent alarm queue according to the ID of the fault occurrence alarm information; If the fault occurrence alarm information exists in the cached alarm queue, the fault occurrence alarm information in the cached alarm queue is deleted; or, if the fault occurrence alarm information exists in the to-be-sent alarm queue, the fault recovery alarm information is added to the to-be-sent alarm queue; or, if the fault occurrence alarm information exists in the sent alarm queue, the fault recovery alarm information is added to the to-be-sent alarm queue.
4. The method according to claim 1, characterized in that: Also includes: Read the to-be-sent alarm queue according to a preset period, and write the to-be-sent alarm information in the to-be-sent alarm queue into the corresponding Kafka interface; Determine whether the alarm information to be sent is successfully written into the Kafka interface; If the alarm information to be sent is not successfully written into the Kafka interface, the alarm information to be sent is stored again in the alarm queue to be sent; if the alarm information to be sent has been successfully sent, the alarm information to be sent is stored in the sent alarm queue.
5. The method according to claim 1, characterized in that After determining whether the current alarm information queue has been traversed, the method further includes: If the current alarm information queue has been traversed, the current alarm information queue is cleared.
6. A filtering and processing device for intelligent operation and maintenance alarm information, characterized in that: include: The first judgment module is used to judge whether the current alarm information queue has been traversed; A second judgment module is used to judge whether the fault occurrence alarm information meets the preset filtering condition when the fault occurrence alarm information does not have corresponding fault recovery alarm information if the current alarm information queue has not been traversed; The filtering module is used to store the fault alarm information into a cache alarm queue if the fault alarm information meets the preset filtering condition, and to store the fault alarm information into a to-be-sent alarm queue if the fault alarm information does not meet the preset filtering condition.
7. The device according to claim 6, characterized in that After storing the fault occurrence alarm information into the cache alarm queue, the filtering module is further used to: Determine whether a fault recovery alarm message with the same ID value as the fault occurrence alarm message is received, or whether the fault occurrence alarm message does not meet the preset filtering condition, or whether the time for which the fault occurrence alarm message is stored in the cache alarm queue exceeds a preset time length; If a fault recovery alarm message with the same ID value as the fault occurrence alarm message is received, or the fault occurrence alarm message does not meet the preset filtering condition, or the time the fault occurrence alarm message is stored in the cache alarm queue exceeds the preset time length, it is determined that the fault occurrence alarm message meets the preset removal condition, and the fault occurrence alarm message is removed.
8. The device according to claim 6, characterized in that When the fault occurrence alarm information does not contain the corresponding fault recovery alarm information, the second judgment module is further used to: If the fault occurrence alarm information has the corresponding fault recovery alarm information, determine whether the fault occurrence alarm information exists in the cached alarm queue, the to-be-sent alarm queue, or the sent alarm queue according to the ID of the fault occurrence alarm information; If the fault occurrence alarm information exists in the cached alarm queue, the fault occurrence alarm information in the cached alarm queue is deleted; or, if the fault occurrence alarm information exists in the to-be-sent alarm queue, the fault recovery alarm information is added to the to-be-sent alarm queue; or, if the fault occurrence alarm information exists in the sent alarm queue, the fault recovery alarm information is added to the to-be-sent alarm queue.
9. An electronic device, characterized in that: Including memory and processor; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the filtering and processing method of intelligent operation and maintenance alarm information as described in any one of claims 1-5.
10. A computer program product, wherein the computer-readable storage medium stores a computer program, characterized in that: When the program is executed by a processor, the filtering and processing method for intelligent operation and maintenance alarm information as described in any one of claims 1 to 5 is implemented.
