Alarm message unified processing and displaying method and system based on PaaS platform
By uniformly processing and displaying alarm messages on the PaaS platform, the problem of repeated development on the SaaS side and poor user experience is solved, timely and reliable processing of alarm messages is achieved, and the system flexibility and user experience is improved.
Patent Information
- Application Number
- CN202411931802.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-04
AI Technical Summary
When the existing technology is deployed on the PaaS side, there are duplicate development, low code reuse rate, and a wide range of display interfaces on the SaaS side, resulting in poor user experience and inconsistent storage and processing of alarm messages, making it difficult to ensure the timely and effective processing of alarm messages, reducing the reliability and user experience of alarm processing.
The transmission layer of the PaaS platform is connected to the alarm source device to obtain alarm data, and the service operation is carried out through the service layer to convert alarm messages, add type templates, plan or action linkage, generate service processing data, and transmit it to the interface layer for logical application processing to ensure that alarm messages are processed in a timely manner. At the same time, through the display layer, the service processing data is displayed or microservices are displayed to improve code reusability and platform performance, and the SaaS development workload is reduced.
It realizes unified processing and display of alarm messages, improves the flexibility and user experience of alarm messages, ensures the timeliness and reliability of alarm messages, and reduces the workload of alarm processing.
Smart Images

Figure CN119766797A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method and system for unified processing and displaying of alarm messages based on a PaaS platform. Background Art
[0002] Alarm devices are widely used in different occasions. When the alarm message of the alarm device is reported to the platform, the alarm message will be transferred to the SaaS end, and the alarm message will be displayed through the relevant functional interface developed by the SaaS end, and the storage of the alarm message will be processed and stored by the SaaS end. However, in the case of PaaS deployment, the SaaS end has repeated development, low code reuse rate, and numerous display interfaces with high similarity, which makes the user experience poor. In addition, the alarm message is stored on the SaaS end, and the processing methods are different, making it difficult to process it uniformly. In addition, the linkage call of devices across SaaS ends is limited, and the rules followed are different. It is impossible to ensure that the alarm message of the alarm device is processed in a timely and effective manner, which reduces the reliability of alarm processing and user experience. Summary of the invention
[0003] The purpose of the present invention is to provide a unified processing and display method and system for alarm messages based on the PaaS platform, which connects with the alarm source device through the transmission layer of the PaaS platform, obtains the alarm data generated by the alarm source device, thereby forming an alarm message and transmitting it to the service layer of the PaaS platform, providing persistent and stable alarm message transmission; through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message, thereby generating service processing data and transmitting it to the interface layer of the PaaS platform, performing different logical application processing on the alarm message, improving the flexibility of alarm message processing and user experience, and ensuring the alarm Messages can be processed in a timely manner; the alarm service processing information is also analyzed to determine the current corresponding alarm processing requirements, so as to select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, so as to display the service processing data or microservices through the display layer, improve code reusability and platform performance, reduce the workload of SaaS development, improve development efficiency, make user experience and product logic clearer, and uniformly process and display alarms, provide a basis for expanding subsequent functions, realize the unified rules of alarm messages on the entire platform, realize the linkage of different types of equipment on different SaaS terminals, reduce the workload of alarm processing, and improve the reliability and timeliness of alarms.
[0004] The present invention is achieved through the following technical solutions:
[0005] The unified processing and display method of alarm messages based on the PaaS platform includes:
[0006] Connecting to the alarm source device through the transport layer of the PaaS platform, obtaining the alarm data generated by the alarm source device, parsing the alarm data to form an alarm message, and transmitting the alarm message to the service layer of the PaaS platform;
[0007] Through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message to generate service processing data, and the service processing data is transmitted to the interface layer of the PaaS platform;
[0008] The alarm service processing information is analyzed to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect to the display layer of the PaaS platform, and transmitting the service processing data to the display layer; the service processing data is displayed or micro-serviced through the display layer.
[0009] Optionally, connecting with the alarm source device through the transport layer of the PaaS platform, acquiring the alarm data generated by the alarm source device, parsing and processing the alarm data to form an alarm message, and transmitting the alarm message to the service layer of the PaaS platform, including:
[0010] Establishing a MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and querying corresponding alarm data from the alarm source device;
[0011] The Redis connection pool included in the transport layer performs Redis cache communication management on the queried alarm data; the Kafka consumer interface included in the transport layer parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message to the service layer of the PaaS platform.
[0012] Optionally, the service layer performs service operations such as alarm message conversion, alarm type template addition, alarm plan or alarm action linkage on the alarm message to generate service processing data, and transmits the service processing data to the interface layer of the PaaS platform, including:
[0013] Through the service layer, the alarm message is converted into an alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer;
[0014] Alternatively, the alarm message is added to a corresponding alarm type template through the service layer to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform;
[0015] Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform;
[0016] Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
[0017] Optionally, analyzing the alarm service processing information to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform, and transmitting the service processing data to the presentation layer; displaying or micro-serving the service processing data through the presentation layer, including:
[0018] Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0019] When connected to the display layer through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when connected to the display layer through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.
[0020] Optionally, analyzing the alarm service processing information to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect to the presentation layer of the PaaS platform, and transmitting the service processing data to the presentation layer, including:
[0021] Step S1, using the following formula (1), analyze the alarm service processing information to determine the current corresponding alarm processing requirements,
[0022]
[0023] In the above formula (1), A represents the current alarm processing requirement; D i Represents the comprehensive level value of each factor of the i-th alarm service processing information; ω i represents the weight of the corresponding factor of the i-th alarm service processing information; F i represents the frequency of the information alarm factor processed by the ith alarm service; T f Represents the time factor, whose value range is 0 to 1; C f represents the impact factor, and its value range is 0 to 1; R represents the additional risk factor, and its value range is 0 to 100;
[0024] Step S2, using the following formula (2), according to the current corresponding alarm processing requirements, select a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform,
[0025]
[0026] In the above formula (2), I represents the selected interface; R j Indicates the response processing speed of interface j; U j Indicates the availability characterization value of interface j, and its value range is 0 to 1; L j represents the load of interface j; E represents the set of available interfaces at the interface layer; j_argmax j∈E () indicates the j value when the maximum value in the bracket is obtained under the condition of j∈E;
[0027] Step S3, using the following formula (3), adjust the transmission state of the service processing data:
[0028]
[0029] In the above formula (3), the adjustment control value of the transmission state of the service processing data, when S=1, indicates that the service processing data is transmitted, and when S=0, indicates that the service processing data is not transmitted; C represents the current network connection state characterization value, and its value range is 0 to 1; T c Indicates the threshold value indicating that the network connection is in a reliable state; P represents the transmission strategy, and its value is "optimized" or "default"; and represents and; or represents or; D represents the data integrity value, and its value range is 0 to 1; T d Indicates the data integrity threshold.
[0030] The unified alarm message processing and display system based on the PaaS platform includes:
[0031] An alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to acquire the alarm data generated by the alarm source device;
[0032] An alarm message generation and transmission module, used to parse and process the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform;
[0033] An alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform;
[0034] An interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select a corresponding interface from the interface layer to connect with the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0035] The display processing module is used to display or micro-service the service processing data through the display layer.
[0036] Optionally, the alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to acquire the alarm data generated by the alarm source device, including:
[0037] Establishing a MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and querying corresponding alarm data from the alarm source device;
[0038] The alarm message generation and transmission module is used to parse the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform, including:
[0039] The Redis connection pool included in the transport layer performs Redis cache communication management on the queried alarm data; the Kafka consumer interface included in the transport layer parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message to the service layer of the PaaS platform.
[0040] Optionally, the alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform, including:
[0041] Through the service layer, the alarm message is converted into an alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer;
[0042] Alternatively, the alarm message is added to a corresponding alarm type template through the service layer to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform;
[0043] Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform;
[0044] Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
[0045] Optionally, the interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform, and transmit the service processing data to the presentation layer, including:
[0046] Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0047] The display processing module is used to display or micro-service the service processing data through the display layer, including:
[0048] When connected to the display layer through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when connected to the display layer through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] The unified processing and display method and system of alarm messages based on the PaaS platform provided in the present application are connected to the alarm source device through the transmission layer of the PaaS platform, and the alarm data generated by the alarm source device is obtained, thereby forming an alarm message and transmitting it to the service layer of the PaaS platform, providing persistent and stable alarm message transmission; through the service layer, the alarm message is converted, the alarm type template is added, and the service operations of alarm plan or alarm action linkage are performed on the alarm message, thereby generating service processing data and transmitting it to the interface layer of the PaaS platform, and different logical application processing is performed on the alarm message, thereby improving the flexibility of alarm message processing and user experience, and ensuring that the alarm message can be linked and processed in a timely manner; the alarm service processing information is also analyzed to determine the current corresponding alarm processing requirements, thereby selecting the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, thereby displaying the service processing data or microservices through the display layer, and uniformly processing and displaying the alarm, reducing the workload of alarm processing, and improving the reliability and timeliness of alarms. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0052] Figure 1 A schematic diagram of the process of unified processing and displaying of alarm messages based on PaaS platform provided by the present invention.
[0053] Figure 2 This is a structural diagram of the unified alarm message processing and display system based on the PaaS platform provided by the present invention. DETAILED DESCRIPTION
[0054] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0055] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0056] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0057] See also Figure 1 As shown, an embodiment of the present application provides a method for uniformly processing and displaying alarm messages based on a PaaS platform. The method for uniformly processing and displaying alarm messages based on a PaaS platform includes:
[0058] Connecting to the alarm source device through the transport layer of the PaaS platform, obtaining the alarm data generated by the alarm source device, parsing the alarm data to form an alarm message, and transmitting the alarm message to the service layer of the PaaS platform;
[0059] Through the service layer, the alarm message is converted into an alarm message, an alarm type template is added, and an alarm plan or alarm action linkage service operation is performed on the alarm message to generate service processing data, and the service processing data is transmitted to the interface layer of the PaaS platform;
[0060] The alarm service processing information is analyzed to determine the current corresponding alarm processing requirements, thereby selecting the corresponding interface from the interface layer to connect to the display layer of the PaaS platform, and transmitting the service processing data to the display layer; the service processing data is displayed or microserviced through the display layer.
[0061] The beneficial effects of the above embodiments are as follows: the unified processing and display method of alarm messages based on the PaaS platform is connected to the alarm source device through the transmission layer of the PaaS platform, and the alarm data generated by the alarm source device is obtained, thereby forming an alarm message and transmitting it to the service layer of the PaaS platform, providing persistent and stable alarm message transmission; through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message, thereby generating service processing data and transmitting it to the interface layer of the PaaS platform, and different logical application processing is performed on the alarm message, thereby improving the flexibility of alarm message processing and user experience, and ensuring that the alarm message can be linked and processed in a timely manner; the alarm service processing information is also analyzed to determine the current corresponding alarm processing requirements, thereby selecting the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, thereby displaying the service processing data or microservices through the display layer, and uniformly processing and displaying the alarm, reducing the workload of alarm processing, and improving the reliability and timeliness of alarms.
[0062] In another embodiment, the transmission layer of the PaaS platform is connected to the alarm source device, the alarm data generated by the alarm source device is obtained, the alarm data is parsed and processed to form an alarm message, and the alarm message is transmitted to the service layer of the PaaS platform, including:
[0063] Establish MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and query the corresponding alarm data from the alarm source device;
[0064] The Redis connection pool included in the transport layer is used to manage the Redis cache communication of the queried alarm data; the Kafka consumer interface included in the transport layer is used to parse and process the alarm data, generate a corresponding alarm message, and report the alarm message to the service layer of the PaaS platform.
[0065] The beneficial effect of the above embodiment is that the transport layer of the PaaS platform encapsulates an interface for communication between the alarm center and the underlying service, which mainly includes a MySQL connection pool, a Redis connection pool, and a Kafka consumer interface; wherein the MySQL connection pool establishes a MySQL communication connection with the alarm source device, and queries the corresponding alarm data from the alarm source device. The alarm source device may be, but is not limited to, a sensor with different alarm functions, etc., so that first-hand alarm data can be obtained from the alarm source device through the MySQL connection pool, and the alarm data query can be persisted; the Redis connection pool included in the transport layer also performs Redis cache communication management on the queried alarm data, provides a channel for operation cache, and ensures the sustainability of operation execution; the Kafka consumer interface included in the transport layer then parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message in Kafka format to the gateway, so as to facilitate the subsequent next operation according to the alarm message, thereby improving the operational reliability of the service layer of the PaaS platform.
[0066] In another embodiment, the service layer performs service operations such as alarm message conversion, alarm type template addition, alarm plan or alarm action linkage on the alarm message to generate service processing data, and transmits the service processing data to the interface layer of the PaaS platform, including:
[0067] Through the service layer, the alarm message is converted and associated to the alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer;
[0068] Alternatively, through the service layer, the alarm message is added to the corresponding alarm type template to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform;
[0069] Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform;
[0070] Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
[0071] The beneficial effect of the above embodiment is that the service layer, as the core business layer, provides the interface layer with different types of service operations such as alarm message conversion, alarm type template addition, alarm plan and alarm action linkage, so that the alarm message can be processed in a targeted and diversified manner. The service layer converts the alarm message to the alarm type corresponding to the alarm center, and based on the alarm type, determines the interface corresponding to the alarm message in the interface layer of the PaaS platform, which is used as the push and query interface of the alarm message in the interface layer, so as to facilitate the subsequent access, conversion, storage and display of the alarm message. Through the service layer, the alarm message is added to the corresponding alarm type template, the corresponding templated alarm message is generated, and the templated alarm messages generated within the preset time period are integrated and transmitted to the interface layer of the PaaS platform, which realizes the template processing of alarm messages by adding corresponding alarm type templates and alarm message templates and outputs, displays and filters them according to the templates; at the same time, it provides an alarm storm function, and continuous alarms of the same alarm plan within the alarm storm time will be regarded as one alarm message. At the same time, the user defines the alarm type, which is only visible to users in the user group to avoid data leakage; through the service layer, based on the alarm message, several corresponding alarm plans are generated, and all alarm plans are transmitted to the Paa The interface layer of the PaaS platform can set alarm plans for the alarms of the equipment. The plans can be set to link multiple devices and provide a time window for the plans to take effect. Users can choose any time within 7*24h. Users can also make multi-dimensional settings according to actual conditions. Through the service layer, based on the alarm plan hit by the alarm message, the corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform. In actual operation, the alarm of the hit alarm plan will execute the linkage action. According to the plan settings, the command interface of the linkage device is called to issue instructions to control the device to execute the actions set in the plan. Web interface notifications can also be pushed, which improves the diversity and flexibility of alarm message processing at the service layer.
[0072] In another embodiment, the alarm service processing information is analyzed to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect to the display layer of the PaaS platform, and transmitting the service processing data to the display layer; displaying or micro-serving the service processing data through the display layer includes:
[0073] Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0074] When the display layer is connected through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when the display layer is connected through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.
[0075] The beneficial effect of the above embodiment is that the interface layer serves as a connection intermediary layer between the service layer and the presentation layer, and provides a Restful interface and a Feign interface, and uses the above different types of interfaces to provide matching interface services for different types of data transmission between the service layer and the presentation layer; specifically, the alarm service processing information is analyzed to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, a Restful interface is selected from the interface layer to connect to the presentation layer of the PaaS platform, and the service processing data is transmitted to the presentation layer; if Java microservice processing is required, a Feign interface is selected from the interface layer to connect to the presentation layer of the PaaS platform, and the service processing data is transmitted to the presentation layer, thereby ensuring the independence of data transmission between the interface layer and the presentation layer. In addition, when the display layer is connected through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein, the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when the display layer is connected through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer, thereby improving the uniformity of the alarm message processing display and the management convenience of the alarm center.
[0076] In another embodiment, the alarm service processing information is analyzed to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect to the presentation layer of the PaaS platform, and transmitting the service processing data to the presentation layer, including:
[0077] Step S1, using the following formula (1), analyze the alarm service processing information to determine the current corresponding alarm processing requirements,
[0078]
[0079] In the above formula (1), A represents the current alarm processing requirement; D i represents the comprehensive level value of each factor of the i-th alarm service processing information, and the comprehensive level value is related to the alarm type and priority of the alarm service processing information; ω i represents the weight of the corresponding factor of the i-th alarm service processing information; F i represents the frequency of the alarm factor of the i-th alarm service processing information, that is, the number of times the corresponding alarm factor appears per unit time; T f Represents the time factor, whose value range is 0 to 1; C f represents the impact factor, which ranges from 0 to 1 and is related to the sensitivity of the alarm device to the alarm service implementation; R represents the additional risk factor, which ranges from 0 to 100 and is related to the probability of alarm failure;
[0080] Step S2, using the following formula (2), according to the current corresponding alarm processing requirements, select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform,
[0081]
[0082] In the above formula (2), I represents the selected interface; R j Indicates the response processing speed of interface j; U j Indicates the availability characterization value of interface j, and its value range is 0 to 1; L j represents the load of interface j; E represents the set of available interfaces at the interface layer; j_argmax j∈E () indicates the j value when the maximum value in the bracket is obtained under the condition of j∈E;
[0083] Step S3, using the following formula (3), adjust the transmission status of the service processing data:
[0084]
[0085] In the above formula (3), the adjustment control value of the transmission state of the service processing data, when S=1, indicates that the service processing data is transmitted, and when S=0, indicates that the service processing data is not transmitted; C represents the current network connection state representation value, and its value range is 0 to 1; T cIndicates the threshold value indicating that the network connection is in a reliable state; P represents the transmission strategy, and its value is "optimized" or "default"; and represents and; or represents or; D represents the data integrity value, and its value range is 0 to 1; T d Indicates the data integrity threshold.
[0086] The beneficial effect of the above embodiment is that the above formula (1) is used to analyze the alarm service processing information to determine the current corresponding alarm processing requirements, and the frequency and risk coefficient of the alarm factors are increased. The frequency reflects the historical situation of the alarm, and the risk coefficient takes into account the possibility of equipment failure, thereby making the alarm processing requirements more accurate; then the above formula (2) is used to select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform according to the current corresponding alarm processing requirements, so that when selecting the interface, the availability and bandwidth limit of the interface are increased. By dynamically adjusting the load and bandwidth, the interface selection is made more intelligent, ensuring that the interface with superior performance can still be selected under high load and low bandwidth conditions; finally, the above formula (3) is used to add the state of data integrity transmission, increase data integrity and its threshold, and only when the connection state, transmission strategy and data integrity meet the requirements, the service processing data is transmitted.
[0087] See also Figure 2 As shown, an alarm message unified processing and display system based on a PaaS platform is provided in one embodiment of the present application. The alarm message unified processing and display system based on a PaaS platform includes:
[0088] The alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to obtain the alarm data generated by the alarm source device;
[0089] An alarm message generation and transmission module is used to parse and process the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform;
[0090] The alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform;
[0091] The interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0092] The display processing module is used to display or micro-service the service processing data through the display layer.
[0093] The beneficial effects of the above embodiments are as follows: the unified alarm message processing and display system based on the PaaS platform is connected to the alarm source device through the transmission layer of the PaaS platform, and the alarm data generated by the alarm source device is obtained, thereby forming an alarm message and transmitting it to the service layer of the PaaS platform, providing persistent and stable alarm message transmission; through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message, thereby generating service processing data and transmitting it to the interface layer of the PaaS platform, and different logical application processing is performed on the alarm message, thereby improving the flexibility of alarm message processing and user experience, and ensuring that the alarm message can be linked and processed in a timely manner; the alarm service processing information is also analyzed to determine the current corresponding alarm processing requirements, thereby selecting the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, thereby displaying the service processing data or microservices through the display layer, and uniformly processing and displaying the alarm, reducing the workload of alarm processing, and improving the reliability and timeliness of alarms.
[0094] In another embodiment, the alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to acquire the alarm data generated by the alarm source device, including:
[0095] Establish MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and query the corresponding alarm data from the alarm source device;
[0096] The alarm message generation and transmission module is used to parse the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform, including:
[0097] The Redis connection pool included in the transport layer is used to manage the Redis cache communication of the queried alarm data; the Kafka consumer interface included in the transport layer is used to parse and process the alarm data, generate a corresponding alarm message, and report the alarm message to the service layer of the PaaS platform.
[0098] The beneficial effect of the above embodiment is that the transport layer of the PaaS platform encapsulates an interface for communication between the alarm center and the underlying service, which mainly includes a MySQL connection pool, a Redis connection pool, and a Kafka consumer interface; wherein the MySQL connection pool establishes a MySQL communication connection with the alarm source device, and queries the corresponding alarm data from the alarm source device. The alarm source device may be, but is not limited to, a sensor with different alarm functions, etc., so that first-hand alarm data can be obtained from the alarm source device through the MySQL connection pool, and the alarm data query can be persisted; the Redis connection pool included in the transport layer also performs Redis cache communication management on the queried alarm data, provides a channel for operation cache, and ensures the sustainability of operation execution; the Kafka consumer interface included in the transport layer then parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message in Kafka format to the gateway, so as to facilitate the subsequent next operation according to the alarm message, thereby improving the operational reliability of the service layer of the PaaS platform.
[0099] In another embodiment, the alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform, including:
[0100] Through the service layer, the alarm message is converted and associated to the alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer;
[0101] Alternatively, through the service layer, the alarm message is added to the corresponding alarm type template to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform;
[0102] Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform;
[0103] Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
[0104] The beneficial effect of the above embodiment is that the service layer, as the core business layer, provides the interface layer with different types of service operations such as alarm message conversion, alarm type template addition, alarm plan and alarm action linkage, so that the alarm message can be processed in a targeted and diversified manner. The service layer converts the alarm message to the alarm type corresponding to the alarm center, and based on the alarm type, determines the interface corresponding to the alarm message in the interface layer of the PaaS platform, which is used as the push and query interface of the alarm message in the interface layer, so as to facilitate the subsequent access, conversion, storage and display of the alarm message. Through the service layer, the alarm message is added to the corresponding alarm type template, the corresponding templated alarm message is generated, and the templated alarm messages generated within the preset time period are integrated and transmitted to the interface layer of the PaaS platform, which realizes the template processing of alarm messages by adding corresponding alarm type templates and alarm message templates and outputs, displays and filters them according to the templates; at the same time, it provides an alarm storm function, and continuous alarms of the same alarm plan within the alarm storm time will be regarded as one alarm message. At the same time, the user defines the alarm type, which is only visible to users in the user group to avoid data leakage; through the service layer, based on the alarm message, several corresponding alarm plans are generated, and all alarm plans are transmitted to the Paa The interface layer of the PaaS platform can set alarm plans for the alarms of the equipment. The plans can be set to link multiple devices and provide a time window for the plans to take effect. Users can choose any time within 7*24h. Users can also make multi-dimensional settings according to actual conditions. Through the service layer, based on the alarm plan hit by the alarm message, the corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform. In actual operation, the alarm of the hit alarm plan will execute the linkage action. According to the plan settings, the command interface of the linkage device is called to issue instructions to control the device to execute the actions set in the plan. Web interface notifications can also be pushed, which improves the diversity and flexibility of alarm message processing at the service layer.
[0105] In another embodiment, the interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, and transmit the service processing data to the display layer, including:
[0106] Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer;
[0107] The display processing module is used to display or micro-service the service processing data through the display layer, including:
[0108] When the display layer is connected through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when the display layer is connected through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.
[0109] The beneficial effect of the above embodiment is that the interface layer serves as a connection intermediary layer between the service layer and the presentation layer, and provides a Restful interface and a Feign interface, and uses the above different types of interfaces to provide matching interface services for different types of data transmission between the service layer and the presentation layer; specifically, the alarm service processing information is analyzed to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, a Restful interface is selected from the interface layer to connect to the presentation layer of the PaaS platform, and the service processing data is transmitted to the presentation layer; if Java microservice processing is required, a Feign interface is selected from the interface layer to connect to the presentation layer of the PaaS platform, and the service processing data is transmitted to the presentation layer, thereby ensuring the independence of data transmission between the interface layer and the presentation layer. In addition, when the display layer is connected through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein, the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when the display layer is connected through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer, thereby improving the uniformity of the alarm message processing display and the management convenience of the alarm center.
[0110] In general, the unified processing and display method and system of alarm messages based on the PaaS platform is connected to the alarm source device through the transmission layer of the PaaS platform, and the alarm data generated by the alarm source device is obtained, thereby forming an alarm message and transmitting it to the service layer of the PaaS platform, providing persistent and stable alarm message transmission; through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message, thereby generating service processing data and transmitting it to the interface layer of the PaaS platform, and different logical application processing is performed on the alarm message, thereby improving the flexibility of alarm message processing and user experience, and ensuring that the alarm message can be linked and processed in a timely manner; the alarm service processing information is also analyzed to determine the current corresponding alarm processing requirements, thereby selecting the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, thereby displaying the service processing data or microservices through the display layer, and uniformly processing and displaying the alarm, reducing the workload of alarm processing, and improving the reliability and timeliness of alarms.
[0111] The above is only a specific implementation of the present invention, and any other improvements made based on the concept of the present invention are considered to be within the protection scope of the present invention.
Claims
1. A unified processing and display method for alarm messages based on a PaaS platform, characterized in that: include: Connecting to the alarm source device through the transport layer of the PaaS platform, obtaining the alarm data generated by the alarm source device, parsing the alarm data to form an alarm message, and transmitting the alarm message to the service layer of the PaaS platform; Through the service layer, the alarm message is converted, the alarm type template is added, and the alarm plan or alarm action linkage service operations are performed on the alarm message to generate service processing data, and the service processing data is transmitted to the interface layer of the PaaS platform; The alarm service processing information is analyzed to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect to the display layer of the PaaS platform, and transmitting the service processing data to the display layer; the service processing data is displayed or micro-serviced through the display layer.
2. The method for unified processing and displaying of alarm messages based on the PaaS platform according to claim 1, characterized in that: Connecting with the alarm source device through the transport layer of the PaaS platform, obtaining the alarm data generated by the alarm source device, parsing and processing the alarm data to form an alarm message, and transmitting the alarm message to the service layer of the PaaS platform, including: Establishing a MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and querying corresponding alarm data from the alarm source device; The Redis connection pool included in the transport layer performs Redis cache communication management on the queried alarm data; the Kafka consumer interface included in the transport layer parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message to the service layer of the PaaS platform.
3. The method for unified processing and displaying of alarm messages based on the PaaS platform according to claim 1, characterized in that: Through the service layer, the alarm message is converted into an alarm message, an alarm type template is added, and an alarm plan or alarm action linkage service operation is performed on the alarm message to generate service processing data, and the service processing data is transmitted to the interface layer of the PaaS platform, including: Through the service layer, the alarm message is converted into an alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer; Alternatively, the alarm message is added to a corresponding alarm type template through the service layer to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform; Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform; Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
4. The method for unified processing and displaying of alarm messages based on the PaaS platform according to claim 1, characterized in that: Analyze the alarm service processing information to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform, and transmitting the service processing data to the presentation layer; The service processing data is displayed or micro-serviced through the display layer, including: Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; When connected to the display layer through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when connected to the display layer through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.
5. The method for unified processing and displaying of alarm messages based on the PaaS platform according to claim 1, characterized in that: Analyze the alarm service processing information to determine the current corresponding alarm processing requirements, thereby selecting a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform, and transmitting the service processing data to the presentation layer, including: Step S1, using the following formula (1), analyze the alarm service processing information to determine the current corresponding alarm processing requirements, In the above formula (1), A represents the current alarm processing requirement; D i Represents the comprehensive level value of each factor of the i-th alarm service processing information; ω i represents the weight of the corresponding factor of the i-th alarm service processing information; F i represents the frequency of the information alarm factor processed by the ith alarm service; T f Represents the time factor, whose value range is 0 to 1; C f represents the impact factor, and its value range is 0 to 1; R represents the additional risk factor, and its value range is 0 to 100; Step S2, using the following formula (2), according to the current corresponding alarm processing requirements, select a corresponding interface from the interface layer to connect with the presentation layer of the PaaS platform, In the above formula (2), I represents the selected interface; R j Indicates the response processing speed of interface j; U j Indicates the availability characterization value of interface j, and its value range is 0 to 1; L j represents the load of interface j; E represents the set of available interfaces at the interface layer; j_argmax j∈E () indicates the j value when the maximum value in the bracket is obtained under the condition of j∈E; Step S3, using the following formula (3), adjust the transmission state of the service processing data: In the above formula (3), the adjustment control value of the transmission state of the service processing data, when S=1, indicates that the service processing data is transmitted, and when S=0, indicates that the service processing data is not transmitted; C represents the current network connection state characterization value, and its value range is 0 to 1; T c Indicates the threshold value indicating that the network connection is in a reliable state; P represents the transmission strategy, and its value is "optimized" or "default"; and represents and; or represents or; D represents the data integrity value, and its value range is 0 to 1; T d Indicates the data integrity threshold.
6. The unified alarm message processing and display system based on the PaaS platform is characterized by: include: An alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to acquire the alarm data generated by the alarm source device; An alarm message generation and transmission module, used to parse and process the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform; An alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform; An interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select a corresponding interface from the interface layer to connect with the display layer of the PaaS platform, and transmit the service processing data to the display layer; The display processing module is used to display or micro-service the service processing data through the display layer.
7. The PaaS platform-based unified alarm message processing and display system according to claim 6, characterized in that: The alarm data acquisition module is used to connect to the alarm source device through the transport layer of the PaaS platform to obtain the alarm data generated by the alarm source device, including: Establishing a MySQL communication connection with the alarm source device through the MySQL connection pool included in the transport layer of the PaaS platform, and querying corresponding alarm data from the alarm source device; The alarm message generation and transmission module is used to parse the alarm data to form an alarm message, and transmit the alarm message to the service layer of the PaaS platform, including: The Redis connection pool included in the transport layer performs Redis cache communication management on the queried alarm data; the Kafka consumer interface included in the transport layer parses and processes the alarm data, generates a corresponding alarm message, and reports the alarm message to the service layer of the PaaS platform.
8. The PaaS platform-based unified alarm message processing and display system according to claim 6, characterized in that: The alarm message processing and transmission module is used to perform alarm message conversion, alarm type template addition, alarm plan or alarm action linkage service operations on the alarm message through the service layer, so as to generate service processing data, and transmit the service processing data to the interface layer of the PaaS platform, including: Through the service layer, the alarm message is converted into an alarm type corresponding to the alarm center, and based on the alarm type, the interface corresponding to the alarm message in the interface layer of the PaaS platform is determined, which serves as the push and query interface of the alarm message in the interface layer; Alternatively, the alarm message is added to a corresponding alarm type template through the service layer to generate a corresponding templated alarm message, and the templated alarm messages generated within a preset time period are integrated and transmitted to the interface layer of the PaaS platform; Alternatively, through the service layer, based on the alarm message, a number of corresponding alarm plans are generated, and all alarm plans are transmitted to the interface layer of the PaaS platform; Alternatively, through the service layer, based on the alarm plan hit by the alarm message, a corresponding plan linkage action execution instruction is generated, and the plan linkage action execution instruction is transmitted to the interface layer of the PaaS platform.
9. The PaaS platform-based unified alarm message processing and display system according to claim 6, characterized in that: The interface selection module is used to analyze the alarm service processing information, determine the current corresponding alarm processing requirements, select the corresponding interface from the interface layer to connect with the display layer of the PaaS platform, and transmit the service processing data to the display layer, including: Analyze the alarm service processing information to determine whether Web interface display processing or Java microservice processing is currently required; if Web interface display processing is required, select a Restful interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; if Java microservice processing is required, select a Feign interface from the interface layer to connect to the display layer of the PaaS platform, and transmit the service processing data to the display layer; The display processing module is used to display or micro-service the service processing data through the display layer, including: When connected to the display layer through the Restful interface, the service processing data is displayed on the Web interface through the display layer; wherein the Web interface display includes alarm record display, alarm plan setting, alarm plan setting or alarm type management; when connected to the display layer through the Feign interface, the service processing data is subjected to corresponding logical processing and the corresponding application is called for processing through the display layer.