Method and system for pushing and subscribing massive power grid alarm information in real time
By collecting and processing massive alarm data from the power grid system in real time, using Kafka, ElasticSearch and Redis databases to realize real-time push and subscription of alarm information, solving the problem that alarm information cannot be tracked and analyzed in real time in the existing technology, and improving the efficiency and intelligence of power grid safety management.
Patent Information
- Application Number
- CN202411545714.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, the massive alarm data generated by the power grid system cannot be tracked and analyzed in real time, resulting in difficulty in eliminating alarm information in a timely manner, seriously affecting the safety of the power grid.
By collecting massive alarm data from systems such as the new generation of scheduling systems, regulation clouds and integrated operation monitoring platforms in real time, using Kafka for message transmission, combined with ElasticSearch and Redis databases, real-time push and subscription of alarm information are achieved.
It realizes the integration of multi-platform alarm information and unified big data storage, enhances the intelligence of alarm information extraction, facilitates staff management and eliminates shortcomings, and improves the ease of use and practical significance of alarm push subscription platforms.
Smart Images

Figure CN119697248A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of processing massive real-time alarm data generated by multiple monitoring platforms of an electric power system, and in particular to a method and system for real-time pushing and subscribing of massive power grid alarm information. Background Art
[0002] At present, there are many professional systems for power grid automation, including monitoring systems, analysis and decision-making centers, real-time data platforms, control cloud platforms, integrated operation monitoring platforms, etc. These detection platforms will generate massive alarm data. When handling multi-system alarm data, the on-duty personnel lack the ability to perceive and analyze alarms. In the existing technology, manual screening of massive alarm information is time-consuming, labor-intensive, and inefficient. It is impossible to track and analyze alarm information in real time, and alarm information is difficult to be eliminated in time, which seriously affects the safety of the power grid. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a method and system for real-time push and subscription of massive power grid alarm information, so as to solve the problem that the alarm data of multiple systems cannot be followed up and analyzed in real time.
[0004] Technical solution: The method for real-time push and subscription of massive power grid alarm information of the present invention comprises the following steps:
[0005] (1) Collect massive amounts of alarms generated by the new generation dispatching system, control cloud, integrated operation monitoring platform and other systems in real time, and send alarm messages to the alarm system through Kafka for processing;
[0006] (2) Performing a standard check on the fields of the received alarm message, discarding the alarm information that does not meet the standard, and completing the alarm message fields;
[0007] (3) Perform logical processing on the verified alarm information according to the alarm rule library to determine whether it meets the conditions for real-time alarm push.
[0008] Furthermore, the processing process of the alarm data in step (1) is as follows:
[0009] Normalize the alarm information generated by each system and send it to a specific topic through Kafka to send the alarm information;
[0010] The alarm subscription push system collects alarm information sent by various systems and stores it in ElasticSearch;
[0011] The alarm data is classified and processed according to the processing method defined in the alarm subscription, and the alarm data that meets the conditions is pushed to the window, voice, or text message in real time.
[0012] Furthermore, the push conditions in step (3) are divided into two types: push by level and push by alarm type; if any alarm push condition is met, the alarm information data will be published to the subscription channel of the Redis database; in addition, all alarm information is stored in the es database for query processing.
[0013] The massive power grid alarm information real-time push and subscription system includes an alarm collection module, an alarm subscription module and a real-time alarm push module;
[0014] The alarm collection module collects real-time data from the monitoring system, analysis and decision-making center, real-time data platform, control cloud platform, and integrated operation monitoring platform;
[0015] The alarm subscription module includes alarm mode definition, alarm recovery definition, alarm suppression definition, alarm merging definition and personalized configuration;
[0016] The real-time alarm push module uses alarm window push, SMS push, and voice push to display the real-time alarm data push mode defined in the alarm subscription.
[0017] Furthermore, the alarm method defines alarm subscription according to two modes: alarm data type and alarm data level; wherein the alarm type definition is based on the system alarm type and alarm status of the alarm generated, and the alarm level definition is based on the system and alarm level of the alarm generated.
[0018] Furthermore, the alarm reversion definition is defined according to the alarm status; the alarm suppression definition can be defined according to the alarm status; the alarm merging definition can be defined according to the alarm status; the personalized configuration adds personalized conditions according to the alarm type, and selects query conditions or curve calls.
[0019] Furthermore, the query condition loading uses .json text to specify the query condition; the curve call needs to fill in the URL address of the call.
[0020] Furthermore, the alarm window push data is displayed in three alarm windows, namely, the alarm window to be confirmed, the alarm window to be restored, and the real-time alarm window;
[0021] Among them, in the upper layer of the alarm window, you can choose to display the alarm data according to the selected area, search content or alarm type; the alarm window to be confirmed can confirm the alarm data one by one and in batches, the alarm window to be restored can restore the alarm data one by one and in batches, and the real-time alarm window can restore and confirm the alarm data in the real-time alarm window in batches.
[0022] Furthermore, when the processor executes the program, a method for real-time push and subscription of massive power grid alarm information is implemented.
[0023] Furthermore, the computer program is designed to implement a method for real-time push and subscription of massive power grid alarm information when running.
[0024] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the alarm information display platform provided by the present invention can effectively integrate alarm information from multiple platforms, realize unified big data storage and real-time monitoring and statistics of subscription messages, enhance the intelligence of alarm information extraction, facilitate staff management and defect elimination, and improve the usability and practical significance of the alarm push subscription platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of the method of the present invention;
[0026] Figure 2 It is a system schematic diagram of the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0028] like Figure 1 As shown, the method for real-time push and subscription of massive power grid alarm information of the present invention comprises the following steps:
[0029] (1) Collect massive amounts of alarms generated by the new generation dispatching system, control cloud, integrated operation monitoring platform and other systems in real time, and send alarm messages to the alarm system through Kafka for processing. The alarm data processing process is as follows:
[0030] Normalize the alarm information generated by each system and send it to a specific topic through Kafka to send the alarm information;
[0031] The alarm subscription push system collects alarm information sent by various systems and stores it in ElasticSearch;
[0032] The alarm data is classified and processed according to the processing method defined in the alarm subscription, and the alarm data that meets the conditions is pushed to the window, voice, or text message in real time.
[0033] (2) Performing a standard check on the fields of the received alarm message, discarding the alarm information that does not meet the standard, and completing the alarm message fields;
[0034] (3) Perform logical processing on the verified alarm information according to the alarm rule library to determine whether it meets the real-time alarm push conditions. The push conditions are divided into two types: push by level and push by alarm type. If any alarm push condition is met, the alarm information data will be published to the subscription channel of the Redis database; in addition, all alarm information is stored in the es database for query processing.
[0035] like Figure 2 As shown, the real-time push and subscription system for massive power grid alarm information of the present invention includes an alarm collection module, an alarm subscription module and a real-time alarm push module;
[0036] The alarm collection collects the alarm data generated by the monitoring system, analysis system, real-time data platform, etc., and forwards it through Kafka.
[0037] The alarm subscription scheme stores alarm types, alarm menus and alarm mode definitions, alarm resets, alarm suppression, and alarm merging rules in different data tables.
[0038] When the user defines the alarm push method, he / she can customize the method name and method level, define it according to the group and type to which the alarm information belongs, select the corresponding alarm status to associate the alarm action, and when selecting the alarm window push alarm method, he / she can select the corresponding alarm window or add an alarm window.
[0039] When defining the alarm push method, you can also choose to classify the alarm by alarm level, and you can also choose the corresponding associated status.
[0040] The associated actions include voice, alarm window, manual confirmation, SMS alarm, and push alarm screen.
[0041] The upper alarm window can be a custom alarm window, and the defined alarm data is displayed in a specific alarm window.
[0042] When defining alarm recovery, you can select the recovery list interface and define alarm recovery by adding a new recovery. You can also modify the existing recovery list and update the modified data in the database.
[0043] When defining alarm suppression, you can select the suppression rule interface and add a new suppression rule through the Add Suppression Rule button. Alarm suppression is divided into shallow suppression and deep suppression.
[0044] Among them, the shallowly suppressed alarm information does not perform the alarm action defined by the alarm mode, for example, does not perform real-time window display or voice alarm.
[0045] Among them, the alarm information that is deeply suppressed will not be stored in elasticsearch and cannot be searched again.
[0046] When defining alarm merging, select the merge rule interface, click the Add Merge Rule button to add a new merge rule, define the rule name, and select the alarm type to be merged. The system will then process the merged alarm status in a unified manner.
[0047] When defining a personalized configuration, select the personalized configuration page and click the Add Configuration button to add a custom configuration.
[0048] Among them, personalized configuration can be divided into two methods: curve calling and query condition loading.
[0049] The curve call needs to fill in the URL address of the call.
[0050] The query condition loading requires filling in the query condition in json format.
[0051] In the alarm push, each alarm push window is divided into three windows for display, namely, an alarm window to be confirmed, an alarm window to be restored, and a real-time alarm window.
[0052] Among them, the alarm window to be confirmed can confirm the alarm information one by one and in batches, the alarm window to be restored can restore the alarm information one by one and in batches, and the real-time alarm window can confirm and restore the alarm messages in batches.
[0053] In the alarm display platform system, the alarm data processing process is as follows:
[0054] Normalize the alarm information generated by each system and send it to a specific topic through Kafka to send the alarm information.
[0055] The alarm subscription push system collects alarm information sent by various systems and stores it in ElasticSearch;
[0056] The alarm data is classified and processed according to the processing method defined in the alarm subscription, and the alarm data that meets the conditions is pushed to the window, voice, text message, etc. in real time.
[0057] Among them, the publish-subscribe mode of redis is used to set multiple alarm subscription channels, namely voice channel, real-time data channel, recovery channel and confirmation channel.
[0058] When a new message is pushed to the corresponding alarm release through alarm analysis, the message will be sent to the client subscribed to the channel for corresponding push processing.
[0059] Among them, the alarm window push adopts websocket technology, and a link is established on the client through websocket. When there is a new real-time alarm, the system will push the alarm information to ws.
[0060] Among them, voice push alarms call the media playback interface for voice playback based on alarm subscription, including fixed voice file playback and text-to-speech mode playback.
[0061] Among them, SMS push alarms call the SMS interface based on the alarm subscription (integrated according to the needs of different devices and different on-site SMS platforms) and are sent to the corresponding on-duty personnel.
[0062] In the real-time alarm push interface, the function of merging and displaying alarms by alarm type, status, KEYID, and keyword is provided, and the merging rules can be quickly added in the alarm window; the function of suppressing specified alarms by alarm type, status, KEYID, and keyword is provided, and the suppression rules can be quickly added in the alarm window.
[0063] When restoring and confirming an alarm in the real-time alarm push interface:
[0064] When resetting, the alarm resetting logic is determined, the attributes related to the resetting state are updated, and the resetting signal is broadcast.
[0065] When confirming, it receives the alarm confirmation operation signal, updates the confirmation status related attributes, and broadcasts the confirmation signal.
Claims
1. A method for real-time push and subscription of massive power grid alarm information, characterized in that: The steps include: (1) Collect massive amounts of alarms generated by the new generation dispatching system, control cloud, integrated operation monitoring platform and other systems in real time, and send alarm messages to the alarm system through Kafka for processing; (2) Performing a standard check on the fields of the received alarm message, discarding the alarm information that does not meet the standard, and completing the alarm message fields; (3) Perform logical processing on the verified alarm information according to the alarm rule library to determine whether it meets the conditions for real-time alarm push.
2. The method for real-time push and subscription of massive power grid alarm information according to claim 1 is characterized in that: The processing process of the alarm data in step (1) is as follows: Normalize the alarm information generated by each system and send it to a specific topic through Kafka to send the alarm information; The alarm subscription push system collects alarm information sent by various systems and stores it in ElasticSearch; The alarm data is classified and processed according to the processing method defined in the alarm subscription, and the alarm data that meets the conditions is pushed to the window, voice, or text message in real time.
3. The method for real-time push and subscription of massive power grid alarm information according to claim 1 is characterized in that: The push conditions in step (3) are divided into two types: push by level and push by alarm type; if any alarm push condition is met, the alarm information data will be published to the subscription channel of the Redis database; in addition, all alarm information will be stored in the es database for query processing.
4. A real-time push and subscription system for massive power grid alarm information, characterized in that: Including alarm collection module, alarm subscription module and real-time alarm push module; The alarm collection module collects real-time data from the monitoring system, analysis and decision-making center, real-time data platform, control cloud platform, and integrated operation monitoring platform; The alarm subscription module includes alarm mode definition, alarm recovery definition, alarm suppression definition, alarm merging definition and personalized configuration; The real-time alarm push module uses alarm window push, SMS push, and voice push to display the real-time alarm data push mode defined in the alarm subscription.
5. The method for real-time push and subscription of massive power grid alarm information according to claim 4 is characterized in that: The alarm mode definition performs alarm subscription according to two modes: alarm data type and alarm data level. Among them, the alarm type definition performs alarm subscription according to the system alarm type and alarm status of the alarm generated, and the alarm level definition performs alarm subscription according to the system and alarm level of the alarm generated.
6. The method for real-time push and subscription of massive power grid alarm information according to claim 4 is characterized in that: The alarm reversion definition is defined according to the alarm status; the alarm suppression definition can be defined according to the alarm status; the alarm merging definition can be defined according to the alarm status; the personalized configuration adds personalized conditions according to the alarm type, and selects query conditions or curve calls.
7. The method for real-time push and subscription of massive power grid alarm information according to claim 6, characterized in that: The query condition loading uses .json text to specify the query condition; the curve call needs to fill in the URL address of the call.
8. The method for real-time push and subscription of massive power grid alarm information according to claim 4, characterized in that: The alarm window push data is displayed in three alarm windows, namely, the alarm window to be confirmed, the alarm window to be restored, and the real-time alarm window; Among them, in the upper layer of the alarm window, you can choose to display the alarm data according to the selected area, search content or alarm type; the alarm window to be confirmed can confirm the alarm data one by one and in batches, the alarm window to be restored can restore the alarm data one by one and in batches, and the real-time alarm window can restore and confirm the alarm data in the real-time alarm window in batches.
9. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for real-time push and subscription of massive power grid alarm information according to any one of claims 1 to 7 is implemented.
10. A storage medium storing a computer program, characterized in that: The computer program is designed to implement the method for real-time push and subscription of massive power grid alarm information according to any one of claims 1 to 7 when running.