Method, device and equipment for data monitoring alarm and readable medium
By introducing an alarm configuration page and a target alarm plug-in in the data monitoring and alarm system, users can customize monitoring and alarm policies for multiple data sources, solving the problem of inflexible policy configuration in the existing technology, and improving the accuracy and user experience of alarms.
Patent Information
- Application Number
- CN202411786147.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-28
AI Technical Summary
The existing technology lacks flexibility in data monitoring and alarms, and users cannot customize monitoring and alarm strategies for multiple data sources, which affects the alarm effect.
The alarm configuration page receives monitoring alarm policy configurations of multiple data sources from the user. Each policy indicates at least the alarm conditions of the corresponding data source, uses the target alarm plug-in to obtain the data of multiple data sources, and provides alarm information according to the policy.
It realizes flexible configuration of monitoring alarm policies, supports user-defined policies, and improves the accuracy and user experience of alarms.
Smart Images

Figure CN119718847A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computer technology, and more particularly, to methods, apparatuses, devices, and computer-readable storage media for data monitoring alarms. Background Art
[0002] With the rapid development of Internet technology, applications, web pages, etc. have become indispensable in people's lives. As the types and number of applications continue to increase, the complexity of the data (such as code) corresponding to the applications is also increasing, and the quality and security of data operation are becoming more and more important. People expect to be able to monitor and alarm the running data conveniently and quickly to improve the security of data operation. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for data monitoring and alarming is provided. The method comprises: receiving configurations of multiple monitoring and alarming strategies for multiple data sources from a user via an alarm configuration page, each monitoring and alarming strategy at least indicating an alarm condition for alarming a corresponding data source; in response to the configurations of the multiple monitoring and alarming strategies, obtaining data of each of the multiple data sources using a target alarm plug-in; if target data obtained from a target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring and alarming strategy for the target data source, providing alarm information based on the target monitoring and alarming strategy.
[0004] In a second aspect of the present disclosure, a device for data monitoring and alarming is provided. The device includes: a configuration receiving module, configured to receive configurations of multiple monitoring and alarming strategies for multiple data sources from a user via an alarm configuration page, each monitoring and alarming strategy at least indicating an alarm condition for alarming a corresponding data source; a data acquisition module, configured to obtain data of each of the multiple data sources using a target alarm plug-in in response to the configurations of the multiple monitoring and alarming strategies; an information providing module, configured to provide alarm information based on the target monitoring and alarming strategy if the target data obtained from the target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring and alarming strategy for the target data source.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect of the present disclosure.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to perform the method according to the first aspect of the present disclosure.
[0007] It should be understood that the contents described in the summary of the invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In the following, in conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages and aspects of various implementations of the present disclosure will become more apparent. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0010] Figure 2 A flowchart of a process for data monitoring alarm according to some embodiments of the present disclosure is shown;
[0011] Figure 3 A schematic diagram showing an example configuration page according to some embodiments of the present disclosure is shown;
[0012] Figure 4 A schematic diagram showing an example alarm configuration page according to some embodiments of the present disclosure is shown;
[0013] Figure 5 A schematic diagram showing an example editing page according to some embodiments of the present disclosure is shown;
[0014] Figure 6 A schematic diagram showing an example alert page according to some embodiments of the present disclosure is shown;
[0015] Figure 7 A schematic structural block diagram of an apparatus for data monitoring and alarming according to some embodiments of the present disclosure is shown; and
[0016] Figure 8 A block diagram of a computing device is shown in which one or more embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0019] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0020] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0021] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that execute operations of the technical solution of the present disclosure based on the prompt message.
[0022] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0023] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0024] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1As shown, environment 100 may include a monitoring alarm system 110 .
[0025] The monitoring and alarm system 110 can obtain data from multiple data sources 102 (which can include data sources 102-1, 102-2, ..., 102-N, where N is a positive integer, and for ease of description, one or more data sources are collectively referred to as data source 102 below). The multiple data sources here can include, for example, different applications, different databases, etc. The monitoring and alarm system 110 can determine whether the acquired data meets the predetermined alarm condition, and provide alarm information 112 to the user (e.g., relevant staff) when it is determined that the data from a certain data source meets the corresponding alarm condition.
[0026] The monitoring and alarm system 110 may include any computing system with computing capabilities, such as various computing devices / systems, terminal devices, server devices, etc. The terminal device may be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable game terminals, VR / AR devices, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDA), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, game devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. The server-side device may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
[0027] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0028] As briefly mentioned above, people expect to be able to monitor and alert running data conveniently and quickly to improve the security of data operation. Traditionally, fixed monitoring and alerting strategies are often used to alert data. This monitoring and alerting method is not flexible enough, and users cannot customize monitoring and alerting strategies for multiple data sources, which may affect the effectiveness of monitoring and alerting.
[0029] In view of this, an embodiment of the present disclosure provides a method for data monitoring and alarming. The method includes: receiving configurations of multiple monitoring and alarming strategies for multiple data sources from a user via an alarm configuration page, each monitoring and alarming strategy at least indicating an alarm condition for alarming a corresponding data source; in response to the configurations of the multiple monitoring and alarming strategies, obtaining data of each of the multiple data sources using a target alarm plug-in; if target data obtained from a target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring and alarming strategy for the target data source, providing alarm information based on the target monitoring and alarming strategy.
[0030] In this way, in the embodiments of the present disclosure, data can be obtained conveniently and quickly with the help of the target alarm plug-in. It supports user-defined monitoring alarm strategies, and can realize flexible configuration of monitoring alarm strategies. It can provide alarm information in a variety of ways, and then it can support users to view alarm information in a variety of ways.
[0031] Figure 2 FIG. 2 is a flowchart of a process 200 for data monitoring and alarming according to some embodiments of the present disclosure. The process 200 may be implemented at the monitoring and alarming system 110. For ease of discussion, reference will be made to FIG. Figure 1 The process 200 is described with reference to the environment 100 of FIG.
[0032] In block 210 , the monitoring alarm system 110 receives configurations of multiple monitoring alarm policies for multiple data sources from a user via an alarm configuration page, where each monitoring alarm policy at least indicates an alarm condition for generating an alarm for a corresponding data source.
[0033] Each monitoring alarm strategy here may include the alarm method of the alarm information (for example, any appropriate method such as text messaging, phone calls, etc., which is not limited by the present disclosure), the content of the alarm information (each monitoring alarm strategy may correspond to multiple alarm messages including different contents, and the content of each alarm message may include pre-set content), the target user who receives the alarm information (which may include one or more users), and / or the target time period for providing the alarm information (for example, 8:00-23:00 every day, which may be any appropriate time period, which is not limited by the present disclosure). In some embodiments, each monitoring alarm strategy may also include a corresponding label, which may be used to indicate the category of the corresponding monitoring alarm strategy.
[0034] In some embodiments, the monitoring alarm system 110 can also present a policy configuration page. The alarm configuration page provided by the monitoring alarm system 110 can include, for example, multiple created monitoring alarm policies and edit controls and delete controls corresponding to each created monitoring alarm policy. The monitoring alarm system 110 can, for example, delete the target monitoring alarm policy in response to receiving a user operation of a target delete control corresponding to the target monitoring alarm policy. The monitoring alarm system 110 can edit the target alarm policy based on the user operation in response to receiving a user operation of a target edit control corresponding to the target alarm policy (for example, a trigger operation of the user for the edit control). Specifically, the monitoring alarm system 110 can, for example, present a configuration page corresponding to the target monitoring alarm policy in response to receiving a user operation of a target edit control corresponding to the target monitoring alarm policy, and receive configuration information for the target monitoring alarm policy via the configuration page. The policy configuration page can also include, for example, a create control. The monitoring alarm system 110 can present a configuration page corresponding to a new monitoring alarm policy in response to receiving a user operation for a create control.
[0035] Figure 3 FIG. 2 is a schematic diagram of an example configuration page 300 (also referred to as example 300) according to some embodiments of the present disclosure. Figure 3 As shown, example 300 includes multiple input entries for monitoring alarm policies. The monitoring alarm system 110 can receive user configuration information for monitoring alarm policies via these multiple input entries. For example, the monitoring alarm system 110 can determine that the policy name of the current monitoring alarm policy (i.e., the monitoring alarm policy corresponding to example 300) is policy A in response to receiving user input "Policy A" via the input entry "Policy Name". Example 300 can include a save control 310 and a cancel control 320.
[0036] The monitoring and alarm system 110 can, for example, save the configuration information received via the example 300 in response to receiving a user operation for the save control 310. If the example 300 is a configuration page corresponding to a new monitoring and alarm policy, the monitoring and alarm system 110 can save the received configuration information and present the new monitoring and alarm policy on the policy configuration page. If the example 300 is a configuration page corresponding to a created monitoring and alarm policy, the monitoring and alarm system 110 can save the received configuration information and update the monitoring and alarm policy on the policy configuration page.
[0037] If the example 300 is a configuration page corresponding to a new monitoring alarm policy, the monitoring alarm system 110 may, for example, cancel the creation of the new monitoring alarm policy in response to receiving a user operation on the cancel control 320. If the example 300 is a configuration page corresponding to an already created monitoring alarm policy, the monitoring alarm system 110 may, for example, determine not to edit or update the monitoring alarm policy in response to receiving a user operation on the cancel control 320.
[0038] The alarm configuration page presented by the monitoring alarm system 110 may include, for example, multiple data sources and alarm configuration information corresponding to the multiple data sources. Figure 4 FIG. 4 is a schematic diagram of an example policy configuration page 400 (also referred to as example 400) according to some embodiments of the present disclosure. Figure 4 As shown, example 400 may include a content configuration area 410 and a control rendering area 420. The control rendering area 420 may be, for example, superimposed on the content configuration area 410. It should be noted that Figure 4 The example 400 and other subsequent figures are merely examples, and the present disclosure does not limit the specific page content. It is understood that the example 400 may not include the control presentation area 420, and the "operation" column presented in the control presentation area 420 may also be directly presented in the content configuration area 410.
[0039] The multiple monitors shown in the "Monitoring Name" column in the content configuration area 410 can correspond to multiple data sources. It should be noted that the relationship between monitors and data sources can be many-to-one or one-to-one. That is, for the same data source, it can correspond to multiple monitors or one monitor. For the convenience of description, the following example is used to illustrate one monitor corresponding to one data source (that is, one monitor is used to monitor the data of one data source). The content configuration area 410 also presents alarm configuration information corresponding to each monitor. The control presentation area 420 may include multiple operation controls corresponding to each of the multiple monitors. The multiple operation controls include an editing control. The monitoring alarm system 110 can present an editing page for the target monitoring in response to receiving a user operation of the editing control corresponding to the target monitoring.
[0040] Figure 5 FIG. 5 is a schematic diagram showing an example editing page 500 (also referred to as example 500) according to some embodiments of the present disclosure. Figure 5As shown, example 500 includes multiple input entries for monitoring. The monitoring alarm system 110 can receive user configuration information for monitoring via these multiple input entries. For example, the monitoring alarm system 110 can determine that the monitoring name of the current monitoring (that is, the monitoring corresponding to example 500) is monitoring A in response to receiving the user input "monitoring A" via the input entry "monitoring name". The input entry "risk level" in example 500 can be used to receive configuration information for the risk level of the current monitoring. The risk level corresponding to each monitoring can indicate the importance of the monitoring. The input entry "application" in example 500 can be used to receive configuration information for the application deployed for the current monitoring. The application corresponding to each monitoring is also the application where the monitoring is to be deployed. The input entry "label" in example 500 can be used to receive configuration information for the label of the current monitoring. If an application is deployed with multiple monitorings, these multiple monitorings can be monitorings of different categories, and the label corresponding to each monitoring indicates the category of the monitoring.
[0041] The multiple input entrances of example 500 may include, for example, entrance 510. The monitoring alarm system 110 may receive the monitoring alarm strategy for the current monitoring input by the user via entrance 510. For example, in response to receiving a trigger operation from the user on entrance 510, the monitoring alarm system 110 may present a list of created monitoring alarm strategies, and then in response to receiving a selection operation from the user on a monitoring alarm strategy (e.g., strategy A) in the list of monitoring alarm strategies, determine that the strategy is configured as the first monitoring alarm strategy for the current monitoring.
[0042] In block 220, the monitoring alarm system 110 uses the target alarm plug-in to obtain data from each of the multiple data sources in response to the configuration of the multiple monitoring alarm strategies. In some embodiments, the target alarm plug-in can encapsulate multiple program codes for performing data monitoring, and the multiple program codes can be used to perform data acquisition for different data sources. For example, for data source A, the target alarm plug-in can call the corresponding program code A to obtain data from data source A.
[0043] Regarding the specific method of obtaining data, in some embodiments, the target alarm plug-in can intercept operations associated with the target data source (it should be noted that the operations here should be operations that comply with relevant regulations) (that is, if the program code corresponding to the target alarm plug-in is run before executing the operation on the target data source), and bury each operation to obtain the corresponding data. Alternatively or additionally, in other embodiments, the target alarm plug-in can monitor the data of the target data source in real time. The target alarm plug-in can copy the monitored data and store the copied data.
[0044] In block 230 , if the target data acquired from the target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring alarm policy for the target data source, the monitoring alarm system 110 provides alarm information based on the target monitoring alarm policy.
[0045] In some embodiments, for the target data source, the target data obtained by the monitoring alarm system 110 with the help of the target alarm plug-in may include target input parameters and / or target output parameters in the target request for the target data source, first operation data related to key operations on a non-relational database (such as a Redis database), the first operation data indicating whether the key operation is successfully executed, second operation data related to structured query statements for a relational database (such as a MySQL database), the second operation data indicating whether the structured query statement is successfully executed, or performance data associated with system performance (for example, may include memory occupancy, CPU occupancy, etc.).
[0046] In some embodiments, the target alarm condition may include a condition corresponding to the incoming parameter and the outgoing parameter (e.g., the target alarm condition may indicate what kind of incoming parameter and outgoing parameter are correct parameters). If the target data includes the target incoming parameter and / or the target outgoing parameter, the monitoring alarm system 110 may perform parsing on the target incoming parameter and / or the target outgoing parameter to obtain a parsing result. This parsing result may, for example, indicate whether the target incoming parameter and / or the target outgoing parameter meet the target alarm condition. The monitoring alarm system 110 may provide alarm information based on the target monitoring alarm strategy in response to the parsing result indicating that the target incoming parameter and / or the target outgoing parameter meet the target alarm condition (i.e., the target incoming parameter / target outgoing parameter is a correct parameter).
[0047] In some embodiments, the target alarm condition may include a first threshold number indicating operations that are successfully executed and / or a second threshold number indicating operations that are not successfully executed. If the target data includes the first operation data or the second operation data, determine the first number of operations that are successfully executed and / or the second number of operations that are not successfully executed in the first operation data or the second operation data. The second number indicating operations that are not successfully executed may, for example, include the number of operations in which an exception occurs, the number of operations that cannot be executed, and the like. Exemplarily, taking the first operation data as an example, the first operation data may indicate the number of key operations performed on a non-relational database, the first number may be the number of key operations that are successfully executed in the number of key operations performed, and the second number may be the number of key operations that are not successfully executed in the number of key operations performed.
[0048] If the first number does not reach the first threshold number, and / or the second number reaches the second threshold number, the monitoring alarm system 110 can provide alarm information based on the target monitoring alarm strategy. Taking the first threshold number as 30 and the second threshold number as 15 as an example, if the first operation data indicates that the number of key operations performed on the non-relational database is 50, wherein the number of key operations indicated to be successfully executed is 40, and the number of key operations indicated to be unsuccessfully executed is 10, then the monitoring alarm system 110 can determine that the first number reaches the first threshold number / the second number does not reach the second threshold number, and there is no need to provide alarm information. If the first operation data indicates that the number of key operations performed on the non-relational database is 50, wherein the number of key operations indicated to be successfully executed is 20, and the number of key operations indicated to be unsuccessfully executed is 30, then the monitoring alarm system 110 can determine that the first number does not reach the first threshold number / the second number reaches the second threshold number. The monitoring alarm system 110 can then provide alarm information based on the target monitoring alarm strategy. Note that the numbers given here are merely examples and do not imply any limitation on the scope of the present disclosure.
[0049] In some embodiments, the target alarm condition includes a performance alarm condition corresponding to the performance data (for example, it may include a threshold memory occupancy, a threshold CPU occupancy, etc.). If the target data includes performance data, the monitoring alarm system 110 may determine whether the performance data meets the performance alarm condition. Taking the performance data including memory occupancy as an example, the monitoring alarm system 110 may compare the memory occupancy with the threshold memory occupancy in the performance alarm condition, and determine whether the performance data meets the performance alarm condition based on the comparison result. For example, the monitoring alarm system 110 may determine that the performance data meets the performance alarm condition in response to the comparison result indicating that the memory occupancy reaches the threshold memory occupancy. The monitoring alarm system 110 may provide alarm information based on the target monitoring alarm strategy in response to determining that the performance data meets the target alarm condition.
[0050] The target monitoring alarm strategy can provide alarm information in any appropriate manner. For example, the target monitoring alarm strategy can provide alarm information by sending a text message, making a phone call, sending a link, etc. In some embodiments, if authorization is obtained, the monitoring alarm system 110 can send a link that can be used to provide alarm information across platforms and applications. For example, the monitoring alarm system 110 can send a link to a chat application, and the link can be presented in the conversation window in the form of a conversation message.
[0051] This session window can be a private chat session window between two users, or a group chat session window between multiple users. In the case where the session window is a group chat session window, the alarm link corresponding to the alarm information is provided to a group of users. The monitoring alarm system 110 can determine whether at least one user has the viewing permission to view the alarm information in response to receiving a viewing operation of at least one user in a group of users for the alarm information (for example, a click operation of at least one user in the group chat on the alarm link). When configuring the monitoring alarm strategy, the user can, for example, configure at least one user with the permission to view the alarm information. If at least one user has the viewing permission, the monitoring alarm system 110 can provide a login page for the monitoring alarm system, and provide an alarm page including the alarm information when at least one user logs in to the monitoring alarm system via the login page.
[0052] In some embodiments, the monitoring and alarming system 110 may also provide at least one operation control for the alarm information on the alarm page. The at least one operation control here includes at least one of a confirmation control, a solution control, and an ignore control. The monitoring and alarming system 110 may, in response to receiving a selection operation for a target operation control in the at least one operation control, execute a target operation that matches the target operation control.
[0053] For example, reference Figure 6 , Figure 6 FIG. 6 is a schematic diagram of an example warning page 600 (also referred to as example 600) according to some embodiments of the present disclosure. Figure 6 As shown, example 600 presents alarm information and at least one operation control. The at least one operation control includes an ignore control 610, a confirmation control 620, and a solution control 630. The monitoring alarm system 110 can, in response to receiving a selection operation for the ignore control 610, determine that the user determines that there is an error in the current alarm content and there is no need to resolve the exception. The monitoring alarm system 110 can, in response to receiving a selection operation for the confirmation control 620, determine that the user is aware of the alarm content and will resolve the exception later. The monitoring alarm system 110 can, in response to receiving a selection operation for the solution control 630, determine that the user is aware of the alarm content and resolve the exception immediately.
[0054] In some embodiments, the size of the alarm page 600 is limited, and the monitoring alarm system 110 may only present brief contents of the alarm information in the alarm page 600. The monitoring alarm system 110 may provide a detail viewing control 640 in the alarm page 600, and in response to receiving a user operation on the detail viewing control 640, present a detail page including complete alarm information.
[0055] In summary, in the embodiments of the present disclosure, the target alarm plug-in can be used to conveniently and quickly obtain data. It supports user-defined monitoring alarm strategies, and can realize flexible configuration of monitoring alarm strategies. Alarm information can be provided in a variety of ways, and then it can support users to view alarm information in a variety of ways, and support users to perform a variety of operations on alarm information (such as confirmation, ignoring, etc.).
[0056] According to some embodiments of the present disclosure, a device for data monitoring alarm is also provided. Figure 7 A schematic structural block diagram of an apparatus 700 for data monitoring alarm according to some embodiments of the present disclosure is shown. The apparatus 700 may be implemented as or included in the monitoring alarm system 110. Each module / component in the apparatus 700 may be implemented by hardware, software, firmware or any combination thereof.
[0057] like Figure 7 As shown, the device 700 includes a configuration receiving module 710, which is configured to receive configurations of multiple monitoring alarm policies for multiple data sources from a user via an alarm configuration page, and each monitoring alarm policy at least indicates an alarm condition for alarming a corresponding data source. The device 700 also includes a data acquisition module 720, which is configured to obtain data of each of the multiple data sources using a target alarm plug-in in response to the configurations of the multiple monitoring alarm policies. The device 700 also includes an information providing module 730, which is configured to provide alarm information based on the target monitoring alarm policy if the target data obtained from the target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring alarm policy for the target data source.
[0058] In some embodiments, the device 700 also includes: a configuration page receiving module, configured to present a policy configuration page, the policy configuration page including multiple editing controls for multiple monitoring alarm policies; and a policy editing module, configured to edit the target alarm policy based on the user operation in response to receiving a user operation of a target editing control corresponding to the target alarm policy.
[0059] In some embodiments, the target monitoring alarm strategy includes at least one of the following: an alarm method of the alarm information, the content of the alarm information, a target user who receives the alarm information, and / or a target time period for providing the alarm information.
[0060] In some embodiments, the target data includes at least one of the following: a target incoming parameter and / or a target outgoing parameter in a target request for a target data source, first operation data related to a key operation for a non-relational database, the first operation data indicating whether the key operation is successfully executed, second operation data related to a structured query statement for a relational database, the second operation data indicating whether the structured query statement is successfully executed, or performance data associated with system performance.
[0061] In some embodiments, the target alarm condition includes conditions corresponding to the input parameters and the output parameters, and the information providing module 730 includes: a parsing result obtaining module, configured to perform parsing on the target input parameters and / or the target output parameters to obtain a parsing result if the target data includes the target input parameters and / or the target output parameters, the parsing result indicating whether the target input parameters and / or the target output parameters meet the target alarm condition; and a first information providing module, configured to provide alarm information based on the target monitoring alarm strategy if the parsing result indicates that the target input parameters and / or the target output parameters meet the target alarm condition.
[0062] In some embodiments, the target alarm condition includes a first threshold number indicating operations that are successfully executed and / or a second threshold number indicating operations that are not successfully executed, and the information providing module 730 includes: a data determination module, configured to determine a first number of operations indicating successfully executed and / or a second number of operations indicating unsuccessfully executed in the first operation data or the second operation data if the target data includes first operation data or second operation data; and a second information providing module, configured to provide alarm information based on the target monitoring alarm strategy if the first number does not reach the first threshold number, and / or the second number reaches the second threshold number.
[0063] In some embodiments, the target alarm condition includes a performance alarm condition corresponding to the performance data, and the information providing module 730 includes: a performance determination module, configured to determine whether the performance data satisfies the performance alarm condition if the target data includes performance data; and a third information providing module, configured to provide alarm information based on the target monitoring alarm strategy if it is determined that the performance data satisfies the target alarm condition.
[0064] In some embodiments, the alarm information is provided to a group of users, and the device 700 also includes: a permission viewing module, configured to determine whether at least one user has viewing permission to view the alarm information in response to receiving a viewing operation for the alarm information from at least one user in a group of users; a login page providing module, configured to provide a login page for the monitoring alarm system if at least one user has viewing permission; and an alarm page module, configured to provide an alarm page including alarm information when at least one user logs in to the monitoring alarm system via the login page.
[0065] In some embodiments, the device 700 also includes: an operation control providing module, configured to provide at least one operation control for the alarm information on the alarm page, the at least one operation control including at least one of a confirmation control, a resolution control, and an ignore control; and an operation execution module, configured to execute a target operation matching the target operation control in response to receiving a selection operation for a target operation control in at least one operation control.
[0066] The units and / or modules included in the device 700 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units and / or modules in the device 700 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0067] It should be understood that one or more steps in the above method can be performed by a suitable electronic device or a combination of electronic devices. Such an electronic device or a combination of electronic devices may include, for example, Figure 1 The monitoring and alarm system 110 in.
[0068] Figure 8 8 is a block diagram of an electronic device 800 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 8 The electronic device 800 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 8 The electronic device 800 shown can be used to implement Figure 1 Monitoring and alarm system 110, and / or, Figure 7 Device 700.
[0069] like Figure 8 As shown, the electronic device 800 is in the form of a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860. The processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of the electronic device 800.
[0070] The electronic device 800 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 can be a volatile memory (e.g., register, cache, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 830 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and / or data and can be accessed within the electronic device 800.
[0071] The electronic device 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.
[0072] The communication unit 840 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the electronic device 800 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0073] The input device 850 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 860 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 800 may also communicate with one or more external devices (not shown) through the communication unit 840 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 800, or communicate with any device that allows the electronic device 800 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0074] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0075] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0076] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0077] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0078] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0079] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for data monitoring and alarming, comprising: Receiving configurations of a plurality of monitoring alarm policies for a plurality of data sources from a user via an alarm configuration page, each monitoring alarm policy at least indicating an alarm condition for alarming a corresponding data source; In response to the configuration of the plurality of monitoring alarm strategies, obtaining data of each of the plurality of data sources using a target alarm plug-in; If the target data acquired from the target data source among the multiple data sources meets the target alarm condition indicated by the target monitoring alarm policy for the target data source, alarm information is provided based on the target monitoring alarm policy.
2. The method according to claim 1, further comprising: Presenting a policy configuration page, the policy configuration page including a plurality of editing controls for the plurality of monitoring alarm policies; as well as In response to receiving a user operation of a target editing control corresponding to the target alarm policy, the target alarm policy is edited based on the user operation.
3. The method according to claim 1, wherein the target monitoring alarm strategy includes at least one of the following: The warning mode of the warning information, The content of the warning information, a target user receiving the warning information, and / or The target time period for providing the alarm information.
4. The method according to claim 1, wherein the target data comprises at least one of the following: target incoming parameters and / or target outgoing parameters in a target request for the target data source, first operation data related to a key operation on a non-relational database, the first operation data indicating whether the key operation is successfully performed, second operation data related to a structured query statement for a relational database, the second operation data indicating whether the structured query statement is successfully executed, or Performance data associated with system performance.
5. The method according to claim 4, wherein the target alarm condition comprises a condition corresponding to an incoming parameter and an outgoing parameter, If the target data of the target data source satisfies the target alarm condition indicated by the target monitoring alarm strategy for the target data source, providing alarm information based on the target monitoring alarm strategy includes: If the target data includes the target incoming parameter and / or the target outgoing parameter, parsing the target incoming parameter and / or the target outgoing parameter to obtain a parsing result, wherein the parsing result indicates whether the target incoming parameter and / or the target outgoing parameter satisfies the target alarm condition; as well as If the parsing result indicates that the target incoming parameter and / or the target outgoing parameter meets the target alarm condition, alarm information is provided based on the target monitoring alarm strategy.
6. The method according to claim 4, wherein the target alarm condition comprises a first threshold number indicating a successfully executed operation and / or a second threshold number indicating an unsuccessfully executed operation, If the target data of the target data source meets the target alarm condition indicated by the target monitoring alarm strategy for the target data source, providing alarm information based on the target monitoring alarm strategy includes: If the target data includes the first operation data or the second operation data, determining a first number indicating successfully executed operations and / or a second number indicating unsuccessfully executed operations in the first operation data or the second operation data; as well as If the first number does not reach the first threshold number, and / or the second number reaches the second threshold number, alarm information is provided based on the target monitoring alarm strategy.
7. The method according to claim 4, wherein the target alarm condition comprises a performance alarm condition corresponding to the performance data, If the target data of the target data source satisfies the target alarm condition indicated by the target monitoring alarm strategy for the target data source, providing alarm information based on the target monitoring alarm strategy includes: If the target data includes the performance data, determining whether the performance data satisfies the performance warning condition; as well as If it is determined that the performance data meets the target alarm condition, alarm information is provided based on the target monitoring alarm strategy.
8. The method according to claim 1, wherein the warning information is provided to a group of users, the method further comprising: In response to receiving a viewing operation on the alarm information by at least one user in the group of users, determining whether the at least one user has a viewing permission to view the alarm information; If the at least one user has the viewing permission, providing a login page of the monitoring alarm system; as well as When the at least one user logs into the monitoring alarm system via the login page, an alarm page including the alarm information is provided.
9. The method according to claim 8, further comprising: Providing at least one operation control for the alarm information on the alarm page, the at least one operation control comprising at least one of a confirmation control, a solution control, and an ignore control; as well as In response to receiving a selection operation on a target operation control among the at least one operation control, a target operation matching the target operation control is executed.
10. An electronic device comprising at least one processing unit; and At least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 9.
Citation Information
Cited By
Multi-source data alarm method and device, electronic equipment and computer storage medium
CN121387693A