Real-time alarm linkage method and system based on Internet of things
1. A real-time alarm linkage method based on the Internet of things is characterized by comprising the following steps:
acquiring equipment alarm information reported by an Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter;
comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter, and respectively judging whether each comparison result meets a preset condition;
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit executes linkage operation according to a preset rule template.
2. The real-time alarm linkage method based on the Internet of things of claim 1, wherein the alarm parameters comprise one or more of alarm type, alarm level, area to which the alarm belongs and alarm equipment.
3. The real-time alarm linkage method based on the internet of things of claim 2, wherein the step of comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter and respectively judging whether each comparison result meets a preset condition specifically comprises the steps of:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
4. The real-time alarm linkage method based on the internet of things as claimed in claim 3, wherein when the types of the alarm parameters include an alarm type, an alarm level, an alarm belonging area and alarm equipment, the alarm parameters of the equipment alarm information are compared with the linkage algorithm corresponding to the alarm parameters in sequence according to a preset order, and whether each comparison result meets a preset condition is respectively determined, specifically:
judging whether the alarm type of the equipment alarm information meets a preset type condition or not according to a type linkage algorithm, and if so, judging whether the alarm grade of the equipment alarm information meets a preset grade condition or not according to a grade linkage algorithm;
when the alarm grade of the equipment alarm information is judged to meet a preset grade condition according to a grade linkage algorithm, judging whether an area to which the alarm of the equipment alarm information belongs meets a preset area condition or not according to an area linkage algorithm;
and when judging that the alarm area of the equipment alarm information meets the preset area condition according to the area linkage algorithm, judging whether the alarm equipment of the equipment alarm information meets the preset equipment condition according to the equipment linkage algorithm.
5. The real-time alarm linkage method based on the internet of things of claim 1, wherein when all comparison results meet preset conditions, the equipment alarm information is input to a linkage service unit, so that the linkage service unit executes linkage operation according to a preset rule template, specifically:
and when all comparison results meet preset conditions, inputting the equipment alarm information into an action queue table of a linkage service unit, so that the linkage service unit executes linkage operation according to the sequence of the action queue table and preset rule templates in sequence.
6. The real-time alarm linkage method based on the internet of things of claim 1, wherein when all comparison results meet preset conditions, the equipment alarm information is input to a linkage service unit, so that the linkage service unit executes linkage operation according to a preset rule template, and specifically comprises:
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit extracts key parameters of the equipment alarm information and generates an alarm notification message by combining a preset content template to send the alarm notification message.
7. The real-time alarm linkage method based on the internet of things as claimed in claim 1, wherein the obtaining of the device alarm information reported by the internet of things system in real time specifically comprises:
and judging whether the current moment is within a preset time range according to a preset time template, and if so, acquiring equipment alarm information reported by the Internet of things system in real time.
8. The utility model provides a real-time warning linkage system based on thing networking which characterized in that includes:
the information acquisition module is used for acquiring equipment alarm information reported by the Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter;
the linkage comparison module is used for comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter and respectively judging whether each comparison result meets a preset condition;
and the linkage execution module is used for inputting the equipment alarm information to the linkage service unit when all comparison results meet preset conditions so that the linkage service unit executes linkage operation according to a preset rule template.
9. The real-time alarm linkage system based on the internet of things of claim 8, wherein the alarm parameters comprise one or more of alarm type, alarm level, area to which the alarm belongs, and alarm device.
10. The real-time alarm linkage system based on the internet of things of claim 9, wherein the linkage comparison module is specifically configured to:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
Background
Along with the development and popularization of the internet of things technology, alarm information of various devices generated in the internet of things system is more and more.
At present, when equipment in an internet of things system is triggered to alarm events, equipment alarm information is only fed back to a management system, and a manager takes corresponding measures according to the alarm information, so that the problems of labor and time waste, low management efficiency and low response timeliness are solved. For a system user, the internet of things system which only feeds back massive alarm log information cannot meet daily work requirements.
Disclosure of Invention
The invention aims to provide a real-time alarm linkage method and system based on the Internet of things, which aim to solve the technical problem and improve the management efficiency of a user on the Internet of things system.
In order to solve the technical problem, an embodiment of the present invention provides a real-time alarm linkage method based on an internet of things, including:
acquiring equipment alarm information reported by an Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter;
comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter, and respectively judging whether each comparison result meets a preset condition;
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit executes linkage operation according to a preset rule template.
Further, the alarm parameters comprise one or more of alarm type, alarm grade, alarm belonging area and alarm equipment.
Further, comparing each alarm parameter of the device alarm information with a linkage algorithm corresponding to the alarm parameter, and respectively determining whether each comparison result meets a preset condition, specifically including:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
Further, when the types of the alarm parameters include an alarm type, an alarm level, an area to which the alarm belongs, and an alarm device, sequentially comparing each alarm parameter of the device alarm information with a linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively determining whether each comparison result meets a preset condition, specifically:
judging whether the alarm type of the equipment alarm information meets a preset type condition or not according to a type linkage algorithm, and if so, judging whether the alarm grade of the equipment alarm information meets a preset grade condition or not according to a grade linkage algorithm;
when the alarm grade of the equipment alarm information is judged to meet a preset grade condition according to a grade linkage algorithm, judging whether an area to which the alarm of the equipment alarm information belongs meets a preset area condition or not according to an area linkage algorithm;
and when judging that the alarm area of the equipment alarm information meets the preset area condition according to the area linkage algorithm, judging whether the alarm equipment of the equipment alarm information meets the preset equipment condition according to the equipment linkage algorithm.
Further, when all comparison results meet a preset condition, the device alarm information is input to a linkage service unit, so that the linkage service unit executes linkage operation according to a preset rule template, specifically:
and when all comparison results meet preset conditions, inputting the equipment alarm information into an action queue table of a linkage service unit, so that the linkage service unit executes linkage operation according to the sequence of the action queue table and preset rule templates in sequence.
Further, when all comparison results meet a preset condition, the device alarm information is input to a linkage service unit, so that the linkage service unit executes linkage operation according to a preset rule template, and the method specifically includes:
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit extracts key parameters of the equipment alarm information and generates an alarm notification message by combining a preset content template to send the alarm notification message.
Further, the acquiring of the device alarm information reported by the internet of things system in real time specifically includes:
and judging whether the current moment is within a preset time range according to a preset time template, and if so, acquiring equipment alarm information reported by the Internet of things system in real time.
In order to solve the same technical problem, the invention also provides a real-time alarm linkage system based on the internet of things, which comprises the following components:
the information acquisition module is used for acquiring equipment alarm information reported by the Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter;
the linkage comparison module is used for comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter and respectively judging whether each comparison result meets a preset condition;
and the linkage execution module is used for inputting the equipment alarm information to the linkage service unit when all comparison results meet preset conditions so that the linkage service unit executes linkage operation according to a preset rule template.
Further, the alarm parameters comprise one or more of alarm type, alarm grade, alarm belonging area and alarm equipment.
Further, the linkage comparison module is specifically configured to:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a real-time alarm linkage method and a real-time alarm linkage system based on the Internet of things, wherein the method comprises the following steps: acquiring equipment alarm information reported by an Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter; comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter, and respectively judging whether each comparison result meets a preset condition; and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit executes linkage operation according to a preset rule template. According to the invention, the acquired initial equipment alarm information is compared one by one according to a series of linkage algorithm rules, and corresponding linkage action is executed when the comparison result meets the condition, so that the mass equipment alarm information acquired by the Internet of things is effectively analyzed and filtered, and the management efficiency of a user on the Internet of things system is greatly improved.
Drawings
Fig. 1 is a schematic flow chart of a real-time alarm linkage method based on the internet of things according to an embodiment of the present invention;
fig. 2 is an overall flow diagram of a real-time alarm linkage method based on the internet of things according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a linkage algorithm of a real-time alarm linkage method based on the internet of things according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a real-time alarm linkage system based on the internet of things according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a real-time alarm linkage method based on an internet of things, including:
s1, acquiring equipment alarm information reported by the Internet of things system in real time; wherein, the equipment alarm information comprises at least one alarm parameter. Further, the alarm parameters comprise one or more of alarm type, alarm grade, alarm belonging area and alarm equipment.
Step S1 is to obtain the equipment alarm information reported by the Internet of things system in real time, so as to judge whether the corresponding linkage algorithm conditions are met one by one according to the alarm parameter types of the equipment alarm information. By way of illustration, the alarm parameters may include any one or more of alarm type, alarm level, area to which the alarm belongs, and alarm device; for example, may include preconfigured alarm types (alarm classification, grouping); different alarm types have different alarm levels (for example, in the detection of the temperature of the machine room, the higher temperature and the ultrahigh temperature are two different alarm types, and the corresponding alarm levels are different); the alarm information belongs to a region (for example, if the machine room is a region, the rack is also a region, and the machine room comprises a plurality of racks, the machine room and the racks are in a top-bottom relationship); the alarm device may be a category of alarm device.
In the embodiment of the present invention, further, the obtaining of the device alarm information reported by the internet of things system in real time specifically includes:
and judging whether the current moment is within a preset time range according to a preset time template, and if so, acquiring equipment alarm information reported by the Internet of things system in real time.
It should be noted that, in practical application, the time template may be configured according to requirements, so as to ensure that only the alarm within the set time range performs the corresponding linkage action.
S2, comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter, and respectively judging whether each comparison result meets a preset condition.
In the embodiment of the present invention, further, step S2 specifically includes:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
It should be noted that, in specific applications, the determination of various alarm parameters is performed according to a certain sequence, so that the operation process of the system can be effectively optimized. For example, since the conditions are sequentially judged one by one, the judgment action that the general probability may not meet the conditions (according to experimental statistics) is put in front, so that the alarm information which does not meet the whole logic chain can be eliminated as soon as possible, the situation that the alarm information can be eliminated only after reaching the final judgment logic after a series of judgments is avoided, and when the system simultaneously acquires a plurality of alarm information, which meets the linkage conditions and which does not meet the linkage conditions can be judged at the fastest, and the operation pressure of the system can be effectively reduced.
As an example, the matching of the linkage algorithm may be performed in the following order of determination.
When the types of the alarm parameters include an alarm type, an alarm level, an area to which the alarm belongs, and an alarm device, step S2 specifically includes:
judging whether the alarm type of the equipment alarm information meets a preset type condition or not according to a type linkage algorithm, and if so, judging whether the alarm grade of the equipment alarm information meets a preset grade condition or not according to a grade linkage algorithm;
when the alarm grade of the equipment alarm information is judged to meet a preset grade condition according to a grade linkage algorithm, judging whether an area to which the alarm of the equipment alarm information belongs meets a preset area condition or not according to an area linkage algorithm;
and when judging that the alarm area of the equipment alarm information meets the preset area condition according to the area linkage algorithm, judging whether the alarm equipment of the equipment alarm information meets the preset equipment condition according to the equipment linkage algorithm.
In other embodiments, the determination may be performed in other orders.
And S3, when all comparison results meet preset conditions, inputting the equipment alarm information to a linkage service unit so that the linkage service unit executes linkage operation according to a preset rule template.
In the embodiment of the present invention, further, step S3 specifically includes:
and when all comparison results meet preset conditions, inputting the equipment alarm information into an action queue table of a linkage service unit, so that the linkage service unit executes linkage operation according to the sequence of the action queue table and preset rule templates in sequence.
In a possible embodiment, step S3 specifically includes:
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit extracts key parameters of the equipment alarm information and generates an alarm notification message by combining a preset content template to send the alarm notification message.
Based on the above scheme, in order to better understand the real-time alarm linkage method based on the internet of things provided by the embodiment of the invention, detailed description is provided below.
It should be noted that, the alarm system of the internet of things in the prior art has the following disadvantages:
1. the alarm data is initial alarm information reported by the equipment, and classification, zoning and alarm level classification are not carried out;
2. different linkage processing cannot be carried out according to different alarm types, and a standardized data configuration method does not exist;
3. the alarm linkage time cannot be controlled;
4. the linkage content can not be changed according to different alarm information;
5. different linkage action parameters are different, and abstract design is not carried out.
In order to solve the problems, the invention formulates the linkage rule by intelligently analyzing the alarm information, thereby realizing the automatic linkage of other equipment to carry out corresponding actions. Referring to fig. 2-3, fig. 2 is a general flowchart of the present embodiment, in the first step of the process, alarm data is deeply analyzed and processed according to the type, area, and event level of the alarm device, and then the data is processed into action execution parameter data required by the linkage service through a linkage algorithm according to the linkage rule and the time template. Fig. 3 is a flowchart of a linkage algorithm according to an embodiment of the present invention, which mainly shows how to process a processed alarm data into action queue data through a time template, a content template, and a linkage rule, so as to enable a linkage service to execute.
The invention has the following implementation steps:
1. and performing deep analysis on the alarm data, obtaining attributes such as an alarm type, superior equipment, an alarm grade, an equipment type, a located area and the like according to the data relation of the alarm equipment platform, adding the attributes into the alarm data, and configuring the format of the alarm information in advance. The method specifically comprises the following steps: configuring an area where equipment is located, wherein a machine room is an area, a rack is also an area, and the machine room and the rack are in a superior-subordinate relation; configuring events, namely alarm types of equipment, wherein different alarm types have different alarm levels, and in the machine room temperature detection, the higher temperature and the ultrahigh temperature are two different alarm types, and the corresponding alarm levels are different; and configuring the alarm level of the area to which the equipment belongs and the equipment per se.
2. Configuring linkage rules, selecting alarm event types, alarm conditions (equipment, levels and areas), time templates, content templates, selecting actions and action sources, and storing configurations. The method specifically comprises the following preconditions: the time template only carries out corresponding linkage action if the alarm is within a set time range; the system is provided with a corresponding linkage action template; the content template and the alarm linkage content template should contain macro definition of variable data.
3. And after obtaining the initial alarm information, comparing and matching according to a linkage algorithm. The method specifically comprises the following steps: searching whether a time template to which the linkage rule belongs exists at the current time; detecting whether the current alarm is processed by a linkage algorithm; and searching whether an alarm corresponding to the configuration linkage rule exists in the alarm data after the alarm time processed last time.
4. Linkage service: writing the linkage result into an action queue list to be executed; the system is provided with an action queue processing job template or job service, and the action queue list to be processed is read in a round trip manner, and the state of an action pair list is updated after the action queue processing is finished. The linkage action may specifically be: and generating linkage notification content for notification according to the message template and the alarm attribute of the linkage notification. And after the linkage action is executed, recording the alarm linkage log.
It should be noted that the above method or flow embodiment is described as a series of acts or combinations for simplicity, but those skilled in the art should understand that the present invention is not limited by the described acts or sequences, as some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the inventive embodiments.
Referring to fig. 4, in order to solve the same technical problem, the present invention further provides a real-time alarm linkage system based on the internet of things, including:
the information acquisition module 1 is used for acquiring equipment alarm information reported by the Internet of things system in real time; the equipment alarm information comprises at least one alarm parameter;
the linkage comparison module 2 is used for comparing each alarm parameter of the equipment alarm information with a linkage algorithm corresponding to the alarm parameter, and respectively judging whether each comparison result meets a preset condition;
and the linkage execution module 3 is used for inputting the equipment alarm information to a linkage service unit when all comparison results meet preset conditions so that the linkage service unit executes linkage operation according to a preset rule template.
In the embodiment of the present invention, further, the alarm parameter includes one or more of an alarm type, an alarm level, an area to which the alarm belongs, and an alarm device.
In an embodiment of the present invention, further, the linkage comparison module is specifically configured to:
and sequentially comparing each alarm parameter of the equipment alarm information with the linkage algorithm corresponding to the alarm parameter according to a preset sequence, and respectively judging whether each comparison result meets a preset condition.
In the embodiment of the present invention, further, when the types of the alarm parameters include an alarm type, an alarm level, an area to which an alarm belongs, and an alarm device, the alarm parameters of the device alarm information are sequentially compared with a linkage algorithm corresponding to the alarm parameters according to a preset order, and whether each comparison result meets a preset condition is respectively determined, specifically:
judging whether the alarm type of the equipment alarm information meets a preset type condition or not according to a type linkage algorithm, and if so, judging whether the alarm grade of the equipment alarm information meets a preset grade condition or not according to a grade linkage algorithm;
when the alarm grade of the equipment alarm information is judged to meet a preset grade condition according to a grade linkage algorithm, judging whether an area to which the alarm of the equipment alarm information belongs meets a preset area condition or not according to an area linkage algorithm;
and when judging that the alarm area of the equipment alarm information meets the preset area condition according to the area linkage algorithm, judging whether the alarm equipment of the equipment alarm information meets the preset equipment condition according to the equipment linkage algorithm.
In an embodiment of the present invention, further, the linkage execution module is specifically configured to:
and when all comparison results meet preset conditions, inputting the equipment alarm information into an action queue table of a linkage service unit, so that the linkage service unit executes linkage operation according to the sequence of the action queue table and preset rule templates in sequence.
In a specific embodiment, further, when all the comparison results satisfy a preset condition, the method includes inputting the device alarm information to a linkage service unit, so that the linkage service unit executes a linkage operation according to a preset rule template, and specifically includes:
and when all comparison results meet preset conditions, inputting the equipment alarm information into a linkage service unit so that the linkage service unit extracts key parameters of the equipment alarm information and generates an alarm notification message by combining a preset content template to send the alarm notification message.
In the embodiment of the present invention, further, the information obtaining module 1 is specifically configured to:
and judging whether the current moment is within a preset time range according to a preset time template, and if so, acquiring equipment alarm information reported by the Internet of things system in real time.
It can be understood that the above system item embodiments correspond to the method item embodiments of the present invention, and the real-time alarm linkage system based on the internet of things provided by the embodiments of the present invention can implement the real-time alarm linkage method based on the internet of things provided by any one of the method item embodiments of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种LEU监测预警方法及系统