Business warning method, system, medium and device based on customized pain signal
By in-depth monitoring of business processes through custom pain signals and custom interfaces, and using the execution cycle for real-time early warning judgment, it solves the problem of insufficient business monitoring accuracy and timeliness in existing technologies, and achieves rapid response and business logic protection.
Patent Information
- Application Number
- CN202410675345.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-29
AI Technical Summary
The existing business monitoring system has problems such as extensive monitoring granularity, low alarm accuracy, slow response speed, low management efficiency, and cumbersome monitoring configuration. This results in insufficient accuracy and timeliness in discovering business problems, and requires secondary system development, which affects normal business operations. run.
Adopt business early warning methods and systems based on custom pain signals. Through the custom pain signal custom interface and pre-configured custom pain signal tables, we can in-depth monitor the key links of the business process and use the execution cycle of the custom signal type to obtain system business. The data can be used for real-time warning and judgment, thus avoiding secondary development of the system.
It improves the accuracy and timeliness of business problem discovery, ensures that abnormal situations are identified and trigger alarms at the first time, shortens response time, and avoids the impact of secondary development on business systems.
Smart Images

Figure CN118260171B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business warning method, system, medium and device based on custom pain signals. Background Art
[0002] In the context of digital transformation, enterprise businesses have multiple systems, and the complexity of the systems is increasing. At this time, the requirements for business stability and performance are also getting higher and higher. In order to ensure the normal operation of each system's business, it is necessary to analyze the data of each system in real time to warn of existing business problems.
[0003] In the related technologies, when the system is warned, each system needs to be redeveloped. The system secondary development cycle is long, which affects the normal operation of the business and leads to difficulties in development and maintenance. At the same time, the existing business monitoring system has problems such as coarse monitoring granularity, low alarm accuracy, slow response speed, low management efficiency and cumbersome monitoring configuration, which reduces the accuracy and timeliness of business problem discovery. Summary of the invention
[0004] The embodiments of the present application provide a method, system, medium and electronic device for business warning based on custom pain signals. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0005] In a first aspect, an embodiment of the present application provides a service warning method based on a custom pain signal, the method comprising:
[0006] Reading each signal type and the execution cycle of each signal type corresponding to each custom pain signal name from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface;
[0007] According to the execution cycle of each signal type, determine the target custom pain signal name that needs to be used for business warning at the current moment and the target signal type corresponding to the target custom pain signal name;
[0008] Obtain system service data corresponding to the target signal type;
[0009] Based on the system business data, determine whether to issue an alarm for the business to which the target custom pain signal name belongs.
[0010] Optionally, follow these steps to build a pre-configured custom pain signal table, including:
[0011] receiving a pain signal custom instruction, wherein the pain signal custom instruction carries a system service identifier;
[0012] Create and display a pain signal custom interface corresponding to the system business identifier; the pain signal custom interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component, and a subscription field management component;
[0013] receiving a custom pain signal name input into a pain signal name configuration component;
[0014] receiving a signal type selection instruction for selecting a custom pain signal name through a signal type configuration component, and determining a selected signal type based on the signal type selection instruction;
[0015] receiving and storing, by a subscription field management component, the subscription fields and data execution policies entered for the selected signal type;
[0016] Receiving, through the execution cycle configuration component, an execution cycle set for the selected signal type;
[0017] Storing the mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, the subscription field of each signal type, the data execution strategy and the execution cycle;
[0018] The mapping relationship is provided as a pre-configured custom pain signal table.
[0019] Optionally, create and display a custom interface for pain signals corresponding to the system business identifier, including:
[0020] Obtain business description information of the business to which the business identifier belongs; the business description information includes function node attribute information and a business data field set;
[0021] For the system business identifier, load and initialize the preset pain signal name configuration component, signal type configuration component, and execution cycle configuration component; the pain signal name configuration component is used to define the pain signal name, the signal type configuration component is used to define the signal type, and the signal type includes abnormal signal, normal signal, and reset signal. The execution cycle configuration component is used to define different execution cycles for different signal types;
[0022] According to the function node attribute information and the business data field set, a subscription field management component corresponding to the system business identifier is created; the subscription field management component is used to define different subscription fields and data execution strategies for different signal types;
[0023] Combine the subscription field management component corresponding to the system business identifier, the initialized pain signal name configuration component, the signal type configuration component, and the execution cycle configuration component according to a preset layout to obtain a pain signal custom interface corresponding to the system business identifier;
[0024] Displays the pain signal customization interface corresponding to the system business identifier.
[0025] Optionally, the function node attribute information includes function level nesting attributes;
[0026] According to the function node attribute information and the business data field set, create a subscription field management component corresponding to the system business identifier, including:
[0027] For the system business identifier, load and initialize the pre-established data execution strategy input box;
[0028] Based on the function level nesting attribute, the level information of each function node is obtained. The level information is used to represent the master-slave relationship between each function node.
[0029] According to the hierarchical information of each functional node, a navigation pane for visualizing each functional node is established;
[0030] Determine multiple target fields of each functional node from the business data field set;
[0031] Associating multiple target fields of each functional node with the navigation pane of each functional node to obtain a navigation pane filled with fields;
[0032] The navigation pane populated with fields is combined with the initialized data execution strategy input box according to a preset layout to obtain a subscription field management component corresponding to the system business identifier.
[0033] Optionally, the function node attribute information includes multiple first field attributes;
[0034] From the business data field set, determine multiple target fields for each functional node, including:
[0035] Get the second field attribute of each business data field in the business data field set;
[0036] Performing feature encoding on multiple first field attributes of each functional node to obtain multiple first feature vectors of each functional node;
[0037] Performing feature encoding on the second field attribute of each business data field to obtain a second feature vector of each business data field;
[0038] Calculate the correlation distance between the multiple first feature vectors of each functional node and the second feature vector of each business data field, and determine the business data field whose correlation distance is greater than a preset threshold as the target field of each functional node, to obtain multiple target fields of each functional node; wherein,
[0039] The correlation distance calculation formula is:
[0040] ;
[0041] in, is the correlation distance, is the number of functional nodes, is any first eigenvector among multiple first eigenvectors, is the second feature vector of each business data field.
[0042] Optionally, obtain system service data corresponding to the target signal type, including:
[0043] From the pre-configured custom pain signal table, obtain multiple target subscription fields and target data execution strategies corresponding to the target signal type;
[0044] Combine the target data execution strategy with multiple target subscription fields to obtain a data query script;
[0045] Execute the data query script to obtain the system business data corresponding to the target signal type.
[0046] Optionally, the target signal type is a normal signal, an abnormal signal, or a reset signal;
[0047] Based on the system business data, determine whether to issue an alarm for the business to which the target custom pain signal name belongs, including:
[0048] Use the preset Flink SQL statement to perform real-time calculations on the acquired data to determine whether the business to which the target custom pain signal name belongs meets the preset conditions of the user-defined normal signal, abnormal signal, or reset signal;
[0049] When the calculation result meets the preset conditions of a normal signal, it is determined that the status of the service to which the target custom pain signal name belongs is normal; or,
[0050] When the calculation result meets the preset conditions of the abnormal signal, it is determined that the status of the business to which the target custom pain signal name belongs is abnormal, and an early warning message is generated and sent to the client; or,
[0051] When the calculation result meets the preset condition of the reset signal, it is determined that the abnormal state of the business to which the target custom pain signal name belongs has been processed.
[0052] In a second aspect, an embodiment of the present application provides a service warning system based on a custom pain signal, the system comprising:
[0053] A parameter reading module, used to read each signal type and the execution cycle of each signal type corresponding to each custom pain signal name from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface;
[0054] An early warning determination module is used to determine the target custom pain signal name that needs to be issued a business early warning at the current moment and the target signal type corresponding to the target custom pain signal name according to the execution cycle of each signal type;
[0055] A data acquisition module, used to acquire system service data corresponding to the target signal type;
[0056] The alarm determination module is used to determine whether to issue an alarm for the business to which the target custom pain signal name belongs based on system business data.
[0057] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0058] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0059] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0060] In the embodiments of the present application, on the one hand, the business early warning method based on the custom pain signal relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, and can obtain system business data in time for early warning judgment, which can ensure that abnormal situations can be identified and trigger alarms in the first time, shorten the response time, and thus improve the timeliness of business problem discovery.
[0061] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0063] Figure 1 It is a flowchart of a service warning method based on a custom pain signal provided in an embodiment of the present application;
[0064] Figure 2 It is a schematic diagram of an interface of a library table operation interface for storing a pre-configured custom pain signal table provided by the present application;
[0065] Figure 3 This is a schematic diagram of a pain signal custom interface provided by the present application;
[0066] Figure 4 It is a flowchart of a method for constructing a pre-configured custom pain signal table provided in the present application;
[0067] Figure 5 This is a schematic diagram of the interface of a subscription field management component provided by this application;
[0068] Figure 6 This is a schematic diagram of an interface for selecting and inputting a subscription field provided by the present application;
[0069] Figure 7 It is a structural diagram of a business warning system based on a custom pain signal provided in an embodiment of the present application;
[0070] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following description and the accompanying drawings sufficiently illustrate specific embodiments of the present application to enable those skilled in the art to practice them.
[0072] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0073] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of systems and methods consistent with some aspects of the present application as detailed in the attached claims.
[0074] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0075] The present application provides a business warning method, system, medium and electronic device based on custom pain signals to solve the problems existing in the above-mentioned related technical problems. In the embodiment of the present application, on the one hand, the business warning method based on custom pain signals relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, which can obtain system business data in time for early warning judgment, and can ensure that abnormal situations can be identified and triggered in the first time. Alarms, shorten the response time, thereby improving the timeliness of business problem discovery, are described in detail below using an exemplary embodiment.
[0076] The following will be combined with the attached Figure 1 -Attached Figure 6 , a business warning method based on a custom pain signal provided in an embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a business warning system based on a custom pain signal based on a von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0077] See also Figure 1 , which is a flow chart of a service warning method based on a custom pain signal according to an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:
[0078] S101, reading each signal type and the execution cycle of each signal type corresponding to each custom pain signal name from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on a displayed pain signal custom interface;
[0079] Among them, pain is the perception of business risks. Pain signals are used to provide enterprises with accurate, real-time, and intelligent business risk perception and management capabilities. The pre-configured custom pain signal table is used to store information related to custom pain signals configured by the administrator, such as Figure 2 As shown, there are multiple pre-configured custom pain signal tables in the library table, and any pre-configured custom pain signal table can be searched by keywords.
[0080] Among them, the custom pain signal name is set by the administrator through the displayed pain signal custom interface, and the name can be set by yourself in combination with specific business scenarios; the signal type includes abnormal signal, normal signal and reset signal; the execution cycle is a set period of time, which can be set by the administrator through the displayed pain signal custom interface, and the time period can be set by yourself in combination with specific business scenarios. The pain signal custom interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component and a subscription field management component.
[0081] For example Figure 3 As shown, the pain signal name configuration component has functions such as the file naming part and the abnormal signal description part, the signal type configuration component has functions such as the abnormal signal, normal signal and reset signal, the execution cycle configuration component has functions such as the detection cycle and the addition of the detection cycle, and the subscription field management component has functions such as the subscription field management and the subscription field example data related functions.
[0082] In an embodiment of the present application, a pre-configured custom pain signal table can be generated according to the following process, including: receiving a custom pain signal instruction, the custom pain signal instruction carries a system business identifier; creating and displaying a custom pain signal interface corresponding to the system business identifier; the custom pain signal interface includes a pain signal definition module, the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component and a subscription field management component; receiving a custom pain signal name input for the pain signal name configuration component; receiving a signal type selection instruction selected for the custom pain signal name through the signal type configuration component, and determining the selected signal type based on the signal type selection instruction; receiving and storing the subscription fields and data execution policies input for the selected signal type through the subscription field management component; receiving the execution cycle set for the selected signal type through the execution cycle configuration component; storing the mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, the subscription field of each signal type, the data execution strategy and the execution cycle; and using the mapping relationship as a pre-configured custom pain signal table.
[0083] In a possible implementation, first, based on different business keywords in different business systems, a pre-configured custom pain signal table is searched from a library table stored on the server side to obtain a mapping relationship between custom pain signal names, signal types corresponding to custom pain signal names, subscription fields of each signal type, data execution strategies, and execution cycles. Then, from the mapping relationship, each custom pain signal name is read, and then from the mapping relationship, each signal type corresponding to each custom pain signal name is obtained. Finally, from the mapping relationship, the execution cycle of each signal type is obtained, and then each signal type corresponding to each custom pain signal name and the execution cycle of each signal type can be obtained.
[0084] S102, determining, according to the execution cycle of each signal type, a target custom pain signal name that requires a service warning at the current moment and a target signal type corresponding to the target custom pain signal name;
[0085] In an embodiment of the present application, after obtaining the execution cycle of each signal type, the historical moment of the previous business warning of each signal type can be obtained, and then it is calculated whether the interval duration between the current moment and the historical moment of the previous business warning of each signal type is equal to the execution cycle of each signal type, and the target custom pain signal name corresponding to the signal type equal to the execution cycle of each signal type is used as the target custom pain signal name that needs to be used for business warning at the current moment, and finally, based on the mapping relationship, the target signal type corresponding to the target custom pain signal name can be obtained.
[0086] S103, obtaining system service data corresponding to the target signal type;
[0087] Among them, system business data refers to the data generated during the operation of the business system, such as order data generated by the sales system and punch-in data generated by the punch-in system.
[0088] In an embodiment of the present application, when obtaining system business data corresponding to the target signal type, first, multiple target subscription fields and target data execution strategies corresponding to the target signal type are obtained from a pre-configured custom pain signal table; then, the target data execution strategy is combined with the multiple target subscription fields to obtain a data query script; finally, the data query script is executed to obtain the system business data corresponding to the target signal type.
[0089] Specifically, after obtaining the target signal type, multiple target subscription fields and target data execution strategies corresponding to the target signal type can be obtained based on the mapping relationship. For example, multiple target subscription fields Figure 3 In the Visual Subscription Fields section, the target data execution strategy is as follows Figure 3 The code logic content in .
[0090] S104: Determine whether to issue an alarm for the service to which the target custom pain signal name belongs based on the system service data.
[0091] In one possible implementation, when determining whether to issue an alarm for the business to which the target custom pain signal name belongs based on system business data, firstly, a preset Flink SQL statement is used to perform real-time calculations on the acquired data to determine whether the business to which the target custom pain signal name belongs meets the preset conditions of the normal signal, abnormal signal or reset signal defined by the user; then, when the calculation result meets the preset conditions of the normal signal, it is determined that the status of the business to which the target custom pain signal name belongs is normal; or, when the calculation result meets the preset conditions of the abnormal signal, it is determined that the status of the business to which the target custom pain signal name belongs is abnormal, and an early warning message is generated and sent to the client; or, when the calculation result meets the preset conditions of the reset signal, it is determined that the abnormal status of the business to which the target custom pain signal name belongs has been processed.
[0092] In the embodiments of the present application, on the one hand, the business early warning method based on the custom pain signal relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, and can obtain system business data in time for early warning judgment, which can ensure that abnormal situations can be identified and trigger alarms in the first time, shorten the response time, and thus improve the timeliness of business problem discovery.
[0093] See also Figure 4 , which is a flow chart of a method for constructing a pre-configured custom pain signal table according to an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps:
[0094] S201, receiving a pain signal custom instruction, where the pain signal custom instruction carries a system service identifier;
[0095] Among them, the pain signal custom instruction is triggered by the administrator for specific system business entry and exit.
[0096] In some embodiments, the administrator selects a business system through the display interface of the system terminal, selects the business that needs to be configured for the visual business framework of the business system, and after receiving the configuration instruction triggered by the administrator, generates a custom pain signal instruction carrying the system business identifier by encapsulating the system business identifier of the selected business, and finally sends the custom pain signal instruction carrying the system business identifier to the core processor of the system terminal.
[0097] S202, creating and displaying a pain signal customization interface corresponding to the system business identifier; the pain signal customization interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component, and a subscription field management component;
[0098] In an embodiment of the present application, the process of creating and displaying a custom pain signal interface corresponding to a system business identifier includes the following steps: obtaining business description information of the business to which the business identifier belongs; the business description information includes function node attribute information and a business data field set; for the system business identifier, loading and initializing a preset pain signal name configuration component, a signal type configuration component, and an execution cycle configuration component; the pain signal name configuration component is used to define the pain signal name, the signal type configuration component is used to define the signal type, and the signal type includes an abnormal signal, a normal signal, and a reset signal, and the execution cycle configuration component is used to define different execution cycles for different signal types; based on the function node attribute information and the business data field set, creating a subscription field management component corresponding to the system business identifier; the subscription field management component is used to define different subscription fields and data execution strategies for different signal types; combining the subscription field management component corresponding to the system business identifier, the initialized pain signal name configuration component, the signal type configuration component, and the execution cycle configuration component according to a preset layout method to obtain a custom pain signal interface corresponding to the system business identifier; and displaying the custom pain signal interface corresponding to the system business identifier.
[0099] Specifically, the function node attribute information includes function level nesting attributes.
[0100] Specifically, the process of creating a subscription field management component corresponding to a system business identifier based on function node attribute information and a business data field set includes the following steps: for the system business identifier, load and initialize a pre-established data execution policy input box; based on the function hierarchy nested attribute, obtain the hierarchy information of each function node, the hierarchy information is used to characterize the master-slave relationship between each function node; according to the hierarchy information of each function node, establish a navigation pane for visualizing each function node; from the business data field set, determine multiple target fields of each function node; associate the multiple target fields of each function node to the navigation pane of each function node to obtain a navigation pane with filled fields; combine the navigation pane with filled fields with the initialized data execution policy input box according to a preset layout to obtain a subscription field management component corresponding to the system business identifier. Subscription field management components, for example Figure 5 shown.
[0101] Specifically, the function node attribute information includes a plurality of first field attributes.
[0102] In an embodiment of the present application, the specific process of determining multiple target fields of each functional node from a business data field set includes the following steps: obtaining the second field attribute of each business data field in the business data field set; feature encoding the multiple first field attributes of each functional node to obtain multiple first feature vectors of each functional node; feature encoding the second field attribute of each business data field to obtain the second feature vector of each business data field; calculating the correlation distance between the multiple first feature vectors of each functional node and the second feature vector of each business data field, and determining the business data field whose correlation distance is greater than a preset threshold as the target field of each functional node, to obtain multiple target fields of each functional node.
[0103] The correlation distance calculation formula is:
[0104] ;
[0105] in, is the correlation distance, is the number of functional nodes, is any first eigenvector among multiple first eigenvectors, is the second feature vector of each business data field.
[0106] S203, receiving a custom pain signal name input into a pain signal name configuration component;
[0107] S204, receiving a signal type selection instruction for selecting a custom pain signal name through a signal type configuration component, and determining a selected signal type based on the signal type selection instruction;
[0108] S205, receiving and storing the subscription field and data execution strategy input for the selected signal type through the subscription field management component;
[0109] Among them, the selection input interface of the subscription field is as follows Figure 6 shown.
[0110] S206, receiving an execution cycle set for the selected signal type through an execution cycle configuration component;
[0111] S207, storing a mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, a subscription field of each signal type, a data execution strategy, and an execution cycle;
[0112] S208, using the mapping relationship as a pre-configured custom pain signal table.
[0113] In the embodiments of the present application, on the one hand, the business early warning method based on the custom pain signal relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, and can obtain system business data in time for early warning judgment, which can ensure that abnormal situations can be identified and trigger alarms in the first time, shorten the response time, and thus improve the timeliness of business problem discovery.
[0114] The following is a system embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the system embodiment of the present application, please refer to the method embodiment of the present application.
[0115] See also Figure 7 , which shows a schematic diagram of the structure of a business warning system based on a custom pain signal provided by an exemplary embodiment of the present application. The business warning system based on a custom pain signal can be implemented as all or part of an electronic device through software, hardware, or a combination of both. The system 1 includes a parameter reading module 10, a warning determination module 20, a data acquisition module 30, and an alarm determination module 40.
[0116] The parameter reading module 10 is used to read each signal type and the execution cycle of each signal type corresponding to each custom pain signal name from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface;
[0117] An early warning determination module 20 is used to determine the target custom pain signal name that needs to be issued a business early warning at the current moment and the target signal type corresponding to the target custom pain signal name according to the execution cycle of each signal type;
[0118] A data acquisition module 30, used to acquire system service data corresponding to the target signal type;
[0119] The alarm determination module 40 is used to determine whether to issue an alarm for the business to which the target custom pain signal name belongs based on system business data.
[0120] It should be noted that the business warning system based on custom pain signals provided in the above embodiment only uses the division of the above functional modules as an example when executing the business warning method based on custom pain signals. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the business warning system based on custom pain signals provided in the above embodiment and the business warning method based on custom pain signals belong to the same concept. The implementation process is detailed in the method embodiment, which will not be repeated here.
[0121] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0122] In the embodiments of the present application, on the one hand, the business early warning method based on the custom pain signal relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, and can obtain system business data in time for early warning judgment, which can ensure that abnormal situations can be identified and trigger alarms in the first time, shorten the response time, and thus improve the timeliness of business problem discovery.
[0123] The present application also provides a computer-readable medium having program instructions stored thereon, which, when executed by a processor, implement the business warning method based on customized pain signals provided by the above-mentioned various method embodiments.
[0124] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the business warning method based on the customized pain signal of each of the above method embodiments.
[0125] See also Figure 8 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0126] The communication bus 1002 is used to realize the connection and communication between these components.
[0127] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0128] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0129] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0130] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may also be optionally at least one storage system located away from the aforementioned processor 1001. As Figure 8 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a business warning application based on a custom pain signal.
[0131] exist Figure 8 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the business warning application based on the custom pain signal stored in the memory 1005, and specifically perform the following operations:
[0132] Reading each signal type and the execution cycle of each signal type corresponding to each custom pain signal name from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface;
[0133] According to the execution cycle of each signal type, determine the target custom pain signal name that needs to be used for business warning at the current moment and the target signal type corresponding to the target custom pain signal name;
[0134] Obtain system service data corresponding to the target signal type;
[0135] Based on the system business data, determine whether to issue an alarm for the business to which the target custom pain signal name belongs.
[0136] In one embodiment, when constructing a pre-configured custom pain signal table, the processor 1001 specifically performs the following operations:
[0137] receiving a pain signal custom instruction, wherein the pain signal custom instruction carries a system service identifier;
[0138] Create and display a pain signal custom interface corresponding to the system business identifier; the pain signal custom interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component, and a subscription field management component;
[0139] receiving a custom pain signal name input into a pain signal name configuration component;
[0140] receiving a signal type selection instruction for selecting a custom pain signal name through a signal type configuration component, and determining a selected signal type based on the signal type selection instruction;
[0141] receiving and storing, by a subscription field management component, the subscription fields and data execution policies entered for the selected signal type;
[0142] Receiving, through the execution cycle configuration component, an execution cycle set for the selected signal type;
[0143] Storing the mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, the subscription field of each signal type, the data execution strategy and the execution cycle;
[0144] The mapping relationship is provided as a pre-configured custom pain signal table.
[0145] In one embodiment, when the processor 1001 creates and displays the pain signal custom interface corresponding to the system service identifier, the processor 1001 specifically performs the following operations:
[0146] Obtain business description information of the business to which the business identifier belongs; the business description information includes function node attribute information and a business data field set;
[0147] For the system business identifier, load and initialize the preset pain signal name configuration component, signal type configuration component, and execution cycle configuration component; the pain signal name configuration component is used to define the pain signal name, the signal type configuration component is used to define the signal type, and the signal type includes abnormal signal, normal signal, and reset signal. The execution cycle configuration component is used to define different execution cycles for different signal types;
[0148] According to the function node attribute information and the business data field set, a subscription field management component corresponding to the system business identifier is created; the subscription field management component is used to define different subscription fields and data execution strategies for different signal types;
[0149] Combine the subscription field management component corresponding to the system business identifier, the initialized pain signal name configuration component, the signal type configuration component, and the execution cycle configuration component according to a preset layout to obtain a pain signal custom interface corresponding to the system business identifier;
[0150] Displays the pain signal customization interface corresponding to the system business identifier.
[0151] In one embodiment, when the processor 1001 creates a subscription field management component corresponding to the system service identifier according to the function node attribute information and the service data field set, the processor 1001 specifically performs the following operations:
[0152] For the system business identifier, load and initialize the pre-established data execution strategy input box;
[0153] Based on the function level nesting attribute, the level information of each function node is obtained. The level information is used to represent the master-slave relationship between each function node.
[0154] According to the hierarchical information of each functional node, a navigation pane for visualizing each functional node is established;
[0155] Determine multiple target fields of each functional node from the business data field set;
[0156] Associating multiple target fields of each functional node with the navigation pane of each functional node to obtain a navigation pane filled with fields;
[0157] The navigation pane populated with fields is combined with the initialized data execution strategy input box according to a preset layout to obtain a subscription field management component corresponding to the system business identifier.
[0158] In one embodiment, when the processor 1001 determines multiple target fields of each functional node from the business data field set, the processor 1001 specifically performs the following operations:
[0159] Get the second field attribute of each business data field in the business data field set;
[0160] Performing feature encoding on multiple first field attributes of each functional node to obtain multiple first feature vectors of each functional node;
[0161] Performing feature encoding on the second field attribute of each business data field to obtain a second feature vector of each business data field;
[0162] Calculate the correlation distance between the multiple first feature vectors of each functional node and the second feature vector of each business data field, and determine the business data field whose correlation distance is greater than a preset threshold as the target field of each functional node, to obtain multiple target fields of each functional node; wherein,
[0163] The correlation distance calculation formula is:
[0164] ;
[0165] in, is the correlation distance, is the number of functional nodes, is any first eigenvector among multiple first eigenvectors, is the second feature vector of each business data field.
[0166] In one embodiment, when the processor 1001 executes the acquisition of system service data corresponding to the target signal type, the processor 1001 specifically performs the following operations:
[0167] From the pre-configured custom pain signal table, obtain multiple target subscription fields and target data execution strategies corresponding to the target signal type;
[0168] Combine the target data execution strategy with multiple target subscription fields to obtain a data query script;
[0169] Execute the data query script to obtain the system business data corresponding to the target signal type.
[0170] In one embodiment, when the processor 1001 determines whether to issue an alarm for the service to which the target custom pain signal name belongs according to the system service data, the processor 1001 specifically performs the following operations:
[0171] Use the preset Flink SQL statement to perform real-time calculations on the acquired data to determine whether the business to which the target custom pain signal name belongs meets the preset conditions of the user-defined normal signal, abnormal signal, or reset signal;
[0172] When the calculation result meets the preset conditions of a normal signal, it is determined that the status of the service to which the target custom pain signal name belongs is normal; or,
[0173] When the calculation result meets the preset conditions of the abnormal signal, it is determined that the status of the business to which the target custom pain signal name belongs is abnormal, and an early warning message is generated and sent to the client; or,
[0174] When the calculation result meets the preset condition of the reset signal, it is determined that the abnormal state of the business to which the target custom pain signal name belongs has been processed.
[0175] In the embodiments of the present application, on the one hand, the business early warning method based on the custom pain signal relies on a separately developed custom pain signal interface and a pre-configured custom pain signal table, which does not affect the business logic in the enterprise system and avoids secondary development of the business system; on the other hand, the pre-configured custom pain signal table is configured based on the displayed custom pain signal interface. The pain signal can be customized through the displayed custom pain signal interface, which can deeply monitor the key links of the business process and improve the accuracy of business problem discovery. At the same time, the customized signal type has an execution cycle, and can obtain system business data in time for early warning judgment, which can ensure that abnormal situations can be identified and trigger alarms in the first time, shorten the response time, and thus improve the timeliness of business problem discovery.
[0176] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program for service warning based on the customized pain signal can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program for service warning based on the customized pain signal can be a disk, an optical disk, a read-only storage memory, or a random access storage memory, etc.
[0177] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A business warning method based on a custom pain signal, characterized in that: The method comprises: From a pre-configured custom pain signal table, read each signal type corresponding to each custom pain signal name and the execution cycle of each signal type; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface; wherein the pre-configured custom pain signal table is constructed according to the following steps, including: receiving a pain signal custom instruction, wherein the pain signal custom instruction carries a system service identifier; Creating and displaying a pain signal customization interface corresponding to the system service identifier; the pain signal customization interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component, and a subscription field management component; receiving a custom pain signal name input into the pain signal name configuration component; receiving, through the signal type configuration component, a signal type selection instruction for selecting the user-defined pain signal name, and determining a selected signal type based on the signal type selection instruction; Receiving and storing, by the subscription field management component, the subscription fields and data execution policies entered for the selected signal type; Receiving, through the execution cycle configuration component, an execution cycle set for a selected signal type; storing a mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, a subscription field of each signal type, a data execution strategy, and an execution cycle; The mapping relationship is used as a pre-configured custom pain signal table; wherein, The step of creating and displaying a pain signal custom interface corresponding to the system service identifier includes: Acquire business description information of the business to which the business identifier belongs; the business description information includes function node attribute information and a business data field set; For the system service identifier, load and initialize the preset pain signal name configuration component, signal type configuration component, and execution cycle configuration component; the pain signal name configuration component is used to define the pain signal name, the signal type configuration component is used to define the signal type, the signal type includes abnormal signal, normal signal and reset signal, and the execution cycle configuration component is used to define different execution cycles for different signal types; Creating a subscription field management component corresponding to the system service identifier according to the function node attribute information and the service data field set; the subscription field management component is used to define different subscription fields and data execution strategies for different signal types; Combine the subscription field management component corresponding to the system service identifier, the initialized pain signal name configuration component, the signal type configuration component, and the execution cycle configuration component according to a preset layout to obtain a pain signal customization interface corresponding to the system service identifier; Display the pain signal customization interface corresponding to the system business identifier; wherein, The function node attribute information includes function level nesting attributes; The step of creating a subscription field management component corresponding to the system service identifier according to the function node attribute information and the service data field set includes: For the system service identifier, load and initialize a pre-established data execution strategy input box; Based on the function level nesting attribute, obtaining level information of each function node, wherein the level information is used to characterize the master-slave relationship between each function node; Establishing a navigation pane for visualizing each functional node according to the hierarchical information of each functional node; Determining multiple target fields of each functional node from the business data field set; Associating the multiple target fields of each functional node with the navigation pane of each functional node to obtain a navigation pane filled with fields; Combining the navigation pane filled with fields with the initialized data execution strategy input box according to a preset layout to obtain a subscription field management component corresponding to the system business identifier; Determine, according to the execution cycle of each signal type, a target custom pain signal name that requires a service warning at the current moment and a target signal type corresponding to the target custom pain signal name; Acquire system service data corresponding to the target signal type; According to the system business data, determine whether to issue an alarm for the business to which the target custom pain signal name belongs.
2. The method according to claim 1, characterized in that The function node attribute information includes a plurality of first field attributes; From the business data field set, multiple target fields of each functional node are determined, including: Obtaining a second field attribute of each business data field in the business data field set; Performing feature encoding on the multiple first field attributes of each functional node to obtain multiple first feature vectors of each functional node; Performing feature encoding on the second field attribute of each business data field to obtain a second feature vector of each business data field; Calculate the correlation distance between the multiple first feature vectors of each functional node and the second feature vector of each business data field, and determine the business data field whose correlation distance is greater than a preset threshold as the target field of each functional node, to obtain multiple target fields of each functional node; wherein, The correlation distance calculation formula is: ; in, is the correlation distance, is the number of functional nodes, is any first eigenvector among the plurality of first eigenvectors, is the second feature vector of each business data field.
3. The method according to claim 1, characterized in that: The acquiring system service data corresponding to the target signal type includes: Obtaining, from the pre-configured custom pain signal table, a plurality of target subscription fields and a target data execution strategy corresponding to the target signal type; Combining the target data execution strategy with the multiple target subscription fields to obtain a data query script; Execute the data query script to obtain system service data corresponding to the target signal type.
4. The method according to claim 1, characterized in that: The target signal type is a normal signal, an abnormal signal or a reset signal; The determining, based on the system service data, whether to issue an alarm for the service to which the target custom pain signal name belongs includes: The acquired data is calculated in real time using a preset Flink SQL statement to determine whether the business to which the target custom pain signal name belongs meets the preset conditions of the normal signal, abnormal signal or reset signal defined by the user; When the calculation result meets the preset condition of the normal signal, it is determined that the status of the service to which the target custom pain signal name belongs is normal; or, When the calculation result meets the preset condition of the abnormal signal, it is determined that the status of the service to which the target custom pain signal name belongs is abnormal, and a warning message is generated and sent to the client; or, When the calculation result meets the preset condition of the reset signal, it is determined that the abnormal state of the business to which the target custom pain signal name belongs has been processed.
5. A business warning system based on custom pain signals, characterized in that: The system comprises: A parameter reading module is used to read each signal type corresponding to each custom pain signal name and the execution cycle of each signal type from a pre-configured custom pain signal table; wherein the pre-configured custom pain signal table is configured based on the displayed pain signal custom interface; wherein the pre-configured custom pain signal table is constructed according to the following steps, including: receiving a pain signal custom instruction, wherein the pain signal custom instruction carries a system service identifier; Creating and displaying a pain signal customization interface corresponding to the system service identifier; the pain signal customization interface includes a pain signal definition module, and the pain signal definition module includes a pain signal name configuration component, a signal type configuration component, an execution cycle configuration component, and a subscription field management component; receiving a custom pain signal name input into the pain signal name configuration component; receiving, through the signal type configuration component, a signal type selection instruction for selecting the user-defined pain signal name, and determining a selected signal type based on the signal type selection instruction; Receiving and storing, by the subscription field management component, the subscription fields and data execution policies entered for the selected signal type; Receiving, through the execution cycle configuration component, an execution cycle set for a selected signal type; storing a mapping relationship between the custom pain signal name, each signal type corresponding to the custom pain signal name, a subscription field of each signal type, a data execution strategy, and an execution cycle; The mapping relationship is used as a pre-configured custom pain signal table; wherein, The step of creating and displaying a pain signal custom interface corresponding to the system service identifier includes: Acquire business description information of the business to which the business identifier belongs; the business description information includes function node attribute information and a business data field set; For the system service identifier, load and initialize the preset pain signal name configuration component, signal type configuration component, and execution cycle configuration component; the pain signal name configuration component is used to define the pain signal name, the signal type configuration component is used to define the signal type, the signal type includes abnormal signal, normal signal and reset signal, and the execution cycle configuration component is used to define different execution cycles for different signal types; Creating a subscription field management component corresponding to the system service identifier according to the function node attribute information and the service data field set; the subscription field management component is used to define different subscription fields and data execution strategies for different signal types; Combine the subscription field management component corresponding to the system service identifier, the initialized pain signal name configuration component, the signal type configuration component, and the execution cycle configuration component according to a preset layout to obtain a pain signal customization interface corresponding to the system service identifier; Display the pain signal customization interface corresponding to the system business identifier; wherein, The function node attribute information includes function level nesting attributes; The step of creating a subscription field management component corresponding to the system service identifier according to the function node attribute information and the service data field set includes: For the system service identifier, load and initialize a pre-established data execution strategy input box; Based on the function level nesting attribute, obtaining level information of each function node, wherein the level information is used to characterize the master-slave relationship between each function node; Establishing a navigation pane for visualizing each functional node according to the hierarchical information of each functional node; Determining multiple target fields of each functional node from the business data field set; Associating the multiple target fields of each functional node with the navigation pane of each functional node to obtain a navigation pane filled with fields; Combining the navigation pane filled with fields with the initialized data execution strategy input box according to a preset layout to obtain a subscription field management component corresponding to the system business identifier; An early warning determination module, used to determine the target custom pain signal name that needs to be issued a business early warning at the current moment and the target signal type corresponding to the target custom pain signal name according to the execution cycle of each signal type; A data acquisition module, used to acquire system service data corresponding to the target signal type; The alarm determination module is used to determine whether to issue an alarm for the business to which the target custom pain signal name belongs based on the system business data.
6. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 4.
7. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 4.
