CN113724100A - Power grid monitoring alarm message processing method of distributed cluster - Google Patents

Power grid monitoring alarm message processing method of distributed cluster Download PDF

Info

Publication number
CN113724100A
CN113724100A CN202110996773.XA CN202110996773A CN113724100A CN 113724100 A CN113724100 A CN 113724100A CN 202110996773 A CN202110996773 A CN 202110996773A CN 113724100 A CN113724100 A CN 113724100A
Authority
CN
China
Prior art keywords
message
target
identifier
alarm
queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110996773.XA
Other languages
Chinese (zh)
Other versions
CN113724100B (en
Inventor
侯祖锋
赵瑞锋
李波
徐春华
刘谋君
陈建钿
黎皓彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Power Grid Co Ltd
Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Power Grid Co Ltd, Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110996773.XA priority Critical patent/CN113724100B/en
Publication of CN113724100A publication Critical patent/CN113724100A/en
Application granted granted Critical
Publication of CN113724100B publication Critical patent/CN113724100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Water Supply & Treatment (AREA)
  • Strategic Management (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Medical Informatics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for processing a power grid monitoring alarm message of a distributed cluster, which receives data sent by remote measuring equipment; generating an alarm message according to the data, wherein the alarm message carries a message identifier; caching the alarm message to a target message queue in the distributed message queue, and generating a target message queue identifier of the alarm message; recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is unread; and reading the target message identifier of which the state mark is not read from the preset list, sending the target warning message corresponding to the target message identifier to the client, and modifying the state mark of the target message identifier into the read state. Based on the method provided by the invention, the technical problems that the message is easy to block and the alarm message is easy to lose in the monitoring process of the power monitoring system can be solved.

Description

Power grid monitoring alarm message processing method of distributed cluster
Technical Field
The invention relates to an information communication technology, in particular to a method and a device for processing a power grid monitoring alarm message of a distributed cluster, computer equipment and a storage medium.
Background
In order to guarantee the operation of power equipment in the power field, the operation condition of each terminal equipment in a remote site in a power system needs to be monitored in real time. As power systems continue to expand, the number of terminal devices increases, and the size of alarm messages generated by monitoring the terminal devices in real time also increases.
In the conventional technology, data is acquired in a mode that a process is directly connected with a data source, when one process is abnormally quitted, a data center station cannot give an alarm and repair in time, the data loss condition is easy to occur, and meanwhile, when unprocessed alarm messages are accumulated too much, message blockage and alarm loss are likely to be caused, so that the high reliability of a power system cannot be guaranteed.
Disclosure of Invention
Therefore, in order to solve the above technical problems, it is necessary to provide a method for processing a power grid monitoring alarm message of a distributed cluster, so as to at least alleviate the technical problems that a message is easily blocked and an alarm message is easily lost in a power monitoring alarm system.
A power grid monitoring alarm message processing method of a distributed cluster comprises the following steps:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in the distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the queue identifier and the state mark are unread;
reading the target message identifier and the target message queue identifier of which the state mark is not read from the preset list, sending the target alarm message corresponding to the target message identifier to the client from the target message queue, and modifying the state mark of the target message identifier into the read state mark.
In one embodiment, the message identification includes a unique sequence number; generating an alarm message according to the data, wherein the alarm message carries a message identifier and comprises:
when the data is not in a preset normal threshold interval, generating an alarm message, wherein the alarm message comprises an identification field;
and generating a unique serial number, and writing the unique serial number into the identification field.
In one embodiment, the unique serial number is generated incrementally; reading the target message identifier with the status mark of unread from the preset list, wherein the reading comprises the following steps:
and according to the sequence of the unique serial numbers from small to large in the preset list, the reading state mark is an unread target message identifier.
In one embodiment, the message identification further comprises a rank identifier; when the data is not in the preset normal threshold interval, after the alarm message is generated, the method further includes:
determining the fault type according to the alarm message;
determining a processing level according to the fault type;
and writing the grade identifier corresponding to the processing grade into the identification field.
In one embodiment, the preset list comprises a plurality of list intervals, and each list interval corresponds to one processing level; recording a message identifier, a target message queue identifier and a status flag of the alarm message in a preset list, wherein the method comprises the following steps:
determining a target processing level of the alarm message according to the level identifier carried by the alarm message;
and determining a target list interval according to the target processing level of the alarm message, and recording the message identifier, the target message queue identifier and the state mark of the alarm message in the target list interval.
In one embodiment, after sending the target warning message corresponding to the target message identifier to the client and modifying the state flag of the target message identifier to be read, the method further includes:
receiving a response message of the alarm message returned by the client, and responding to a message target identifier;
and modifying the state mark of the target message identification into the sent state mark.
In one embodiment, after sending the target warning message corresponding to the target message identifier to the client and modifying the state flag of the target message identifier to be read, the method further includes:
receiving a processing result feedback message of the target warning message returned by the client, wherein the processing result feedback message carries a target message identifier;
and when the processing result feedback message is that the alarm processing is successful, modifying the state mark of the target message identifier into the processed state mark.
A distributed cluster power grid monitoring alarm message processing device comprises:
the receiving module is used for receiving data sent by the remote measuring equipment;
the warning message generating module is used for generating a warning message according to the data, and the warning message carries a message identifier;
the buffer module is used for buffering the alarm message to a target message queue in the distributed message queue and generating a target message queue identifier of the alarm message;
the recording module is used for recording the message identifier, the target message queue identifier and the state mark of the alarm message in a preset list, wherein the state mark is not read;
and the reading module is used for reading the target message identifier and the target message queue identifier of which the state marks are not read from the preset list, sending the target alarm message corresponding to the target message identifier to the client from the target message queue, and modifying the state mark of the target message identifier into the read state.
A computer device comprising a memory and a processor, the queue identification memory storing a computer program, the queue identification processor implementing the following steps when executing the queue identification computer program:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in a distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is not read;
reading a target message identifier and a target message queue identifier of which the state labels are not read from the preset list, sending a target warning message corresponding to the target message identifier to a client, and modifying the state label of the target message identifier into a read state.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in the distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is unread;
reading the target message identifier and the target message queue identifier of which the state marks are not read from the preset list, sending the target warning message corresponding to the target message identifier to the client, and modifying the state mark of the target message identifier into the read state.
According to the method for processing the alarm message for monitoring the power grid of the distributed cluster, the alarm message is cached by adopting a distributed message queue, the alarm message is stored in a target message queue, the alarm message is identified by adopting a unique message identifier, and the message identifier of the alarm message, the target message queue identifier and a state mark are stored in a preset list; the warning message corresponding to the target message identification is sent to the client from the target message queue by reading the message identification of which the state label is not read, and the state label of the target hour identification is modified into the read state label, so that the warning message is conveniently found, and the risk of message repeated processing can be reduced. Based on the method, the technical problems that message blocking and alarm message loss easily occur in the power monitoring alarm system can be solved.
Drawings
Fig. 1 is a schematic view of an application scenario of a method for processing a power grid monitoring alarm message of a distributed cluster in an embodiment;
fig. 2 is a schematic flow chart of a method for processing a power grid monitoring alarm message of a distributed cluster in an embodiment;
FIG. 3 is a schematic flow chart illustrating step 204 of FIG. 2 in one embodiment;
FIG. 4 is a flowchart illustrating the steps of recording a message identifier, a target message queue identifier, and a status flag of an alert message in a preset list in accordance with an embodiment;
FIG. 5 is a flowchart illustrating steps after sending a target alert message corresponding to a target message identifier to a client and modifying a status flag of the target message identifier to be read in one embodiment;
FIG. 6 is a flowchart illustrating steps after sending a target alert message corresponding to a target message identifier to a client and modifying a status flag of the target message identifier to be read in yet another embodiment;
fig. 7 is a schematic view of an application scenario of a method for processing a power grid monitoring alarm message of a distributed cluster in yet another embodiment;
fig. 8 is a schematic structural diagram of a power grid monitoring alarm message processing apparatus of a distributed cluster in an embodiment;
FIG. 9 is a diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various terms, but these terms are not limited by these terms unless otherwise specified. These terms are only used to distinguish one term from another. For example, the third preset threshold and the fourth preset threshold may be the same or different without departing from the scope of the present application.
In order to guarantee the operation of power equipment in the power field, the operation condition of each terminal equipment in a remote site in a power system needs to be monitored in real time. As power systems continue to expand, the number of terminal devices increases, and the size of alarm messages generated by monitoring the terminal devices in real time also increases. If the unprocessed warning messages are accumulated too much, the problems of message blockage and warning loss are likely to be caused, and the high reliability of the power system is not ensured.
The method for processing the power grid monitoring alarm message of the distributed cluster can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In the embodiment of the present invention, the terminal 102 is a remote measurement device, and is configured to provide raw data; the server 104 generates an alarm message and a message identifier according to the original data, stores the alarm message in a message queue, stores the message identifier in a preset list at the server side, reads the alarm message from the preset list, and modifies an unread tag of the alarm message into a read tag.
In an embodiment, as shown in fig. 2, a method for processing a power grid monitoring alarm message of a distributed cluster is provided, which is described by taking the method applied to a server in fig. 1 as an example, and includes the following steps:
step 202, receiving data sent by a remote measuring device.
The Remote measurement device may be a Remote Terminal Unit (RTU), a Programmable Automation Controller (PAC), or other measurement devices. The remote measuring device is used for monitoring the operation conditions of a plurality of terminal devices in the power system and reporting real-time data acquired in a remote field to the server.
And step 204, generating an alarm message according to the data, wherein the alarm message carries a message identifier.
After receiving the data from the remote measuring equipment, the server side compares and analyzes the data and preset threshold parameters, and when the received data is not in a preset normal threshold interval, the server side can determine that the terminal equipment on the remote site has a fault or has a fault risk, and then generates an alarm message. The alarm message carries a unique message identifier, and each message identifier corresponds to a unique serial number. And determining the unique alarm message corresponding to the message identifier according to the message identifier.
Step 206, buffer the warning message to the target message queue in the distributed message queue, and generate the target message queue identifier.
The distributed message queue may include a plurality of storage nodes, each storage node corresponding to a message queue. The plurality of storage nodes may be separate memories, or may be a plurality of virtual storage nodes divided in one memory. The Memory may be a Read Only Memory (ROM), a static Memory device, a dynamic Memory device, a Random Access Memory (RAM), or the like. After the message identifier is generated, determining a message queue for caching the alarm message from the distributed message queues, taking the determined message queue as a target message queue, and generating the target message queue identifier of the alarm message. When the alarm message is read according to the identifier of the alarm message, the target message queue identifier is used for quickly finding the target message queue in which the alarm message is stored from the distributed message queue.
In one embodiment, the method for acquiring the target message queue comprises the following steps: and selecting the message queue with the minimum current data load as a target message queue according to the data load of each message queue in the distributed message queues. In this embodiment, the message queue with the smallest data load is selected as the target message queue, so that the buffer space of the distributed queue can be utilized to the maximum extent.
And step 208, recording the message identifier, the target message queue identifier and the status flag of the alarm message in a preset list, wherein the status flag is not read.
After determining a target message queue corresponding to the warning message, caching the warning message into the target message queue, and recording a message identifier of the warning message, the corresponding target message queue and the state mark in a preset list. And when the value of the flag is the first flag value, the warning message is not read.
Step 210, reading the target message identifier and the target message queue identifier of which the status marks are not read from the preset list, sending the target alarm message corresponding to the target message identifier from the target message queue to the client, and modifying the status mark of the target message identifier into a read status mark.
The target message queue storing the target warning message can be quickly searched through the preset list and the target message queue identification, so that the efficiency of reading the warning message is improved. And after the warning message corresponding to the target message identifier is sent from the target message queue, modifying the unread state corresponding to the target message identifier in the preset list into the read state so as to avoid repeatedly reading the current message identifier.
In the method for processing the alarm message for monitoring the power grid of the distributed cluster, the alarm message is cached by adopting a distributed message queue, the alarm message is stored in a target message queue, the alarm message is identified by adopting a unique message identifier, and the message identifier of the alarm message, the target message queue identifier and a state mark are stored in a preset list; the warning message corresponding to the target message identification is sent to the client from the target message queue by reading the message identification of which the state label is not read, and the state label of the target hour identification is modified into the read state label, so that the warning message is conveniently found, and the risk of message repeated processing can be reduced. Based on the method, the storage performance of the system to the alarm message can be improved, and the technical problems of message blockage and even alarm message loss caused by excessive alarm messages can be avoided. Based on the method, the storage performance of the system to the alarm message can be improved, and the technical problems of message blockage and even alarm message loss caused by excessive alarm messages can be avoided.
In one embodiment, as shown in FIG. 3, step 204, generating an alert message based on the data, includes:
step 302, when the data is not in the preset normal threshold interval, generating an alarm message, wherein the alarm message comprises an identification field;
and step 304, generating a unique serial number, and writing the unique serial number into the identification field.
In this embodiment, the message identifier includes a unique serial number. When the server generates the alarm message, the server also generates a unique serial number corresponding to the alarm message for representing the time sequence generated by the alarm message. Further, in one embodiment, the unique serial number is generated incrementally. For example, if the unique serial number generated at the server side is "0001", the unique serial number generated this time may be "0002", and then the serial number "0002" is written in the identification field of the alarm message generated this time.
Further, in one embodiment, the message identification further includes a rank identifier; when the data is not in the preset normal threshold interval, after the alarm message is generated, the method further comprises: determining the fault type according to the alarm message; determining a processing level according to the fault type; and writing the grade identifier corresponding to the processing grade into the identification field.
The method comprises the steps of setting a preset abnormal threshold interval, judging the fault type of current data according to the abnormal threshold interval in which the real-time data is not in the preset normal threshold interval, determining a processing grade for the fault type according to the emergency degree of the fault type, and writing a grade identifier corresponding to the processing grade into an identification field of an alarm message. In a specific implementation process, the higher the processing level is, the smaller the value of the level identifier is, for example: the level identifiers corresponding to the high, medium and low processing levels are 1, 2 and 3.
Further, in one embodiment, the unique sequence number generated for this alarm message may be "0002" and the class identifier corresponding to the fault type may be 1. The identification field of the alarm message may take the form of "level identifier + unique serial number", with the level identification preceding and the unique serial number succeeding, i.e.: "10002".
According to the embodiment, the warning message can be divided according to the emergency degree by writing the level identifier into the message identifier, so that the warning message can be conveniently processed in batch according to the emergency degree of the warning message.
Further, in an embodiment, the preset list includes a plurality of list sections, each list section corresponds to one processing level, and the higher the processing level corresponding to the list space is, the higher the position of the list space in the preset list is. As shown in fig. 4, step 208, recording the message identifier, the target message queue and the status flag of the alert message in a preset list, including:
step 402: determining a target processing level of the alarm message according to the level identifier carried by the alarm message;
step 404: and determining a target list interval of the alarm message according to the target processing level of the alarm message, and recording a message identifier, a target message queue and a state mark of the alarm message in the target list interval.
In this embodiment, by storing the alarm messages with the same rank identifier in the target list interval, the alarm messages with the same processing rank can be collectively read according to the target list interval, so that the target alarm messages with higher priority rank can be processed preferentially.
In one embodiment, reading the target message identifier from the preset list comprises: reading according to the position of the preset list interval, reading the message identifier which is positioned most front in the preset list and marked as an unread state, and taking the currently read message identifier as a target message identifier. After the target warning message corresponding to the target message identifier is determined, the target warning message corresponding to the current message identifier is read from the current target message queue according to the target message queue identifier, and the target warning message is sent to the client.
Further, in one embodiment, after the position of the list interval is selected, the unique sequence numbers are sequentially read from small to large in the list interval, so that the alarm messages with earlier generation time can be preferentially processed, and the storage pressure of the target message queue is relieved.
As shown in fig. 5, after sending the target alert message corresponding to the target message identifier from the target message queue to the client in step 210, and modifying the status flag of the target message identifier to be read, the method further includes:
step 502, receiving a response message of a target warning message returned by a client, wherein the response message carries a target message identifier;
step 504, the status flag of the target message identifier is modified to be sent.
The first value of the state flag is modified to a second value, the second value of the state flag being used to indicate that it has been transmitted. The embodiment can achieve the effect of avoiding repeatedly sending the target warning message by modifying the state of the sent target message identifier.
As shown in fig. 6, after sending the target alert message corresponding to the target message identifier from the target message queue to the client in step 210, and modifying the status flag of the target message identifier to be read, the method further includes:
step 602, receiving a processing result feedback message of the target warning message returned by the client, wherein the processing result feedback message carries a target message identifier;
and step 604, modifying the state mark of the target message identifier to be successfully processed when the processing result feedback message is that the alarm processing is successful.
In this embodiment, the second value of the status flag is modified to a third value, and the third value is used to indicate that the status flag has been successfully processed. The embodiment can regularly clear the mark of the state mark in the preset list, which is successfully processed, by modifying the state of the target message mark, thereby achieving the beneficial effect of reducing the redundancy of the preset list.
In an embodiment, the method for processing a power grid monitoring alarm message of a distributed cluster provided by the present application is applied to the application environment described in fig. 7. Fig. 7 includes: the system 10 comprises a server 20, a distributed message queue 30 and an alarm processing cluster 40, wherein the distributed message queue 30 comprises a plurality of message queues 31, the alarm processing cluster 40 comprises a plurality of clients 41, and the server 20 adopts the above-mentioned power grid monitoring alarm message processing method of the distributed cluster.
In the embodiment of the present invention, the server 20 receives data sent by the remote measurement device 50; the server 20 generates an alarm message according to the data, wherein the alarm message carries a message identifier; the server 20 caches the warning message to a target message queue 31 in the distributed message queue 30, and generates a target message queue identifier; the server 20 records the message identifier, the target message queue identifier and the status flag of the warning message in a preset list, wherein the status flag is not read; the server 20 reads the target message identifier and the target message queue identifier whose status flags are not read from the preset list, sends the target warning message corresponding to the target message identifier to the client 41 from the target message queue 30, and modifies the status flag of the target message identifier to be read.
In the embodiment of the present invention, the target message identifier includes an identification field, and a unique sequence number and a class identifier are written in the identification field. Storing the alarm message in a preset list interval corresponding to the grade identifier according to the grade identifier, and then storing the target alarm message in the preset list interval according to the generation sequence of the unique serial number; reading the target list interval from small to large according to the reading time pattern sub-grade identifiers, and reading the message identifications in the target list interval according to the generation time sequence of the unique serial number.
The embodiment identifies the alarm message by adopting the unique message identifier, and stores the message identifier of the alarm message, the target message queue identifier and the state mark in a preset list; the warning message corresponding to the target message identification is sent to the client from the target message queue by reading the message identification of which the state label is not read, and the state label of the target hour identification is modified into the read state label, so that the warning message is conveniently found, and the risk of message repeated processing can be reduced.
It should be understood that although the various steps in the flow charts of fig. 1-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, there is provided a grid monitoring alarm message processing apparatus of a distributed cluster, including: a receiving module 802, an alert message generating module 804, a caching module 806, a recording module 808, and a reading module 810, wherein:
a receiving module 802, configured to receive data sent by a remote measurement device;
an alarm message generating module 804, configured to generate an alarm message according to the data, where the alarm message carries a message identifier;
the caching module 804 is configured to cache the warning message to a target message queue in the distributed message queue, and generate a target message queue identifier of the warning message;
a recording module 806, configured to record a message identifier, a target message queue identifier, and a status flag of the warning message in a preset list, where the status flag is unread;
the reading module 810 is configured to read a target message identifier and a target message queue identifier whose status marks are unread from a preset list, send a target alarm message corresponding to the target message identifier to the client from the target message queue, and modify the status mark of the target message identifier into a read status mark.
In one embodiment, as shown in fig. 8, the grid monitoring alarm message processing apparatus of the distributed cluster further includes a sending module 812, a processing module 814, and a cleaning module 816. The sending module 812 is configured to receive a response message of the target warning message returned by the client, where the response message carries a target message identifier; and modifying the state mark of the target message identification into the sent state mark. The processing module is configured to 814, receive a processing result feedback message of the target alarm message returned by the client, where the processing result feedback message carries the target message identifier; and when the processing result feedback message is that the alarm processing is successful, modifying the state mark of the target message identifier into the processed state mark. And a cleaning module 816, configured to periodically clean the target message identifier whose status flag is processed.
In the device for processing the alarm message for monitoring the power grid of the distributed cluster, the server side caches the alarm message by adopting the distributed message queue so as to achieve the purpose of uniformly storing the alarm message, thereby improving the storage performance of the system on the alarm message and avoiding the situations of message blockage and even alarm message loss caused by excessive alarm messages. The warning message is identified through the unique message identification, the message identification is read according to the preset sequence, and then the warning message is read from the target message queue which is recorded in the preset list and corresponds to the message identification, so that the warning message is conveniently found, and the risk of message repeated processing can be reduced.
For specific limitations of the power grid monitoring alarm message processing apparatus of the distributed cluster, reference may be made to the above limitations of the power grid monitoring alarm message processing method of the distributed cluster, which are not described herein again. All modules in the power grid monitoring alarm message processing device of the distributed cluster can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing a target message queue and a preset list. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for processing a power grid monitoring alarm message of a distributed cluster.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in a distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is not read;
reading a target message identifier and a target message queue identifier of which the state labels are not read from the preset list, sending a target alarm message corresponding to the target message identifier to a client from the target message queue, and modifying the state label of the target message identifier into a read state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the data is not in a preset normal threshold value interval, generating an alarm message, wherein the alarm message comprises an identification field;
and generating a unique serial number, and writing the unique serial number into the identification field.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and according to the sequence of the unique serial numbers from small to large in the preset list, the reading state mark is an unread target message identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining the fault type according to the alarm message;
determining a processing level according to the fault type;
and writing the grade identifier corresponding to the processing grade into the identification field.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a target processing level of the alarm message according to the level identifier carried by the alarm message;
and determining a target list interval of the alarm message according to the target processing level of the alarm message, and recording a message identifier, a target message queue identifier and a state mark of the alarm message in the target list interval.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a response message of a target warning message returned by the client, wherein the response message carries a target message identifier;
and modifying the state mark of the target message identification into the sent state mark.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a processing result feedback message of the target warning message returned by the client, wherein the processing result feedback message carries a target message identifier;
and when the processing result feedback message is that the alarm processing is successful, modifying the state mark of the target message identifier into the processed state mark.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in the distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is unread;
reading the target message identifier and the target message queue identifier of which the state mark is not read from the preset list, sending the target alarm message corresponding to the target message identifier to the client from the target message queue, and modifying the state mark of the target message identifier into the read state mark.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the data is not in a preset normal threshold interval, generating an alarm message, wherein the alarm message comprises an identification field;
and generating a unique serial number, and writing the unique serial number into the identification field.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and according to the sequence of the unique serial numbers from small to large in the preset list, the reading state mark is an unread target message identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the fault type according to the alarm message;
determining a processing level according to the fault type;
and writing the grade identifier corresponding to the processing grade into the identification field.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a target processing level of the alarm message according to the level identifier carried by the alarm message;
and determining a target list interval of the alarm message according to the target processing level of the alarm message, and recording a message identifier, a target message queue identifier and a state mark of the alarm message in the target list interval.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a response message of a target warning message returned by the client, wherein the response message carries a target message identifier;
and modifying the state mark of the target message identification into the sent state mark.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a processing result feedback message of the target warning message returned by the client, wherein the processing result feedback message carries a target message identifier;
and when the processing result feedback message is that the alarm processing is successful, modifying the state mark of the target message identifier into the processed state mark.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing a power grid monitoring alarm message of a distributed cluster is characterized by comprising the following steps:
receiving data sent by remote measuring equipment;
generating an alarm message according to the data, wherein the alarm message carries a message identifier;
caching the alarm message to a target message queue in a distributed message queue, and generating a target message queue identifier;
recording a message identifier, a target message queue identifier and a state mark of the alarm message in a preset list, wherein the state mark is not read;
reading a target message identifier and a target message queue identifier of which the state labels are not read from the preset list, sending a target alarm message corresponding to the target message identifier to a client from the target message queue, and modifying the state label of the target message identifier into a read state.
2. The method of claim 1, wherein the message identification comprises a unique sequence number; generating an alarm message according to the data, wherein the alarm message carries a message identifier, and the method comprises the following steps:
when the data is not in a preset normal threshold value interval, generating an alarm message, wherein the alarm message comprises an identification field;
and generating a unique serial number, and writing the unique serial number into the identification field.
3. The method of claim 2, wherein the unique serial number is generated incrementally; the reading of the target message identifier with the status flag being unread from the preset list includes:
and according to the sequence of the unique serial numbers from small to large in the preset list, the reading state mark is an unread target message identifier.
4. The method of claim 2, wherein the message identification further comprises a rank identifier; after generating the alarm message when the data is not within the preset normal threshold interval, the method further includes:
determining the fault type according to the alarm message;
determining a processing level according to the fault type;
and writing the grade identifier corresponding to the processing grade into the identification field.
5. The method of claim 4, wherein the predetermined list comprises a plurality of list intervals, each list interval corresponding to a processing level; the recording of the message identifier, the target message queue identifier and the status flag of the warning message in a preset list includes:
determining a target processing level of the alarm message according to the level identifier carried by the alarm message;
and determining a target list interval of the alarm message according to the target processing level of the alarm message, and recording a message identifier, a target message queue identifier and a state mark of the alarm message in the target list interval.
6. The method according to claim 1, wherein after sending the target alert message corresponding to the target message identifier from the target message queue to the client and modifying the status flag of the target message identifier to be read, the method further comprises:
receiving a response message of the target warning message returned by the client, wherein the response message carries the target message identifier;
and modifying the state mark of the target message identification into the sent state mark.
7. The method according to claim 1, wherein after sending the target alert message corresponding to the target message identifier from the target message queue to the client and modifying the status flag of the target message identifier to be read, the method further comprises:
receiving a processing result feedback message of the target warning message returned by the client, wherein the processing result feedback message carries the target message identifier;
and when the processing result feedback message is that the alarm processing is successful, modifying the state mark of the target message identifier into the processed state mark.
8. The utility model provides a distributed cluster's electric wire netting control warning message processing apparatus which characterized in that includes:
the receiving module is used for receiving data sent by the remote measuring equipment;
the warning message generating module is used for generating a warning message according to the data, and the warning message carries a message identifier;
the buffer module is used for buffering the alarm message to a target message queue in a distributed message queue and generating a target message queue identifier of the alarm message;
the recording module is used for recording the message identifier, the target message queue identifier and the state mark of the alarm message in a preset list, wherein the state mark is not read;
and the reading module is used for reading a target message identifier with a state mark being unread and the target message queue identifier from the preset list, sending a target warning message corresponding to the target message identifier to a client from the target message queue, and modifying the state mark of the target message identifier into a read state.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202110996773.XA 2021-08-27 2021-08-27 Power grid monitoring alarm message processing method of distributed cluster Active CN113724100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110996773.XA CN113724100B (en) 2021-08-27 2021-08-27 Power grid monitoring alarm message processing method of distributed cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110996773.XA CN113724100B (en) 2021-08-27 2021-08-27 Power grid monitoring alarm message processing method of distributed cluster

Publications (2)

Publication Number Publication Date
CN113724100A true CN113724100A (en) 2021-11-30
CN113724100B CN113724100B (en) 2024-05-10

Family

ID=78678567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110996773.XA Active CN113724100B (en) 2021-08-27 2021-08-27 Power grid monitoring alarm message processing method of distributed cluster

Country Status (1)

Country Link
CN (1) CN113724100B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143334A (en) * 2021-12-03 2022-03-04 爱信诺征信有限公司 Terminal control method and device
CN114567664A (en) * 2022-03-04 2022-05-31 苏州浪潮智能科技有限公司 Message processing result monitoring method and device, computer equipment and storage medium
CN117424797A (en) * 2023-12-19 2024-01-19 天讯瑞达通信技术有限公司 Real-time large concurrent alarm receiving and processing method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4823345A (en) * 1987-06-15 1989-04-18 International Business Machines Corp. Method and apparatus for communication network alert record identification
JP2010134724A (en) * 2008-12-05 2010-06-17 Canon It Solutions Inc Device and method for monitoring message queuing, program and recording medium
CN102546216A (en) * 2010-12-30 2012-07-04 中国移动通信集团山东有限公司 Method for processing alarm messages in network management system and network management system
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium
CN108809855A (en) * 2018-05-24 2018-11-13 北京三快在线科技有限公司 Information management method, device and electronic equipment
CN109714239A (en) * 2018-12-27 2019-05-03 新华三技术有限公司 A kind of delivery method, VNFM equipment and server managing message
CN110661659A (en) * 2019-09-23 2020-01-07 上海艾融软件股份有限公司 Alarm method, device and system and electronic equipment
CN112887196A (en) * 2021-01-20 2021-06-01 远景智能国际私人投资有限公司 Message sending method, system, device, equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4823345A (en) * 1987-06-15 1989-04-18 International Business Machines Corp. Method and apparatus for communication network alert record identification
JP2010134724A (en) * 2008-12-05 2010-06-17 Canon It Solutions Inc Device and method for monitoring message queuing, program and recording medium
CN102546216A (en) * 2010-12-30 2012-07-04 中国移动通信集团山东有限公司 Method for processing alarm messages in network management system and network management system
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium
CN108809855A (en) * 2018-05-24 2018-11-13 北京三快在线科技有限公司 Information management method, device and electronic equipment
CN109714239A (en) * 2018-12-27 2019-05-03 新华三技术有限公司 A kind of delivery method, VNFM equipment and server managing message
CN110661659A (en) * 2019-09-23 2020-01-07 上海艾融软件股份有限公司 Alarm method, device and system and electronic equipment
CN112887196A (en) * 2021-01-20 2021-06-01 远景智能国际私人投资有限公司 Message sending method, system, device, equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨帆;: "基于opentsdb的分布式实时监控方案", 福建电脑, no. 11, pages 143 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143334A (en) * 2021-12-03 2022-03-04 爱信诺征信有限公司 Terminal control method and device
CN114143334B (en) * 2021-12-03 2024-04-09 爱信诺征信有限公司 Terminal control method and device
CN114567664A (en) * 2022-03-04 2022-05-31 苏州浪潮智能科技有限公司 Message processing result monitoring method and device, computer equipment and storage medium
CN114567664B (en) * 2022-03-04 2023-08-11 苏州浪潮智能科技有限公司 Message processing result monitoring method, device, computer equipment and storage medium
CN117424797A (en) * 2023-12-19 2024-01-19 天讯瑞达通信技术有限公司 Real-time large concurrent alarm receiving and processing method
CN117424797B (en) * 2023-12-19 2024-03-01 天讯瑞达通信技术有限公司 Real-time large concurrent alarm receiving and processing method

Also Published As

Publication number Publication date
CN113724100B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN113724100B (en) Power grid monitoring alarm message processing method of distributed cluster
CN109522287B (en) Monitoring method, system, equipment and medium for distributed file storage cluster
CN108834086B (en) Method and device for sending short message, computer equipment and storage medium
CN111756601B (en) Microservice architecture monitoring method and device, computer equipment and readable storage medium
CN112468361A (en) Network connection state monitoring method and device, electronic equipment and storage medium
CN104967537A (en) Alarm information pushing method and device
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN112131073A (en) Server monitoring method and system
US9489138B1 (en) Method and apparatus for reliable I/O performance anomaly detection in datacenter
CN104346264A (en) System and method for processing system event logs
CN109766198B (en) Stream processing method, device, equipment and computer readable storage medium
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN114500315A (en) Equipment state monitoring method and device, computer equipment and storage medium
CN110674149A (en) Service data processing method and device, computer equipment and storage medium
CN113691395A (en) Network operation and maintenance method and device, computer equipment and storage medium
CN110838940B (en) Underground cable inspection task configuration method and device
CN111464393A (en) Method and device for monitoring running state of block chain and storage medium
CN109857344B (en) Heartbeat state judgment method and device based on shared memory and computer equipment
CN110879774B (en) Network element performance data alarming method and device
CN112035315A (en) Webpage data monitoring method and device, computer equipment and storage medium
CN114339468B (en) Data transmission method and device of unit equipment, computer equipment and storage medium
CN110955579A (en) Ambari-based large data platform monitoring method
CN114629942B (en) Fraud early warning task generation method, device, equipment and medium
CN117149567A (en) Method, device, equipment, medium and product for optimizing heat dissipation regulation of GPU (graphics processing unit) accelerator card
CN113660107B (en) Fault locating method, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant