Template-based alarm rendering method and device

Through the template-based alarm rendering method, the rendering template is determined according to the alarm level, which solves the problem of customizing the processing of data of different monitoring systems in the existing technology, and achieves the effect of quickly adapting to rendering needs and reducing R&D costs.

CN110413975BActive Publication Date: 2025-08-19BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910690301.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-29
Publication Date
2025-08-19
Estimated Expiration
2039-07-29

AI Technical Summary

Technical Problem

Existing alarm systems need to be customized for data from different monitoring systems, resulting in high R&D costs and poor maintenance.

Method used

Through the template-based alarm rendering method, the rendering template is determined and rendered according to the alarm level, supporting the rendering needs of different channels without the need for customized development.

Benefits of technology

It quickly adapts to different rendering needs, saves R&D costs, and improves the maintainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110413975B_ABST
    Figure CN110413975B_ABST
Patent Text Reader

Abstract

This application discloses a template-based alarm rendering method and device. A specific implementation of the method includes: in response to receiving an alarm message, determining the alarm level of the alarm message; based on the alarm level, determining the alarm message sending channel corresponding to the alarm level; rendering the alarm message according to the rendering template corresponding to the determined alarm message sending channel; and pushing the rendered alarm message to the user via the determined alarm message sending channel. This implementation can quickly support different rendering requirements by configuring templates without the need for customized development, saving R&D costs and improving maintainability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a template-based alarm rendering method and device. Background Art

[0002] In existing technologies, alarm systems often need to support multiple monitoring systems simultaneously. Different monitoring systems may employ different data models and formats. For example, the Prometheus monitoring system defines monitoring objects using name and key-value pairs, while the Open-Falcon monitoring system defines monitoring objects using the host where they reside. If an alarm system needs to identify anomalies and generate alarms based on data from different monitoring systems, it must customize the different alarm data to render it into a readable format for delivery to users. Summary of the Invention

[0003] The embodiments of the present application provide a template-based alarm rendering method and device.

[0004] In a first aspect, the present application provides a multimedia interaction method, which includes: in response to receiving an alarm message, determining the alarm level of the alarm message; based on the alarm level, determining the alarm message sending channel corresponding to the alarm level; rendering the alarm message according to a rendering template corresponding to the determined alarm message sending channel; and pushing the rendered alarm message to the user through the determined alarm message sending channel.

[0005] In some embodiments, rendering the alarm information according to the rendering template corresponding to the determined alarm information sending channel includes: reading the rendering template corresponding to the determined alarm information sending channel, the rendering template containing variables; searching for corresponding variable values in the alarm information based on the variable names of the variables; and replacing the variables in the rendering template according to the found variable values.

[0006] In some embodiments, replacing a variable in a rendering template according to a found variable value includes: determining a format of the variable value according to a variable type of the variable in the rendering template; and presenting the variable value using the determined format to replace the variable in the rendering template.

[0007] In some embodiments, replacing the variable in the rendering template according to the found variable value includes: if the variable includes an annotation, replacing the variable in the rendering template with the value of the annotation corresponding to the found variable value.

[0008] In some embodiments, the rendering template includes a voice type template, a short message type template, and a rich text type template.

[0009] In the second aspect, the present application provides a template-based alarm rendering device, which includes: a receiving unit, configured to determine the alarm level of the alarm information in response to receiving the alarm information; a determination unit, configured to determine the alarm information sending channel corresponding to the alarm level based on the alarm level; a rendering unit, configured to render the alarm information according to the rendering template corresponding to the determined alarm information sending channel; and a sending unit, configured to push the rendered alarm information to the user through the determined alarm information sending channel.

[0010] In some embodiments, the rendering unit includes: a reading module, configured to read a rendering template corresponding to the determined alarm information sending channel, the rendering template containing variables; a search module, configured to search for corresponding variable values in the alarm information based on the variable names of the variables; and a replacement module, configured to replace the variables according to the found variable values.

[0011] In some embodiments, the replacement module is further configured to: determine a format of the variable value according to a variable type of the variable in the rendering template; and present the variable value using the determined format to replace the variable in the rendering template.

[0012] In some embodiments, the replacement module is further configured to: if the variable contains an annotation, replace the variable in the rendering template with the value of the annotation corresponding to the found variable value.

[0013] In some embodiments, the rendering template includes a voice type template, a short message type template, and a rich text type template.

[0014] In a third aspect, the present application provides an electronic device comprising one or more processors; a storage device storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a template-based alarm rendering method.

[0015] In a fourth aspect, the present application provides a computer-readable medium having a computer program stored thereon, which implements a template-based alarm rendering method when executed by a processor.

[0016] The template-based alarm rendering method and device provided in the present application determine the level of the alarm information after receiving the alarm information, determine the sending channel of the corresponding alarm information according to the alarm level, render the alarm information according to the rendering template corresponding to the alarm channel, and send the rendered alarm information to the user. This supports different rendering requirements by configuring templates without the need for customized development, saves R&D costs, and improves maintainability. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1is an exemplary system architecture diagram to which the present application may be applied;

[0018] Figure 2 is a flowchart of an embodiment of a template-based alarm rendering method according to the present application;

[0019] Figure 3 is a schematic diagram of an application scenario of the template-based alarm rendering method according to the present application;

[0020] Figure 4 is a flow chart of another embodiment of the template-based alarm rendering method according to the present application;

[0021] Figure 5 is a structural diagram of an embodiment of a template-based alarm rendering device according to the present application;

[0022] Figure 6 It is a structural diagram of a computer system suitable for implementing a server in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely for the purpose of explaining the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the relevant invention are shown in the accompanying drawings.

[0024] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a template-based alarm rendering method of the present application can be applied.

[0026] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, networks 104 and 106, and servers 105 and 107. Server 105 represents a server running an alarm system employing a template-based alarm rendering method, and server 107 represents a server running a monitoring system. Network 104 represents the medium providing a communication link between terminal devices 101, 102, and 103 and server 105, while network 106 represents the medium providing a communication link between server 107 running the monitoring system and server 105 running the alarm system. Networks 104 and 106 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0027] Server 105 running an alarm system interacts with server 107 running a monitoring system via network 106 to obtain alarm information sent by server 107 running a monitoring system. Server 105 running an alarm system interacts with user terminal devices 101, 102, and 103 via network 104 to send rendered alarm information. Terminal devices 101, 102, and 103 may be installed with various communication client applications, such as web browser applications, instant messaging tools, email clients, and social platform software.

[0028] The terminal devices 101, 102, and 103 can be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with display screens and supporting communication with cloud servers, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, and desktop computers, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0029] Servers 105 and 107 may be servers that provide various services, such as the aforementioned server running an alarm system and a server running a monitoring system. Server 105 running an alarm system may receive alarm information sent by server 107 running a monitoring system, render the alarm information using a rendering template corresponding to an alarm channel determined based on the alarm level, and transmit the rendered information to terminal devices 101, 102, and 103.

[0030] Servers 105 and 107 can be hardware or software. When servers 105 and 107 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers or as a single server. When the server is software, it can be implemented as multiple software programs or software modules or as a single software program or software module. No specific limitations are given here.

[0031] It should be noted that the template-based alarm rendering method provided in the embodiment of the present application is generally executed by the server 105 , and accordingly, the template-based alarm rendering device is generally set in the server 105 .

[0032] It should be understood that Figure 1 The number of terminal devices 101, 102, 103, network 104 and server 105 is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0033] Figure 2A flow chart 200 of an embodiment of a template-based alarm rendering method applicable to the present application is shown. The template-based alarm rendering method includes the following steps:

[0034] Step 201: In response to receiving alarm information, determine the alarm level of the alarm information.

[0035] In this embodiment, the alarm system can receive alarm information from multiple monitoring systems connected to it, among which commonly used monitoring systems include Prometheus, Open-falcon, Zabbix, etc.

[0036] Here, the monitoring system receives monitoring data, analyzes the monitoring data, and reports alarms. The monitoring data may include CPU load, API response time, the number of service requests per unit time of the application, the number of database connections, etc.

[0037] In addition, the alarm information includes information such as the alarm time, alarm name, alarm strategy, abnormal value at the time of the alarm, and alarm level, so that users can make judgments based on the information after receiving the rendered alarm information and determine the corresponding treatment plan. In some optional methods, the alarm information is structured data, where structured data is data managed in the form of a relational database table.

[0038] After receiving the alarm information, the alarm system identifies the alarm level of the alarm information. The alarm level is used to indicate the severity of the alarm information. The alarm level can be represented by an alarm level identifier. The alarm level identifier can be a character identifier, such as "Serious", "Warning", "Attention", etc., or a digital code identifier. For example, from high to low alarm levels, the digital code identifiers can be "333", "222", "111", etc. Of course, the alarm level identifier can also be set by a combination of numbers and characters, which is not limited in this application.

[0039] Step 202: Based on the alarm level, determine the alarm information sending channel corresponding to the alarm level.

[0040] In this embodiment, the alarm system determines the sending channel of the alarm information corresponding to the alarm level based on the alarm level confirmed by the alarm information. Among them, the sending channel can be a sending method in existing technology or future development technology, such as SMS, WeChat, email, voice, text that can be converted to voice, etc., and this application does not limit this. Typically, general alarms are sent in the form of email, serious alarms are sent in the form of SMS, etc., and particularly urgent alarms are sent in the form of telephone, WeChat voice, etc.

[0041] Step 203: Render the alarm information according to the rendering template corresponding to the determined alarm information sending channel.

[0042] In this embodiment, the alarm system renders the alarm information according to the rendering template corresponding to the determined alarm information sending channel. That is, the alarm system fills the alarm information data into the rendering template corresponding to the alarm information sending channel. This can be in the form of variables or in the form of syntax trees and nodes, which is not limited by this application. The rendering template is used to render the alarm information into different formats according to different types of notification channels.

[0043] In some optional manners, the rendering template may include a voice type template, a short message type template, and a rich text type template.

[0044] Rich text templates are used for information delivery channels that support rich text. The content of this type of template includes two fields: title and content. The content is defined in HTML and can support text, audio, video, hyperlinks, etc.

[0045] The short message type template corresponds to an information sending channel that supports the short text format.

[0046] Voice-type templates correspond to the voice delivery channels of instant messaging applications that support voice communication. Voice-type templates can contain text and voice files that can be converted to speech. The text that can be converted to speech can be TTS text, which stands for text-to-speech and is a type of speech synthesis application. TTS intelligently converts text into natural speech streams in real time, making the listener feel natural when listening to the information, without the coldness and awkwardness of machine-generated speech.

[0047] Step 204: Push the rendered alarm information to the user through the determined alarm information sending channel.

[0048] In this embodiment, the alarm system sends the rendered alarm information to the user's terminal device for receiving the alarm information via the determined alarm information transmission channel. The terminal device can be any electronic device with a display screen that supports communication with the server, including but not limited to smartphones, tablet computers, e-book readers, laptop computers, and desktop computers. Various communication client applications can be installed on the terminal device, such as web browser applications, instant messaging tools, email clients, and social platform software.

[0049] Continue to see Figure 3 , Figure 3 This is a schematic diagram of an application scenario of the template-based alarm rendering method according to this embodiment. Figure 3An application scenario might involve an alarm system receiving alerts from multiple connected monitoring systems. These systems use different data models and formats. For example, the Prometheus monitoring system defines monitoring objects by name and key-value pairs, while the Open-Falcon monitoring system defines monitoring objects by their host machine. The alarm system needs to customize the data from these different monitoring systems to render it into a readable format for users.

[0050] exist Figure 3 The application scenario schematically shows a situation in which a server 302 running an alarm system receives alarm information sent by a server 303 from a Prometheus monitoring system, a server 304 from an Open-falcon monitoring system, and a server 305 from a Zibbix monitoring system.

[0051] exist Figure 3 In the illustrated application scenario, server 302 running an alarm system can receive alarm information from server 303 of a Prometheus monitoring system, server 304 of an Open-falcon monitoring system, and server 305 of a Zibbix monitoring system. For example, these alarm information may indicate database access anomalies, memory anomalies, port acquisition anomalies, disk anomalies, and thread anomalies. Furthermore, the data models and formats of these alarm information vary. In this application scenario, if server 302 running an alarm system receives an alarm from a particular monitoring system, it can first identify the alarm level of the received alarm information. For example, the alarm level of database access anomalies and port acquisition anomalies can be identified as extremely urgent. For extremely urgent information, a telephone transmission channel can be used. After confirming that the alarm information is to be transmitted via the telephone, the alarm system can use the rendering template corresponding to the telephone transmission channel to render the alarm information "database access anomaly" and "port acquisition anomaly" respectively, and then transmit the rendered alarm information to terminal device 301.

[0052] The template-based alarm rendering method provided by the embodiments of the present disclosure determines the alarm level of the alarm information in response to receiving the alarm information, and determines the alarm information sending channel corresponding to the alarm level based on the alarm level; renders the alarm information according to the rendering template corresponding to the determined alarm information sending channel; and pushes the rendered alarm information to the user through the determined alarm information sending channel. Different rendering requirements can be quickly supported by configuring templates without the need for customized development, which saves R&D costs and improves maintainability.

[0053] Further references Figure 4, which shows a process 400 of another embodiment of a template-based alarm rendering method. The process 400 of the multimedia interaction method includes the following steps:

[0054] Step 401: In response to receiving alarm information, determine the alarm level of the alarm information.

[0055] In this embodiment, the implementation details and technical effects of step 401 can be found in the description of step 201 and will not be repeated here.

[0056] Step 402: Based on the alarm level, determine the alarm information sending channel corresponding to the alarm level.

[0057] In this embodiment, the implementation details and technical effects of step 402 can be found in the description of step 202 and will not be repeated here.

[0058] Step 403: read a rendering template corresponding to the determined alarm information sending channel, where the rendering template includes variables.

[0059] In this embodiment, the alarm system reads the sending channel determined according to the alarm level of the alarm information, and then determines a rendering template corresponding to the sending channel.

[0060] and Figure 2 Unlike the illustrated embodiment, in this embodiment, the rendering template can further include variables. The variable names can be used to represent characteristic fields in the alarm information, such as the monitored object, alarm policy, current indicator value, abnormal time, etc. The rendering template can also include fixed strings to facilitate user understanding of the alarm information.

[0061] Step 404: Search the alarm information for the corresponding variable value based on the variable name.

[0062] In this embodiment, the alarm system searches for corresponding variable values in the alarm information based on the variable names of the variables in the confirmed rendering template. Specifically, the search process may include first extracting characteristic fields in the alarm information, such as the alarm level and alarm policy, and representing them in the form of variables. The alarm system then directly searches for corresponding values based on the variable names in the template.

[0063] Step 405: Replace the variables in the rendering template according to the found variable values.

[0064] After the alarm system finds the variable value corresponding to the variable name in the rendering template, it replaces the variable in the rendering template with the variable value. Taking the rendering template of the short message type as an example, the alarm information after the variable value is replaced is as follows:

[0065] [Alarm-Serious]

[0066] Alarm object: Database access times

[0067] Alarm filtering strategy: Alarm if 3 conditions are met in 3 judgments

[0068] Abnormal time: 2018-12-01 23:12:10

[0069] Product Line: **** Application: ****

[0070] In some optional methods, replacing a variable in a rendering template according to a found variable value includes: determining a format of the variable value according to a variable type of the variable in the rendering template; and presenting the variable value using the determined format to replace the variable in the rendering template.

[0071] In this implementation, the alarm system determines the format of variables in the rendering template based on their different variable types, including timestamps, numeric values, and binary codes. Different display formats are required for different variable types. For example, a timestamp might be displayed as "Saturday October 27, 14:21:20, 2007." The display format of variables in the rendering template can be adjusted using a "format control string." By determining the variable value format based on the variable type, users can more easily read and interpret alarm information.

[0072] In some optional ways, the variable in the rendering template is replaced according to the found variable value, including: if the variable contains an annotation, the variable in the rendering template is replaced with the value of the annotation corresponding to the found variable value.

[0073] In this implementation, when the alarm system replaces the variable in the rendering template with the value of the variable it finds, if the variable contains an annotation, the variable in the rendering template is replaced with the value of the annotation corresponding to the variable. Annotations are used to further explain system identifiers with specific meanings in the alarm information, such as alarm level 4 for "critical," 3 for "important," 2 for "warning," and 1 for "notification." This data requires further interpretation before it is sent to the user, to facilitate their understanding of the alarm information and their effective response to it.

[0074] Step 406: Push the rendered alarm information to the user through the determined alarm information sending channel.

[0075] In this embodiment, the implementation details and technical effects of step 406 can be found in the description of step 204 and will not be repeated here.

[0076] The above-mentioned embodiment of the present application reads the rendering template corresponding to the determined alarm information sending channel, and the rendering template contains variables; searches for the corresponding variable value in the alarm information based on the variable name of the variable; replaces the variable in the rendering template according to the found variable value, and sends the alarm information after the variable value is replaced to the user, so that the processing template of the alarm information is more compatible and easier to maintain.

[0077] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a template-based alarm rendering device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0078] like Figure 5 As shown, the template-based alarm rendering device 500 of this embodiment includes: a receiving unit 501 , a determining unit 502 , a rendering unit 503 , and a sending unit 504 .

[0079] The receiving unit 501 may be configured to determine, based on the alarm level, an alarm information sending channel corresponding to the alarm level.

[0080] The determining unit 502 may be configured to determine, based on the alarm level, an alarm information sending channel corresponding to the alarm level.

[0081] The rendering unit 503 may be configured to render the alarm information according to a rendering template corresponding to the determined alarm information sending channel.

[0082] The sending unit 504 may be configured to push the rendered alarm information to the user through the determined alarm information sending channel.

[0083] In some optional implementations of this embodiment, the rendering unit includes a reading module, which is configured to read a rendering template, the rendering template containing variables; a search module, which is configured to search for corresponding variable values in the alarm information based on the variable names of the variables; and a replacement module, which is configured to replace the variables according to the found variable values.

[0084] In some optional implementations of this embodiment, the replacement module is further configured to determine a format of the variable value according to the variable type of the variable in the rendering template; and present the variable value using the determined format to replace the variable in the rendering template.

[0085] In some optional implementations of this embodiment, if the variable contains an annotation, the variable in the rendering template is replaced with the value of the annotation corresponding to the found variable value.

[0086] In some optional implementations of this embodiment, the rendering template includes a voice type template, a short message type template, and a rich text type template.

[0087] Those skilled in the art will appreciate that the template-based alarm rendering device 500 also includes some other well-known structures, such as a processor, a memory, etc., and in order to unnecessarily obscure the embodiments of the present disclosure, these well-known structures are omitted. Figure 5 Not shown in the figure.

[0088] Reference below Figure 6 , which shows a structural diagram of a computer system 600 suitable for implementing a client device or server of an embodiment of the present application.

[0089] like Figure 6 As shown, the computer system 600 includes a processor (e.g., a central processing unit (CPU)) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 708 into a random access memory (RAM) 603. Various programs and data required for the operation of the system 600 are also stored in the RAM 603. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0090] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.

[0091] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication portion 609 and / or installed from a removable medium 611.

[0092] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0093] The modules described in the embodiments of the present application may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a receiving unit, a determining unit, a rendering unit, and a sending unit. The names of these units do not, in some cases, constitute limitations on the modules themselves. For example, the receiving module may also be described as a "module for receiving alarm information."

[0094] As another aspect, the present application also provides a non-volatile computer storage medium, which can be the non-volatile computer storage medium included in the apparatus in the above embodiment; or it can be a non-volatile computer storage medium that exists independently and is not installed in a client device. The above non-volatile computer storage medium stores one or more programs, and when the one or more programs are executed by a device, the device: in response to receiving an alarm message, determines the alarm level of the alarm message; based on the alarm level, determines the alarm message sending channel corresponding to the alarm level; renders the alarm message according to the rendering template corresponding to the determined alarm message sending channel; and pushes the rendered alarm message to the user through the determined alarm message sending channel.

[0095] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A template-based alarm rendering method, the method comprising: In response to receiving the alarm information, determining an alarm level of the alarm information, wherein the alarm information is determined based on monitoring data of each monitoring system, the monitoring data including at least one of an API response time and a number of service requests per unit time of an application program, as well as a CPU load and a number of database connections; Determining, based on the alarm level, an alarm information sending channel corresponding to the alarm level; Reading a rendering template containing variables corresponding to the determined alarm information sending channel, the rendering template including a voice type template and a rich text type template, the content form of the voice type template including TTS text that can be converted into voice, and the content form of the rich text type template including a field defined using HTML voice; Searching for a corresponding variable value in the alarm information based on the variable name of the variable; determining a display format suitable for displaying the variable value under the variable type according to the variable type of the variable in the rendering template, the variable type including a timestamp, a numeric value or a binary code; Presenting the variable value using the determined display format to replace the variable in the rendering template, wherein the display format of the variable in the rendering template is adjusted by a format control string; The rendered alarm information is pushed to the user through the determined alarm information sending channel.

2. The method according to claim 1, wherein replacing the variable in the rendering template according to the found variable value further comprises: If the variable contains an annotation, the variable in the rendering template is replaced by the value of the annotation corresponding to the found variable value.

3. The method according to claim 1, wherein the rendering template further comprises a short message type template.

4. A template-based alarm rendering device, comprising: a receiving unit configured to, in response to receiving the alarm information, determine an alarm level of the alarm information, wherein the alarm information is determined based on monitoring data of each monitoring system, the monitoring data including at least one of an API response time and a number of service requests per unit time of an application program, as well as a CPU load and a number of database connections; a determining unit configured to determine, based on the alarm level, an alarm information sending channel corresponding to the alarm level; a rendering unit configured to read a rendering template containing variables corresponding to the determined alarm information sending channel, the rendering template including a voice type template and a rich text type template, the content form of the voice type template including TTS text that can be converted into voice, and the content form of the rich text type template including a field defined in HTML voice; Searching for a corresponding variable value in the alarm information based on the variable name of the variable; determining a display format suitable for displaying the variable value under the variable type according to the variable type of the variable in the rendering template, the variable type including a timestamp, a numeric value or a binary code; Presenting the variable value using the determined display format to replace the variable in the rendering template, wherein the display format of the variable in the rendering template is adjusted by a format control string; The sending unit is configured to push the rendered alarm information to the user through the determined alarm information sending channel.

5. The apparatus according to claim 4, wherein the rendering unit further comprises: The annotation replacement subunit is configured to replace the variable in the rendering template with the value of the annotation corresponding to the found variable value if the variable contains an annotation. The device according to claim 4 , wherein the rendering template further comprises a short message type template.

7. An electronic device comprising: one or more processors; A storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Data exporting method and data exporting device

    CN103425692A

  • Website data security alarming method and device

    CN105490839A

  • Method, server and equipment based on zabbix monitoring alarm and storage medium

    CN110048888A