Monitoring method, device, electronic device and computer readable storage medium
By acquiring and analyzing the operation information of multiple target businesses, it automatically determines faults and sends solutions, which solves the problem of low manual troubleshooting efficiency in the existing technology and improves the efficiency of fault handling.
Patent Information
- Application Number
- CN201910880713.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-09-18
AI Technical Summary
Existing business monitoring methods rely on manual troubleshooting of faulty services, resulting in low processing efficiency.
By obtaining the operation information of multiple target services, it can automatically determine the faulty service, determine the fault information and solutions, and send the fault information and solutions to the maintenance terminal.
It improves the efficiency of fault business processing, reduces manual intervention, and improves the automation level of fault processing.
Smart Images

Figure CN110704225B
Abstract
Description
Technical Field
[0001] The present application relates to the field of software monitoring technology, and in particular to a monitoring method, device, electronic device and computer-readable storage medium. Background Art
[0002] At present, the process of business monitoring is as follows: when a faulty business is found among multiple businesses, multiple businesses are manually checked in turn to find the faulty business; the contact information of the maintenance personnel corresponding to the faulty business is manually found; and the corresponding maintenance personnel are notified to repair the faulty business according to the contact information of the maintenance personnel. This method results in low efficiency in handling faulty businesses. Summary of the invention
[0003] Embodiments of the present application provide a monitoring method, device, electronic device, and computer-readable storage medium for improving the processing efficiency of faulty services.
[0004] In a first aspect, an embodiment of the present application provides a monitoring method, the method comprising:
[0005] Acquire N target business operation information of N target businesses, where the N target business operation information corresponds one-to-one to the N target businesses, and N is an integer greater than 1;
[0006] Determining whether there is a faulty service among the N target services according to the N target service operation information;
[0007] If there is a first faulty service among the N target services, determining target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service;
[0008] The target fault information and the target solution information are sent to a maintenance terminal corresponding to the first fault service.
[0009] In a second aspect, an embodiment of the present application provides a monitoring device, the device comprising:
[0010] A first acquisition unit, configured to acquire N target business operation information of N target businesses, wherein the N target business operation information corresponds one-to-one to the N target businesses, and N is an integer greater than 1;
[0011] A judging unit, configured to judge whether there is a faulty service among the N target services according to the N target service operation information;
[0012] a determining unit, configured to determine, if a first faulty service exists among the N target services, target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service;
[0013] A sending unit is used to send the target fault information and the target solution information to a maintenance terminal corresponding to the first fault service.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing some or all of the steps in the method described in the first aspect of the embodiment of the present application.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. The computer program is executed by a processor to implement some or all of the steps described in the method described in the first aspect of the embodiment of the present application.
[0016] It can be seen that compared to manually checking multiple services in sequence to find the faulty service, and notifying the corresponding maintenance personnel to repair the faulty service according to the contact information of the maintenance personnel corresponding to the faulty service, in the embodiment of the present application, the electronic device determines that there is a first faulty service among the N target services based on the N target service operation information of the N target services, determines the target fault information and target solution information corresponding to the first faulty service based on the first target service operation information corresponding to the first faulty service, and sends the target fault information and target solution information to the maintenance terminal corresponding to the first faulty service, which helps to improve the processing efficiency of the faulty service.
[0017] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0019] Figure 1 It is a structural diagram of a monitoring system provided in an embodiment of the present application;
[0020] Figure 2A It is a flowchart of a monitoring method provided in an embodiment of the present application;
[0021] Figure 2B is a schematic diagram of a fault service table provided in an embodiment of the present application;
[0022] Figure 3 It is a flowchart of another monitoring method provided in an embodiment of the present application;
[0023] Figure 4 It is a block diagram of the functional units of a monitoring device provided in an embodiment of the present application;
[0024] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0025] Specific implementation method
[0026] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0027] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc.
[0030] The following is a detailed description of the embodiments of the present application.
[0031] See also Figure 1 , Figure 1is a schematic diagram of the structure of a monitoring system provided in an embodiment of the present application, the monitoring system includes a processor, wherein:
[0032] A processor, used to obtain N target business operation information of N target businesses, where the N target business operation information corresponds to the N target businesses one by one, and N is an integer greater than 1;
[0033] The processor is further used to determine whether there is a faulty service among the N target services according to the N target service operation information;
[0034] The processor is further configured to determine target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service if there is a first faulty service among the N target services;
[0035] The processor is further configured to send target fault information and target solution information to a maintenance terminal corresponding to the first fault service.
[0036] See also Figure 2A , Figure 2A 201 is a flow chart of a monitoring method provided in an embodiment of the present application. The monitoring method includes steps 201-204, which are as follows:
[0037] 201: The electronic device obtains N target service operation information of N target services, where the N target service operation information corresponds one-to-one to the N target services, and N is an integer greater than 1.
[0038] Among them, business refers to the main job of an individual or an organization in the industry.
[0039] The business operation information includes the business name and business operation parameters.
[0040] In a possible example, the electronic device obtains N target service operation information of N target services, including:
[0041] The electronic device determines N target system interfaces of N target services according to the mapping relationship between the services and the system interfaces, wherein the N target system interfaces correspond one to one to the N target services;
[0042] The electronic device sends N business operation information acquisition requests to the N target system interfaces in series, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond to the N target system interfaces one by one;
[0043] The electronic device serially receives the N target business operation information sent by the N target system interfaces in response to the N business operation information acquisition requests.
[0044] The mapping relationship between services and system interfaces is shown in Table 1 below:
[0045] business System Interface Business 1 System interface 1 Business 2 System Interface 2 Business 3 System interface 3 ...... ......
[0046] In a possible example, the electronic device obtains N target service operation information of N target services, including:
[0047] The electronic device determines N target system interfaces of N target services according to the mapping relationship between the services and the system interfaces, and the N target system interfaces correspond to the N target services one by one;
[0048] The electronic device sends N business operation information acquisition requests to N target system interfaces in parallel, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond to the N target system interfaces one by one;
[0049] The electronic device receives in parallel N target service operation information sent by N target system interfaces in response to N service operation information acquisition requests.
[0050] 202: The electronic device determines whether there is a faulty service among the N target services according to the N target service operation information.
[0051] In a possible example, the electronic device determines whether there is a faulty service among the N target services according to the N target service operation information, including:
[0052] The electronic device performs a faulty service judgment operation on the i-th target service according to the i-th target service operation information, and obtains an i-th faulty service judgment result corresponding to the i-th target service, wherein the i-th target service operation information is any one of the N target service operation information;
[0053] After obtaining the i-th faulty service judgment result, the electronic device performs a faulty service judgment operation on the (i+1)-th target service according to the (i+1)-th target service operation information, and obtains the (i+1)-th faulty service judgment result corresponding to the (i+1)-th target service;
[0054] Until i=N, the electronic device stops executing the faulty service judgment operation and obtains the Nth faulty service judgment result corresponding to the Nth target service, where i is an initial value of 1 and an increasing integer with an interval of 1.
[0055] In a possible example, the electronic device performs a faulty service judgment operation on the i-th target service according to the i-th target service operation information, and obtains an i-th faulty service judgment result corresponding to the i-th target service, including:
[0056] The electronic device parses the i-th target service operation information to obtain the i-th service name and the i-th service operation parameter corresponding to the i-th target service operation information;
[0057] The electronic device determines the normal range of the i-th service operation parameter corresponding to the i-th service name according to the mapping relationship between the service name and the normal range of the service operation parameter;
[0058] The electronic device determines whether the i-th service operation parameter is within the i-th service operation parameter normal range;
[0059] If the i-th service operation parameter is within the i-th service operation parameter normal range, the electronic device determines that the i-th fault service judgment result corresponding to the i-th target service is a non-fault service;
[0060] If the i-th service operation parameter is not within the normal range of the i-th service operation parameter, the electronic device determines that the i-th fault service judgment result corresponding to the i-th target service is a fault service.
[0061] The mapping relationship between the service name and the normal range of service operation parameters is shown in Table 2 below:
[0062] Business Name Normal range of business operation parameters Business Name 1 Business operation parameters normal range 1 Business Name 2 Business operation parameters normal range 2 Business Name 3 Business operation parameters normal range 3 ...... ......
[0063] In a possible example, the electronic device determines whether there is a faulty service among the N target services according to the N target service operation information, including:
[0064] The electronic device performs faulty service judgment operations on N services in parallel according to the N target service operation information, and obtains N faulty service judgment results of the N services, and the N faulty service judgment results correspond to the N services one by one.
[0065] 203: If there is a first faulty service among the N target services, the electronic device determines target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service.
[0066] In a possible example, the electronic device determines target fault information and target resolution information corresponding to the first fault service according to first target service operation information corresponding to the first fault service, including:
[0067] The electronic device parses the first target service operation information corresponding to the first fault service to obtain the first service name and the first service operation parameter corresponding to the first target service operation information; the electronic device determines the target fault information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the fault information; the electronic device determines the target solution information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the solution information;
[0068] Alternatively, the electronic device parses the first target business operation information corresponding to the first fault business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; the electronic device determines the target solution information corresponding to the first business name and the first business operation parameter based on the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information; the electronic device determines the target fault information corresponding to the first business name and the first business operation parameter based on the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information.
[0069] The mapping relationship between the service name, service operation parameter abnormal range and fault information is shown in Table 3 below:
[0070] Table 3
[0071]
[0072] The mapping relationship between the service name, service operation parameter abnormal range and solution information is shown in Table 4 below:
[0073] Table 4
[0074]
[0075] In a possible example, the electronic device determines target fault information and target resolution information corresponding to the first fault service according to first target service operation information corresponding to the first fault service, including:
[0076] The electronic device parses the first target service operation information corresponding to the first fault service, and obtains a first service name and a first service operation parameter corresponding to the first target service operation information;
[0077] The electronic device determines the target fault information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the fault information;
[0078] The electronic device determines the target solution information corresponding to the target fault information according to the mapping relationship between the fault information and the solution information.
[0079] 204: The electronic device sends the target fault information and the target solution information to the maintenance terminal corresponding to the first fault service.
[0080] It can be seen that compared to manually checking multiple services in sequence to find the faulty service, and notifying the corresponding maintenance personnel to repair the faulty service according to the contact information of the maintenance personnel corresponding to the faulty service, in the embodiment of the present application, the electronic device determines that there is a first faulty service among the N target services based on the N target service operation information of the N target services, determines the target fault information and target solution information corresponding to the first faulty service based on the first target service operation information corresponding to the first faulty service, and sends the target fault information and target solution information to the maintenance terminal corresponding to the first faulty service, which helps to improve the processing efficiency of the faulty service.
[0081] In a possible example, after the electronic device sends the target fault information and the target solution information to the maintenance terminal corresponding to the first fault service, the method further includes:
[0082] The electronic device obtains P second fault services and P fault service repair times within a preset time period, wherein the P fault service repair times correspond to the P second fault services one by one, and P is an integer greater than or equal to 1;
[0083] The electronic device generates a fault service table according to the preset time period, the P second fault services and the P fault service repair times;
[0084] The electronic device performs a display operation on the fault service table.
[0085] Among them, the fault service maintenance time is the difference between the receiving time and the sending time. The receiving time is the time when the electronic device receives the fault solution information sent by the maintenance terminal corresponding to the fault service. The sending time is the time when the electronic device sends the target fault information and target solution information to the maintenance terminal corresponding to the fault service.
[0086] The fault service table includes a preset time period label, a preset time period, a fault service label, P second fault services, a fault service maintenance time label, and P fault service maintenance times.
[0087] For example, if Figure 2B As shown, Figure 2B2. It is a schematic diagram of a fault service table provided in an embodiment of the present application, wherein the fault service table includes a preset time period label, the preset time period is: 2019.07.01-2019.07.15, a fault service label, a fault service 1, a fault service 2, a fault service 3, a fault service maintenance time label, a fault service maintenance time 1, a fault service maintenance time 2 and a fault service maintenance time 3, fault service 1 corresponds to fault service maintenance time 1, fault service 2 corresponds to fault service maintenance time 2, and fault service 3 corresponds to fault service maintenance time 3.
[0088] In a possible example, after the electronic device sends the target fault information and the target solution information to the maintenance terminal corresponding to the first fault service, the method further includes:
[0089] The electronic device obtains P second fault services and P fault service repair times within a preset time period, the P fault service repair times correspond to the P second fault services one by one, and P is an integer greater than or equal to 1;
[0090] The electronic device determines the average of the P fault service repair times as the target fault service repair time;
[0091] The electronic device determines, according to a mapping relationship between the faulty service quantity segment and the service chain score, the first service chain score corresponding to the faulty service quantity segment in which the P second faulty services are located;
[0092] The electronic device determines, according to the mapping relationship between the fault service maintenance time period and the service chain score, a second service chain score corresponding to the fault service maintenance time period in which the target fault service maintenance time is located;
[0093] The electronic device determines a target service chain score corresponding to a service chain composed of N target services according to the first service chain score, the second service chain score and the first service chain score formula.
[0094] The mapping relationship between the fault service quantity segment and the service chain score is shown in Table 5 below:
[0095] Table 5
[0096] Fault service quantity segment Business Chain Score ≥Q1 S1 ≥Q2, <Q1 S2 ≥Q3, <Q2 S3 <Q3 S4
[0097] Among them, S1>S2>S3>S4.
[0098] The mapping relationship between the fault service maintenance time period and the service chain score is shown in Table 6 below:
[0099] Table 6
[0100] Fault service maintenance time period Business Chain Score ≥R1 S5 ≥R2, <R1 S6 ≥R3, <R2 S7 <R3 S8
[0101] Among them, S5>S6>S7>S8.
[0102] The first business chain score formula is:
[0103] S=Q×α+R×β,
[0104] S is the target service chain score corresponding to the service chain composed of N target services, Q is the first service chain score corresponding to the fault service quantity segment in which the P second fault services are located, α is the weight corresponding to the fault service quantity segment, R is the second service chain score corresponding to the fault service maintenance time period in which the target fault service maintenance time is located, β is the weight corresponding to the fault service maintenance time period, and α+β=1.
[0105] In a possible example, after the electronic device sends the target fault information and the target solution information to the maintenance terminal corresponding to the first fault service, the method further includes:
[0106] The electronic device obtains P second fault services and P fault service repair times within a preset time period, the P fault service repair times correspond to the P second fault services one by one, and P is an integer greater than or equal to 1;
[0107] The electronic device determines the average of the P fault service repair times as the target fault service repair time;
[0108] The electronic device determines the P business importance levels of the P second fault services according to the mapping relationship between the services and the business importance levels, and determines the average value of the P business importance levels as the target business importance level, and the P business importance levels correspond to the P second fault services one by one;
[0109] The electronic device determines, according to a mapping relationship between the faulty service quantity segment and the service chain score, the first service chain score corresponding to the faulty service quantity segment in which the P second faulty services are located;
[0110] The electronic device determines, according to the mapping relationship between the fault service maintenance time period and the service chain score, a second service chain score corresponding to the fault service maintenance time period in which the target fault service maintenance time is located;
[0111] The electronic device determines the third service chain score corresponding to the target service importance level according to the mapping relationship between the service importance level and the service chain score;
[0112] The electronic device determines the target service chain score corresponding to the service chain composed of N target services according to the first service chain score, the second service chain score, the second service chain score and the second service chain score formula.
[0113] The mapping relationship between the business importance level and the business chain score is shown in Table 7 below:
[0114] Table 7
[0115] Business importance level Business Chain Score T1 S9 T2 S10 T3 S11 T4 S12
[0116] Among them, T1>T2>T3>T4, S9>S10>S11>S12.
[0117] The second service chain score formula is:
[0118] S=Q×α+R×β+T×γ,
[0119] S is the target business chain score corresponding to the business chain composed of N target businesses, Q is the first business chain score corresponding to the faulty business quantity segment in which the P second faulty businesses are located, α is the weight corresponding to the faulty business quantity segment, R is the second business chain score corresponding to the faulty business maintenance time period in which the target faulty business repair time is located, β is the weight corresponding to the faulty business maintenance time period, T is the third business chain score corresponding to the target business importance level, γ is the weight corresponding to the business importance level, α+β+γ=1.
[0120] With the above Figure 2A For details on the embodiments shown in the drawings, please refer to Figure 3 , Figure 3 3 is a flow chart of another monitoring method provided in an embodiment of the present application. The monitoring method includes steps 301-310, which are as follows:
[0121] 301: The electronic device determines N target system interfaces of N target services according to a mapping relationship between services and system interfaces, wherein the N target system interfaces correspond to the N target services in a one-to-one manner, and N is an integer greater than 1.
[0122] 302: The electronic device serially sends N business operation information acquisition requests to the N target system interfaces, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond one-to-one to the N target system interfaces.
[0123] 303: The electronic device serially receives N target service operation information sent by the N target system interfaces in response to the N service operation information acquisition requests.
[0124] 304: The electronic device determines whether there is a faulty service among the N target services according to the N target service operation information.
[0125] 305: If there is a first faulty service among the N target services, the electronic device parses first target service operation information corresponding to the first faulty service to obtain a first service name and a first service operation parameter corresponding to the first target service operation information.
[0126] 306: The electronic device determines target fault information corresponding to the first service name and the first service operation parameter according to a mapping relationship between a service name, an abnormal range of a service operation parameter, and fault information.
[0127] 307: The electronic device determines target solution information corresponding to the first service name and the first service operation parameter according to a mapping relationship between the service name, the abnormal range of the service operation parameter and the solution information.
[0128] 308: The electronic device sends the target fault information and the target solution information to the maintenance terminal corresponding to the first fault service.
[0129] 309: The electronic device obtains P second fault services and P fault service repair times within a preset time period, where the P fault service repair times correspond to the P second fault services in a one-to-one manner, and P is an integer greater than or equal to 1.
[0130] 310: The electronic device generates a fault service table according to the preset time period, the P second fault services and the P fault service repair times, and performs a display operation on the fault service table.
[0131] It should be noted that Figure 3 The specific implementation process of each step of the method shown can refer to the specific implementation process described in the above method, which will not be described here.
[0132] The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] The embodiment of the present application can divide the electronic device into functional units according to the method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0134] See also Figure 4 , Figure 4 4 is a functional unit composition block diagram of a monitoring device provided in an embodiment of the present application. The monitoring device 400 includes:
[0135] A first acquisition unit 401 is used to acquire N target service operation information of N target services, where the N target service operation information corresponds to the N target services one by one, and N is an integer greater than 1;
[0136] A judging unit 402 is configured to judge whether there is a faulty service among the N target services according to the N target service operation information;
[0137] The determining unit 403 is configured to determine target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service if there is a first faulty service among the N target services;
[0138] The sending unit 404 is configured to send the target fault information and the target solution information to a maintenance terminal corresponding to the first fault service.
[0139] It can be seen that compared to manually checking multiple services in sequence to find the faulty service, and notifying the corresponding maintenance personnel to repair the faulty service according to the contact information of the maintenance personnel corresponding to the faulty service, in the embodiment of the present application, the electronic device determines that there is a first faulty service among the N target services based on the N target service operation information of the N target services, determines the target fault information and target solution information corresponding to the first faulty service based on the first target service operation information corresponding to the first faulty service, and sends the target fault information and target solution information to the maintenance terminal corresponding to the first faulty service, which helps to improve the processing efficiency of the faulty service.
[0140] In a possible example, in terms of acquiring N target service operation information of N target services, the first acquiring unit 401 is specifically used to:
[0141] Determine N target system interfaces of N target services according to the mapping relationship between the services and the system interfaces, wherein the N target system interfaces correspond one-to-one to the N target services;
[0142] Sending N business operation information acquisition requests to the N target system interfaces in series, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond one-to-one to the N target system interfaces;
[0143] N target business operation information sent by the N target system interfaces in response to the N business operation information acquisition requests are received serially.
[0144] In a possible example, in determining whether there is a faulty service among the N target services according to the N target service operation information, the determining unit 402 is specifically configured to:
[0145] Performing a faulty service judgment operation on the i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service, wherein the i-th target service operation information is any one of the N target service operation information;
[0146] After obtaining the i-th faulty service judgment result, performing a faulty service judgment operation on the (i+1)-th target service according to the (i+1)-th target service operation information, and obtaining the (i+1)-th faulty service judgment result corresponding to the (i+1)-th target service;
[0147] Until i=N, the faulty service judgment operation is stopped, and the Nth faulty service judgment result corresponding to the Nth target service is obtained, where i is an initial value of 1 and an increasing integer with an interval of 1.
[0148] In a possible example, in terms of performing a faulty service judgment operation on the i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service, the judgment unit 402 is specifically configured to:
[0149] Parsing the i-th target service operation information to obtain the i-th service name and the i-th service operation parameter corresponding to the i-th target service operation information;
[0150] Determine the normal range of the i-th business operation parameter corresponding to the i-th business name according to the mapping relationship between the business name and the normal range of the business operation parameter;
[0151] Determining whether the i-th business operation parameter is within the i-th business operation parameter normal range;
[0152] If the i-th service operation parameter is within the normal range of the i-th service operation parameter, determining that the i-th fault service judgment result corresponding to the i-th target service is a non-fault service;
[0153] If the i-th service operation parameter is not within the normal range of the i-th service operation parameter, it is determined that the i-th fault service judgment result corresponding to the i-th target service is a fault service.
[0154] In a possible example, in determining the target fault information and the target resolution information corresponding to the first fault service according to the first target service operation information corresponding to the first fault service, the determining unit 403 is specifically configured to:
[0155] Parse the first target business operation information corresponding to the first faulty business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information;
[0156] Alternatively, parse the first target business operation information corresponding to the first fault business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information.
[0157] In a possible example, in determining the target fault information and the target resolution information corresponding to the first fault service according to the first target service operation information corresponding to the first fault service, the determining unit 403 is specifically configured to:
[0158] Parsing the first target service operation information corresponding to the first faulty service to obtain a first service name and a first service operation parameter corresponding to the first target service operation information;
[0159] Determine the target fault information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the fault information;
[0160] The target solution information corresponding to the target fault information is determined according to the mapping relationship between the fault information and the solution information.
[0161] In a possible example, the monitoring device 400 further includes:
[0162] A second acquisition unit 405 is used to acquire P second fault services and P fault service repair times within a preset time period, wherein the P fault service repair times correspond to the P second fault services in a one-to-one manner, and P is an integer greater than or equal to 1;
[0163] A generating unit 406, configured to generate a fault service table according to the preset time period, the P second fault services and the P fault service repair times;
[0164] The display unit 407 is used to display the fault service table.
[0165] With the above Figure 2A and Figure 3 For details on the embodiments shown in the drawings, please refer to Figure 5 , Figure 5 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 500 includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. The program includes instructions for executing the following steps:
[0166] Acquire N target business operation information of N target businesses, where the N target business operation information corresponds one-to-one to the N target businesses, and N is an integer greater than 1;
[0167] Determining whether there is a faulty service among the N target services according to the N target service operation information;
[0168] If there is a first faulty service among the N target services, determining target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service;
[0169] The target fault information and the target solution information are sent to a maintenance terminal corresponding to the first fault service.
[0170] It can be seen that compared to manually checking multiple services in sequence to find the faulty service, and notifying the corresponding maintenance personnel to repair the faulty service according to the contact information of the maintenance personnel corresponding to the faulty service, in the embodiment of the present application, the electronic device determines that there is a first faulty service among the N target services based on the N target service operation information of the N target services, determines the target fault information and target solution information corresponding to the first faulty service based on the first target service operation information corresponding to the first faulty service, and sends the target fault information and target solution information to the maintenance terminal corresponding to the first faulty service, which helps to improve the processing efficiency of the faulty service.
[0171] In a possible example, in terms of obtaining N target service operation information of N target services, the above program includes instructions specifically for performing the following steps:
[0172] Determine N target system interfaces of N target services according to the mapping relationship between the services and the system interfaces, wherein the N target system interfaces correspond one-to-one to the N target services;
[0173] Sending N business operation information acquisition requests to the N target system interfaces in series, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond one-to-one to the N target system interfaces;
[0174] N target business operation information sent by the N target system interfaces in response to the N business operation information acquisition requests are received serially.
[0175] In a possible example, in terms of determining whether there is a faulty service among the N target services according to the N target service operation information, the program includes instructions specifically for performing the following steps:
[0176] Performing a faulty service judgment operation on the i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service, wherein the i-th target service operation information is any one of the N target service operation information;
[0177] After obtaining the i-th faulty service judgment result, performing a faulty service judgment operation on the (i+1)-th target service according to the (i+1)-th target service operation information, and obtaining the (i+1)-th faulty service judgment result corresponding to the (i+1)-th target service;
[0178] Until i=N, the faulty service judgment operation is stopped, and the Nth faulty service judgment result corresponding to the Nth target service is obtained, where i is an initial value of 1 and an increasing integer with an interval of 1.
[0179] In a possible example, in terms of performing a faulty service judgment operation on an i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service, the program includes instructions specifically for performing the following steps:
[0180] Parsing the i-th target service operation information to obtain the i-th service name and the i-th service operation parameter corresponding to the i-th target service operation information;
[0181] Determine the normal range of the i-th business operation parameter corresponding to the i-th business name according to the mapping relationship between the business name and the normal range of the business operation parameter;
[0182] Determining whether the i-th business operation parameter is within the i-th business operation parameter normal range;
[0183] If the i-th service operation parameter is within the normal range of the i-th service operation parameter, determining that the i-th fault service judgment result corresponding to the i-th target service is a non-fault service;
[0184] If the i-th service operation parameter is not within the normal range of the i-th service operation parameter, it is determined that the i-th fault service judgment result corresponding to the i-th target service is a fault service.
[0185] In a possible example, in terms of determining target fault information and target resolution information corresponding to the first fault service according to the first target service operation information corresponding to the first fault service, the program includes instructions specifically for performing the following steps:
[0186] Parse the first target business operation information corresponding to the first faulty business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information;
[0187] Alternatively, parse the first target business operation information corresponding to the first fault business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information.
[0188] In a possible example, in terms of determining target fault information and target resolution information corresponding to the first fault service according to the first target service operation information corresponding to the first fault service, the program includes instructions specifically for performing the following steps:
[0189] Parsing the first target service operation information corresponding to the first faulty service to obtain a first service name and a first service operation parameter corresponding to the first target service operation information;
[0190] Determine the target fault information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the fault information;
[0191] The target solution information corresponding to the target fault information is determined according to the mapping relationship between the fault information and the solution information.
[0192] In a possible example, the program further includes instructions for executing the following steps:
[0193] Obtain P second fault services and P fault service repair times within a preset time period, wherein the P fault service repair times correspond to the P second fault services one by one, and P is an integer greater than or equal to 1;
[0194] Generate a fault service table according to the preset time period, the P second fault services and the P fault service repair times;
[0195] A display operation is performed on the fault service table.
[0196] An embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program. The computer program is executed by a processor to implement part or all of the steps of any method recorded in the above method embodiment. The computer includes an electronic device.
[0197] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0198] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0199] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0200] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0201] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0203] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0204] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0205] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A monitoring method, characterized in that: The method comprises: Acquire N target business operation information of N target businesses, where the N target business operation information corresponds one-to-one to the N target businesses, and N is an integer greater than 1; Determining whether there is a faulty service among the N target services according to the N target service operation information; If there is a first faulty service among the N target services, determining target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service; Sending the target fault information and the target solution information to a maintenance terminal corresponding to the first fault service; Obtain P second fault services and P fault service repair times within a preset time period, where the P fault service repair times correspond to the P second fault services one-to-one, and P is an integer greater than or equal to 1; Determine P business importance levels of the P second fault services according to the mapping relationship between the services and the business importance levels, and determine an average value of the P business importance levels as the target business importance level; Determine the third business chain score corresponding to the target business importance level according to the mapping relationship between the business importance level and the business chain score; The average of the P fault service repair times is determined as the target fault service repair time; Determine, according to a mapping relationship between the faulty service quantity segment and the service chain score, the first service chain score corresponding to the faulty service quantity segment in which the P second faulty services are located; Determine, according to the mapping relationship between the faulty service maintenance time period and the service chain score, a second service chain score corresponding to the faulty service maintenance time period in which the target faulty service maintenance time is located; Determine the target business chain score corresponding to the business chain composed of N target businesses according to the first business chain score, the second business chain score, the third business chain score and the second business chain score formula; A fault service table is generated according to the preset time period, the P second fault services and the P fault service repair times, wherein the fault service table includes a preset time period label, a preset time period, a fault service label, P second fault services, a fault service repair time label and P fault service repair times; and a display operation is performed on the fault service table.
2. The method according to claim 1, characterized in that The obtaining of N target business operation information of N target businesses includes: Determine N target system interfaces of N target services according to the mapping relationship between the services and the system interfaces, wherein the N target system interfaces correspond one-to-one to the N target services; Sending N business operation information acquisition requests to the N target system interfaces in series, each business operation information acquisition request is used to instruct its corresponding target system interface to feedback business operation information, and the N business operation information acquisition requests correspond one-to-one to the N target system interfaces; N target business operation information sent by the N target system interfaces in response to the N business operation information acquisition requests are received serially.
3. The method according to claim 1 or 2, characterized in that: The determining, according to the N target service operation information, whether there is a faulty service in the N target services includes: Performing a faulty service judgment operation on the i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service, wherein the i-th target service operation information is any one of the N target service operation information; After obtaining the i-th faulty service judgment result, performing a faulty service judgment operation on the i+1-th target service according to the i+1-th target service operation information, and obtaining the i+1-th faulty service judgment result corresponding to the i+1-th target service; Until i=N, stop executing the faulty service judgment operation, and obtain the Nth faulty service judgment result corresponding to the Nth target service, where i is an initial value of 1 and an increasing integer with an interval of 1.
4. The method according to claim 3, characterized in that The performing a faulty service judgment operation on the i-th target service according to the i-th target service operation information to obtain an i-th faulty service judgment result corresponding to the i-th target service includes: Parsing the i-th target service operation information to obtain the i-th service name and the i-th service operation parameter corresponding to the i-th target service operation information; Determine the normal range of the i-th business operation parameter corresponding to the i-th business name according to the mapping relationship between the business name and the normal range of the business operation parameter; Determining whether the i-th business operation parameter is within the i-th business operation parameter normal range; If the i-th service operation parameter is within the normal range of the i-th service operation parameter, determining that the i-th fault service judgment result corresponding to the i-th target service is a non-fault service; If the i-th service operation parameter is not within the normal range of the i-th service operation parameter, it is determined that the i-th fault service judgment result corresponding to the i-th target service is a fault service.
5. The method according to claim 4, characterized in that The determining, according to the first target service operation information corresponding to the first fault service, target fault information and target resolution information corresponding to the first fault service includes: Parse the first target business operation information corresponding to the first faulty business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information; Alternatively, parse the first target business operation information corresponding to the first fault business to obtain the first business name and the first business operation parameter corresponding to the first target business operation information; determine the target solution information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the solution information; determine the target fault information corresponding to the first business name and the first business operation parameter according to the mapping relationship between the business name, the abnormal range of the business operation parameter and the fault information.
6. The method according to claim 4, characterized in that The determining, according to the first target service operation information corresponding to the first fault service, target fault information and target resolution information corresponding to the first fault service includes: Parsing the first target service operation information corresponding to the first faulty service to obtain a first service name and a first service operation parameter corresponding to the first target service operation information; Determine the target fault information corresponding to the first service name and the first service operation parameter according to the mapping relationship between the service name, the abnormal range of the service operation parameter and the fault information; The target solution information corresponding to the target fault information is determined according to the mapping relationship between the fault information and the solution information.
7. A monitoring device, characterized in that: The device is used to execute the method according to any one of claims 1 to 6, and the device comprises: A first acquisition unit, configured to acquire N target business operation information of N target businesses, wherein the N target business operation information corresponds one-to-one to the N target businesses, and N is an integer greater than 1; A judging unit, configured to judge whether there is a faulty service among the N target services according to the N target service operation information; a determining unit, configured to determine, if a first faulty service exists among the N target services, target fault information and target resolution information corresponding to the first faulty service according to first target service operation information corresponding to the first faulty service; A sending unit is used to send the target fault information and the target solution information to a maintenance terminal corresponding to the first fault service.
8. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing part or all of the steps in the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
