Notification and warning method, device, computer equipment and storage medium
By using a global notification and early warning data structure in the network security monitoring platform, the complexity and lack of universality of existing notification and early warning methods are solved, and automatic adaptation and business expansion of notification and early warning information are realized.
Patent Information
- Application Number
- CN202111061229.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-10
AI Technical Summary
The existing network security monitoring and notification platforms lack a unified data structure for their notification and early warning methods, resulting in complex business program code that lacks universality and scalability.
By defining the target data structure corresponding to the target notification type in the configuration file, reading and matching notification resource information, generating notification warning information, and using the global notification warning data structure to achieve automatic adaptation and expansion of notification resource information.
It improves the scalability and universality of the notification and early warning methods, can automatically adapt to notification resource information and generate notification and early warning information, and supports the expansion of notification services as needed.
Smart Images

Figure CN113849381B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network security and resource information management, and in particular to a notification and warning method, device, computer equipment and storage medium. Background Art
[0002] With the continuous development of information technology, information security is particularly important for the development of information technology. Therefore, it is necessary to establish a network information security monitoring and early warning notification mechanism, actively promote network security construction, establish a network security monitoring and notification platform, and realize security monitoring and timely notification of important websites and important online information systems.
[0003] The current notification and early warning method of the network security monitoring and notification platform is a business program code written for the security monitoring process of each monitored unit. The network security monitoring platform executes the corresponding program code. When a network security incident is detected, security monitoring and notification and early warning of the monitored unit are implemented based on the conditional statements in the business program code.
[0004] However, this coding method for the notification and warning process integrates the notification resource information corresponding to each monitored unit (for example, notification type, notification file template, notification code prefix, etc.) into the unique security monitoring and notification and warning process of the monitored unit, resulting in the required business program code being complex and without a unified data structure, which is not universal and scalable. Summary of the invention
[0005] Based on this, it is necessary to provide a notification and warning method, device, computer equipment and storage medium to address the above technical issues.
[0006] A notification and early warning method, the method comprising:
[0007] In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in a configuration file; the configuration file includes data structures and notification resource information of each notification type of the global notification warning;
[0008] The target data structure in the configuration file is read, and notification resource information corresponding to the target data structure is matched to generate notification warning information of the target notification type.
[0009] In one embodiment, before responding to the target notification type selection instruction, the method further includes:
[0010] In response to a unit alarm instruction, a configuration file for global notification and warning is obtained; the unit alarm instruction is generated by the security monitoring module based on a network security event trigger;
[0011] The notification types contained in the configuration file of the global notification warning are read, and the notification types are output and displayed to instruct the terminal to select the notification types.
[0012] In one embodiment, the method further comprises:
[0013] In response to the data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained; the configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information;
[0014] Reading the newly added notification type in the configuration file of the newly added notification type, establishing an association relationship between the data structure of the newly added notification type and the newly added notification type identifier, so that the data structure is called according to the newly added notification type identifier;
[0015] The data structure of the newly added notification type and the newly added notification resource information in the configuration file of the newly added notification type are read, and an association relationship between each notification configuration parameter in the data structure of the newly added notification type and the newly added notification resource information is established.
[0016] In one embodiment, the reading of the target data structure in the configuration file and the generation of notification warning information of the target notification type based on matching the target data structure with corresponding notification resource information include:
[0017] Reading the target data structure in the configuration file, and judging, according to each notification configuration parameter in the target data structure, whether the notification configuration parameter matches corresponding notification resource information;
[0018] If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
[0019] In one embodiment, the method further comprises:
[0020] If the notification configuration parameter matches the corresponding notification resource information, the notification configuration parameter and the corresponding notification resource information are output and displayed.
[0021] In one of the embodiments, the target data structure corresponding to each notification type in the configuration file also includes notification configuration parameters belonging to the notification type; the notification configuration parameters are associated with notification resource information.
[0022] In one of the embodiments, the target data structure of the target notification type includes notification configuration parameters, and the notification configuration parameters include notification number prefix attribute information, notification file attribute information, notification object attribute information and notification method attribute information.
[0023] A notification and warning device, comprising:
[0024] A determination module, configured to determine a target data structure corresponding to a target notification type in a configuration file in response to a target notification type selection instruction; the configuration file includes data structures and notification resource information of each notification type of a global notification warning;
[0025] A generation module is used to read the target data structure in the configuration file, match the target data structure with the corresponding notification resource information, and generate notification warning information of the target notification type.
[0026] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0027] In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in a configuration file; the configuration file includes data structures and notification resource information of each notification type of the global notification warning;
[0028] The target data structure in the configuration file is read, and notification resource information corresponding to the target data structure is matched to generate notification warning information of the target notification type.
[0029] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0030] In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in a configuration file; the configuration file includes data structures and notification resource information of each notification type of the global notification warning;
[0031] The target data structure in the configuration file is read, and notification resource information corresponding to the target data structure is matched to generate notification warning information of the target notification type.
[0032] In the above-mentioned notification and warning method, apparatus, computer equipment and storage medium, the computer equipment responds to the target notification type selection instruction, determines the target data structure corresponding to the target notification type in the configuration file; the configuration file contains the data structure and notification resource information of each notification type of the global notification and warning; reads the target data structure in the configuration file, matches the corresponding notification resource information based on the target data structure, and generates notification and warning information of the target notification type. With this method, according to the logical relationship between the notification resource information, a unified planning is obtained to obtain the notification and warning data structure containing the logical relationship, and then a configuration file is generated, and the notification and warning data structure in the configuration file is executed, which can automatically adapt the notification resource information and generate notification and warning information, and can also further expand the notification business based on the planned notification and warning data structure, thereby improving the scalability and universality of the notification and warning method. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A flowchart of a method for reporting and warning in an embodiment;
[0034] Figure 2 A schematic diagram of the logical relationship of reporting resource information in an embodiment;
[0035] Figure 3 A flowchart of the steps for displaying the global notification warning notification type in one embodiment;
[0036] Figure 4 A schematic diagram of a flow chart of a step of determining a target notification type in an embodiment;
[0037] Figure 5 A schematic diagram of a flow chart of a data structure expansion step in one embodiment;
[0038] Figure 6 A flowchart of a matching notification resource information step in an embodiment;
[0039] Figure 7 A diagram showing a display interface for matching notification resource information in an embodiment;
[0040] Figure 8 A schematic diagram of a process of reporting an early warning example in an embodiment;
[0041] Fig. 9 It is a structural block diagram of a notification and warning device in an embodiment;
[0042] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail 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 used to limit the present application.
[0044] In one embodiment, Figure 1 As shown, a notification and warning method is provided. In this embodiment, the method is applied to a computer device integrated with a notification and warning platform. In this embodiment, the method includes the following steps:
[0045] Step 101, in response to a target notification type selection instruction, determining a target data structure corresponding to a target notification type in a configuration file.
[0046] The configuration file includes the data structure and notification resource information of each notification type of the global notification warning.
[0047] In implementation, the global notification warning data structure generated in advance by the computer equipment based on the logical relationship between the notification resource information is a data structure in the json format. The global notification warning data structure contains various notification types of notification warnings, such as hidden danger notifications, rectification within a time limit, shutdown and rectification, vulnerability notifications, event notifications, administrative penalties, interviews, etc. The embodiment of the present application does not limit the number and types of notification types. For each notification type, there is a target data structure with a unified plan, and the target data structure contains different notification configuration parameters, such as notification code prefix, notification file, notification object, notification method, etc. Specifically, the logical relationship contained in the data structure is shown in the following program:
[0048]
[0049]
[0050] Therefore, the web page of the computer device, in response to the target notification type selection instruction triggered by the user, can determine the target data structure corresponding to the target notification type in the global notification warning data structure of the pre-stored configuration file.
[0051] Step 102, read the target data structure in the configuration file, match the corresponding notification resource information based on the target data structure, and generate notification warning information of the target notification type.
[0052] In implementation, the configuration file also includes notification resource information of notification warning, wherein the notification resource information is the specific notification content information corresponding to the notification configuration parameters.
[0053] The computer device reads the target data structure of the target notification type in the configuration file, automatically adapts the corresponding notification resource information with the notification configuration parameters contained in the target data structure, and then generates notification warning information of the target notification type to issue the notification warning information. For example, for the hidden danger notification type notification warning information of the monitored unit A, the computer device reads each notification configuration parameter contained in the target data structure for the target notification type (i.e. hidden danger notification) and configures the corresponding notification resource in the notification resource information set. The notification number prefix is: hidden character XXX number, notification documents: network security hidden danger notification, network security monitoring report, network security rectification report, etc., thereby generating notification warning information of the target notification type (hidden danger notification notification type).
[0054] In one embodiment, Figure 2 As shown, since the data structure of the global notification and warning included in the configuration file is defined based on the logical relationship between the notification resource information, the data structure of the global warning contains the notification type of the notification and warning, and each notification type of the notification and warning represents a notification and warning method. For example, the notification type includes hidden danger notification, rectification within a time limit, shutdown and rectification, etc. Among them, the target data structure corresponding to each notification type also includes the notification configuration parameters belonging to the notification type. The notification configuration parameters have an associated relationship with the notification resource information. Specifically, the notification configuration parameters include notification number prefix attribute information, notification file attribute information, notification object attribute information and notification method attribute information. Among them, the notification number prefix attribute information is used to limit the notification and warning number format. For example, the notification number prefix attribute defines that the notification and warning number format includes the notification type and notification batch. The notification resource information determined according to the notification number prefix attribute information is: hidden character No. 001, which represents the No. 001 hidden danger notification and warning; the notification file attribute information is used to limit the display specifications of the notification and warning. Specifically, the notification file attribute information includes the notification file format, notification file name, notification file template, etc.; the notification object attribute information is used to limit the notification warning recipient, which may include the name of the notification warning object, the nature of the unit, etc.; the notification method attribute information is used to limit the notification warning issuance method, for example, the specific notification warning issuance method includes: email method, SMS method, etc.
[0055] Optionally, the data structure of the global notification warning can be updated according to the monitoring notification requirements of the monitored unit, adding or deleting any notification type (first level), and adding or deleting a notification configuration parameter (second level) in each notification type. Therefore, the embodiment of the present application does not limit the specific configuration standards (notification types and notification configuration parameters) contained in each logical level in the data structure of the notification warning.
[0056] In the above notification and warning method, the computer device receives a notification type selection instruction, and the notification type selection instruction carries a target notification type identifier; according to the target notification type identifier, the target notification type is determined in a preset global notification and warning data structure; the target data structure of the target notification type in the global notification and warning data structure is read, and the corresponding notification resource information is matched based on the target data structure to generate notification and warning information of the target notification type. With this method, according to the logical relationship between notification resource information, a unified planning is performed to obtain a notification and warning data structure containing the logical relationship, and then a configuration file is generated. The notification and warning data structure in the configuration file is executed, which can automatically adapt the notification resource information and generate notification and warning information, and can also further expand the notification business based on the planned notification and warning data structure, thereby improving the scalability and universality of notification and warning.
[0057] In one embodiment, Figure 3 As shown, before step 101, the method further includes the following steps:
[0058] Step 301, in response to a unit alarm instruction, obtain a configuration file for global notification and warning;
[0059] Among them, the unit alarm instruction is generated by the security monitoring module based on network security events.
[0060] During implementation, the security monitoring module monitors the network security events of the monitored unit in real time. When a network security event occurs in the monitored unit, the security monitoring module generates a unit alarm instruction based on the trigger of the detected network security event, and sends the unit alarm instruction to the notification and warning platform (i.e., the notification and warning platform integrated on the computer device in this embodiment). The computer device can then respond to the unit alarm instruction and obtain the pre-stored global notification and warning configuration file for notification and warning in its own database.
[0061] Step 302, reading each notification type contained in the configuration file of the global notification warning, outputting and displaying each notification type to instruct the terminal to select each notification type.
[0062] During implementation, the computer device reads the configuration file of the global notification warning, and according to the notification types contained in the read configuration file, based on the pre-configured interface display template, adds each notification type to the interface display template for output display, so as to instruct the user to make a selection based on the notification types presented on the terminal display interface.
[0063] In one embodiment, Figure 4 As shown, in step 101, the computer device determines the target data structure based on the notification type identifier, and the specific processing process includes the following steps:
[0064] Step 401, receiving a target notification type selection instruction.
[0065] In implementation, based on the notification types output by the display interface of the computer device, the user can select the target notification type by triggering the display interface, wherein the triggering method for the user to select the target notification type can be a variety of methods such as checking and clicking, which is not limited in the embodiments of the present application. Furthermore, the computer device can receive a target notification type selection instruction generated by the user trigger. Among them, the target notification type selection instruction carries a target notification type identifier. For example, the target notification type identifier can be a notification type ID (Identification), and the notification type ID can uniquely represent the notification type.
[0066] Step 402: According to the target notification type identifier, the notification type identifier is searched and compared in each notification type of the global notification warning included in the configuration file.
[0067] In implementation, each notification type of the global notification warning included in the configuration file corresponds to a different notification type identifier. Therefore, the computer device queries and performs consistency comparison among the notification type identifiers of the global notification warning included in the configuration file according to the target notification type identifier.
[0068] Step 403, identifying a notification type identifier that is consistent with a target notification type identifier, and determining a data structure of the notification type identifier that is consistent with the target notification type identifier as a target data structure.
[0069] In implementation, the computer device identifies a notification type identifier that is consistent with a target notification type identifier, determines a data structure corresponding to the notification type as a target data structure, and adapts notification resource information based on the determined target data structure.
[0070] In one embodiment, Figure 5 As shown, the logical relationship contained in the data structure of the global notification and warning can be expanded according to the newly added monitoring requirements of the monitored unit, and the original data structure of the global notification and warning is expanded and updated according to the logical relationship between the newly added notification resource information corresponding to the newly added monitoring requirements to obtain an updated configuration file. The method also includes:
[0071] Step 501: In response to a data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained.
[0072] The configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information.
[0073] In implementation, based on the newly added monitoring needs of the monitored units and the newly added notification resources corresponding to the newly added monitoring needs of the monitored units, the logical relationship between the newly added notification resources is determined relative to the logical relationship between the notification resources contained in the data structure of the original global notification and early warning, and a new configuration file is configured. Then, the computer device obtains the configuration file of the newly added notification type based on the data structure update instruction. For example, when the notification types contained in the original configuration file are: hidden danger notification, rectification within a time limit, and interview, based on the new monitoring needs of the monitored units and the logical relationship of the newly added notification resource information, the administrative penalty notification type and the notification configuration parameters corresponding to the type are added to the data structure of the original notification and early warning.
[0074] Step 502, read the new notification type in the configuration file of the new notification type, establish an association relationship between the data structure of the new notification type and the new notification type identifier, so that the data structure of the new notification type is called according to the new notification type identifier.
[0075] During implementation, the computer device reads the new notification type in the configuration file of the new notification type, generates a new notification type identifier based on the new notification type, and then adds the new notification type identifier of the parallel relationship to the logical relationship between each notification type identifier in the global notification warning data structure, that is, establishes an association relationship between the data structure of the new notification type and the new notification type identifier, so that the data structure of the new notification type is called according to the new notification type identifier.
[0076] Step 503: read the data structure of the new notification type and the new notification resource information in the configuration file of the new notification type, and establish an association relationship between each notification configuration parameter in the data structure of the new notification type and the new notification resource information.
[0077] During implementation, the computer device reads the data structure of the new notification type and the new notification resource information in the configuration file of the new notification type, and establishes an association between each notification configuration parameter in the data structure of the new notification type and the new notification resource information, so that after reading the new notification type identifier, the target data structure is determined according to the new notification type identifier, and the new notification resource information is automatically matched.
[0078] In one embodiment, Figure 6 As shown, the specific processing process of notifying resource information according to the target data structure matching in step 102 includes:
[0079] Step 601, read the target data structure in the configuration file, and determine whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure.
[0080] In practice, in order to achieve unified planning of data structure in the configuration file, the original data structure of each notification type is the same, that is, the notification configuration parameters contained in the original data structure of each notification type are consistent. For example, the notification configuration parameters are all four categories: notification number prefix, notification file, notification object and notification method. However, for different notification types, the required notification resource information is different, so the matching degree is different relative to the consistent notification configuration parameters. Therefore, after obtaining the notification resource information set corresponding to the type according to the target data structure, it is also necessary to match the specific notification resource information in the notification resource information set according to each notification configuration parameter in the target data structure.
[0081] Specifically, the computer device reads the target data structure in the configuration file, and determines whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure. For example, for the notification warning of the interview type, there is no need for the notification number and notification file. Therefore, there is no specific notification resource information in the two configuration parameters of the notification number prefix and notification file (that is, the item is empty), and the configuration parameters of the notification object and notification method match the notification resource information of the specific target monitoring unit (notification object) and email method (email notification method and email text template); for the notification warning of the hidden danger notification type, there is no need for the notification object and notification method. Therefore, the hidden danger notification type only needs to match the notification number prefix with specific notification resource information such as "hidden character XX number", and match the notification file templates such as "network security hidden danger notification", "network security monitoring report" and "network security rectification report" in the notification file, as well as the notification text resource information corresponding to each notification file template, so that a specific notification file can be generated, and therefore the notification object and notification method, the two notification configuration parameters are empty (no matching notification resource information).
[0082] Step 602: If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
[0083] During implementation, if the notification configuration parameters match specific notification resource information, the computer device will determine the notification configuration parameters that match the notification resource information as the target notification configuration parameters. For example, in a notification warning of an interview type, only the notification object and notification method in the data structure of the interview type match specific notification resource information, and other notification configuration parameters are empty (this also means that the notification warning of the interview type does not require the notification resource information in other notification configuration parameters). The computer device will use the notification object and notification method in the interview type as the target notification configuration parameters, and generate notification warning information of the target notification type with the target notification configuration parameters and the notification resource information that matches them.
[0084] In one embodiment, the method further includes: if the notification configuration parameter matches the corresponding notification resource information, outputting and displaying the notification configuration parameter and the corresponding notification resource information.
[0085] In implementation, when the user selects the target notification type of the notification warning through the display interface, based on the target data structure of the selected target notification type, the notification resource information corresponding to the target data structure is automatically matched. At this time, the web page of the computer device can match the notification configuration parameters with the notification resource information and output the display based on the display template of the display interface.
[0086] Specifically, Figure 7 As shown, the computer device identifies the priority order according to the preset notification configuration parameters, reads each notification configuration parameter in the target data structure in turn, and determines whether the notification number prefix configuration parameter matches the specific notification number information (for example, hidden character XX number). If so, it is output and displayed on the display interface; then, read whether the notification file exists. If it exists in the notification file, for example, including a network security risk notification, the network security risk notification is output and displayed in the form of a file name on the web display interface; then, read whether the notification object exists. If the target notification object exists, the target notification object name is output and displayed; finally, determine the notification method. If there is a specific notification method (for example, email method), the specific notification method is output and displayed on the display interface.
[0087] Optionally, if the notification configuration parameter does not match any notification resource information, the computer device determines the notification configuration parameter as an empty set, the display content of the notification configuration parameter on the display interface is correspondingly empty, and continues to read the next notification configuration parameter.
[0088] In one embodiment, Figure 8 As shown in the figure, an example of warning notification is provided, and the specific processing process is as follows:
[0089] Step 801: The web terminal of the computer device obtains a global notification warning configuration file, which includes various notification types of notification warnings.
[0090] Step 802: The web terminal of the computer device outputs various notification types of notification warnings to the user.
[0091] Step 803: The web terminal of the computer device inputs a notification type identifier corresponding to the target notification type according to the target notification type selected by the user.
[0092] Step 804: the computer device server determines the target data structure of the target notification type according to the notification type identifier of the received target notification type, and adapts the corresponding notification resource information in the target data structure.
[0093] Step 805, identify whether there is a notification number prefix in the matching notification resource information, if so, present the notification number on the web side; if not, the notification configuration parameter item corresponding to the notification number prefix is displayed as empty.
[0094] Step 806, identify whether there is notification file information in the matching notification resource information. If so, generate a corresponding notification file based on the file type and notification file template returned by the server, and output and display the file name of the notification file; if not, the web side of the computer device displays the notification configuration parameter item corresponding to the notification number prefix as empty.
[0095] Step 807, identifying whether there is a notification object in the matching notification resource information, if so, selecting the corresponding target notification object, if not, displaying the notification configuration parameter item corresponding to the notification object as empty on the web side of the computer device.
[0096] Step 808, selecting a corresponding target notification method and a text template corresponding to the target notification method, and generating complete notification warning information of the target notification type.
[0097] Step 809: Send the complete notification warning information of the target notification type to the target notification object in the target notification mode.
[0098] It should be understood that although Figure 1 , Figures 3 to 6 , Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figures 3 to 6 , Figure 8 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0099] In one embodiment, Fig. 9 As shown, a notification warning device 900 is provided, including: a determination module 910 and a generation module 920, wherein:
[0100] Determination module 900, for determining a target data structure corresponding to a target notification type in a configuration file in response to a target notification type selection instruction; the configuration file includes data structures and notification resource information of each notification type of a global notification warning;
[0101] The generating module 920 is used to read the target data structure in the configuration file, match the corresponding notification resource information based on the target data structure, and generate notification warning information of the target notification type.
[0102] In one embodiment, the apparatus 900 further includes:
[0103] An acquisition module is used to obtain a configuration file for global notification and warning in response to a unit alarm instruction; the unit alarm instruction is generated by the security monitoring module based on a network security event trigger;
[0104] The reading module is used to read various notification types contained in the configuration file of the global notification warning, output and display each notification type, and instruct the terminal to select each notification type.
[0105] In one embodiment, the apparatus 900 further includes:
[0106] In response to the data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained; the configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information;
[0107] A reading module, used for reading the newly added notification type in the configuration file of the newly added notification type, and establishing an association relationship between the data structure of the newly added notification type and the newly added notification type identifier, so as to call the data structure according to the newly added notification type identifier;
[0108] The reading module is also used to read the data structure of the new notification type and the new notification resource information in the configuration file of the new notification type, and establish an association relationship between each notification configuration parameter in the data structure of the new notification type and the new notification resource information.
[0109] In one embodiment, the generating module 920 is specifically used to read the target data structure in the configuration file, and determine whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure;
[0110] If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
[0111] In one embodiment, the apparatus 900 further includes:
[0112] The display module is used to output and display the notification configuration parameters and the corresponding notification resource information if the notification configuration parameters match the corresponding notification resource information.
[0113] In one of the embodiments, the configuration file includes a global notification warning data structure, the global warning data structure includes the notification type of the notification warning, and the target data structure corresponding to each notification type also includes notification configuration parameters belonging to the notification type; the notification configuration parameters are associated with the notification resource information.
[0114] In one of the embodiments, the target data structure of the target notification type includes notification configuration parameters, and the notification configuration parameters include notification number prefix attribute information, notification file attribute information, notification object attribute information and notification mode attribute information.
[0115] For the specific definition of the notification and warning device, please refer to the definition of the notification and warning method above, which will not be repeated here. Each module in the above notification and warning device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0116] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a notification and warning method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0117] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0118] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0119] In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in the configuration file; the configuration file includes the data structure and notification resource information of each notification type of the global notification warning;
[0120] Read the target data structure in the configuration file, match the corresponding notification resource information based on the target data structure, and generate notification warning information of the target notification type.
[0121] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0122] In response to the unit alarm instruction, obtain the configuration file of the global notification and warning; the unit alarm instruction is generated by the security monitoring module based on the network security event trigger;
[0123] The notification types contained in the configuration file of the global notification warning are read, and each notification type is output and displayed to instruct the terminal to select each notification type.
[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0125] In response to the data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained; the configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information;
[0126] Read the new notification type in the configuration file of the new notification type, and establish an association relationship between the data structure of the new notification type and the new notification type identifier, so that the data structure is called according to the new notification type identifier;
[0127] The data structure of the newly added notification type and the newly added notification resource information in the configuration file of the newly added notification type are read, and an association relationship between each notification configuration parameter in the data structure of the newly added notification type and the newly added notification resource information is established.
[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0129] Read the target data structure in the configuration file, and determine whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure;
[0130] If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0132] If the notification configuration parameters match the corresponding notification resource information, the notification configuration parameters and the corresponding notification resource information are output and displayed.
[0133] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0134] In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in the configuration file; the configuration file includes the data structure and notification resource information of each notification type of the global notification warning;
[0135] Read the target data structure in the configuration file, match the corresponding notification resource information based on the target data structure, and generate notification warning information of the target notification type.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0137] In response to the unit alarm instruction, obtain the configuration file of the global notification and warning; the unit alarm instruction is generated by the security monitoring module based on the network security event trigger;
[0138] The notification types contained in the configuration file of the global notification warning are read, and each notification type is output and displayed to instruct the terminal to select each notification type.
[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0140] In response to the data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained, wherein the configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information;
[0141] Read the new notification type in the configuration file of the new notification type, and establish an association relationship between the data structure of the new notification type and the new notification type identifier, so that the data structure is called according to the new notification type identifier;
[0142] The data structure of the newly added notification type and the newly added notification resource information in the configuration file of the newly added notification type are read, and an association relationship between each notification configuration parameter in the data structure of the newly added notification type and the newly added notification resource information is established.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0144] Read the target data structure in the configuration file, and determine whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure;
[0145] If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0147] If the notification configuration parameters match the corresponding notification resource information, the notification configuration parameters and the corresponding notification resource information are output and displayed.
[0148] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0150] 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 notification and warning method, characterized in that: The method comprises: In response to a unit alarm instruction, a configuration file for global notification and warning is obtained; the unit alarm instruction is generated by the security monitoring module based on a network security event trigger; In response to the target notification type selection instruction, a target data structure corresponding to the target notification type is determined in the configuration file; the configuration file contains data structures and notification resource information of each notification type of the global notification warning; the notification resource information is specific notification content information corresponding to the notification configuration parameters; According to the preset notification configuration parameter identification priority order, each notification configuration parameter in the target data structure in the configuration file is read in sequence, and notification warning information of the target notification type is generated based on matching the notification configuration parameter with the corresponding notification resource information; The step of identifying the priority order according to the preset notification configuration parameters, sequentially reading each notification configuration parameter in the target data structure in the configuration file, matching the corresponding notification resource information based on the notification configuration parameters, and generating notification warning information of the target notification type includes: Reading the target data structure in the configuration file, and judging, according to each notification configuration parameter in the target data structure, whether the notification configuration parameter matches corresponding notification resource information; If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
2. The method according to claim 1, characterized in that After obtaining the configuration file of the global notification warning in response to the unit alarm instruction, the method further includes: The notification types contained in the configuration file of the global notification warning are read, and the notification types are output and displayed to instruct the terminal to select the notification types.
3. The method according to claim 1, characterized in that The method further comprises: In response to the data structure update instruction, a configuration file of a newly added notification type of notification warning is obtained; the configuration file of the newly added notification type includes the newly added notification type and corresponding newly added notification resource information; Reading the newly added notification type in the configuration file of the newly added notification type, establishing an association relationship between the data structure of the newly added notification type and the newly added notification type identifier, so that the data structure is called according to the newly added notification type identifier; The data structure of the newly added notification type and the newly added notification resource information in the configuration file of the newly added notification type are read, and an association relationship between each notification configuration parameter in the data structure of the newly added notification type and the newly added notification resource information is established.
4. The method according to claim 1, characterized in that The method further comprises: If the notification configuration parameter matches the corresponding notification resource information, the notification configuration parameter and the corresponding notification resource information are output and displayed.
5. The method according to claim 1, characterized in that The target data structure corresponding to each notification type in the configuration file also includes notification configuration parameters belonging to the notification type; the notification configuration parameters are associated with notification resource information.
6. The method according to any one of claims 1 to 5, characterized in that The target data structure of the target notification type includes notification configuration parameters, and the notification configuration parameters include notification number prefix attribute information, notification file attribute information, notification object attribute information and notification mode attribute information.
7. A notification and warning device, characterized in that: The device comprises: An acquisition module, used to acquire a configuration file for global notification and warning in response to a unit alarm instruction; the unit alarm instruction is generated by the security monitoring module based on a network security event trigger; A determination module, configured to determine, in response to a target notification type selection instruction, a target data structure corresponding to a target notification type in a configuration file; the configuration file includes data structures and notification resource information of each notification type of a global notification warning; the notification resource information is specific notification content information corresponding to notification configuration parameters; A generation module, configured to identify a priority order according to preset notification configuration parameters, sequentially read each notification configuration parameter in the target data structure in the configuration file, match the corresponding notification resource information based on the notification configuration parameter, and generate notification warning information of the target notification type; The generating module is specifically used to read the target data structure in the configuration file, and determine whether the notification configuration parameter matches the corresponding notification resource information according to each notification configuration parameter in the target data structure; If the notification configuration parameter matches the notification resource information, the notification configuration parameter is determined as the target notification configuration parameter, and notification warning information of the target notification type is generated according to the target notification configuration parameter and the corresponding notification resource information.
8. The device according to claim 7, characterized in that The device also includes: A reading module, used for reading the newly added notification type in the configuration file of the newly added notification type, and establishing an association relationship between the data structure of the newly added notification type and the newly added notification type identifier, so as to call the data structure according to the newly added notification type identifier; The reading module is also used to read the data structure of the new notification type and the new notification resource information in the configuration file of the new notification type, and establish an association relationship between each notification configuration parameter in the data structure of the new notification type and the new notification resource information.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
