Abnormal interface positioning method and device, equipment, medium and product

By regularly obtaining business system interface data, calculating differential data and confidence intervals, and analyzing interface distribution, the problem of inaccurate positioning of abnormal interfaces in the existing technology is solved, and positioning efficiency and business stability are improved.

CN119440895APending Publication Date: 2025-02-14BANK OF COMMUNICATIONS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411396301.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When locating abnormal service interfaces in the prior art, it is difficult to accurately determine the specific interfaces that cause abnormal data, resulting in poor positioning effect and low efficiency, which affects the stability and reliability of business processing.

Method used

By obtaining interface data of each interface in the business system every preset cycle, determining the target interface and its upstream interface, calculating index difference data and confidence intervals, analyzing the interface distribution data, and determining whether the interface is independent, thereby determining the abnormal interface.

Benefits of technology

It improves the positioning efficiency and accuracy of abnormal interfaces and enhances the stability and reliability of business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440895A_ABST
    Figure CN119440895A_ABST
Patent Text Reader

Abstract

The invention provides an abnormal interface positioning method and device, equipment, a medium and a product. The method comprises the following steps: determining a target interface with abnormal data according to data of each interface in a current preset period, determining an upstream interface of the target interface, arranging index data of the target interface in a historical time period, performing differential calculation on the index data in the historical time period to obtain an index confidence interval, and determining the abnormal data of the target interface according to the index confidence interval. Acquiring downstream index data of the target interface when the index data in the current preset period does not exceed the index confidence interval, acquiring downstream index data of the upstream interface when determining that the distribution of the target interface does not deviate according to the downstream index data, and acquiring downstream index data of the upstream interface when determining that the distribution of the upstream interface does not deviate and the target interface is independent according to the downstream index data. And determining the target interface as an abnormal interface. According to the method, the positioning efficiency and accuracy of the abnormal interface are improved, and the stability and reliability of business handling are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to Internet technology, and in particular to a method, device, equipment, medium and product for locating an abnormal interface. Background Art

[0002] With the development of information technology, the business systems of enterprises are becoming increasingly complex. Business systems include multiple business links composed of multiple business interfaces. In business systems, it is necessary to predict abnormal business interfaces or upcoming abnormal business interfaces from complex production data.

[0003] The prior art configures static parameter thresholds for the service interface, and monitors the static parameters of the current service interface. When it is determined that the static parameter exceeds the static parameter threshold, it determines that the current service interface has abnormal data. However, it is difficult to locate the specific interface that causes abnormal data by simply judging the threshold of the relevant indicators of a single service interface based on the configured static parameter threshold. Therefore, the prior art has poor positioning effect and low positioning efficiency for abnormal services, which affects subsequent service processing. Summary of the invention

[0004] The embodiments of the present application provide methods, devices, equipment, media and products for locating abnormal interfaces, so as to improve the efficiency and accuracy of locating abnormal interfaces and further improve the stability and reliability of business processing.

[0005] In a first aspect, an embodiment of the present application provides a method for locating an abnormal interface, comprising:

[0006] Obtaining interface data of each interface in the business system at every preset period, and determining a target interface with abnormal data and an upstream interface of the target interface according to the interface data in the current preset period;

[0007] Determine the corresponding differential data according to the indicator data of the target interface in the historical time period, and determine the indicator confidence interval according to the differential data; if the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, determine the distribution data of the target interface according to the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period;

[0008] When the distribution data of the target interface indicates that the distribution is not deviated, determining the distribution data of the upstream interface according to the downstream indicator data of the upstream interface;

[0009] When the distribution data of the upstream interface indicates that the distribution is not deviated, it is determined whether the target interface is independent according to the interface data of the target interface in the current preset period, and when it is determined to be independent, the target interface is determined to be an abnormal interface.

[0010] Optionally, determining the distribution data of the target interface according to the downstream indicator data of the target interface includes:

[0011] Determine historical downstream indicator data of the target interface in a historical time period, and current downstream indicator data of the target interface in a current time period;

[0012] Determine the historical normalized standard interval of the target interface according to the historical downstream indicator data of the target interface, and calculate the current normalized standard deviation of the target interface according to the current downstream indicator data of the target interface;

[0013] The distribution data of the target interface is determined according to the current normalized standard deviation and the historical normalized standard interval of the target interface.

[0014] Optionally, the distribution data of the target interface is determined according to the current normalized standard deviation and the historical normalized standard interval of the target interface, specifically including:

[0015] When the current normalized standard deviation of the target interface is not within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates a distribution deviation;

[0016] When the current normalized standard deviation of the target interface is within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates that the distribution does not deviate;

[0017] The method further includes: when the distribution data of the target interface indicates a distribution deviation, determining the target interface as an abnormal interface.

[0018] Optionally, determining the distribution data of the upstream interface according to the downstream indicator data of the upstream interface includes:

[0019] Obtain the historical downstream indicator data of the upstream interface in the historical time period, and the current downstream indicator data of the upstream interface in the current time period;

[0020] The distribution data of the upstream interface is determined according to the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface.

[0021] Optionally, determining whether the target interface is an independent interface according to the interface data of the target interface in the current preset period includes:

[0022] When the distribution data of the upstream interface indicates that the distribution is not deviated, the interface data of the target interface in the current time period is obtained, and the data volume of the interface data of the target interface as the initial interface is determined according to the interface data;

[0023] Determine whether the data volume of the interface data of the target interface as the initial interface exceeds a preset amount;

[0024] If the data volume of the interface data of the target interface as the initial interface exceeds a preset amount, it is determined that the target interface is independent.

[0025] Optionally, when the distribution data of the upstream interface indicates a distribution deviation, determining a branch interface of the upstream interface;

[0026] Determine distribution data of the branch interface according to historical upstream indicator data of the branch interface in a historical time period and current upstream indicator data in a current time period;

[0027] When the distribution data of the branch interface indicates that the distribution is not deviated, the upstream interface is determined to be an abnormal interface; otherwise, the branch interface is determined to be an abnormal interface.

[0028] In a second aspect, an embodiment of the present application provides a device for locating an abnormal interface, including:

[0029] An acquisition module, used to acquire interface data of each interface in the business system at every preset period, and determine a target interface with abnormal data and an upstream interface of the target interface according to the interface data in the current preset period;

[0030] A processing module is used to determine the corresponding differential data according to the indicator data of the target interface in the historical time period, and determine the indicator confidence interval according to the differential data; if the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, the distribution data of the target interface is determined according to the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period;

[0031] The processing module is further used to determine the distribution data of the upstream interface according to the downstream indicator data of the upstream interface when the distribution data of the target interface indicates that the distribution is not deviated;

[0032] The processing module is also used to determine whether the target interface is independent according to the interface data of the target interface in the current preset period when the distribution data of the upstream interface indicates that the distribution is not deviated, and when it is determined to be independent, determine that the target interface is an abnormal interface.

[0033] Optionally, the processing module is further used to determine historical downstream indicator data of the target interface in a historical time period, and current downstream indicator data of the target interface in a current time period;

[0034] Determine the historical normalized standard interval of the target interface according to the historical downstream indicator data of the target interface, and calculate the current normalized standard deviation of the target interface according to the current downstream indicator data of the target interface;

[0035] The distribution data of the target interface is determined according to the current normalized standard deviation and the historical normalized standard interval of the target interface.

[0036] Optionally, the processing module is further configured to determine that the distribution data of the target interface indicates a distribution deviation when the current normalized standard deviation of the target interface is not within the corresponding historical normalized standard interval;

[0037] When the current normalized standard deviation of the target interface is within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates that the distribution does not deviate;

[0038] The method further includes: when the distribution data of the target interface indicates a distribution deviation, determining the target interface as an abnormal interface.

[0039] Optionally, the processing module is further used to obtain historical downstream indicator data of the upstream interface in a historical time period, and current downstream indicator data of the upstream interface in a current time period;

[0040] The distribution data of the upstream interface is determined according to the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface.

[0041] Optionally, the processing module is further used to obtain interface data of the target interface in the current time period when the distribution data of the upstream interface indicates that the distribution is not deviated, and determine the data volume of the interface data of the target interface as the initial interface according to the interface data;

[0042] Determine whether the data volume of the interface data of the target interface as the initial interface exceeds a preset amount;

[0043] If the data volume of the interface data of the target interface as the initial interface exceeds a preset amount, it is determined that the target interface is independent.

[0044] Optionally, the processing module is further configured to determine a branch interface of the upstream interface when the distribution data of the upstream interface indicates a distribution deviation;

[0045] Determine distribution data of the branch interface according to historical upstream indicator data of the branch interface in a historical time period and current upstream indicator data in a current time period;

[0046] When the distribution data of the branch interface indicates that the distribution is not deviated, the upstream interface is determined to be an abnormal interface; otherwise, the branch interface is determined to be an abnormal interface.

[0047] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0048] Memory stores computer-executable instructions;

[0049] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0051] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0052] The method, device, equipment, medium and product for locating abnormal interfaces provided in the embodiments of the present application obtain the interface data of each interface in the business system at every preset period, determine the interface with abnormal data according to the interface data in the current preset period, obtain the target interface, and determine the upstream interface of the target interface. Determine the index data of the target interface in the historical time period, determine the corresponding differential data according to the index data in the historical time period to obtain the index confidence interval, obtain the downstream index data of the target interface when the index data in the current preset period does not exceed the index confidence interval, determine the distribution data of the target interface according to the downstream index data, determine the distribution of the target interface according to the distribution data of the target interface when the distribution does not deviate, obtain the downstream index data of the upstream interface, determine the distribution of the upstream interface according to the downstream index data when the distribution does not deviate, determine whether the target interface is independent according to the interface data of the target interface in the current preset period, and determine the target interface as an abnormal interface when it is independent. The present application improves the efficiency and accuracy of locating abnormal interfaces, and further improves the stability and reliability of business handling. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] Figure 1 A schematic diagram of the prior art scenario provided for this application;

[0055] Figure 2 Schematic diagram of the process of locating the abnormal interface provided by this application Figure 1 ;

[0056] Figure 3 Schematic diagram of the process of locating the abnormal interface provided by this application Figure 2 ;

[0057] Figure 4 A schematic diagram of the structure of the abnormal interface positioning device provided by the present application;

[0058] Figure 5 A schematic diagram of the structure of the electronic device provided in this application.

[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0061] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0062] With the development of information technology, the business systems of enterprises are becoming increasingly complex. There are multiple business links in the business systems, and each business link consists of multiple business interfaces. Figure 1 The schematic diagram of the prior art scenario provided for this application is as follows: Figure 1 As shown, the specific application scenario of the present application includes a business system 10 and a monitoring unit 20, wherein the business system includes multiple business links, such as business link 11, business link 12, and business link 13, business link 11 includes two business interfaces, business link 12 includes four business interfaces, and business link 13 includes three business interfaces.

[0063] The prior art sets static rules for each business interface in the business system, obtains interface data of each business interface through a monitoring unit, analyzes the obtained interface data, and obtains indicator data, such as transaction volume. The obtained transaction volume is compared with the corresponding transaction static rules. When it is determined that the transaction volume exceeds the transaction static rules, it is determined that abnormal data exists in the corresponding business interface.

[0064] However, when determining that there is abnormal data in a business interface, the existing technical methods are difficult to accurately determine the abnormal interface that causes the abnormal data, which affects the efficiency of locating the abnormal interface, further affects the normal handling of the business, and reduces the user experience.

[0065] The method for locating an abnormal interface provided by the present application obtains the interface data of each interface in the business system at every preset period, determines the target interface with abnormal data in the business system according to the interface data of each interface in the current preset period, and determines the upstream interface of the target interface, determines the index data according to the interface data of the target interface in the preset period, determines the differential data according to the index data, determines the index confidence interval according to the differential data, compares the index data of the target interface in the current preset period with the index confidence interval, and when it is determined that the index data exceeds the index confidence interval, determines the distribution data of the target interface according to the downstream index data of the target interface. When it is determined that the distribution data of the target interface indicates that the distribution does not deviate, the distribution data of the upstream interface is determined according to the downstream index data of the upstream interface. When it is determined that the distribution data of the upstream interface indicates that the distribution does not deviate, it is determined whether the target interface is independent according to the interface data of the target interface in the current preset period, and when it is determined to be independent, the target interface is obtained as an abnormal interface. The present application improves the positioning accuracy and positioning efficiency of the abnormal interface, and further improves the stability and reliability of business handling.

[0066] The abnormal interface positioning method provided in this application is intended to solve the above technical problems in the prior art.

[0067] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0068] Figure 2 Schematic diagram of the process of locating the abnormal interface provided by this application Figure 1 ,like Figure 2 As shown, the method includes:

[0069] S201. Obtain interface data of each interface in the business system at every preset period, and determine a target interface with abnormal data according to the interface data in the current preset period.

[0070] More specifically, the interface data of each interface in the service system is acquired at every preset period, and the target interface with abnormal data and the upstream interface of the target interface are determined according to the interface data in the current preset period.

[0071] In a possible embodiment, interface data of each interface in the business system in the most recent hour is obtained every hour, indicator data corresponding to each interface is determined based on the interface data, and based on the interface data of each interface in the most recent hour, the interface in the business system with abnormal data is determined to be the target interface, and the upstream interface corresponding to the target interface is determined.

[0072] Optionally, the indicator data includes but is not limited to transaction volume, time consumption data, success rate data, etc. The method for determining the indicator data of each interface based on the interface data in this embodiment includes but is not limited to business tracking points, log generation and log organization methods.

[0073] Exemplarily, the historical interface data of any interface between the previous day and the previous hour is obtained, the index range is calculated based on the historical interface data, and the index data corresponding to the interface in the last hour is compared with the index range to determine whether the index data is within the index range. When the index data is within the index range, it is determined that there is no abnormal data in the interface data corresponding to the interface. When the index data exceeds the index range, it is determined that there is abnormal data in the interface data corresponding to the interface, and the interface is determined to be the target interface. The upstream interface of the target interface is determined based on the business link in the database. Among them, the calculation step length in the calculation process based on the interface data in this embodiment is 5 seconds.

[0074] S202: determining an indicator confidence interval according to the indicator data of the target interface in a historical time period, and determining distribution data of the target interface when the indicator data in a current preset period exceeds the indicator confidence interval.

[0075] More specifically, the corresponding differential data is determined based on the indicator data of the target interface in the historical time period, and the indicator confidence interval is determined based on the differential data; if the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, the distribution data of the target interface is determined based on the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period.

[0076] In a possible embodiment, the interface data of the target interface in each preset period from the previous day to the previous hour is determined, the corresponding transaction volume is obtained according to the interface data, and the differential calculation is performed according to the transaction volume in two adjacent preset periods to obtain the differential data of the transaction volume of the target interface in any two adjacent preset periods from the previous day to the previous hour, the mean and standard deviation are calculated according to each differential data, and the transaction volume confidence interval corresponding to the target interface is determined according to the mean and standard deviation. Determine whether the transaction volume of the target interface in the last hour is within the transaction volume confidence interval. If it is within the transaction volume confidence interval, obtain the downstream indicator data of the output of the target interface, and determine the distribution data of the target interface according to the downstream indicator data. Among them, the calculation step length of the differential calculation in this embodiment is 5 seconds.

[0077] Optionally, determine the historical downstream indicator data of the target interface within the historical time period and the current downstream indicator data of the target interface within the current time period; determine the historical normalized standard interval of the target interface based on the historical downstream indicator data of the target interface, and calculate the current normalized standard deviation of the target interface based on the current downstream indicator data of the target interface; determine the distribution data of the target interface based on the current normalized standard deviation of the target interface and the historical normalized standard interval.

[0078] In a possible embodiment, when the indicator data of the target interface in the last hour does not exceed the indicator confidence interval, the historical downstream transaction volume transmitted to the downstream by the target interface from the previous day to the previous hour is determined, and the historical downstream transaction volume of the target interface is normalized to obtain the historical mean vector μ transmitted downstream by the target interface 11 , calculate the historical normalized standard deviation σ of the target interface's downstream transmission based on the historical mean vector 11 Based on the historical normalized standard deviation, the historical normalized standard interval of the target interface to downstream transmission is determined as -σ 11 ~σ 11 In addition, the current downstream transaction volume transmitted by the target interface to the downstream in the last hour is obtained, and the current downstream transaction volume is normalized to obtain the current mean vector μ transmitted by the target interface to the downstream 12 , calculate the current normalized standard deviation σ of the target interface's downstream transmission based on the current mean vector 12 , compare the current normalized standard deviation with the historical normalized standard interval. When determining that the indicator data of the target interface is within the indicator confidence interval, this embodiment further performs normalization analysis on the historical downstream indicator data of the downstream interface of the target interface to determine the historical normalized standard interval, and obtains the current normalized standard deviation by performing normalization analysis on the current downstream indicator data. By determining whether the current normalized standard deviation is within the historical normalized standard interval, it is further determined whether the target interface is an abnormal interface, thereby improving the accuracy of locating abnormal interfaces and further improving the reliability and stability of business handling.

[0079] Optionally, when the current normalized standard deviation of the target interface is not within the corresponding historical normalized standard interval, it is determined that the distribution data of the target interface indicates that the distribution is deviated; when the current normalized standard deviation of the target interface is within the corresponding historical normalized standard interval, it is determined that the distribution data of the target interface indicates that the distribution is not deviated.

[0080] In a possible embodiment, when the distribution data of the target interface indicates a distribution deviation, the target interface is determined to be an abnormal interface. This embodiment locates the target interface as an abnormal interface when the distribution data of the target interface determines that the distribution deviation is indicated, thereby improving the accuracy of locating the abnormal interface and further enhancing the reliability and stability of the smooth handling of the business.

[0081] S203: When the distribution data of the target interface indicates that the distribution is not deviated, determine the distribution data of the upstream interface according to the downstream indicator data of the upstream interface.

[0082] More specifically, when the distribution data of the target interface indicates that the distribution is not deviated, the historical downstream indicator data of the upstream interface in the historical time period and the current downstream indicator data of the upstream interface in the current time period are obtained; the distribution data of the upstream interface is determined based on the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface.

[0083] In a possible embodiment, when the distribution data of the target interface indicates that the distribution is not deviated, the upstream interface of the target interface is determined, the historical downstream transaction volume transmitted to the downstream by the upstream interface from the previous day to the previous hour is determined, and the historical downstream transaction volume of the upstream interface is normalized to obtain the historical mean vector μ transmitted from the upstream interface to the downstream 21 , the historical normalized standard deviation of the upstream interface to downstream transmission is calculated based on the historical mean vector as σ 21 Based on the historical normalized standard deviation of the upstream interface, the historical normalized standard interval of the upstream interface to the downstream is determined as -σ 21 ~σ 21 In addition, the current downstream transaction volume transmitted from the upstream interface to the downstream in the last hour is obtained, and the current downstream transaction volume is normalized to obtain the current mean vector μ transmitted from the upstream interface to the downstream 22 , calculate the current normalized standard deviation σ of the upstream interface to the downstream according to the current mean vector of the upstream interface 22 , compare the current normalized standard deviation corresponding to the upstream interface with the historical normalized standard range.

[0084] Exemplarily, when the current normalized standard deviation of the upstream interface is not within the corresponding historical normalized standard interval, it is determined that the distribution data of the upstream interface indicates that the upstream interface distribution is deviated; when the current normalized standard deviation of the upstream interface is within the corresponding historical normalized standard interval, it is determined that the distribution data of the upstream interface indicates that the upstream interface distribution is not deviated.

[0085] Exemplarily, when the distribution data of the upstream interface indicates that the upstream interface distribution is deviated, the upstream interface is determined to be an abnormal interface. This embodiment calculates the corresponding historical normalized standard interval and current normalized standard deviation based on the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface, and determines whether the upstream interface is an abnormal interface by determining whether the current normalized standard deviation is within the historical normalized standard interval, thereby realizing abnormal location of the upstream interface of the target interface, improving the accuracy of locating the abnormal interface, and further enhancing the reliability and stability of smooth business handling.

[0086] S204: When the distribution data of the upstream interface indicates that the distribution is not deviated, determine whether the target interface is independent, and when it is determined to be independent, determine that the target interface is an abnormal interface.

[0087] More specifically, when the distribution data of the upstream interface indicates that the distribution is not deviated, it is determined whether the target interface is independent according to the interface data of the target interface in the current preset period, and when it is determined to be independent, the target interface is determined to be an abnormal interface.

[0088] Optionally, when the distribution data of the upstream interface indicates that the distribution is not deviated, the interface data of the target interface in the current time period is obtained, and the data volume of the interface data of the target interface as the initial interface is determined based on the interface data; it is determined whether the data volume of the interface data of the target interface as the initial interface exceeds a preset quantity; if the data volume of the interface data of the target interface as the initial interface exceeds a preset quantity, the target interface is determined to be independent.

[0089] In a possible embodiment, when the distribution data of the upstream interface indicates that the upstream interface distribution is not deviated, the business link data of the target interface in the last hour is determined according to the business link, and the number of interface data corresponding to the target interface as the initial interface is determined from the multiple interface data in the above business link data, and it is determined whether the data volume exceeds the preset number. When it is determined that it exceeds the preset number, the target interface is determined to be independent. In this embodiment, when the upstream interface distribution is not deviated, the number of interface data related to the target interface as the initial interface in the current preset period is determined, so as to determine whether the target interface is independent, and the target interface is further analyzed, thereby improving the accuracy of determining whether the target interface is an abnormal interface, and further enhancing the reliability and stability of the smooth handling of business.

[0090] Exemplarily, when it is determined that the amount of interface data corresponding to the target interface as the initial interface does not exceed a preset amount, it is determined that the target interface is not independent. At this time, it is determined again based on the service link whether there is an upstream interface for the target interface. When it is determined that there is still an upstream interface, the upstream interface is used as the target interface to perform the analysis of step S201; when it is determined that there is no upstream interface, it is determined that the service link is abnormal.

[0091] Optionally, when the distribution data of the upstream interface indicates that the distribution is deviated, the branch interface of the upstream interface is determined; the distribution data of the branch interface is determined according to the historical upstream indicator data of the branch interface in the historical time period and the current upstream indicator data in the current time period; when the distribution data of the branch interface indicates that the distribution is not deviated, the upstream interface is determined to be an abnormal interface; otherwise, the branch interface is determined to be an abnormal interface. Wherein, the branch interface is the downstream interface other than the target interface when the upstream interface transmits data to the downstream.

[0092] In a possible embodiment, when the distribution data of the upstream interface indicates that the upstream interface distribution is deviated, the branch interface of the upstream interface is determined according to the service link, and the historical upstream transaction volume received by the branch interface from the previous day to the previous hour, as well as the current upstream transaction volume received by the branch interface in the last hour, are determined. For the branch interface of the upstream interface, the historical upstream transaction volume of the branch interface is normalized to obtain the historical mean vector μ received by the branch interface 31 , the historical normalized standard deviation received by the branch interface is calculated based on the historical mean vector as σ 31 Based on the historical normalized standard deviation of the branch interface, the historical normalized standard interval received by the branch interface is determined as -σ 31 ~σ 31 In addition, the current upstream transaction volume received by the branch interface in the last hour is obtained, and the current upstream transaction volume is normalized to obtain the current mean vector μ received by the branch interface 32 , calculate the current normalized standard deviation σ received by the branch interface according to the current mean vector of the branch interface 32 , compare the current normalized standard deviation corresponding to the branch interface with the historical normalized standard interval.

[0093] Exemplarily, when the current normalized standard deviation of the branch interface is not within the corresponding historical normalized standard interval, it is determined that the distribution data of the branch interface indicates that the branch interface distribution is deviated, and the branch interface is determined to be an abnormal interface.

[0094] Exemplarily, when the current normalized standard deviation of the branch interface is within the corresponding historical normalized standard interval, it is determined that the distribution data of the branch interface indicates that the branch interface distribution is not deviated, and at this time, the upstream interface corresponding to the branch interface is determined to be an abnormal interface. This embodiment calculates the historical normalized standard interval and the current normalized standard deviation received by the branch interface based on the historical upstream indicator data of the branch interface and the current upstream indicator data of the branch interface. By determining whether the current normalized standard deviation is within the historical normalized standard interval, it is determined whether the branch interface is an abnormal interface, thereby realizing the abnormal location of the branch interface when the upstream interface distribution is not deviated, improving the accuracy of locating the abnormal interface, and further enhancing the reliability and stability of the smooth handling of business.

[0095] The method for locating an abnormal interface provided in an embodiment of the present application, when determining that abnormal data exists in the interface data of any interface in a business link, further analyzes the distribution data of the target interface with the abnormal data, the upstream interface of the target interface, and the branch interface of the upstream interface in sequence, so as to more accurately locate the abnormal interface, thereby improving the efficiency and accuracy of locating the abnormal interface and further improving the stability and reliability of business processing.

[0096] Figure 3 Schematic diagram of the process of locating the abnormal interface provided by this application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, a method for locating an abnormal interface is described in detail, and the method includes:

[0097] S301. Obtain interface data of each interface at every preset period, and determine a target interface and an upstream interface of the target interface according to the interface data in the current preset period.

[0098] More specifically, the interface data of each interface in the business system within the last hour is obtained every hour, and whether there is abnormal data is determined based on the data of each interface in the last hour. When it is determined that there is abnormal data, the target interface corresponding to the abnormal data is determined, and the upstream interface corresponding to the target interface is determined.

[0099] Optionally, the method for determining abnormal data from interface data in this embodiment has similar implementation principles and technical effects to the method for setting static thresholds in the prior art, and is not described in detail in this embodiment.

[0100] S302: Determine an indicator confidence interval based on indicator data of the target interface within a historical time period.

[0101] More specifically, determine the transaction volume of the target interface from the previous day to the previous hour, perform differential calculations based on each transaction volume, obtain multiple corresponding differential data values, calculate the corresponding mean μ and standard deviation σ based on the multiple differential data values, and obtain the corresponding indicator confidence interval of (μ-σ) to (μ+σ). Determine the transaction volume of the target interface in the last minute.

[0102] S303: Determine whether the indicator data in the current preset period is within the indicator confidence interval.

[0103] More specifically, it is determined whether the transaction volume of the target interface in the most recent minute is within a confidence interval.

[0104] Optionally, when it is determined that the indicator data in the current preset period is within the indicator confidence interval, step S304 is executed; when it is determined that the indicator data in the current preset period is not within the indicator confidence interval, step S305 is executed.

[0105] S304: Determine the upstream interface of the target interface, and update the upstream interface to the target interface for analysis.

[0106] More specifically, the upstream interface of the target interface is determined according to the service link, the upstream interface is used as the target interface, and step S301 is executed.

[0107] S305: Determine the distribution data of the target interface according to the downstream indicator data of the target interface, and determine whether it indicates that the distribution of the target interface is deviated.

[0108] More specifically, the historical downstream transaction volume transmitted downstream by the target interface from the previous day to the previous hour is determined, and the current downstream transaction volume transmitted downstream by the target interface in the last hour is determined, and the corresponding historical normalized standard deviation (e.g., 1) is calculated according to the historical downstream transaction volume corresponding to the target interface, so that the corresponding historical normalized standard interval is -1 to 1. The corresponding current normalized standard deviation is calculated according to the current downstream transaction volume corresponding to the target interface, and the distribution data of the target interface is determined by comparing the current normalized standard deviation of the target interface with the historical normalized standard interval.

[0109] Exemplarily, if the current normalized standard deviation corresponding to the target interface is 0.5, it is determined that the current normalized standard deviation is within the historical normalized standard interval, and the target interface distribution does not deviate.

[0110] Exemplarily, if the current normalized standard deviation corresponding to the target interface is 1.5, it is determined that the current normalized standard deviation is not within the historical normalized standard interval, and the target interface distribution is deviated.

[0111] Optionally, when it is determined that the distribution data of the target interface indicates that the target interface distribution is deviated, the target interface is determined to be an abnormal interface; when it is determined that the distribution data of the target interface indicates that the target interface distribution is not deviated, step S306 is executed.

[0112] S306: Determine the distribution data of the upstream interface according to the downstream indicator data of the upstream interface, and determine whether it indicates that the upstream interface distribution is deviated.

[0113] More specifically, when determining that the target interface distribution is not deviated, further determine the historical downstream transaction volume transmitted to the downstream by the upstream interface from the previous day to the previous hour, and calculate the corresponding historical normalized standard deviation (e.g., 0.9) based on the historical downstream transaction volume corresponding to the upstream interface, so as to obtain the corresponding historical normalized standard interval of -0.9 to 0.9. Determine the current downstream transaction volume transmitted to the downstream by the upstream interface in the last hour, calculate the corresponding current normalized standard deviation based on the current downstream transaction volume corresponding to the upstream interface, and determine the distribution data of the upstream interface by comparing the current normalized standard deviation of the upstream interface with the historical normalized standard interval.

[0114] Exemplarily, if the current normalized standard deviation corresponding to the upstream interface is 0.5, it is determined that the current normalized standard deviation is within the historical normalized standard interval, and the upstream interface distribution does not deviate.

[0115] Exemplarily, if the current normalized standard deviation corresponding to the upstream interface is 1.5, it is determined that the current normalized standard deviation is not within the historical normalized standard interval, and the upstream interface distribution is deviated.

[0116] Optionally, when it is determined that the distribution data of the upstream interface indicates that the upstream interface distribution is deviated, step S307 is executed; when it is determined that the distribution data of the upstream interface indicates that the upstream interface distribution is not deviated, step S308 is executed.

[0117] S307: Determine distribution data of the branch interface according to the upstream indicator data of the branch interface of the upstream interface.

[0118] More specifically, when determining that the distribution of the upstream interface is not deviated, determine that the downstream interface other than the target interface during the transmission from the upstream interface to the downstream is a branch interface. Determine the historical upstream transaction volume transmitted by the upstream interface received by the branch interface from the previous day to the previous hour, and calculate the corresponding historical normalized standard deviation (e.g., 0.8) based on the historical upstream transaction volume corresponding to the branch interface, so as to obtain the corresponding historical normalized standard interval of -0.8 to 0.8. Determine the current upstream transaction volume received by the branch interface in the last hour, and calculate the corresponding current normalized standard deviation based on the current upstream transaction volume corresponding to the branch interface. The distribution data of the branch interface is determined by comparing the current normalized standard deviation of the branch interface with the historical normalized standard interval.

[0119] Exemplarily, if the current normalized standard deviation corresponding to the branch interface is 0.5, it is determined that the current normalized standard deviation is within the historical normalized standard interval, and the branch interface distribution does not deviate.

[0120] Exemplarily, if the current normalized standard deviation corresponding to the branch interface is 1.5, it is determined that the current normalized standard deviation is not within the historical normalized standard interval, and the branch interface distribution is deviated.

[0121] S308: Determine whether the target interface is independent.

[0122] Optionally, when it is determined that the upstream interface distribution is not deviated, the transaction link data of the target interface in the last hour is obtained, and the data volume of the target interface as the initial interface is determined based on multiple interface data in the transaction link data, and it is determined whether the data volume exceeds a preset quantity. When it is determined that it does not exceed the preset quantity, it is determined that the target interface is not independent, and step S304 is executed at this time.

[0123] Optionally, when it is determined that the above data volume exceeds a preset amount, the target interface is determined to be independent and the target interface is determined to be an abnormal interface.

[0124] S309: Determine an abnormal interface according to the distribution data of the branch interface.

[0125] Optionally, when it is determined that the distribution data of the branch interface indicates that the distribution of the branch interface is not deviated, the upstream interface is determined to be an abnormal interface; when it is determined that the distribution data of the target interface indicates that the distribution of the target interface is deviated, the branch interface is determined to be an abnormal interface.

[0126] The method for locating abnormal interfaces provided in the embodiment of the present application realizes accurate locating of abnormal interfaces by analyzing the target interface with abnormal data, the upstream interface of the target interface, and the branch interface corresponding to the upstream interface, thereby improving the efficiency of locating abnormal interfaces and further improving the stability and reliability of business processing.

[0127] Figure 4 This is a schematic diagram of the structure of the abnormal interface positioning device provided by this application. Figure 4 As shown, the abnormal interface positioning device 40 provided in this embodiment includes:

[0128] The acquisition module 401 is used to acquire the interface data of each interface in the business system at every preset period, and determine the target interface with abnormal data and the upstream interface of the target interface according to the interface data in the current preset period;

[0129] Processing module 402 is used to determine the corresponding differential data according to the indicator data of the target interface in the historical time period, and determine the indicator confidence interval according to the differential data; if the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, the distribution data of the target interface is determined according to the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period;

[0130] The processing module 402 is further configured to determine the distribution data of the upstream interface according to the downstream indicator data of the upstream interface when the distribution data of the target interface indicates that the distribution is not deviated;

[0131] The processing module 402 is further used to determine whether the target interface is independent according to the interface data of the target interface in the current preset period when the distribution data of the upstream interface indicates that the distribution is not deviated, and when it is determined to be independent, determine that the target interface is an abnormal interface.

[0132] Optionally, the processing module 402 is further configured to determine historical downstream indicator data of the target interface in a historical time period, and current downstream indicator data of the target interface in a current time period;

[0133] Determine the historical normalized standard interval of the target interface according to the historical downstream indicator data of the target interface, and calculate the current normalized standard deviation of the target interface according to the current downstream indicator data of the target interface;

[0134] The distribution data of the target interface is determined according to the current normalized standard deviation and the historical normalized standard interval of the target interface.

[0135] Optionally, the processing module 402 is further configured to determine that the distribution data of the target interface indicates a distribution deviation when the current normalized standard deviation of the target interface is not within the corresponding historical normalized standard interval;

[0136] When the current normalized standard deviation of the target interface is within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates that the distribution does not deviate;

[0137] The method further includes: when the distribution data of the target interface indicates a distribution deviation, determining the target interface as an abnormal interface.

[0138] Optionally, the processing module 402 is further used to obtain historical downstream indicator data of the upstream interface in a historical time period, and current downstream indicator data of the upstream interface in a current time period;

[0139] The distribution data of the upstream interface is determined according to the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface.

[0140] Optionally, the processing module 402 is further configured to obtain interface data of the target interface in the current time period when the distribution data of the upstream interface indicates that the distribution is not deviated, and determine the data volume of the interface data of the target interface as the initial interface according to the interface data;

[0141] Determine whether the data volume of the interface data of the target interface as the initial interface exceeds a preset amount;

[0142] If the data volume of the interface data of the target interface as the initial interface exceeds a preset amount, it is determined that the target interface is independent.

[0143] Optionally, the processing module 402 is further configured to determine a branch interface of the upstream interface when the distribution data of the upstream interface indicates a distribution deviation;

[0144] Determine distribution data of the branch interface according to historical upstream indicator data of the branch interface in a historical time period and current upstream indicator data in a current time period;

[0145] When the distribution data of the branch interface indicates that the distribution is not deviated, the upstream interface is determined to be an abnormal interface; otherwise, the branch interface is determined to be an abnormal interface.

[0146] The abnormal interface locating device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0147] Figure 5This is a schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.

[0148] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.

[0149] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0150] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0151] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0152] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0153] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0154] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0155] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0156] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0157] The division of units is only a logical function division, and there may be other divisions 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 an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0158] The units described 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.

[0159] In addition, each functional unit in each embodiment of the present invention 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.

[0160] If the function 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 storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0161] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0162] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0163] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for locating an abnormal interface, characterized in that: include: Obtaining interface data of each interface in the business system at every preset period, and determining a target interface with abnormal data and an upstream interface of the target interface according to the interface data in the current preset period; Determine corresponding differential data according to the indicator data of the target interface in the historical time period, and determine the indicator confidence interval according to the differential data; If the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, the distribution data of the target interface is determined according to the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period; When the distribution data of the target interface indicates that the distribution is not deviated, determining the distribution data of the upstream interface according to the downstream indicator data of the upstream interface; When the distribution data of the upstream interface indicates that the distribution is not deviated, it is determined whether the target interface is independent according to the interface data of the target interface in the current preset period, and when it is determined to be independent, the target interface is determined to be an abnormal interface.

2. The method according to claim 1, characterized in that: Determining the distribution data of the target interface according to the downstream indicator data of the target interface includes: Determine historical downstream indicator data of the target interface in a historical time period, and current downstream indicator data of the target interface in a current time period; Determine the historical normalized standard interval of the target interface according to the historical downstream indicator data of the target interface, and calculate the current normalized standard deviation of the target interface according to the current downstream indicator data of the target interface; The distribution data of the target interface is determined according to the current normalized standard deviation of the target interface and the historical normalized standard interval.

3. The method according to claim 2, characterized in that Determining the distribution data of the target interface according to the current normalized standard deviation of the target interface and the historical normalized standard interval specifically includes: When the current normalized standard deviation of the target interface is not within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates a distribution deviation; When the current normalized standard deviation of the target interface is within the corresponding historical normalized standard interval, determining that the distribution data of the target interface indicates that the distribution does not deviate; The method further includes: when the distribution data of the target interface indicates a distribution deviation, determining that the target interface is an abnormal interface.

4. The method according to any one of claims 1 to 3, characterized in that: Determining the distribution data of the upstream interface according to the downstream indicator data of the upstream interface includes: Acquire historical downstream indicator data of the upstream interface in a historical time period, and current downstream indicator data of the upstream interface in a current time period; The distribution data of the upstream interface is determined according to the historical downstream indicator data of the upstream interface and the current downstream indicator data of the upstream interface.

5. The method according to claim 4, characterized in that Determining whether the target interface is an independent interface according to the interface data of the target interface in the current preset period includes: When the distribution data of the upstream interface indicates that the distribution is not deviated, acquiring the interface data of the target interface in the current time period, and determining the data volume of the interface data of the target interface as the initial interface according to the interface data; Determine whether the amount of interface data of the target interface as the initial interface exceeds a preset amount; If the data volume of the interface data of the target interface as the initial interface exceeds a preset amount, it is determined that the target interface is independent.

6. The method according to claim 4, characterized in that Also includes: When the distribution data of the upstream interface indicates a distribution deviation, determining a branch interface of the upstream interface; Determining distribution data of the branch interface according to historical upstream indicator data of the branch interface in a historical time period and current upstream indicator data in a current time period; When the distribution data of the branch interface indicates that the distribution is not deviated, the upstream interface is determined to be an abnormal interface; otherwise, the branch interface is determined to be an abnormal interface.

7. A device for locating an abnormal interface, characterized in that: include: An acquisition module, used to acquire interface data of each interface in the business system at every preset period, and determine a target interface with abnormal data and an upstream interface of the target interface according to the interface data in the current preset period; A processing module, used to determine corresponding differential data according to the indicator data of the target interface in a historical time period, and determine an indicator confidence interval according to the differential data; If the indicator data of the target interface in the current preset period exceeds the indicator confidence interval, the distribution data of the target interface is determined according to the downstream indicator data of the target interface, and the distribution data of the target interface is the indicator data distribution information of the target interface accessing each downstream interface in the historical time period; The processing module is further configured to determine the distribution data of the upstream interface according to the downstream indicator data of the upstream interface when the distribution data of the target interface indicates that the distribution is not deviated; The processing module is also used to determine whether the target interface is independent based on the interface data of the target interface in the current preset period when the distribution data of the upstream interface indicates that the distribution is not deviated, and when it is determined to be independent, determine that the target interface is an abnormal interface.

8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs 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 stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.