Water conservancy monitoring data alarm method and system, storage medium and product
The configurable alarm method for water conservancy monitoring data addresses inefficiencies by dynamically adapting to diverse data sources and user needs, improving development efficiency and response times through logical expression-based judgment and customizable notifications.
Patent Information
- Application Number
- CN202411130028.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing alarm methods for water conservancy monitoring data in the water conservancy industry face large development workloads, slow response times, and inefficiencies due to frequent code changes and the need for hard coding, especially when dealing with diverse data sources and alarm rules across different projects and scenarios.
A configurable alarm method and system that abstracts alarm processing logic, including data acquisition, rule configuration, alarm content generation, and notification methods, allowing dynamic adaptation to different data sources and user needs, using a relational database to store configuration in JSON format and employing logical expressions for judgment.
The solution enhances development efficiency, reduces workload, and enables quick responses to user needs by providing wide compatibility and adaptability, with lightweight judgment and customizable notification methods.
Smart Images

Figure CN119207028A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water conservancy industry data analysis, and in particular to an alarm method, system, storage medium and product for water conservancy monitoring data. Background Art
[0002] In the water conservancy industry, there are a variety of real-time water conservancy monitoring data, such as rainfall data, river water level and flow monitoring data, various water quality index data, the water level before the gate, the water level after the gate, the opening degree and other monitoring data of the regulating gate. These water conservancy monitoring data need to alarm and notify the user when certain alarm rules are met.
[0003] At present, most of the alarm methods for water conservancy monitoring data in the water conservancy industry are implemented through hard code. That is, according to the water conservancy monitoring data actually processed, the water conservancy monitoring data is obtained from the corresponding data source (generally a table in a relational database), and then according to the alarm rules provided by the user, hard coding is performed to implement the logical judgment of the alarm method, and the alarm is generated by updating the status information of the water conservancy monitoring equipment, and then combined with the basic information of the water conservancy monitoring equipment, it is assembled into complete alarm information, and finally saved into the warehouse and issued an alarm notification. There are also some methods that implement the alarm method in combination with the rule engine of the water conservancy profession, that is, introduce the rule engine, configure the alarm rules of different water conservancy monitoring data through the rule engine, and then implement the judgment and processing of the alarm logic.
[0004] However, the data sources of water conservancy monitoring data in different scenarios are different, most of which are tables in relational databases. Even for water conservancy monitoring data in the same scenario, the data sources on different projects are somewhat different, and the alarm rules are also different, which will be changed accordingly according to different projects. Since the data sources of different types of water conservancy monitoring data are different, and the alarm rules of different projects will also change frequently according to actual conditions, it is necessary to adapt the data and alarm rules to a certain extent. If the alarm rules are hard-coded and developed according to different projects, the code will change frequently, the development workload will be large, the cycle will be long, and the user's needs cannot be responded to quickly and timely. If the alarm rules of different water conservancy monitoring data are introduced into the rule engine, although the alarm rules can be configured, the workload of repeated development can be reduced to a certain extent, but the problem of obtaining data from different data sources is still not solved. The acquisition of data from different data sources still needs to be implemented through hard coding. In addition, the assembly of alarm content after the alarm is generated, the update of the status of water conservancy monitoring equipment, and the processing of alarm notifications are not within the scope of the rule engine, and still need to be implemented through hard coding, which has the disadvantages of large development workload, long cycle, and untimely response. In addition, the current alarm judgment for water conservancy monitoring data generally involves threshold comparison of the numerical values of monitoring indicators. The judgment rules are relatively simple, and the rule engine used in this scenario is a heavyweight reference, which is not conducive to code simplification and maintenance. Summary of the invention
[0005] Based on this, it is necessary to provide an alarm method, system, storage medium and product for water conservancy monitoring data to address the above technical problems, so as to improve the shortcomings of existing technologies such as large development workload, low efficiency and slow response.
[0006] In a first aspect, the present invention provides an alarm method for water conservancy monitoring data, the method comprising:
[0007] Establishing water conservancy alarm logic configuration and storing it in a relational database; wherein the water conservancy alarm logic configuration includes water conservancy monitoring data acquisition configuration, water conservancy alarm rule configuration, alarm content template configuration, alarm notification method configuration, and water conservancy monitoring equipment status update configuration;
[0008] Acquire water conservancy monitoring data in real time through the water conservancy monitoring data acquisition configuration, and assemble to obtain the context information required by the water conservancy alarm logic;
[0009] According to the water conservancy alarm rule configuration, and in combination with the water conservancy monitoring data and the context information, a logical expression is calculated;
[0010] Alarm determination is performed based on the logical expression:
[0011] If an alarm is generated, the alarm content is assembled according to the alarm content template configuration and the context information; the alarm content is sent to the recipient according to the alarm notification mode configuration; at the same time, the water conservancy monitoring equipment status update configuration is used to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration;
[0012] If no alarm is generated, the water conservancy monitoring equipment status update configuration is directly used at the same time to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration.
[0013] Furthermore, the configuration template of the water conservancy monitoring data acquisition configuration includes: database name, table name, related data fields, query condition parameters, sorting conditions and data size.
[0014] Furthermore, the query condition parameters include: the name of the field to be queried, the comparison method, and the comparison value of the corresponding field name.
[0015] Furthermore, the method for obtaining the logical expression includes: obtaining one or more of the logical expressions by using one or more field names and preset indicator configurations corresponding to the field names.
[0016] Further, when a plurality of the logical expressions are obtained by using a plurality of field names and the preset indicator configurations corresponding to the field names;
[0017] A plurality of the logical expressions are logically combined to obtain a logical expression.
[0018] Furthermore, the alarm notification method configuration includes: one or more of system sending, SMS sending, and email sending.
[0019] Furthermore, the water conservancy monitoring equipment status data includes: equipment status alarm conditions, equipment site code, and equipment alarm time.
[0020] In a second aspect, the present invention further provides an alarm system for water conservancy monitoring data, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the above methods.
[0021] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps of any of the above methods when executed by a processor.
[0022] In a fourth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of any of the above methods when executed by a processor.
[0023] In general, the present invention provides an alarm method, system, storage medium and product for water conservancy monitoring data, which can achieve the following beneficial effects compared with the prior art:
[0024] The present invention uses a configurable approach to perform common abstract extraction on the alarm processing logic of water conservancy monitoring data in the water conservancy industry, and uses a configurable approach from the data source acquisition of water conservancy monitoring data to the alarm rule judgment, from the status update of water conservancy monitoring equipment to the water conservancy alarm content format, alarm notification method, etc., thereby being compatible with water conservancy monitoring data of different types and projects, alarm rules of different scenarios and users, and different alarm notification methods. It has the advantages of wide compatibility, high adaptability, fast response, and light weight, which not only greatly improves development efficiency and reduces development workload, but also achieves the purpose of quickly and promptly responding to user needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 The present invention provides a method flow diagram of an alarm method, system, storage medium and product for water conservancy monitoring data. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the drawings and embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0028] It should be noted that, in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method, step or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such method, step or system. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the method, step or system including the element.
[0029] First, as Figure 1 As shown, the present invention provides an alarm method for water conservancy monitoring data, which abstracts and extracts the commonality of the alarm processing logic of water conservancy monitoring data, and makes all the processes from obtaining water conservancy monitoring data from the data source to determining water conservancy alarm rules, updating the status of water conservancy monitoring equipment, and water conservancy alarm notification methods configurable, which greatly improves development efficiency and reduces development workload. The specific method includes:
[0030] Establish water conservancy alarm logic configuration and store it in a relational database; among them, the water conservancy alarm logic configuration includes water conservancy monitoring data acquisition configuration, water conservancy alarm rule configuration, alarm content template configuration, alarm notification method configuration, and water conservancy monitoring equipment status update configuration.
[0031] The water conservancy monitoring data acquisition configuration is used to obtain water conservancy monitoring data in real time and assemble the context information required for the water conservancy alarm logic.
[0032] According to the water conservancy alarm rule configuration, and combined with the water conservancy monitoring data and context information, the logical expression is calculated.
[0033] Alarm determination based on logical expressions:
[0034] If an alarm is generated, the alarm content is assembled according to the alarm content template configuration and the context information; the alarm content is sent to the recipient according to the alarm notification method configuration; at the same time, the water conservancy monitoring equipment status update configuration is used to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration;
[0035] If no alarm is generated, the water conservancy monitoring equipment status update configuration is directly used at the same time to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration.
[0036] It should be noted that the configuration content of the water conservancy alarm logic configuration can be stored in a relational database in JSON format.
[0037] As an embodiment, the configuration is performed in the order of water conservancy monitoring data acquisition configuration, water conservancy alarm rule configuration, alarm content template configuration, alarm notification method configuration, and water conservancy monitoring equipment status update configuration.
[0038] The water conservancy monitoring data acquisition configuration is used to obtain water conservancy monitoring data in real time.
[0039] More specifically, the water conservancy monitoring data includes dynamic real-time monitoring data and contextual data required for configuration. For example, the real-time monitoring data includes but is not limited to real-time rainfall data, river water level and flow monitoring data, various water quality index data, the water level before the gate, the water level after the gate, the opening, and other dynamic and changeable water conservancy data monitored in real time. The contextual data required for configuration includes but is not limited to the basic data of the corresponding water conservancy monitoring equipment, such as the name of the rain gauge station, the number of the location equipment, etc., and may also include other basic data, which can be added according to actual conditions.
[0040] It should be noted that the configuration template for water conservancy monitoring data acquisition configuration includes: database name (dbName), table name (tableName), related data fields, query condition parameters, sorting conditions, and data size, etc.
[0041] The relevant data fields include the indicator fields to be queried (columns); the query condition parameters (conditions) include the field name to be queried (column), the comparison method (type), and the comparison value (valueKey) of the corresponding field name.
[0042] As an embodiment, the water conservancy monitoring data acquisition configuration includes a first sub-configuration module and a second sub-configuration module which are parallel to each other.
[0043] The first sub-configuration module is used to obtain real-time monitoring data.
[0044] For example, to obtain water conservancy monitoring data on river water level and flow from a relational database, you need to obtain: the database schema name dbName, table name tableName; the indicator field columns to be queried; the field name column to be queried, the comparison method type and the comparison value valueKey of the corresponding field name, the sorting field and sorting method orders of the query condition parameters; and the data size limit for each query.
[0045] As a specific embodiment, the corresponding json configuration fetchDataParam. The configuration template of the first sub-configuration module can be:
[0046]
[0047]
[0048] More specifically, the comparison value valueKey of the field name corresponding to the query condition parameter conditions can be specified through the condition parameter configuration fetchParam.json. As a specific embodiment, the condition parameter configuration template can be:
[0049]
[0050] The value of "tm" indicates that the "tm" condition in fetchDataParam.json is compared with this value, indicating that the data after July 1, 2024 is queried.
[0051] The second sub-configuration module is used to obtain context data required for configuration.
[0052] For example, the basic data information corresponding to the acquired water conservancy monitoring data includes the database schema name dbName, the table name tableName; the indicator fields columns to be queried; the query condition parameters conditions, including the field name column to be queried, the comparison method type and the comparison value valueKey of the corresponding field name; and the data size limit for each query.
[0053] As a specific embodiment, the configuration template of the second sub-configuration module may be:
[0054]
[0055] Among them, the comparison value valueKey of the field name corresponding to the query condition parameter conditions can be dynamically obtained from the queried water conservancy monitoring data.
[0056] Water conservancy alarm rule configuration is used to dynamically set alarm rules and output logical expressions.
[0057] As an embodiment, the method of obtaining the logical expression may include: obtaining the one or more logical expressions by using one or more field names and preset indicator configurations corresponding to the field names.
[0058] More specifically, when multiple field names and preset indicator configurations corresponding to the field names are used to obtain multiple logical expressions, the multiple logical expressions are logically combined to obtain one logical expression.
[0059] The configuration template for water conservancy alarm rule configuration includes alarm rule type, alarm rule content, logical relationship, alarm level, etc.
[0060] Among them, the alarm rule type can be a mathematical expression, a text expression, etc. The alarm rule content includes a specific mathematical expression, which can be multiple, corresponding to multiple alarm rules, and then logical operations are performed according to the logical relationship to obtain the final alarm result. The decision on whether to alarm is based on this result (true or false), and the level after the alarm is determined by the configuration item of the alarm level. The logical relationship can be the logical relationship between multiple logical expressions, including various relationships such as or and;
[0061] For example, when the river water level z is higher than the warning water level (26m), or when the river flow q is greater than the warning flow (113m3 / s), an alarm is issued; and the logical relationship (logicalType) between the two is an or (or) relationship, and the alarm level (alarmLevel) is a level 4 alarm. Then, the configuration template of the water conservancy alarm rule configuration can be:
[0062]
[0063]
[0064] The alarm content template configuration is used to dynamically generate alarm content when an alarm is generated.
[0065] Among them, the configuration template of the alarm content template configuration includes template type, template content, template required parameters, etc.
[0066] As a specific embodiment, when the water level of a river exceeds the warning water level and an alarm is issued, the configuration template of the alarm content template configuration may be:
[0067]
[0068] Among them, templateStr is the alarm content template string, and the %s in it is finally replaced by the parameter value specified in paramKeys. The final alarm content format is similar to the format of the remark value.
[0069] The alarm notification method configuration is used to notify the recipient in a certain way.
[0070] The configuration template of the alarm content template configuration includes the alarm notification method and the parameters corresponding to the notification.
[0071] Among them, the alarm notification method includes: system sending (system), SMS sending (sms), email sending (mail) or one or more. When multiple, they are separated by separators (such as commas). The corresponding parameters of the notification are set according to the specific notification method. For example, the mobile phone number needs to be set when sending SMS, the email address needs to be set when sending email, and the user ID needs to be set for system notification.
[0072] As an embodiment, the configuration template for the alarm notification mode configuration may be:
[0073]
[0074] Among them, userIds is the user id used for system notification, mobiles is the mobile phone number used for SMS notification, and emails is the email address used for email notification.
[0075] The water conservancy monitoring equipment status update configuration is used to update the water conservancy monitoring equipment status.
[0076] The configuration template for the water conservancy monitoring equipment status update configuration includes necessary information and non-essential information. Among them, the necessary information includes equipment code, alarm level, alarm time, etc.; non-essential information includes equipment name, administrative division, etc.
[0077] It should be noted that regardless of whether an alarm is generated, the status of the water conservancy monitoring equipment needs to be updated, and the field contents involved in the update and the parameters in the context corresponding to these fields need to be configured, and these status-related data are generally stored in the redis cache service.
[0078] As a specific embodiment, the configuration template for the water conservancy monitoring equipment status update configuration may be:
[0079]
[0080]
[0081] Among them, statusParamMapping is configured in a key-value format, where value is the name of the field to be saved in redis, key is the name of the parameter in the context, and the values of these parameters in the context are the values of the status-related data to be saved in redis; the specific fields can be adjusted and configured according to actual conditions.
[0082] As a specific embodiment, first, a water conservancy alarm logic configuration is established. After the configuration is completed, a scheduled task is used to continuously obtain water conservancy monitoring data for subsequent alarm judgment and processing.
[0083] Then, the SQL query statement of the river water conservancy monitoring data is dynamically assembled through the water conservancy monitoring data, and executed to obtain the water level and flow data. At the same time, it is also necessary to dynamically assemble the SQL query statement of the context data, and execute it to obtain the context data, mainly the basic data related to the water conservancy monitoring equipment, and put it into the context.
[0084] Next, according to the water conservancy alarm rule configuration, the queried water level flow data and context data are combined to obtain a logical expression and perform logical judgment.
[0085] Finally, the alarm is judged based on the logical expression. If TRUE is returned, it means that an alarm is generated if the rule is met, otherwise FALSE is returned and no alarm is generated.
[0086] When the alarm logic expression of the water level is true or the alarm logic expression of the flow is true, an alarm is generated, and the alarm level is the configured alarm level; otherwise, it is false, no alarm is generated, and the monitoring device is considered to be in normal status.
[0087] In addition, if an alarm is generated, the context data is obtained from the context according to the alarm content template configuration, and the parameters required for assembling the alarm content template are obtained from the database, and then assembled into the alarm content. For the generated alarm, according to the alarm notification method configuration, the corresponding notification is carried out in the specified way.
[0088] According to the water conservancy monitoring equipment status update configuration, the water conservancy monitoring equipment status related data is obtained from the context, including: equipment status alarm condition (0 if there is no alarm, and the corresponding set alarm level if there is an alarm), equipment site code stcd, equipment alarm time (empty if there is no alarm), and the data is saved in redis.
[0089] Update the tm value in the conditional parameter configuration fetchParam.json in the water conservancy monitoring data acquisition configuration to the latest time of the current monitoring data processing. The next scheduled task processing will obtain data for processing after this time point. In this way, the business function of cyclically obtaining data for alarm processing of real-time water conservancy monitoring data is realized.
[0090] At this point, by establishing the water conservancy alarm logic configuration, the water conservancy monitoring data acquisition, water conservancy alarm rule judgment, alarm content, alarm notification, water conservancy monitoring equipment status update, etc. involved in the alarm have been dynamically processed.
[0091] It should be noted that the above-mentioned water level flow alarm determination is only one embodiment, and its alarm determination is also applicable to other water conservancy monitoring data such as rainfall monitoring data and water quality monitoring data.
[0092] The method for acquiring water conservancy monitoring data of the present invention can be dynamically acquired through water conservancy monitoring data acquisition configuration, and different types of water conservancy monitoring data can be configured according to actual conditions without the need for re-encoding.
[0093] The judgment of the water conservancy monitoring data alarm rules is configured using logical expressions, and whether an alarm is generated is judged based on the logical results returned by the calculation, achieving lightweight judgment. And the alarm content template configuration can be configured in a user-defined format, which can meet the customized needs of different users without redevelopment. In addition, the present invention can perform real-time status updates based on the water conservancy monitoring equipment status update configuration, ensuring the timely update of the latest status of the water conservancy monitoring equipment. The alarm notification configuration allows users to customize the notification method, which can meet the customized needs of different users without redevelopment.
[0094] In summary, the method of the present invention quickly realizes the alarm judgment and notification of certain water conservancy monitoring data by establishing a water conservancy alarm logic configuration, and at the same time quickly meets the user's customized needs by adjusting the configuration. It has the advantages of wide compatibility, high adaptability, fast response, and light weight, and achieves the purpose of reducing development workload and quickly responding to user needs.
[0095] In a second aspect, the present invention further provides an alarm system for water conservancy monitoring data, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the above methods.
[0096] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps of any of the above methods when executed by a processor.
[0097] In a fourth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of any of the above methods when executed by a processor.
[0098] The technical solutions of a water conservancy monitoring data alarm system, a computer-readable storage medium and a computer program product provided by the present invention are consistent with the technical solution of the above-mentioned water conservancy monitoring data alarm method, and will not be described in detail here.
[0099] It should be noted that, for the above-mentioned various embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, and according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0100] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided in this application, it should be understood that the disclosed method or system can be implemented in other ways. For example, the embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application.
[0104] A person skilled in the art can understand that all or part of the various circuits in the above-mentioned embodiments can be completed by entering a program to instruct related hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0105] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
[0106] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0107] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A water conservancy monitoring data alarm method, characterized in that: The method comprises: Establishing water conservancy alarm logic configuration and storing it in a relational database; wherein the water conservancy alarm logic configuration includes water conservancy monitoring data acquisition configuration, water conservancy alarm rule configuration, alarm content template configuration, alarm notification method configuration, and water conservancy monitoring equipment status update configuration; Acquire water conservancy monitoring data in real time through the water conservancy monitoring data acquisition configuration, and assemble to obtain the context information required by the water conservancy alarm logic; According to the water conservancy alarm rule configuration, and in combination with the water conservancy monitoring data and the context information, a logical expression is calculated; Alarm determination is performed based on the logical expression: If an alarm is generated, the alarm content is assembled according to the alarm content template configuration and the context information; the alarm content is sent to the recipient according to the alarm notification mode configuration; at the same time, the water conservancy monitoring equipment status update configuration is used to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration; If no alarm is generated, the water conservancy monitoring equipment status update configuration is directly used at the same time to obtain the water conservancy monitoring equipment status data from the context information to update the corresponding water conservancy monitoring equipment status, and the updated data is fed back to the water conservancy monitoring data acquisition configuration.
2. The water conservancy monitoring data alarm method according to claim 1 is characterized in that: The configuration template of the water conservancy monitoring data acquisition configuration includes: database name, table name, relevant data fields, query condition parameters, sorting conditions and data volume size.
3. The water conservancy monitoring data alarm method according to claim 2 is characterized in that: The query condition parameters include: the field name to be queried, the comparison method, and the comparison value of the corresponding field name.
4. The water conservancy monitoring data alarm method according to claim 1 is characterized in that: The method of obtaining the logical expression includes: obtaining one or more logical expressions by using one or more field names and preset indicator configurations corresponding to the field names.
5. The water conservancy monitoring data alarm method according to claim 4 is characterized in that: When a plurality of the logical expressions are obtained by using a plurality of field names and the preset index configurations corresponding to the field names; A plurality of the logical expressions are logically combined to obtain a logical expression.
6. The water conservancy monitoring data alarm method according to claim 1 is characterized in that: The alarm notification method configuration includes: one or more of system sending, SMS sending, and email sending.
7. The water conservancy monitoring data alarm method according to claim 1 is characterized in that: The water conservancy monitoring equipment status data includes: equipment status alarm conditions, equipment site codes, and equipment alarm time.
8. An alarm system for water conservancy monitoring data, comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Regular-expression-based alarm correlation analysis method for monitoring system
CN102611565A
Drools-based equipment warning management method and device
CN105427545A
Application monitoring method and device
CN109446024A
System alarm monitoring method, device and equipment and readable storage medium
CN114500251A
Alarm method and device for server cluster
CN115941444A
