A method and device for detecting abnormality of operation function
By receiving and analyzing the client's device identification and sub-operation information on the server side to perform anomaly detection, the problem of being unable to detect non-code error operation function anomalies in the existing technology is solved, and the accuracy of anomaly detection is improved.
Patent Information
- Application Number
- CN201911167773.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-25
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-11-25
AI Technical Summary
Existing technology cannot effectively detect operating function anomalies that are not in the form of code errors, such as operating function design flaws or abnormal situations where the client cannot execute under specific circumstances, resulting in incomplete anomaly detection.
The server receives the device identification and sub-operation information sent by the client to be detected, and determines the abnormal crash or execution of the target operation function through abnormal detection within a preset time period, including creating an operation behavior table and detecting sub-operation information periodically or in real time. , determine the differences in running identification and operating procedures.
It realizes abnormal detection of operation functions in the form of non-code errors, improves the accuracy of detection, and can determine abnormal execution and crash of operation functions.
Smart Images

Figure CN112835781B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method and device for detecting abnormality of an operating function. Background Art
[0002] Currently, the test of the client mainly obtains the execution log within the global scope of the client execution, and then uploads it to the server. The server determines whether there is an abnormality in the execution of the operation function by analyzing the error code in the execution log.
[0003] However, the above-mentioned anomaly detection method cannot detect non-code errors, such as defects in the design of the operating function itself or the abnormal situation that certain operating functions cannot be executed under specific circumstances, as well as the client crashes and the abnormal situation that the process itself crashes and cannot report the execution log to the server. It can be seen that the above-mentioned anomaly detection method is not comprehensive for the anomaly detection of operating functions in the form of non-code errors. Summary of the invention
[0004] The embodiments of the present application provide a method and device for detecting anomalies in operating functions, which solve the above-mentioned problems existing in the prior art, so as to realize the detection of anomalies in operating functions in the form of non-code errors and improve the accuracy of anomaly detection.
[0005] In a first aspect, a method for detecting abnormality of an operation function is provided, and the method may include:
[0006] After the client to be detected receives an operation instruction of a sub-operation in a target operation function triggered by a user each time, the server receives the information to be detected sent by the client to be detected, the information to be detected including a device identifier and sub-operation information of a terminal device where the client to be detected is located, wherein the sub-operation information includes a sub-operation identifier, a receiving time of the operation instruction, and an operation identifier of the client to be detected, wherein the operation identifier is an identifier of a current life cycle generated each time the client to be detected is started;
[0007] Performing abnormality detection on sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected;
[0008] If it is detected that there are two different operation identifiers in the sub-operation information corresponding to each device identifier in the preset number of device identifiers, it is determined that for the target operation function, the client to be detected corresponding to the preset number of device identifiers has abnormal flashback;
[0009] If it is detected that the same running identifier exists in the sub-operation information corresponding to each device identifier among a preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, then it is determined that for the target operation function, there is abnormal execution of the client to be detected corresponding to the preset number of device identifiers.
[0010] In an optional implementation, before performing abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected, the method further includes:
[0011] An operation behavior table corresponding to each device identification in the at least one device identification is created, wherein the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
[0012] In an optional implementation, when the device identifier is a device number, the table identifier is determined by calculating the device number and the total number of generated operation behavior tables using a preset algorithm.
[0013] In an optional implementation, performing abnormality detection on sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected includes:
[0014] According to a preset detection cycle, periodically perform abnormal detection on the sub-operation information corresponding to each device identifier in the information to be detected;
[0015] Or, perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected in real time.
[0016] In an optional implementation, detecting that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation flow in the target operation function that is successfully executed includes:
[0017] Detecting that the operation sequence of the sub-operation corresponding to the sub-operation identifier is different from the operation sequence of the sub-operation of the preset operation flow in the target operation function that is successfully executed;
[0018] Or, it is detected that the number of sub-operations corresponding to the sub-operation identifier is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
[0019] In an optional implementation, the method further includes:
[0020] An abnormal prompt message is sent to the administrator, wherein the abnormal prompt message includes the preset number of device identifiers and the detection result of the abnormal flashback or abnormal execution of the target operation function by the corresponding client to be detected.
[0021] In a second aspect, a device for detecting abnormality of an operation function is provided, the device may include: a receiving unit, a detecting unit, and a determining unit;
[0022] The receiving unit is used to receive the information to be detected sent by the client to be detected after the client to be detected receives the operation instruction of the sub-operation in the target operation function triggered by the user each time, the information to be detected includes the device identification and sub-operation information of the terminal device where the client to be detected is located, wherein the sub-operation information includes the sub-operation identification, the reception time of the operation instruction and the operation identification of the client to be detected, and the operation identification is the identification of the current life cycle generated each time the client to be detected is started;
[0023] The detection unit is used to perform abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected;
[0024] The determining unit is configured to determine that, for the target operation function, the to-be-detected client corresponding to the preset number of device identifiers has abnormal flashback if two different operation identifiers are detected in the sub-operation information corresponding to each device identifier among the preset number of device identifiers;
[0025] If it is detected that the same running identifier exists in the sub-operation information corresponding to each device identifier among a preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, then it is determined that for the target operation function, there is abnormal execution of the client to be detected corresponding to the preset number of device identifiers.
[0026] In an optional implementation, the apparatus further includes a creation unit;
[0027] The creation unit is used to create an operation behavior table corresponding to each device identification in the at least one device identification, and the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
[0028] In an optional implementation, when the device identifier is a device number, the table identifier is determined by calculating the device number and the total number of generated operation behavior tables using a preset algorithm.
[0029] In an optional implementation, the detection unit is specifically used to periodically perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected according to a preset detection period;
[0030] Or, perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected in real time.
[0031] In an optional implementation, the detection unit is further used to detect that the operation sequence of the sub-operation corresponding to the sub-operation identifier is different from the operation sequence of the sub-operation of the preset operation flow in the target operation function that is successfully executed;
[0032] Or, it is detected that the number of sub-operations corresponding to the sub-operation identifier is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
[0033] In an optional implementation, the apparatus further includes a sending unit;
[0034] The sending unit is used to send abnormal prompt information to the management personnel, and the abnormal prompt information includes the preset number of device identifiers and the detection results of the abnormal flash back or abnormal execution of the target operation function by the corresponding client to be detected.
[0035] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0038] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0039] In the abnormal detection method for operation functions provided by the present invention, after the client to be detected receives an operation instruction of a sub-operation in a target operation function triggered by a user each time, the server receives information to be detected sent by the client to be detected, the information to be detected including a device identification and sub-operation information of a terminal device where the client to be detected is located; abnormal detection is performed on the sub-operation information of the target operation function within a preset time period corresponding to each device identification in the information to be detected; if two different operation identifications are detected in the sub-operation information corresponding to each device identification in a preset number of device identifications, it is determined that, for the target operation function, the client to be detected corresponding to the preset number of device identifications has an abnormal flashback; if the same operation identification is detected in the sub-operation information corresponding to each device identification in the preset number of device identifications, and it is detected that the sub-operation corresponding to the sub-operation identification is different from the sub-operation of the preset operation process in the successful execution of the target operation function, it is determined that, for the target operation function, the client to be detected corresponding to the preset number of device identifications has an abnormal execution. The method detects the user operation behavior sent by the target client in a non-code form. If the target clients on a large number of terminals interrupt the operation process of a certain operation function and enter a new operation process, it can be determined that the target clients on a large number of terminals have an execution exception in executing the current operation function. If the target clients on a large number of terminals interrupt the preset next operation in a certain function operation process and enter a new life cycle, that is, there are different operation identifiers, it can be determined that the target clients on a large number of terminals have a flash back exception in executing the current operation function. Therefore, the method realizes the exception detection of the operation function in the form of non-code errors, and improves the accuracy of exception detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A system architecture diagram of a method for detecting anomalies in application operation functions provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of a flow chart of an abnormality detection method for an operation function provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the structure of an abnormality detection device for an operation function provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] The abnormality detection method of the operation function provided by the embodiment of the present invention can be applied to Figure 1 In the system architecture shown, the system may include: a server and at least one terminal device. Each terminal device may include at least one client to be detected.
[0046] Among them, in order to ensure the accuracy of detection, the server is an application server or cloud server with strong computing power; the terminal device can be a user equipment (UE) such as a mobile phone, smart phone, laptop, digital broadcast receiver, personal digital assistant (PDA), tablet computer (PAD), handheld device, vehicle-mounted device, wearable device, computing device or other processing equipment connected to a wireless modem, mobile station (MS), mobile terminal, etc. The terminal device has the ability to communicate with one or more core networks via a radio access network (RAN).
[0047] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. In addition, the embodiments in the present application and the features in the embodiments may be combined with each other if there is no conflict.
[0048] Figure 2 A flowchart of an abnormality detection method for an operation function provided by an embodiment of the present invention. Figure 2 As shown, the method may include:
[0049] Step 210: The client to be detected receives an operation instruction triggered by a user.
[0050] The operation instruction is used to instruct the client to be detected, such as Alipay, to perform a sub-operation of the target operation function.
[0051] The target operation function is a function operation sequence, which may include at least two sub-operations executed according to a preset operation process, and each sub-operation includes a unique sub-operation identification ID.
[0052] For example, taking the target operation function of Alipay scan code payment as an example, the sub-operations included in the target operation function may include triggering Alipay APP operation, triggering scan operation, reading QR code operation, entering password operation, triggering confirmation operation, and each of the above sub-operations includes a unique sub-operation identification ID.
[0053] Further, after the client to be detected executes the sub-operation instruction, sub-operation information is generated, and the sub-operation information may include a sub-operation identification ID, a receiving time of the operation instruction, and an operation identification of the client to be detected, wherein the operation identification is an identification of the current life cycle generated each time the client to be detected is started. The sub-operation information generated by each client to be detected reflects the operation behavior of the user corresponding to the client to be detected.
[0054] Step 220: The client to be detected sends the information to be detected to the server.
[0055] The client to be detected, such as Alipay, sends information to be detected to the server each time it receives an operation instruction of a sub-operation in the target operation function triggered by the user. The information to be detected may include the device identifier of the terminal device where the client to be detected is located and the sub-operation information of the corresponding client to be detected.
[0056] The client to be detected can send the information to be detected to the server via Hyper Text Transfer Protocol (HTTP).
[0057] It should be noted that, in order to ensure the normal reporting of the information to be detected, the operation process of the client to be detected sending the information to be detected to the server is set to be an asynchronous operation with the user's operation process.
[0058] Step 230: The server performs anomaly detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected.
[0059] Before executing this step, in order to increase the number of clients to be detected supported by the server, the server can store the information to be detected corresponding to different device identifiers in different storage domains of the database to reduce the pressure of later detection on the server and improve the server throughput.
[0060] For example, different storage domains are represented by different storage tables, such as an operation behavior table. The server creates an operation behavior table corresponding to each device identifier in the database according to the device identifier in the received information to be detected. The operation behavior table includes sub-operation information and table identifier corresponding to each device identifier.
[0061] In order to improve the detection efficiency of anomaly detection, the sub-operation information in each operation behavior table can be recorded in the order in which the sub-operation information is reported by the client carrying the same device identifier.
[0062] When the device identifier is a device number, the server may use a preset algorithm to calculate the device number and the total number of the generated operation behavior tables to obtain the sequence number of the operation behavior table corresponding to the device number.
[0063] The preset algorithm may include a hash algorithm and a preset remainder algorithm, and the device number may be an International Mobile Equipment Identity (IMEI).
[0064] For example, taking the server as an example where 10 operation behavior tables are defined, the preset hash algorithm is used to calculate the IMEI number of the target mobile device to obtain 101, and then the preset remainder algorithm is used to obtain the remainder of 101 and 10 is 1, then the table identifier of the operation behavior table corresponding to the IMEI number of the target mobile device is determined to be 1.
[0065] It should be noted that in addition to the above method for determining the table identifier of the operation behavior table, the table identifier of the operation behavior table can also be determined in a corresponding order generated according to the order of creation, or can be pre-configured by a management personnel, and the embodiments of the present invention are not limited here.
[0066] Returning to step 230, according to the preset detection cycle, the sub-operation information of the target operation function within the preset time period corresponding to each device identifier in the detection information is periodically detected for anomalies. In other words, the server can periodically perform anomaly detection on the sub-operation information of the target operation function in each operation behavior table according to the preset detection cycle.
[0067] Or, perform anomaly detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected in real time. That is to say, after receiving the information to be detected, the server can perform anomaly detection on the sub-operation information of the target operation function within a preset time period in each operation behavior table in real time.
[0068] If two different operation identification IDs are detected in the sub-operation information corresponding to each device identification in a preset number of device identifications, indicating that the corresponding client to be detected has two life cycles, then it is determined that for the target operation function, the client to be detected corresponding to the preset number of device identifications has abnormal crashes.
[0069] Specifically, the server detects each operation behavior table and detects that in the same target function operation, after the client with the same IMEI number reports the first sub-operation information, the operation identification ID in the next adjacent second sub-operation information reported is different from the operation identification ID in the first sub-operation information, and this situation occurs in a large number of clients (one IMEI number identifies one client), which is regarded as a client crash. Among them, the reception time of the operation instruction in the second sub-operation information is used to determine the specific time when the client crash occurs.
[0070] If it is detected that the same operation identification ID exists in the sub-operation information corresponding to each device identification in a preset number of device identifications, and the sub-operation corresponding to the sub-operation identification ID of the sub-operation information is different from the sub-operation of the preset operation process in the successful execution of the target operation function, then it is determined that for the target operation function, there is abnormal execution of the client to be detected corresponding to the preset number of device identifications.
[0071] Specifically, the server detects each operation behavior table and detects that in the same target function operation, the client with the same IMEI number has the same operation identification ID in the reported sub-operation information, but the sub-operation of the reported sub-operation information is different from the sub-operation of the preset operation process in the successful execution of the target operation function, and this situation occurs in a large number of clients (one IMEI number identifies one client), then it is determined that for the target operation function, there is abnormal execution of the clients to be detected corresponding to the preset number of device identifications.
[0072] In a specific embodiment, the step of detecting that the sub-operation corresponding to the sub-operation identification ID is different from the sub-operation of the preset operation flow in the successful execution of the target operation function may include the following two detection methods:
[0073] Method 1: It is detected that the operation sequence of the sub-operation corresponding to the sub-operation identification ID is different from the operation sequence of the sub-operation in the preset operation flow in the successful execution of the target operation function.
[0074] Method 2: Detect that the number of sub-operations corresponding to the sub-operation identification ID is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
[0075] For example, for the Alipay payment operation function, the server receives reports of a large number of users clicking on the Alipay operation and clicking on the scan code operation in a certain period of time, and then receives reports of return operations. The operation process specified by Alipay payment is clicking on the Alipay operation, clicking on the scan code operation, entering the password operation, and confirming the payment operation.
[0076] Therefore, in the above example, it can be determined that there is abnormal execution in the client to be detected by the fact that the operation process of the reported sub-operation is different from the operation sequence specified by Alipay payment, or it can be determined that there is abnormal execution in the client to be detected by the fact that the number of sub-operations of the reported sub-operation is different from the number of sub-operations specified by Alipay payment. The embodiments of the present invention are not limited here.
[0077] Furthermore, in order to improve the user experience of the client, the server can send abnormal prompt information to the administrator.
[0078] The abnormal prompt information may include a preset number of device identifications where abnormalities occur and abnormal detection results of the client to be detected corresponding to the corresponding device identifications. The abnormal detection results may include detection results of abnormal flashback or abnormal execution of the target operation function.
[0079] In the abnormal detection method for operation functions provided by the present invention, after the client to be detected receives an operation instruction of a sub-operation in a target operation function triggered by a user each time, the server receives information to be detected sent by the client to be detected, the information to be detected including a device identification and sub-operation information of a terminal device where the client to be detected is located; abnormal detection is performed on the sub-operation information of the target operation function within a preset time period corresponding to each device identification in the information to be detected; if two different operation identifications are detected in the sub-operation information corresponding to each device identification in a preset number of device identifications, it is determined that, for the target operation function, the client to be detected corresponding to the preset number of device identifications has an abnormal flashback; if the same operation identification is detected in the sub-operation information corresponding to each device identification in the preset number of device identifications, and it is detected that the sub-operation corresponding to the sub-operation identification is different from the sub-operation of the preset operation process in the successful execution of the target operation function, it is determined that, for the target operation function, the client to be detected corresponding to the preset number of device identifications has an abnormal execution. The method detects the user operation behavior sent by the target client in a non-code form. If the target clients on a large number of terminals interrupt the operation process of a certain operation function and enter a new operation process, it can be determined that the target clients on a large number of terminals have an execution exception in executing the current operation function. If the target clients on a large number of terminals interrupt the preset next operation in a certain function operation process and enter a new life cycle, that is, there are different operation identifiers, it can be determined that the target clients on a large number of terminals have a flash back exception in executing the current operation function. Therefore, the method realizes the exception detection of the operation function in the form of non-code errors, and improves the accuracy of exception detection.
[0080] Corresponding to the above method, an embodiment of the present invention further provides an abnormality detection device for operating functions, such as Figure 3 As shown, the device includes: a receiving unit 310, a detecting unit 320 and a determining unit 330;
[0081] The receiving unit 310 is used to receive the information to be detected sent by the client to be detected after the client to be detected receives the operation instruction of the sub-operation in the target operation function triggered by the user each time, wherein the information to be detected includes the device identification and sub-operation information of the terminal device where the client to be detected is located, wherein the sub-operation information includes the sub-operation identification, the receiving time of the operation instruction and the operation identification of the client to be detected, and the operation identification is the identification of the current life cycle generated each time the client to be detected is started;
[0082] A detection unit 320, configured to perform abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected;
[0083] The determining unit 330 is configured to determine that, for the target operation function, the to-be-detected client corresponding to the preset number of device identifiers has abnormal flashback if two different operation identifiers are detected in the sub-operation information corresponding to each device identifier among the preset number of device identifiers;
[0084] If it is detected that the same running identifier exists in the sub-operation information corresponding to each device identifier among a preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, then it is determined that for the target operation function, there is abnormal execution of the client to be detected corresponding to the preset number of device identifiers.
[0085] In an optional implementation, the apparatus further includes a creating unit 340;
[0086] The creation unit 340 is configured to create an operation behavior table corresponding to each device identification in the at least one device identification, wherein the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
[0087] In an optional implementation, when the device identifier is a device number, the table identifier is determined by calculating the device number and the total number of generated operation behavior tables using a preset algorithm.
[0088] In an optional implementation, the detection unit 320 is specifically configured to periodically perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected according to a preset detection period;
[0089] Or, perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected in real time.
[0090] In an optional implementation, the detection unit 320 is further configured to detect that the operation sequence of the sub-operation corresponding to the sub-operation identifier is different from the operation sequence of the sub-operation of the preset operation flow in the target operation function that is successfully executed;
[0091] Or, it is detected that the number of sub-operations corresponding to the sub-operation identifier is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
[0092] In an optional implementation, the apparatus further includes a sending unit 350;
[0093] The sending unit 350 is used to send abnormal prompt information to the management personnel, wherein the abnormal prompt information includes the preset number of device identifiers and the detection result of the abnormal flash back or abnormal execution of the target operation function by the corresponding client to be detected.
[0094] The functions of each functional unit of the operating function anomaly detection device provided in the above embodiment of the present invention can be realized through the above method steps. Therefore, the specific working process and beneficial effects of each unit in the operating function anomaly detection device provided in the embodiment of the present invention will not be repeated here.
[0095] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a processor 410 , a communication interface 420 , a memory 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other via the communication bus 440 .
[0096] Memory 430, for storing computer programs;
[0097] The processor 410 is used to execute the program stored in the memory 430 to implement the following steps:
[0098] After the client to be detected receives an operation instruction of a sub-operation in a target operation function triggered by a user each time, the server receives the information to be detected sent by the client to be detected, the information to be detected including a device identifier and sub-operation information of a terminal device where the client to be detected is located, wherein the sub-operation information includes a sub-operation identifier, a receiving time of the operation instruction, and an operation identifier of the client to be detected, wherein the operation identifier is an identifier of a current life cycle generated each time the client to be detected is started;
[0099] Performing abnormality detection on sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected;
[0100] If it is detected that there are two different operation identifiers in the sub-operation information corresponding to each device identifier in the preset number of device identifiers, it is determined that for the target operation function, the client to be detected corresponding to the preset number of device identifiers has abnormal flashback;
[0101] If it is detected that the same running identifier exists in the sub-operation information corresponding to each device identifier among a preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, then it is determined that for the target operation function, there is abnormal execution of the client to be detected corresponding to the preset number of device identifiers.
[0102] In an optional implementation, before performing abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected, the method further includes:
[0103] An operation behavior table corresponding to each device identification in the at least one device identification is created, wherein the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
[0104] In an optional implementation, when the device identifier is a device number, the table identifier is determined by calculating the device number and the total number of generated operation behavior tables using a preset algorithm.
[0105] In an optional implementation, performing abnormality detection on sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected includes:
[0106] According to a preset detection cycle, periodically perform abnormal detection on the sub-operation information corresponding to each device identifier in the information to be detected;
[0107] Or, perform abnormality detection on the sub-operation information corresponding to each device identifier in the information to be detected in real time.
[0108] In an optional implementation, detecting that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation flow in the target operation function that is successfully executed includes:
[0109] Detecting that the operation sequence of the sub-operation corresponding to the sub-operation identifier is different from the operation sequence of the sub-operation of the preset operation flow in the target operation function that is successfully executed;
[0110] Or, it is detected that the number of sub-operations corresponding to the sub-operation identifier is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
[0111] In an optional implementation, the method further includes:
[0112] An abnormal prompt message is sent to the administrator, wherein the abnormal prompt message includes the preset number of device identifiers and the detection result of the abnormal flashback or abnormal execution of the target operation function by the corresponding client to be detected.
[0113] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0114] The communication interface is used for communication between the above electronic device and other devices.
[0115] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0116] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0117] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 2 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present invention are not repeated here.
[0118] In another embodiment provided by the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the abnormality detection method of the operating function described in any of the above embodiments.
[0119] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the abnormality detection method of the operating function described in any one of the above embodiments.
[0120] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or a form of an embodiment combining software and hardware. Moreover, the present application may adopt a form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0121] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0125] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application fall within the scope of the claims and their equivalents in the embodiments of the present application, the embodiments of the present application are also intended to include these modifications and variations.
Claims
1. A method for detecting abnormality of an operating function, characterized in that: The method comprises: After the client to be detected receives an operation instruction of a sub-operation in a target operation function triggered by a user each time, the server receives the information to be detected sent by the client to be detected, the information to be detected including a device identifier of a terminal device where the client to be detected is located and sub-operation information, wherein the sub-operation information includes a sub-operation identifier, a receiving time of the operation instruction, and an operation identifier of the client to be detected, wherein the operation identifier is an identifier of a current life cycle generated each time the client to be detected is started; Performing abnormality detection on sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected; If it is detected that there are two different operation identifiers in the sub-operation information corresponding to each device identifier in the preset number of device identifiers, it is determined that for the target operation function, the client to be detected corresponding to the preset number of device identifiers has abnormal flashback; If it is detected that the same operation identifier exists in the sub-operation information corresponding to each device identifier in the preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, it is determined that for the target operation function, the to-be-detected client corresponding to the preset number of device identifiers has abnormal execution; Before performing abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected, the method further includes: An operation behavior table corresponding to each device identification in at least one device identification is created, wherein the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
2. The method according to claim 1, characterized in that When the device identifier is a device number, the table identifier is determined by calculating the device number and the total number of the generated operation behavior tables using a preset algorithm.
3. The method according to claim 1, characterized in that Performing abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected includes: According to a preset detection cycle, periodically performing abnormal detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected; Or, an abnormality detection is performed in real time on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected.
4. The method according to claim 1, characterized in that Detecting that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation flow in the target operation function that is successfully executed includes: Detecting that the operation sequence of the sub-operation corresponding to the sub-operation identifier is different from the operation sequence of the sub-operation in the preset operation flow in the successful execution of the target operation function; Or, it is detected that the number of sub-operations corresponding to the sub-operation identifier is different from the number of sub-operations in the preset operation flow in the successful execution of the target operation function.
5. The method according to claim 1, characterized in that The method further comprises: An abnormal prompt message is sent to the administrator, wherein the abnormal prompt message includes the preset number of device identifiers and the detection result of the abnormal flashback or abnormal execution of the target operation function by the corresponding client to be detected.
6. An abnormality detection device for an operating function, characterized in that: The device comprises: a receiving unit, a detecting unit and a determining unit; The receiving unit is used to receive the information to be detected sent by the client to be detected after the client to be detected receives the operation instruction of the sub-operation in the target operation function triggered by the user each time, the information to be detected includes the device identification and sub-operation information of the terminal device where the client to be detected is located, wherein the sub-operation information includes the sub-operation identification, the reception time of the operation instruction and the operation identification of the client to be detected, and the operation identification is the identification of the current life cycle generated each time the client to be detected is started; The detection unit is used to perform abnormality detection on the sub-operation information of the target operation function within a preset time period corresponding to each device identifier in the information to be detected; The determining unit is configured to determine that, for the target operation function, the to-be-detected client corresponding to the preset number of device identifiers has abnormal flashback if two different operation identifiers are detected in the sub-operation information corresponding to each device identifier among the preset number of device identifiers; If it is detected that the same operation identifier exists in the sub-operation information corresponding to each device identifier in the preset number of device identifiers, and it is detected that the sub-operation corresponding to the sub-operation identifier is different from the sub-operation of the preset operation process in the successful execution of the target operation function, it is determined that for the target operation function, the to-be-detected client corresponding to the preset number of device identifiers has abnormal execution; The creation unit is used to create an operation behavior table corresponding to each device identification in at least one device identification, wherein the operation behavior table includes sub-operation information corresponding to each device identification and a table identification.
7. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
9. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 5 are implemented.
