CN116800584A - Internet of things alarm realization method based on dynamic editable rule engine - Google Patents

Internet of things alarm realization method based on dynamic editable rule engine Download PDF

Info

Publication number
CN116800584A
CN116800584A CN202310451840.9A CN202310451840A CN116800584A CN 116800584 A CN116800584 A CN 116800584A CN 202310451840 A CN202310451840 A CN 202310451840A CN 116800584 A CN116800584 A CN 116800584A
Authority
CN
China
Prior art keywords
rule
alarm
internet
dynamic
sub
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.)
Pending
Application number
CN202310451840.9A
Other languages
Chinese (zh)
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.)
Hangzhou Multi Ir Technology Co ltd
Original Assignee
Hangzhou Multi Ir Technology 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 Hangzhou Multi Ir Technology Co ltd filed Critical Hangzhou Multi Ir Technology Co ltd
Priority to CN202310451840.9A priority Critical patent/CN116800584A/en
Publication of CN116800584A publication Critical patent/CN116800584A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L41/064Management 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 involving time analysis
    • 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
    • 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/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an Internet of things alarm realization method based on a dynamic editable rule engine, which comprises the steps of setting a data transceiver module at an Internet of things server, and acquiring and transmitting acquired Internet of things equipment data through an interface in the data transceiver module; setting a rule configuration module at the client of the Internet of things, wherein the rule configuration module is open to users, and the users can set alarm rules according to actual demands; the rule configuration module is connected with the dynamic rule pool, the dynamic rule pool receives the data of the Internet of things equipment sent by the data receiving and transmitting module and judges whether the data generates an alarm or not.

Description

Internet of things alarm realization method based on dynamic editable rule engine
Technical Field
The invention relates to the technical field of the Internet of things, in particular to an Internet of things alarm realization method based on a dynamic editable rule engine.
Background
The internet of things alarm refers to an alarm or notification generated when an abnormality or a fault occurs in a device or a sensor connected to the internet of things. The internet of things device is typically able to capture data through sensors or other monitoring devices and send the data to the internet of things platform or central server for processing and analysis. When the device or sensor detects an abnormality in the data, such as an excessive temperature, low battery level, or a break in connection, they automatically generate an alarm so that an operator or manager can take timely measures to ensure proper operation of the device and maintain quality of service.
In the existing monitoring system of the internet of things, when the running state of the equipment detects abnormality, an alarm needs to be carried out, and the alarm of the internet of things on the equipment needs to be established on specific alarm judgment conditions, however, the traditional alarm system of the internet of things is realized based on a static rule engine or a processing engine, and the rules or flows of the engines are fixed and cannot be dynamically adjusted or changed. The system is difficult to adapt to the rapidly-changing business demands and data traffic, the alarm rules cannot be flexibly adjusted, and after the rule engine is edited and modified, operations such as system cleaning memory and the like are required to be restarted, so that the monitoring alarm efficiency of the Internet of things platform is affected.
Disclosure of Invention
The invention aims to provide an Internet of things alarm realization method based on a dynamic editable rule engine, which aims to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: an Internet of things alarm realization method based on a dynamic editable rule engine comprises the following steps:
s1, setting a data transceiver module at an Internet of things server, and acquiring and transmitting acquired Internet of things equipment data through an interface in the data transceiver module;
s2, setting a rule configuration module at the client of the Internet of things, wherein the rule configuration module is open to a user, and the user can set an alarm rule according to actual requirements;
s3, the rule configuration module is connected with a dynamic rule pool, and the dynamic rule pool receives the data of the Internet of things equipment sent by the data receiving and transmitting module and judges whether the data generates an alarm or not;
s4, the dynamic rule pool can judge whether to execute the generated new rule, and the dynamic rule pool can execute the rule in the rule configuration module.
S5, the dynamic rule pool is connected with an alarm generating module, the alarm generating module receives a judging result in the dynamic rule pool, and when the judging result is that an alarm is needed, the alarm generating module alarms.
Preferably, in the step S2, the alarm rule in the rule configuration module is composed of a plurality of sub-conditions, and a time window is configured in the rule configuration module, where each sub-condition includes a time interval, numerical logic, and frequency;
the time interval is used for setting the time length of receiving a plurality of pieces of effective data;
the numerical logic is used for carrying out logic calculation setting on numerical values reported by specific equipment;
the frequency is used for setting the times that the reported data accords with the numerical logic condition in the effective period of the sub-condition calculation of the specific equipment;
the time window is used for setting the time length used for judging all the sub-conditions.
Preferably, the step S2 specifically includes the following steps:
s21, after each sub-condition is met, a sub-condition 2 and a sub-condition 3 … sub-condition n can be continuously set;
s22, all the sub-conditions need to be effective in a time window, when the time of the time window is up, all the conditions are invalid, and the calculation of the sub-conditions is restarted for the next new data.
Preferably, in the step S4, the dynamic rule pool acquires the sub-conditions in the rule configuration module, determines whether the sub-conditions meet an execution condition, if yes, executes a new rule, and if not, returns a new rule execution exception keyword.
Preferably, in the step S4, the dynamic rule pool acquires the sub-conditions in the rule configuration module, and performs judgment calculation one by one, if the judgment duration is less than or equal to the time window, the calculation is indicated to be within the time window, if the judgment duration is greater than the time window, the calculation of all rules is ended.
Preferably, in the step S5, the alarm generating module alarms through a front end display page of the monitoring platform of the internet of things.
Preferably, the alarm generation module stores the alarm log to the local database in real time in the alarm process.
Preferably, the rule configuration module is initialized and loaded to the memory when the system is started for the first time, and the initial rule is stored in the database in json format.
Compared with the prior art, the invention has the beneficial effects that:
1. in the invention, four dimension rule conditions are set by the dynamic rule, namely time interval, frequency, numerical logic and time window, and a plurality of sub-conditions can be connected in series to form a new rule, alarms with various complexity can be dynamically edited, and the rule conditions can be edited and executed at any time through a client, so that dynamic adjustment or modification is realized to meet the rapidly-changing business demands and data flow.
2. In the invention, the effective new rule can enter the dynamic rule pool, the device data received under the peer-to-peer condition can be alarmed according to the new rule, and the device data runs to half of old rule calculation, and the device data can automatically lose effectiveness because of expiration of a time window, and operations such as restarting a system to clean a memory after each editing and modification are not needed.
Drawings
FIG. 1 is a flow chart of an Internet of things alarm implementation method based on a dynamic editable rule engine according to an embodiment of the invention;
fig. 2 is another flow chart of an alarm implementation method of the internet of things based on a dynamic editable rule engine according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-2, an embodiment of the present invention provides a method for implementing an alarm of an internet of things based on a dynamically editable rule engine, which specifically includes the following steps:
s1, setting a data transceiver module at an Internet of things server, and acquiring and transmitting acquired Internet of things equipment data through an interface in the data transceiver module;
s2, setting a rule configuration module at the client of the Internet of things, wherein the rule configuration module is open to a user, and the user can set an alarm rule according to actual requirements;
s3, the rule configuration module is connected with a dynamic rule pool, and the dynamic rule pool receives the data of the Internet of things equipment sent by the data receiving and transmitting module and judges whether the data generates an alarm or not;
s4, the dynamic rule pool can judge whether to execute the generated new rule, and the dynamic rule pool can execute the rule in the rule configuration module.
S5, the dynamic rule pool is connected with an alarm generating module, the alarm generating module receives a judging result in the dynamic rule pool, and when the judging result is that an alarm is needed, the alarm generating module alarms.
In this embodiment, in S2, the alarm rule in the rule configuration module is composed of a plurality of sub-conditions, and a time window is configured in the rule configuration module, where each sub-condition includes a time interval, a numerical logic, and a frequency.
The time interval is used for setting the time length of receiving a plurality of pieces of effective data; the numerical logic is used for carrying out logic calculation setting on numerical values reported by specific equipment; the frequency is used for setting the times that the reported data accords with the numerical logic condition in the effective period of the sub-condition calculation of the specific equipment; the time window is used for setting the time length used for judging all the sub-conditions.
Further, in the numerical logic, the numerical range can be set for the numerical value reported by a specific device, for example, greater than, less than, equal to, and unequal to, and meanwhile, the numerical range can be set for the numerical value reported by a specific device, for example, the temperature or humidity reported by the device, so that the numerical logic can set the temperature to be greater than 10, and the humidity to be less than 10.
Further, when a sub-condition is generated, for example, the time interval is set within 1 minute, the frequency is 2 times, and the numerical logic is greater than 100, the sub-condition is effective as long as the device receives a value greater than 100 2 times within 1 minute; if the setting is out of 1 minute, the frequency is 2 times, and the numerical logic is more than 100, it means that after 1 number of values more than 100 is received for the first time, if 1 number of values more than 100 is received again after 1 minute, the sub-condition is satisfied, and finally, all sub-condition combinations become the total condition of the rule.
In this embodiment, the step S2 specifically includes the following steps:
s21, after each sub-condition is met, a sub-condition 2 and a sub-condition 3 … sub-condition n can be continuously set;
s22, all the sub-conditions need to be effective in a time window, when the time of the time window is up, all the conditions are invalid, and the calculation of the sub-conditions is restarted for the next new data.
In this embodiment, in the S4, the dynamic rule pool obtains the sub-conditions in the rule configuration module, determines whether the sub-conditions meet an execution condition, if yes, executes a new rule, and if not, returns a new rule execution exception keyword.
Further, in the step S4, the dynamic rule pool acquires the sub-conditions in the rule configuration module, and performs judgment calculation one by one, if the judgment duration is less than or equal to the time window, the calculation is indicated to be within the time window, if the judgment duration is greater than the time window, the calculation of all rules is ended.
It should be noted that, the abnormal keyword can be obtained by the client of the internet of things, and the client prompts that the alarm rule is set with errors, and the alarm rule is edited and modified again.
In this embodiment, in the step S5, the alarm generating module performs an alarm through a front end display page of the monitoring platform of the internet of things, and meanwhile, the alarm generating module can store an alarm log to a local database in real time in an alarm process.
Specifically, when the system is started for the first time, the rule configuration module will be initialized and loaded into the memory, and the initial rule is stored in the database in json format.
To sum up: in the invention, four dimension rule conditions are set by dynamic rule, namely time interval, frequency, numerical logic and time window, and a plurality of sub-conditions can be connected in series to form a new rule, alarms with various complexity can be edited dynamically, the rule conditions can be edited and executed at any time through a client, so that dynamic adjustment or modification is realized to meet the rapidly-changing business requirement and data flow, in addition, the effective new rule can enter a dynamic rule pool, the equipment data received under the peer-to-peer condition can be alarmed according to the new rule, and the new rule is operated to half of old rule calculation, and then the operation of cleaning a memory and the like of the system is not restarted after each editing and modifying can be automatically failed because the time window expires.
None of the inventions are related to the same or are capable of being practiced in the prior art. Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. The method for realizing the alarm of the Internet of things based on the dynamic editable rule engine is characterized by comprising the following steps of:
s1, setting a data transceiver module at an Internet of things server, and acquiring and transmitting acquired Internet of things equipment data through an interface in the data transceiver module;
s2, setting a rule configuration module at the client of the Internet of things, wherein the rule configuration module is open to a user, and the user can set an alarm rule according to actual requirements;
s3, the rule configuration module is connected with a dynamic rule pool, and the dynamic rule pool receives the data of the Internet of things equipment sent by the data receiving and transmitting module and judges whether the data generates an alarm or not;
s4, the dynamic rule pool can judge whether to execute the generated new rule, and the dynamic rule pool can execute the rule in the rule configuration module;
s5, the dynamic rule pool is connected with an alarm generating module, the alarm generating module receives a judging result in the dynamic rule pool, and when the judging result is that an alarm is needed, the alarm generating module alarms.
2. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 1, wherein the method comprises the following steps: in the step S2, the alarm rule in the rule configuration module is composed of a plurality of sub-conditions, and a time window is configured in the rule configuration module, wherein each sub-condition comprises a time interval, numerical logic and frequency;
the time interval is used for setting the time length of receiving a plurality of pieces of effective data;
the numerical logic is used for carrying out logic calculation setting on numerical values reported by specific equipment;
the frequency is used for setting the times that the reported data accords with the numerical logic condition in the effective period of the sub-condition calculation of the specific equipment;
the time window is used for setting the time length used for judging all the sub-conditions.
3. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 2, wherein the method comprises the following steps: the step S2 specifically comprises the following steps:
s21, after each sub-condition is met, a sub-condition 2 and a sub-condition 3 … sub-condition n can be continuously set;
s22, all the sub-conditions need to be effective in a time window, when the time of the time window is up, all the conditions are invalid, and the calculation of the sub-conditions is restarted for the next new data.
4. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 2, wherein the method comprises the following steps: in the step S4, the dynamic rule pool obtains the sub-conditions in the rule configuration module, determines whether the sub-conditions meet the execution conditions, if yes, executes the new rule, and if not, returns the new rule execution abnormal keyword.
5. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 1, wherein the method comprises the following steps: in the step S4, the dynamic rule pool acquires the sub-conditions in the rule configuration module, and performs judgment and calculation one by one, if the judgment duration is less than or equal to the time window, the calculation is indicated to be within the time window, if the judgment duration is greater than the time window, the calculation of all rules is ended.
6. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 1, wherein the method comprises the following steps: in the S5, the alarm generating module alarms through a front end display page of the monitoring platform of the internet of things.
7. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 6, wherein the method comprises the following steps: the alarm generation module stores an alarm log to a local database in real time in the alarm process.
8. The method for realizing the alarm of the internet of things based on the dynamic editable rule engine according to claim 1, wherein the method comprises the following steps: when the system is started for the first time, the rule configuration module can be initialized and loaded into the memory, and the initial rule is stored in the database in json format.
CN202310451840.9A 2023-04-21 2023-04-21 Internet of things alarm realization method based on dynamic editable rule engine Pending CN116800584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310451840.9A CN116800584A (en) 2023-04-21 2023-04-21 Internet of things alarm realization method based on dynamic editable rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310451840.9A CN116800584A (en) 2023-04-21 2023-04-21 Internet of things alarm realization method based on dynamic editable rule engine

Publications (1)

Publication Number Publication Date
CN116800584A true CN116800584A (en) 2023-09-22

Family

ID=88033509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310451840.9A Pending CN116800584A (en) 2023-04-21 2023-04-21 Internet of things alarm realization method based on dynamic editable rule engine

Country Status (1)

Country Link
CN (1) CN116800584A (en)

Similar Documents

Publication Publication Date Title
CN111176879A (en) Fault repairing method and device for equipment
CN110716842B (en) Cluster fault detection method and device
WO2019182750A1 (en) Multi-variant anomaly detection from application telemetry
CN114978883B (en) Network wakeup management method and device, electronic equipment and storage medium
CN109273045B (en) Storage device online detection method, device, equipment and readable storage medium
CN111679950B (en) Interface-level dynamic data sampling method and device
CN108306997B (en) Domain name resolution monitoring method and device
CN108959037A (en) A kind of data center's automatic detecting method and device
CN110875832B (en) Abnormal service monitoring method, device and system and computer readable storage medium
CN112614002A (en) Data acquisition system, method, device, electronic equipment and computer storage medium
CN111130882A (en) Monitoring system and method of network equipment
CN106982141A (en) Weblogic examples monitoring method and device
CN114401207A (en) Positioning method and device for communication abnormal terminal equipment and electronic equipment
CN113656252A (en) Fault positioning method and device, electronic equipment and storage medium
CN117194175A (en) Log alarm monitoring method and device and computer storage medium
CN100359865C (en) Detecting method
CN116800584A (en) Internet of things alarm realization method based on dynamic editable rule engine
CN115296979B (en) Fault processing method, device, equipment and storage medium
CN112882891B (en) Method for monitoring Web access link of client
CN108737164A (en) A kind of telecommunication network Real-time Alarm filter method and device
CN101267473B (en) A processing method for surge alarm
CN109150666B (en) Method for preventing website downtime
CN118051069B (en) Automatic control method and system for coating thickness
CN116185787B (en) Self-learning type monitoring alarm method, device, equipment and storage medium
CN115190001B (en) Network abnormal state analysis method and device

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