A method, device and storage medium for distributing warning messages

By standardizing alarm information from different channels and expanding information based on application scenarios, determining the distribution dimension and mapping relationship, the problem of difficulty in personalizing the alarm message system in the existing technology is solved, and flexibility and efficiency are achieved, reducing maintenance difficulty is reduced. .

CN118890271BActive Publication Date: 2024-12-24E SURFING VISION TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411367914.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-24
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

The existing alarm message system is difficult to personalize in different application scenarios without increasing maintenance difficulty, and has limitations in message storage and information expansion.

Method used

By obtaining alarm information from different channels, mapping it into standard information bodies, adding business information, determining distribution dimensions and mapping relationships, realizing flexible information distribution, using business plug-in groups and clustering rules for information processing and storage, dynamically adjusting distribution logic and Storage policy.

Benefits of technology

It realizes the flexibility and efficiency of the alarm message system, meets personalized customization needs, reduces maintenance difficulty, and improves processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890271B_ABST
    Figure CN118890271B_ABST
Patent Text Reader

Abstract

The present application relates to an alarm message distribution method, device and storage medium, wherein the alarm message distribution method includes: obtaining alarm information from different channels; based on the message structure of the alarm information, mapping the alarm information into a first standard information body, the first standard information body including the alarm type; based on different alarm types, adding corresponding additional business information to the first standard information body to obtain a second standard information body; based on the alarm type and additional business information in the second standard information body, determining the mapping relationship between the distribution dimension and the second standard information body; based on the mapping relationship between the distribution dimension and the second standard information body, distributing the second standard information body. Through this application, the problem that the alarm message system is difficult to meet the requirements of personalized customization without increasing the difficulty of maintenance in different application scenarios is solved, and the flexibility and efficiency of alarm message distribution are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an alarm message distribution method, device and storage medium. Background Art

[0002] With the rapid development of modern software development and enterprise operations, the capability exposure platform, as an indispensable part, effectively supports enterprises to quickly adapt to changing technical requirements and market conditions by providing a flexible and scalable integrated environment. However, with the widespread application of AI technology, alarm messages, as an important notification and response mechanism, face huge challenges in processing capabilities. Especially in different application scenarios, developers have increasingly diverse requirements for the distribution dimensions, storage time, and information expansion of alarm messages, which requires the alarm message system to be highly customizable and flexible.

[0003] Traditional alarm message systems often provide fixed distribution dimensions, time query ranges, and message data formats, which are difficult to meet the needs of developers for personalized customization based on different scenarios and preferences. Even if customized development is carried out, it will increase the complexity of the system's core business logic, making maintenance difficult. In addition, traditional systems also have limitations in message storage and information expansion, making it difficult to meet the needs of secure and fast integration in special scenarios.

[0004] At present, in different application scenarios of related technologies, it is difficult for the alarm message system to meet the requirements of personalized customization without increasing the difficulty of maintenance, and no effective solution has been proposed. Summary of the invention

[0005] The embodiments of the present application provide an alarm message distribution method, device, system, electronic device and storage medium to at least solve the problem in the related art that the alarm message system is difficult to meet the requirements of personalized customization without increasing the difficulty of maintenance in different application scenarios.

[0006] In a first aspect, an embodiment of the present application provides a method for distributing an alarm message, comprising:

[0007] Obtain warning information from different channels;

[0008] Based on the message structure of the alarm information, mapping the alarm information into a first standard information body, where the first standard information body includes an alarm type;

[0009] Based on different alarm types, corresponding additional service information is added to the first standard information body to obtain a second standard information body;

[0010] Determine, based on the alarm type and the additional service information in the second standard information body, a mapping relationship between the distribution dimension and the second standard information body;

[0011] The second standard information body is distributed based on the mapping relationship between the distribution dimension and the second standard information body.

[0012] In some embodiments, mapping the alarm information into a first standard information body based on the message structure of the alarm information includes:

[0013] Based on the message structure of the alarm information, generating clustering alarm information rules;

[0014] Based on the clustering alarm information rule, the alarm information is mapped into a first standard information body.

[0015] In some embodiments, based on different alarm types, corresponding additional service information is added to the first standard information body to obtain a second standard information body, including:

[0016] Based on the alarm type, performing service orchestration processing on the alarm type to generate a service plug-in group corresponding to the alarm type;

[0017] Based on the service plug-in group corresponding to the alarm type, corresponding additional service information is generated, and the additional service information is added to the first standard information body to obtain the second standard information body.

[0018] In some embodiments, the generating corresponding additional service information based on the service plug-in group corresponding to the alarm type includes:

[0019] The first standard information body also includes an alarm device code, wherein the alarm device code corresponds one-to-one to the alarm device that obtains the alarm information;

[0020] Using the service plug-in group, obtaining alarm device information according to the alarm device code;

[0021] Based on the alarm device information, the corresponding additional service information is generated.

[0022] In some embodiments, before determining the mapping relationship between the distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body, the method further includes:

[0023] storing the second standard information body into a preset storage space, and obtaining a preset storage duration of each second standard information body;

[0024] If it is detected that the storage time of the second standard information body in the preset storage space exceeds the preset storage time, the second standard information body is cleared.

[0025] In some embodiments, determining a mapping relationship between a distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body includes:

[0026] Based on the alarm type and the additional service information in the second standard information body, an alarm related table is generated, wherein the alarm related table includes a mapping relationship between a distribution dimension and the second standard information body.

[0027] In some embodiments, distributing the second standard information body based on the mapping relationship between the distribution dimension and the second standard information body includes:

[0028] Get the subscription information entered by the user;

[0029] Based on the subscription information, searching the alarm-related table for the corresponding second standard information body;

[0030] The queried second standard information body is distributed based on the mapping relationship between the distribution dimension and the second standard information body in the alarm related table.

[0031] In some embodiments, the method further comprises:

[0032] Based on the subscription information, querying the callback address of the second standard information body;

[0033] Based on the alarm related table, the queried standard information is distributed to the callback address.

[0034] In a second aspect, an embodiment of the present application provides an alarm message distribution device, including:

[0035] Alarm information acquisition module, used to obtain alarm information from different channels;

[0036] An alarm information standardization module, configured to map the alarm information into a first standard information body based on a message structure of the alarm information, wherein the first standard information body includes an alarm type;

[0037] An alarm information expansion module, used to add corresponding additional business information to the first standard information body based on different alarm types to obtain a second standard information body;

[0038] An alarm information distribution module, used to determine a mapping relationship between a distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body;

[0039] The alarm information distribution module is also used to distribute the second standard information body based on the mapping relationship between the distribution dimension and the second standard information body.

[0040] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the alarm message distribution method as described in the first aspect above is implemented.

[0041] Compared with the related art, the alarm message distribution method provided in the embodiment of the present application obtains alarm information from a large number of different channels, integrates and standardizes them, expands the alarm information accordingly according to the type of information, and finally flexibly distributes the information according to the mapping relationship. It solves the problem that in different application scenarios, the alarm message system is difficult to meet the requirements of personalized customization without increasing the difficulty of maintenance, and realizes the flexibility and efficiency of alarm message distribution.

[0042] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0044] Figure 1 It is a hardware structure block diagram of a terminal according to the alarm message distribution method of an embodiment of the present application;

[0045] Figure 2 is a flowchart of a method for distributing alarm messages according to an embodiment of the present application;

[0046] Figure 3 It is a system structure diagram of the alarm message distribution method of the preferred embodiment of the present application;

[0047] Figure 4 It is a structural block diagram of an alarm message distribution device according to an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided 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 the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.

[0049] Reference to "embodiments" in this application 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 of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0050] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application means greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0051] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. Taking running on a terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the alarm message distribution method according to an embodiment of the present invention. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the alarm message distribution method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0053] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0054] This embodiment provides a method for distributing an alarm message. Figure 2 is a flowchart of a method for distributing an alarm message according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0055] Step S201, obtaining alarm information from different channels.

[0056] Among them, the message queue SDK (Software Development Kit) provides an API (Application Programming Interface) for sending and receiving messages. Alarm information from different monitoring systems, network devices, applications, etc. can be received through the API interface, and alarm information can also be received through private protocols based on TCP (Transmission Control Protocol) and HTTP (HyperText Transfer Protocol). This step is the basis for the operation of the entire system. By obtaining alarm information from different channels, the flexibility and scalability of the system are improved.

[0057] Step S202: Map the alarm information into a first standard information body based on the message structure of the alarm information, where the first standard information body includes an alarm type.

[0058] Among them, the message structure refers to a formatting method for transmitting information between different devices. The message parsing tool is used to parse the message structure of the alarm information, extract the information field (such as alarm type, timestamp, etc.), and define the rule set of such alarm information according to the message structure of the alarm information. Based on the rule set corresponding to different alarm information, the information field of the alarm message is mapped to the standard alarm message body, that is, the first standard information body. The first standard information body includes: the unique code of the device generating the alarm, the alarm type, the alarm occurrence time, the original alarm message, etc., where each alarm type identifies a type of alarm message, and the alarm messages of different channels are converted into a certain type of message through the rule set. This step ensures the consistency of the format and content of the information from different sources by mapping the alarm information of different channels into a unified first standard information body, which is convenient for subsequent unified processing and analysis. The standardized information body reduces the processing complexity caused by format differences and improves the processing efficiency.

[0059] Step S203: Based on the different alarm types, corresponding additional service information is added to the first standard information body to obtain a second standard information body.

[0060] Among them, based on different alarm types, a corresponding service enhancement plug-in group (such as "administrative area" plug-in, "user equipment" plug-in, etc.) is added to the corresponding first standard information body, and the corresponding additional service information is obtained through the service enhancement plug-in group to obtain the second standard information body. The additional service information refers to the additional information added to the first standard information body in addition to the basic alarm information according to the alarm type and service requirements during the distribution of the alarm message. For example, the first standard information body includes: the unique code of the device generating the alarm, the alarm type, the alarm occurrence time, the original alarm message, etc. After adding the additional service information, the second standard information body obtained includes: the unique code of the device generating the alarm, the alarm type, the alarm occurrence time, the original alarm message, the plug-in 1 extension information, the plug-in 2 extension information, etc. This step adds the corresponding additional service information based on the alarm type, so that the alarm information is more comprehensive and specific, which helps to quickly locate the root cause of the problem, improve the efficiency of problem solving, and provide a more sufficient basis for subsequent troubleshooting and business decision-making, and realize the personalized customization of the alarm message system in different application scenarios.

[0061] Step S204: Determine a mapping relationship between the distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body.

[0062] Among them, the distribution dimension refers to the standard and condition used to determine how to distribute the alarm message to the target user or system during the alarm message distribution process. The distribution dimension can be one or more, for example, it can be distributed according to different dimensions such as province, user, alarm device location, etc. Users can obtain corresponding alarm messages by subscribing to specific distribution dimensions according to their needs. According to the alarm type and additional business information, the distribution dimension (such as department, role, priority) is determined to determine which departments, personnel or systems the alarm information should be distributed to. Then, an index is established for the distribution dimension, and an alarm-related table can be generated. The alarm-related table contains the mapping relationship between the distribution dimension and the alarm information. This mapping relationship indicates which alarm information should be distributed to which departments, personnel or systems. This step can flexibly distribute the alarm information to different processing units or personnel according to actual needs by determining the mapping relationship between the distribution dimension and the second standard information body, thereby speeding up the response speed. The definition of the distribution logic and mapping relationship is flexible and can be adjusted and optimized according to changes in business needs to adapt to different application scenarios.

[0063] Step S205: Distribute the second standard information body based on the mapping relationship between the distribution dimension and the second standard information body.

[0064] Among them, according to the distribution dimension (such as by user) matched by the alarm type, the established mapping relationship is queried to obtain the second standard information body to be distributed, and the second standard information body is distributed to the corresponding recipients through email, SMS, instant messaging tools, message queues, etc. This step ensures that the alarm information can be conveyed to relevant personnel in a timely and accurate manner. The automated distribution mechanism reduces the possibility of human error and improves the accuracy and reliability of alarm processing.

[0065] Through the above steps, by obtaining a large amount of alarm information from different channels, integrating and standardizing it, expanding the alarm information accordingly according to the type of information, and finally flexibly distributing the information according to the mapping relationship, the processing efficiency and accuracy of the alarm information are significantly improved, providing a strong guarantee for the stable operation of the business system. The entire process from information acquisition to distribution can be achieved through automated tools, reducing manual intervention, improving operation and maintenance efficiency, and can be adjusted and optimized according to changes in business needs, so as to adapt to different application scenarios, solving the problem that the alarm message system is difficult to meet the needs of personalized customization without increasing maintenance difficulty in different application scenarios.

[0066] In some embodiments, based on the message structure of the alarm information, the alarm information is mapped into a first standard information body, including:

[0067] Generate clustering alarm information rules based on the alarm information message structure;

[0068] Based on the clustering alarm information rule, the alarm information is mapped into a first standard information body.

[0069] Among them, by conducting in-depth analysis on the message structure of alarm information from different channels, key features are extracted from the messages, such as alarm type, timestamp, alarm level, impact range, etc., and a set of clustering alarm information rules are defined according to business needs. These rules cover different types of alarm information, and specify how to classify alarm information with similar characteristics and how to standardize the same type of alarm information. According to the generated clustering alarm information rules, the original alarm information standard is formatted and mapped to the first standard information body. This embodiment can map alarm information from different channels into a first standard information body in a unified format through unified message structure analysis and clustering rule generation, thereby improving the consistency and comparability of the information. Through clustering processing, alarm information with similar characteristics can be classified together, which helps to discover the correlation and trend between alarms. Clustering alarm information rules make the processing of alarm information more standardized and automated, which helps to reduce manual intervention, reduce processing costs, and improve processing efficiency. In addition, the generation of clustering alarm information rules is a dynamic process, which can be adjusted and optimized according to changes in business needs, which helps to improve the scalability and flexibility of the system, so that it can adapt to changing information processing needs.

[0070] In some embodiments, based on different alarm types, corresponding additional service information is added to the first standard information body to obtain a second standard information body, including:

[0071] Based on the alarm type, perform business arrangement processing on the alarm type and generate a business plug-in group corresponding to the alarm type;

[0072] Based on the service plug-in group corresponding to the alarm type, corresponding additional service information is generated, and the additional service information is added to the first standard information body to obtain a second standard information body.

[0073] Among them, the business orchestration processing process is to define the corresponding business logic according to the characteristics of the alarm type. The business logic may include determining the operations to be performed, the services to be called, the dependent data, etc. for each alarm type. Based on the business logic, the corresponding business plug-ins are matched. These plug-ins can be independent scripts, services or program modules, which are responsible for performing specific business operations. The business plug-ins can be orchestrated based on the LiteFlow (light flow rule engine) framework, and all business plug-ins for the same alarm type are organized into a plug-in group so that they can be called uniformly when needed. The plug-ins have no sequential relationship and can be executed concurrently. When the alarm information is received and its type is determined, the corresponding business plug-in group is triggered to execute. During the execution of the business plug-in, additional business information such as device status, user information, historical processing records, etc. will be collected as needed. The collected additional business information is integrated with the first standard information body to obtain the second standard information body. This embodiment standardizes and automates the processing flow for specific alarm types through business orchestration processing, reduces manual intervention and duplication of work, and improves processing efficiency. The additional business information makes the alarm information more complete and rich, which helps to understand the alarm situation more comprehensively, so that more accurate judgments and decisions can be made, problems can be solved faster and risks can be reduced. In addition, as the business develops and new alarm types emerge, the system can flexibly add new business plug-ins and plug-in groups to meet changing business needs. This modular design makes the system highly scalable and maintainable.

[0074] In some embodiments, corresponding additional service information is generated based on the service plug-in group corresponding to the alarm type, including:

[0075] The first standard information body also includes an alarm device code, wherein the alarm device code corresponds one-to-one to the alarm device that obtains the alarm information;

[0076] Use the service plug-in group to obtain the alarm device information according to the alarm device code;

[0077] Generate corresponding additional service information based on the alarm device information.

[0078] Among them, the first standard information body includes a field for storing the alarm device code, which corresponds to the specific alarm device that generates the alarm information, and can usually be a unique identifier of the device. Each plug-in obtains the information of the alarm device through the alarm device code. When the business plug-in is executed, the plug-in retrieves the alarm device information from the corresponding data source based on the alarm device code as the query condition. The acquired alarm device information may include the status, configuration, location, historical records and other information of the device. This information is deeply analyzed and processed to identify the key elements related to the current alarm and generate additional business information closely related to the alarm. This embodiment ensures the accuracy and traceability of the information by directly associating the alarm information with the alarm device. This helps to quickly locate the source of the problem, reduce false alarms and missed alarms, and the generation of additional business information provides more contextual information about the alarm device, so that the system can be more comprehensive and accurate when making decisions. The device information query and additional business information generation process are both automated, reducing manual intervention, optimizing the alarm processing process, and improving processing efficiency.

[0079] In some of the embodiments, before determining the mapping relationship between the distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body, the method further includes:

[0080] Storing the second standard information body in a preset storage space, and obtaining a preset storage time of each second standard information body;

[0081] If it is detected that the storage time of the second standard information body in the preset storage space exceeds the preset storage time, the second standard information body is cleared.

[0082] Among them, after the steps of clustering, business information expansion, etc., the second standard information body needs to be persistently stored for subsequent distribution, query and other operations. The configuration of the storage space is predefined, including database connection information, table structure, index, etc. At the same time, the storage format and field of the second standard information body are determined according to business needs, and different storage durations are configured for different types of alarm information according to business needs. These configuration information can be stored in configuration files, databases, or system memory, etc. When the system detects that the storage time of some second standard information bodies in the preset storage space exceeds its own preset storage duration, these second standard information bodies are deleted. This embodiment can effectively reduce the occupancy of storage space by regularly cleaning up expired second standard information bodies; as the amount of data increases, the query and storage performance of the database will gradually decrease, so by reducing the amount of data in the database, the query and storage efficiency of the database can be improved, thereby improving the performance of the entire system; in addition, the automated data cleaning process can reduce the need for manual intervention, reduce the maintenance cost of the system, and is more reliable and efficient.

[0083] In some embodiments, determining a mapping relationship between a distribution dimension and the second standard information body based on an alarm type and additional service information in the second standard information body includes:

[0084] Based on the alarm type and the additional service information in the second standard information body, an alarm related table is generated, wherein the alarm related table includes a mapping relationship between the distribution dimension and the second standard information body.

[0085] Among them, the second standard information body establishes an alarm-related table, configures the mapping between the second standard information body and the distribution dimension, that is, the distribution dimension is specified for the alarm-related table based on the additional business information. For example, if the additional business information is a province code, the distribution dimension (by province) is specified for the alarm-related table. The alarm information table can include fields such as: alarm ID (primary key), alarm type, additional business information (such as device location, user information, etc.), distribution dimension (such as province, user, etc.), creation time, update time, etc., to facilitate the management and maintenance of data. Indexes can be established for distribution dimensions (such as province, user, etc.). When messages need to be distributed based on distribution dimensions, relevant records can be quickly located. This embodiment stores the alarm information and distribution dimensions in the alarm-related table. Whether it is distributed by province, user or other dimensions, it can be achieved by configuring the alarm-related table, and records can be flexibly added, modified or deleted according to actual needs, which is convenient for managing a large amount of alarm information and supports different business scenarios and needs. Establishing indexes for distribution dimensions can significantly improve the efficiency of querying and distributing messages. In particular, when processing a large amount of alarm information, it can quickly match the target subscribers and realize rapid delivery of messages, thereby improving the flexibility of data management and the efficiency of message distribution.

[0086] In some embodiments, distributing the second standard information body based on the mapping relationship between the distribution dimension and the second standard information body includes:

[0087] Get the subscription information entered by the user;

[0088] Based on the subscription information, the corresponding second standard information body is searched in the alarm related table;

[0089] Based on the mapping relationship between the distribution dimension and the second standard information body in the alarm related table, the queried second standard information body is distributed.

[0090] Among them, users can input the subscription information they are interested in according to their needs, including the alarm type and distribution dimension, such as "smoking identification" + "a province". When the system receives the user's subscription information, it queries the alarm-related table according to the alarm type and distribution dimension in the subscription information, finds the second standard information body that matches the subscription information, and distributes these alarm information to the corresponding target object according to the distribution dimension and distribution logic recorded in the alarm-related table. This embodiment obtains the alarm type and distribution dimension that need to be distributed through user needs, so that the distribution of alarm messages is more flexible and personalized. The alarm-related table is queried through the subscription message, ensuring accurate alarm distribution service and improving the efficiency of alarm distribution.

[0091] In some embodiments, the method further comprises:

[0092] Based on the subscription information, query the callback address of the second standard information body;

[0093] Based on the alarm related table, distribute the queried standard information to the callback address.

[0094] Among them, based on the subscription information, the callback address of the corresponding second standard information body can be queried in the alarm related table. The callback address is the target address for receiving the alarm message. According to this address, the second standard information body is sent out through TCP, HTTP or other private protocols. This embodiment distributes alarm messages based on the callback address queried based on the subscription information, which can flexibly meet the personalized needs of different subscribers. Both developers and customer applications can set the method and address for receiving alarm messages according to their own business scenarios. The use of the alarm related table makes the message distribution process very efficient. The system can quickly index and query related alarm messages and accurately send them to subscribers. In addition, as the business develops, the number of subscribers and alarm types may increase. This distribution method based on subscription information can easily support new subscribers and alarm types without large-scale modifications to the system.

[0095] The embodiments of the present application are described and illustrated below through preferred embodiments.

[0096] Figure 3 is a system structure diagram of the alarm message distribution method according to the preferred embodiment of the present application, such as Figure 3As shown in the figure, the capability exposure platform provides a flexible and scalable integrated environment for the entire system. The system is mainly divided into two parts: the message component and the consumption model management component. The message component executes multiple processing logics of the message processor according to the consumption model: including message clustering, business information extension (executing business plug-ins to extend the business data of messages), message storage, message distribution, and provides external message distribution and query capabilities with specified extension fields as dimensions; the consumption model management component provides a visual interface for the management of consumption models.

[0097] Among them, the consumption model management components include:

[0098] ① Clustering model: defines a set of rules for the same type of messages, and uses one or more fields in the alarm message body to uniquely determine the rules for the same type of alarm messages. The alarm message body (message packet) can be one or more types, that is, the same type of messages can be aggregated by multiple rules.

[0099] ② Business orchestration model: defines the input and output parameter model of the business enhancement plug-in, and a set of rules for the built-in and custom-extended business plug-ins for the same type of message orchestration.

[0100] ③Message model: establish tables for the same type of messages, configure table structure mapping, message storage cycle and other rules, provide storage conditions for the same type of messages, and provide clearing strategies for the same type of messages.

[0101] ④Distribution model: Create indexes for specified distribution dimensions based on the message model, and provide dimension subscription and dimension message query capabilities, so as to achieve message distribution query capabilities driven by the consumption model.

[0102] The message component includes a message receiver and a message processor, as follows:

[0103] Message receiver: The capability exposure platform receives alarm messages from various channels of the internal message bus through mainstream message queues, and receives them externally through private protocols based on TCP and HTTP.

[0104] The message processor includes: a clusterer, a service enhancer, a storage device, and a distribution engine.

[0105] ① Clusterer: Based on the rules of the clustering model, the information fields of the alarm messages received by the receiver are mapped to the standard alarm message body. The standard alarm message body includes: the unique code of the device generating the alarm, the alarm type, the alarm occurrence time, the original alarm message, etc., where the alarm type identifies a type of message. Alarms from different channels are converted into a certain type of message through the rules of the aggregator model.

[0106] ②Business Enhancer:

[0107] First, define the business enhancement plug-in interface (including definition of obtaining plug-in name, plug-in processing interface, etc.).

[0108] Secondly, implement the business enhancement plug-in group according to the node scenario requirements, implement the interface plug-in collection, load the input and output parameters before and after the plug-in processing through the business orchestration model, read the input parameters from the message body of the parent plug-in, and read the output parameters from the business service capability response result of the current plug-in.

[0109] Among them, the plug-in processing interface is the execution logic of the actual business enhancement, and the plug-in orchestration service is to orchestrate the business extension enhancement plug-in group based on the LiteFlow rule engine framework.

[0110] After the standard alarm message body passes through the service enhancer, the standard alarm message body includes: the unique code of the device generating the alarm, the alarm type, the alarm occurrence time, the original alarm message, the plug-in 1 extension information, the plug-in 2 extension information, etc.

[0111] ③ Storage: Through the message model, the final standard alarm message body is persisted, that is, stored in the preset storage space; the built-in task scheduling service clears expired data based on the storage cycle of the message model.

[0112] ④ Distribution engine: including subscription push logic, mainly supporting alarm message subscription management, alarm messages, alarm message distribution, and alarm message query capabilities; among them, the subscription dimension and distribution dimension are determined according to the extended information part of the business enhancer.

[0113] The following describes the implementation process of two specific examples:

[0114] Implementation Example 1 (Consumption Model: Distribution of Smoking Recognition Alarm Message Based on Alarm Device Location Information), the steps are as follows:

[0115] ①Consumption model management component - clustering model:

[0116] A set of rules for "smoking identification" alarms is defined based on different message structures for "smoking identification" in different channels.

[0117] ②Consumption model management component - business orchestration model:

[0118] Two enhanced plug-ins, "Administrative Region" and "Longitude and Latitude", are added for the "Smoking Identification" alarm. The plug-ins have no sequential relationship and can be executed concurrently. The "Administrative Region" plug-in defines how to obtain the area information of the alarm device, such as the province and city code, through the device's unique code; the "Longitude and Latitude" plug-in defines how to obtain the latitude and longitude information of the alarm device through the device's unique code.

[0119] ③Consumption model management component - message model:

[0120] Create relevant tables for the "smoking identification" alarm, configure the mapping between alarm messages and table fields, and store messages for 30 days.

[0121] ④Consumption model management component - distribution model:

[0122] Specify the distribution dimension (such as by province) for the "smoking identification" alarm-related tables, actually create an index to open the subscription dimension (such as by province), and support developers to subscribe and query based on this dimension.

[0123] ⑤ Enable this consumption model: Developers subscribe to messages based on "province" + "smoking identification".

[0124] ⑥Message processor-clusterer: recognizes the "smoking identification" alarm.

[0125] ⑦Message processor-storage: stores the expanded "smoking identification" alarm message.

[0126] ⑧Message processor-distribution engine: query the corresponding subscription record, match the "smoking identification" alarm to "a certain province", and push it according to the callback address of the subscription record.

[0127] Implementation Example 2 (Consumption Model: Distribution of smoking identification warning messages based on the user system of the customer platform; Customer Demand: Maximum storage time and information expansion do not meet the demand), the steps are as follows:

[0128] ①Consumption model management component - clustering model:

[0129] A set of rules for "smoking identification" alarm is defined according to the message structure of "smoking identification" of the centralized node.

[0130] ②Consumption model management component - business orchestration model:

[0131] A new enhanced plug-in "User Device" is added for the "Smoking Identification" alarm. The "User Device" plug-in defines the user list information such as user ID and mobile phone number that is bound or associated with the alarm device on the customer node customer platform through the device unique code.

[0132] ③Consumption model management component - message model:

[0133] Create a related table for the "smoking identification" alarm, configure the mapping between the alarm message and the table fields, and store the message for 180 days.

[0134] ④Consumption model management component - distribution model:

[0135] Specify the distribution dimension (such as by user) for the "smoking identification" alarm-related table, actually create an index to open the subscription dimension (such as by user), and support developers to subscribe and query based on this dimension.

[0136] ⑤ Enable this consumption model: The client application developer of the client node subscribes to messages based on "user" + "smoking identification".

[0137] ⑥Message processor-clusterer: recognizes the "smoking identification" alarm.

[0138] ⑦Message processor-storage: stores the expanded "smoking identification" alarm message.

[0139] ⑧Message processor-distribution engine: query the corresponding subscription record, match the "smoking identification" alarm to "a certain user", and push it according to the callback address of the subscription record (client node client application).

[0140] This embodiment also provides an alarm message distribution device, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0141] Figure 4 is a structural block diagram of an alarm message distribution device according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:

[0142] The alarm information acquisition module 10 is used to acquire alarm information from different channels.

[0143] The alarm information standardization module 20 is used to map the alarm information into a first standard information body based on the message structure of the alarm information, where the first standard information body includes an alarm type.

[0144] The alarm information expansion module 30 is used to add corresponding additional business information to the first standard information body based on different alarm types to obtain a second standard information body.

[0145] An alarm information distribution module 40 is used to determine a mapping relationship between a distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body;

[0146] Based on the mapping relationship between the distribution dimension and the second standard information body, the second standard information body is distributed.

[0147] The above-mentioned alarm information standardization module 20 is also used to generate cluster alarm information rules based on the message structure of the alarm information;

[0148] Based on the clustering alarm information rule, the alarm information is mapped into a first standard information body.

[0149] The alarm information expansion module 30 is also used to perform service arrangement processing on the alarm type based on the alarm type, and generate a service plug-in group corresponding to the alarm type;

[0150] Based on the service plug-in group corresponding to the alarm type, corresponding additional service information is generated, and the additional service information is added to the first standard information body to obtain a second standard information body.

[0151] The above-mentioned alarm information expansion module 30 is also used for the first standard information body to further include an alarm device code, wherein the alarm device code corresponds one-to-one to the alarm device for obtaining the alarm information;

[0152] Use the service plug-in group to obtain alarm device information according to the alarm device code;

[0153] Generate corresponding additional service information based on the alarm device information.

[0154] The above-mentioned alarm information distribution module 40 is also used to store the second standard information body into a preset storage space, and obtain a preset storage time length of each second standard information body;

[0155] If it is detected that the storage time of the second standard information body in the preset storage space exceeds the preset storage time, the second standard information body is cleared.

[0156] The alarm information distribution module 40 is further configured to generate an alarm related table based on the alarm type and the additional service information in the second standard information body, wherein the alarm related table includes a mapping relationship between the distribution dimension and the second standard information body.

[0157] The above-mentioned alarm information distribution module 40 is also used to obtain subscription information input by the user;

[0158] Based on the subscription information, the corresponding second standard information body is searched in the alarm related table;

[0159] Based on the mapping relationship between the distribution dimension and the second standard information body in the alarm related table, the queried second standard information body is distributed.

[0160] The above-mentioned alarm information distribution module 40 is also used to query the callback address of the second standard information body based on the subscription information;

[0161] Based on the alarm related table, distribute the queried standard information to the callback address.

[0162] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0163] In addition, in combination with the alarm message distribution method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the alarm message distribution methods in the above embodiment is implemented.

[0164] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.

[0165] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for distributing an alarm message, characterized in that: include: Obtain warning information from different channels; Based on the message structure of the alarm information, mapping the alarm information into a first standard information body, where the first standard information body includes an alarm type; Based on different alarm types, corresponding additional service information is added to the first standard information body to obtain a second standard information body, including: Based on the alarm type, performing service orchestration processing on the alarm type to generate a service plug-in group corresponding to the alarm type; Based on the service plug-in group corresponding to the alarm type, corresponding additional service information is generated, including: The first standard information body also includes an alarm device code, wherein the alarm device code corresponds one-to-one to the alarm device for obtaining the alarm information; Using the service plug-in group, obtaining alarm device information according to the alarm device code; Based on the alarm device information, generating the corresponding additional service information; Adding the additional service information to the first standard information body to obtain the second standard information body; Determine, based on the alarm type and the additional service information in the second standard information body, a mapping relationship between the distribution dimension and the second standard information body; The second standard information body is distributed based on the mapping relationship between the distribution dimension and the second standard information body.

2. The method for distributing warning messages according to claim 1, characterized in that: The mapping of the alarm information into a first standard information body based on the message structure of the alarm information includes: Based on the message structure of the alarm information, generating clustering alarm information rules; Based on the clustering alarm information rule, the alarm information is mapped into a first standard information body.

3. The method for distributing warning messages according to claim 1, characterized in that: Before determining the mapping relationship between the distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body, the method further includes: storing the second standard information body into a preset storage space, and obtaining a preset storage duration of each second standard information body; If it is detected that the storage time of the second standard information body in the preset storage space exceeds the preset storage time, the second standard information body is cleared.

4. The method for distributing warning messages according to any one of claims 1 to 3, characterized in that: The determining, based on the alarm type and the additional service information in the second standard information body, a mapping relationship between the distribution dimension and the second standard information body includes: Based on the alarm type and the additional service information in the second standard information body, an alarm related table is generated, wherein the alarm related table includes a mapping relationship between a distribution dimension and the second standard information body.

5. The method for distributing warning messages according to claim 4, characterized in that: The distributing the second standard information body based on the mapping relationship between the distribution dimension and the alarm information includes: Get the subscription information entered by the user; Based on the subscription information, searching the alarm-related table for the corresponding second standard information body; The queried second standard information body is distributed based on the mapping relationship between the distribution dimension and the second standard information body in the alarm related table.

6. The method for distributing warning messages according to claim 5, characterized in that: This method also includes: Based on the subscription information, querying the callback address of the second standard information body; Based on the alarm related table, the queried standard information is distributed to the callback address.

7. A warning message distribution device, characterized in that: include: Alarm information acquisition module, used to obtain alarm information from different channels; An alarm information standardization module, configured to map the alarm information into a first standard information body based on a message structure of the alarm information, wherein the first standard information body includes an alarm type; The alarm information expansion module is used to add corresponding additional business information to the first standard information body based on different alarm types to obtain a second standard information body, including: Based on the alarm type, performing service orchestration processing on the alarm type to generate a service plug-in group corresponding to the alarm type; Based on the service plug-in group corresponding to the alarm type, corresponding additional service information is generated, including: The first standard information body also includes an alarm device code, wherein the alarm device code corresponds one-to-one to the alarm device for obtaining the alarm information; Using the service plug-in group, obtaining alarm device information according to the alarm device code; Based on the alarm device information, generating the corresponding additional service information; Adding the additional service information to the first standard information body to obtain the second standard information body; An alarm information distribution module, used to determine a mapping relationship between a distribution dimension and the second standard information body based on the alarm type and the additional service information in the second standard information body; The alarm information distribution module is also used to distribute the second standard information body based on the mapping relationship between the distribution dimension and the second standard information body.

8. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the alarm message distribution method according to any one of claims 1 to 6 when running.

Citation Information

Patent Citations

  • Alarm information processing method and device, storage medium and electronic equipment

    CN118227411A