Service interface state monitoring method and device, equipment, medium and product

By regularly acquiring and analyzing business interface data, and calculating indicator deviation and status, the problem of cost and complexity of business interface monitoring in complex business scenarios in the existing technology is solved, and more efficient and accurate status monitoring is achieved.

CN119357000APending Publication Date: 2025-01-24BANK OF COMMUNICATIONS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411396302.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the complex business scenarios, the prior art requires the configuration of rules for multiple business interfaces separately, which increases the computing power requirements during deep learning model training and computing, resulting in an increase in the cost and complexity of business interface status monitoring.

Method used

By obtaining each business interface data every preset period, determining the current indicator data and historical indicator data, calculating the indicator range and predicted indicator data, comparing the indicator deviation, and determining the rating data and business interface status based on the deviation, reducing the impact on the business System monitoring needs.

Benefits of technology

It reduces the cost of business interface status monitoring, improves the reliability and accuracy of monitoring, and is suitable for complex business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119357000A_ABST
    Figure CN119357000A_ABST
Patent Text Reader

Abstract

The invention provides a service interface state monitoring method and device, equipment, a medium and a product. The method comprises the following steps: acquiring data of each business interface in each preset period, determining current index data according to the business interface data for each business interface in the current preset period, acquiring historical index data of the business interface in a preset time period before the current preset period, and determining the current index data according to the historical index data; the index range is determined according to the historical index data, so that the current index data is compared with the index range, when the current index data exceeds the index range, predicted index data in the current preset period is calculated according to the historical index data, the current index data is compared with the predicted index data, and the index deviation degree is obtained; and determining grading data of the service interface according to the index deviation degree, and determining the state of the service interface according to the grading data. According to the method provided by the invention, the reliability and accuracy of state monitoring are improved, and the cost of service interface state monitoring is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to a method, device, equipment, medium and product for monitoring the status of a business interface. Background Art

[0002] At present, with the development of information technology, the business systems of enterprises are becoming increasingly complex, and it is necessary to monitor multiple business links and business interfaces in the business systems in order to promptly discover abnormal business interfaces and carry out subsequent repairs.

[0003] The existing technology collects data on business interfaces through deep learning models, configures preset rules for each interface through model training, and uses the trained models to monitor the status of business interfaces.

[0004] However, for complex business scenarios, it is necessary to configure rules for more interfaces separately, which increases the computing power required for deep learning model training and calculation, and further increases the cost of monitoring the status of each business interface in the business system. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, device, medium and product for monitoring the status of a service interface, so as to reduce the cost of monitoring the status of the service interface and improve the reliability and accuracy of the status monitoring.

[0006] In a first aspect, an embodiment of the present application provides a method for monitoring the status of a service interface, including:

[0007] Acquire data of each service interface at every preset period, and determine current indicator data of the corresponding service interface based on the data of each service interface in the current preset period;

[0008] Determine the historical indicator data of each business interface within a preset time period before the current preset period, and determine the indicator range of the corresponding business interface according to the historical indicator data of each business interface;

[0009] When it is determined that the current indicator data of any business interface exceeds the indicator range, the predicted indicator data within the current preset period is determined based on the historical indicator data corresponding to the business interface, and the current indicator data of the business interface is compared with the predicted indicator data to obtain the indicator deviation corresponding to the business interface;

[0010] The grading data corresponding to the business interface is determined according to the indicator deviation, and the status of the business interface is determined according to the grading data.

[0011] Optionally, determining the grading data corresponding to the business interface according to the indicator deviation includes:

[0012] Determine the indicator correction data of the business interface based on the historical indicator data of the business interface, and determine the initial value of the weight data corresponding to the business interface;

[0013] The grading data corresponding to the business interface is determined based on the initial values ​​of the indicator correction data, indicator deviation and weight data.

[0014] Optionally, determining the state of the service interface according to the classification data includes:

[0015] If it is determined that the rated data is within the continuous monitoring range, the business interface corresponding to the rated data is determined to be in an abnormal state, and the business interface corresponding to the rated data is continuously monitored;

[0016] If the rating data is within the normal range, the service interface corresponding to the rating data is determined to be in a normal state, and monitoring of the service interface corresponding to the rating data is stopped;

[0017] If it is determined that the classified data is within the emergency range, the service interface corresponding to the classified data is determined to be in an emergency state, and an alarm message is issued based on the emergency state, and the alarm message is used to prompt the interface to repair the emergency state. Optionally, after determining that the service interface corresponding to the classified data is in an abnormal state, the following steps are included:

[0018] Update the weight data corresponding to the service interface according to the preset attenuation value;

[0019] The status of the service interface in the next preset period is determined according to the updated weight data.

[0020] Optionally, the indicator range of the corresponding business interface is determined according to the historical indicator data of each business interface, including:

[0021] For any service interface, determine whether the historical indicator data of the service interface in the current preset period exceeds a first threshold value, and when it is determined that the historical indicator data exceeds the first threshold value, determine the calculation step length of the service interface to be a first unit value;

[0022] When the historical indicator data of the service interface does not exceed the first threshold, determine whether it is lower than the second threshold, and when it is determined that it is not lower than the second threshold, determine the calculation step of the service interface to be the second unit value; otherwise, determine the calculation step of the service interface to be the third unit value;

[0023] Determine the indicator range of the business interface based on the calculation step corresponding to the business interface.

[0024] Optionally, after determining the indicator range of the business interface based on the calculation step corresponding to the business interface, the following steps are included:

[0025] When it is determined that the current indicator data of the service interface exceeds the indicator range, the predicted indicator data of the service interface within the current preset period is determined based on the calculation step.

[0026] In a second aspect, an embodiment of the present application provides a state monitoring device for a service interface, including:

[0027] An acquisition module, used to acquire data of each service interface at every preset period, and determine current indicator data of the corresponding service interface based on the data of each service interface in the current preset period;

[0028] A processing module, used to determine the historical indicator data of each business interface within a preset time period before the current preset period, and determine the indicator range of the corresponding business interface according to the historical indicator data of each business interface;

[0029] The processing module is further used to determine the predicted index data within the current preset period according to the historical index data corresponding to the business interface when it is determined that the current index data of any business interface exceeds the index range, and compare the current index data of the business interface with the predicted index data to obtain the index deviation corresponding to the business interface;

[0030] The processing module is also used to determine the grading data corresponding to the business interface according to the indicator deviation, and determine the state of the business interface according to the grading data.

[0031] Optionally, the processing module is further used to determine the indicator correction data of the business interface according to the historical indicator data of the business interface, and determine the initial value of the weight data corresponding to the business interface;

[0032] The grading data corresponding to the business interface is determined based on the initial values ​​of the indicator correction data, indicator deviation and weight data.

[0033] Optionally, the processing module is further configured to, if it is determined that the rated data is within the continuous monitoring range, determine that the service interface corresponding to the rated data is in an abnormal state, and continuously monitor the service interface corresponding to the rated data;

[0034] If the rating data is within the normal range, the service interface corresponding to the rating data is determined to be in a normal state, and monitoring of the service interface corresponding to the rating data is stopped;

[0035] If it is determined that the rating data is within the emergency range, the service interface corresponding to the rating data is determined to be in an emergency state, and an alarm message is issued based on the emergency state, and the alarm message is used to prompt the interface to repair the emergency state. Optionally, the processing module is also used to update the weight data corresponding to the service interface according to a preset attenuation value after determining that the service interface corresponding to the rating data is in an abnormal state;

[0036] The status of the service interface in the next preset period is determined according to the updated weight data.

[0037] Optionally, the processing module is further used to determine, for any one of the service interfaces, whether the historical indicator data of the service interface in a current preset period exceeds a first threshold value, and when it is determined that the historical indicator data exceeds the first threshold value, determine the calculation step length of the service interface to be a first unit value;

[0038] When the historical indicator data of the service interface does not exceed the first threshold, determine whether it is lower than the second threshold, and when it is determined that it is not lower than the second threshold, determine the calculation step of the service interface to be the second unit value; otherwise, determine the calculation step of the service interface to be the third unit value;

[0039] Determine the indicator range of the business interface based on the calculation step corresponding to the business interface.

[0040] Optionally, the processing module is also used to determine the indicator range of the business interface based on the calculation step corresponding to the business interface, and when it is determined that the current indicator data of the business interface exceeds the indicator range, determine the predicted indicator data of the business interface within the current preset period based on the calculation step.

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

[0042] Memory stores computer-executable instructions;

[0043] 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.

[0044] 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.

[0045] 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.

[0046] The state monitoring method, device, equipment, medium and product of the service interface provided by the embodiment of the present application obtains the data of each service interface at every preset period, determines the current indicator data of the corresponding service interface based on the data of each service interface in the current preset period, determines the historical indicator data of each service interface in the preset time period before the current preset period, and determines the indicator range of the corresponding service interface according to the historical indicator data of each service interface, thereby comparing the current indicator data with the indicator range. For any service interface, when it is determined that the current indicator data exceeds the indicator range, the predicted indicator data in the current preset period is calculated according to the historical indicator data, thereby comparing the current indicator data of the service interface with the predicted indicator data, and obtaining the indicator deviation corresponding to the service interface, so as to determine the rating data corresponding to the service interface according to the indicator deviation, and determine the state of the service interface according to the rating data. The present application improves the reliability and accuracy of state monitoring and reduces the cost of service interface state monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

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

[0049] Figure 2 Schematic diagram of the process of the state monitoring method of the business interface provided in this application Figure 1 ;

[0050] Figure 3 Schematic diagram of the process of the state monitoring method of the business interface provided in this application Figure 2 ;

[0051] Figure 4 A schematic diagram of the structure of the status monitoring device for the service interface provided by this application;

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

[0053] 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

[0054] 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.

[0055] 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.

[0056] With the development of information technology, the business systems of enterprises are becoming increasingly complex. Business systems usually involve multiple business links and / or multiple business interfaces. In order for the business of the enterprise to operate normally, it is necessary to ensure the normal operation of multiple business links and / or multiple business interfaces.

[0057] 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, a monitoring unit 20 and a repair unit 30. The monitoring unit communicates data with the business system to monitor multiple business links and / or multiple business interfaces in the business system. When it is determined that there is an abnormality in the business link or business interface based on the monitored data, the abnormal information is sent to the repair unit so that the repair unit can promptly repair the relevant abnormal link or abnormal interface, thereby enhancing the reliability and stability of business operation and handling, and improving the user experience of handling business.

[0058] In the process of monitoring the business system through the monitoring unit, the existing technology is to collect a large amount of data from each business interface through a deep learning model for model training, and determine whether each business interface has an abnormality through the trained model. In the process of model training, a large amount of data needs to be trained, which consumes a lot of computing power and increases the monitoring cost. Among them, deep learning models include AI large models, LSTM, ResNet, XGBoost, etc.

[0059] In addition, the existing technology configures the preset standard interval of each business interface according to the experience data of the technicians, and then compares the data of each business interface of the business system monitored by the monitoring unit with the preset standard mean or standard deviation. When it is determined that it is not within the preset standard interval, the corresponding business interface is determined to be abnormal. However, for complex business scenarios, it is necessary to configure preset standard intervals for more interfaces respectively, and during the business operation process, it is necessary to manually adjust the preset standard interval according to the business scenario. The efficiency and accuracy of abnormal interface monitoring are low, which further increases the probability of business operation failures in the business system and affects the user experience.

[0060] The status monitoring method of the service interface provided in the present application can be applicable to the service system, and the service system can be applicable to different network standards, for example, it can be applicable to the global system of mobile communication (GSM), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division synchronous code division multiple access (TD-SCDMA), long term evolution (LTE) system and future 5G and other network standards.

[0061] The state monitoring method of the business interface provided by the present application obtains the data of each business interface at every preset period, determines the current index data of the business interface for the business interface data in the current preset period, determines the index range of the business interface according to the historical index data of the business interface in the preset time period before the current preset period, compares the current index data with the index range, and determines that when the current index data exceeds the index range, determines the predicted index data and index correction data in the current preset period according to the historical index data of the business interface, compares the current index data of the business interface with the predicted index data, obtains the index deviation of the business interface, determines the weight data according to the index correction data, and thus determines the rating data of the business interface according to the index deviation, the index correction data and the weight data, and determines the state of the business interface according to the rating data. The present application confirms the current index data of the business interface multiple times, improves the accuracy of judging the state of the business interface, improves the accuracy and reliability of the state monitoring of the business interface, further improves the stability of business operations, and enhances user experience.

[0062] The method for monitoring the status of a business interface provided in this application is intended to solve the above technical problems of the prior art.

[0063] 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.

[0064] Figure 2 Schematic diagram of the process of the state monitoring method of the business interface provided in this application Figure 1 ,like Figure 2 As shown, the method includes:

[0065] S201. Acquire data of each service interface at every preset period, and determine current indicator data based on data of each service interface in the current preset period.

[0066] More specifically, each service interface data is acquired at every preset period, and the current indicator data of the corresponding service interface is determined based on each service interface data of the current preset period.

[0067] Optionally, the indicator data includes but is not limited to business transaction volume, business time consumption data and business interface processing success rate, etc.

[0068] For example, when the preset cycle is one day, the business interface data of each business interface in the most recent day is obtained every other day. By analyzing the business interface data corresponding to each business interface in the most recent day, the transaction volume corresponding to each business interface in the most recent day is obtained.

[0069] S202: Determine historical indicator data for each business interface, and determine an indicator range for the corresponding business interface based on the historical indicator data.

[0070] More specifically, historical indicator data of each service interface within a preset time period before a current preset period is determined, and an indicator range of the corresponding service interface is determined according to the historical indicator data of each service interface.

[0071] Exemplarily, historical indicator data of each business interface in a time period from the previous month to the previous day is determined, and an indicator range corresponding to the business interface is calculated based on the historical indicator data of each business interface.

[0072] Optionally, for any business interface, determine whether the historical indicator data of the business interface within the current preset period exceeds a first threshold. When it is determined that it exceeds the first threshold, determine the calculation step of the business interface to be a first unit value; when the historical indicator data of the business interface does not exceed the first threshold, determine whether it is lower than a second threshold. When it is determined that it is not lower than the second threshold, determine the calculation step of the business interface to be a second unit value; otherwise, determine the calculation step of the business interface to be a third unit value; determine the indicator range of the business interface based on the calculation step corresponding to the business interface.

[0073] In a possible embodiment, for any business interface, business interface data of the business interface from the previous month to the previous day is obtained, and the historical transaction volume from the previous month to the previous day is determined based on the business interface data from the previous month to the previous day, and it is determined whether the historical transaction volume exceeds a first threshold (e.g., 10,000). When it is determined that it exceeds 10,000, the calculation step size for subsequent analysis of the business interface is determined to be a first unit value (e.g., 1 second).

[0074] Exemplarily, when it is determined that the historical transaction volume does not exceed 10,000, it is determined whether it is lower than a second threshold (eg, 100). When it is determined to be lower than 100, the calculation step for subsequent analysis of the business interface is determined to be a first unit value (eg, 5 seconds).

[0075] Exemplarily, when it is determined that the historical transaction volume does not exceed 10,000 and is not less than 100, the calculation step length for subsequent analysis of the business interface is determined to be a first unit value (eg, 3 seconds).

[0076] In a possible embodiment, based on the 5-second calculation step obtained by the above analysis, a threshold analysis is performed on the business interface data of the business interface from the previous month to the previous day to obtain the transaction volume mean and transaction volume standard deviation corresponding to the business interface, thereby obtaining the transaction volume range of the business interface based on the transaction volume mean and transaction volume standard deviation. For example, when the transaction volume mean is 1000 and the transaction volume standard deviation is 50, the transaction volume range of the business interface is determined to be (1000-50) to (1000+50). This embodiment calculates the calculation step currently corresponding to each business interface through the historical indicator data of each business interface, and calculates the indicator range of the business interface with the obtained calculation step, which improves the calculation accuracy of the business interface with a large transaction volume, and reasonably allocates computing power to reduce the calculation cost of the indicator range, enhances the reliability of the indicator range, and further improves the accuracy and reliability of business interface status monitoring.

[0077] S203: When it is determined that the current indicator data of any business interface exceeds the indicator range, determine the indicator deviation according to the historical indicator data corresponding to the business interface.

[0078] More specifically, when it is determined that the current indicator data of any business interface exceeds the indicator range, the predicted indicator data within the current preset period is determined according to the historical indicator data corresponding to the business interface, and the current indicator data of the business interface is compared with the predicted indicator data to obtain the indicator deviation corresponding to the business interface;

[0079] Optionally, when it is determined that the current indicator data of the service interface exceeds the indicator range, the predicted indicator data of the service interface within the current preset period is determined based on the calculation step.

[0080] In a possible embodiment, for the business interface in the embodiment of step S202, when it is determined that the transaction volume of the business interface in the most recent day is 900 transactions, it is determined that the current transaction volume of the business interface exceeds the transaction volume range. At this time, the business interface data of the business interface in the most recent day is subjected to a time series operator analysis based on the calculation step of 5 seconds calculated according to the above embodiment to obtain the predicted transaction volume of the business interface in the most recent day. The transaction volume of the most recent day is determined based on the business interface data of the most recent day, and the transaction volume of the most recent day is compared with the predicted transaction volume of the most recent day to obtain the transaction volume deviation of the transaction volume of the most recent day relative to the predicted transaction volume. This embodiment calculates the corresponding predicted index data for the business interface whose current index data exceeds the index range with a reasonable calculation step, thereby comparing the actual current index data with the index data to obtain the corresponding deviation, thereby further determining the status of the business interface and improving the reliability of the business interface status monitoring.

[0081] In a possible embodiment, if it is determined that the transaction volume of the service interface in the most recent day is 1000, it is determined that the current transaction volume of the service interface is within the transaction volume range, and at this time, the service interface is determined to be a normal interface.

[0082] S204: Determine the grading data corresponding to the business interface according to the indicator deviation, and determine the state of the business interface according to the grading data.

[0083] More specifically, the rating data corresponding to the service interface is determined according to the indicator deviation, and the state of the service interface is determined according to the rating data.

[0084] Optionally, the indicator correction data of the business interface is determined based on the historical indicator data of the business interface, and the initial value of the weight data corresponding to the business interface is determined; the grading data corresponding to the business interface is determined based on the indicator correction data, the indicator deviation and the initial value of the weight data.

[0085] In a possible embodiment, the initial value of the weight data preset for the business interface is determined, and the indicator correction data of the business interface is determined based on the historical indicator data of the business interface. When it is determined that the historical indicator data exceeds the third correction threshold, the indicator correction data is determined to be 3; when it is determined that the historical indicator data exceeds the second correction threshold but does not exceed the third correction threshold, the indicator correction data is determined to be 2; when it is determined that the historical indicator data exceeds the first correction threshold but does not exceed the third correction threshold, the indicator correction data is determined to be 1.

[0086] In a possible embodiment, the deviation data is determined according to the indicator deviation of the business interface. For example, when it is determined that the indicator deviation of the business interface exceeds 10%, the corresponding deviation data is determined to be 3; when it is determined that the indicator deviation of the business interface exceeds 5% and does not exceed 10%, the corresponding deviation data is determined to be 2; when it is determined that the indicator deviation of the business interface exceeds 2% and does not exceed 5%, the corresponding deviation data is determined to be 1; when it is determined that the indicator deviation of the business interface exceeds 2% and does not exceed 1%, the corresponding deviation data is determined to be 0.5.

[0087] Optionally, the rating data corresponding to the business interface is determined based on the indicator correction data, deviation data and weight data corresponding to the business interface.

[0088] In a possible embodiment, when the historical transaction volume of the business interface from the previous month to the previous day is 1000, and the third correction threshold is 900, the corresponding index correction data is determined to be 3, and the initial value of the weight data corresponding to the business interface is determined (e.g., 1). When the index deviation of the business interface is determined to be 7%, the deviation data is determined to be 2, and the rating data corresponding to the business interface is determined to be 1×2×3=6 based on the index correction data, deviation data and weight data. This embodiment determines the index correction data, deviation data and weight data corresponding to the business interface based on the historical index data of the business interface, and calculates the rating data, and realizes the update and correction of the corresponding index correction data and deviation data based on the historical index data, thereby continuously correcting the rating data in different preset periods, improving the reliability of the rating data, and updating the business interface status in the current preset period according to the corrected rating data, further enhancing the reliability of the business interface status monitoring results.

[0089] Optionally, if it is determined that the rated data is within the continuous monitoring range, the business interface corresponding to the rated data is determined to be in an abnormal state, and the business interface corresponding to the rated data is continuously monitored; if the rated data is within the normal range, the business interface corresponding to the rated data is determined to be in a normal state, and monitoring of the business interface corresponding to the rated data is stopped; if it is determined that the rated data is within the emergency range, the business interface corresponding to the rated data is determined to be in an emergency state, and an alarm message is issued based on the emergency state, and the alarm message is used to prompt the interface to repair the emergency state.

[0090] Optionally, when the rating data of the service interface is within the continuous monitoring range (not less than 1 and less than 3), the service interface is determined to be in an abnormal state, and the service interface is continuously monitored.

[0091] Optionally, when the rating data of the service interface is within a normal range (not less than 0 and less than 1), the service interface is determined to be in a normal state, and continuous monitoring of the service interface is stopped.

[0092] Optionally, when the rating data of the service interface is within the emergency range (not less than 3), the service interface is determined to be in an emergency state, and an alarm message is issued based on the emergency state, so as to repair the service interface in the emergency state through the alarm message. This embodiment determines whether to continuously monitor the service interface through the rating data of the service interface, promptly removes the service interface in the normal state from the monitoring area, promptly releases the monitoring computing power, improves the monitoring efficiency and stability of each service interface in the monitoring area, and enhances the monitoring and management effect of service interfaces in different states by promptly maintaining continuous monitoring of service interfaces in abnormal states and repairing service interfaces in emergency states.

[0093] Optionally, after determining that the service interface corresponding to the rating data is in an abnormal state, the weight data corresponding to the service interface is updated according to a preset attenuation value; and the state of the service interface in the next preset period is determined according to the updated weight data.

[0094] In a possible embodiment, after determining that any service interface in the current preset period is in an abnormal state, the preset attenuation degree is determined to be 0.9, and the weight data of the service interface in the monitoring process of the next preset period is determined according to the preset attenuation degree, that is, the calculation formula of the weight data of the next preset period is C 下一预设周期 =1.1+(C 当前预设周期 -1)×0.9, where the value of the weight data does not exceed a preset threshold (e.g., 2). This embodiment improves the monitoring reliability of the business interface by updating the weight data in the subsequent monitoring process for the business interface in an abnormal state. By continuously monitoring the business interface in an abnormal state, memory monitoring of the business interface in an abnormal state during continuous monitoring is achieved, and attention is continuously accumulated so that when the business interface changes to an emergency state, it can be detected and repaired in time to avoid the business interface being unable to process business data and causing business failures.

[0095] The state monitoring method of the business interface provided in the embodiment of the present application compares the current indicator data of the business interface with the calculated indicator range. When it is determined that the indicator range is exceeded, the indicator deviation between the current indicator data and the predicted indicator data is further determined, and the classification data is calculated according to the indicator deviation to obtain the business interface state corresponding to the classification data. According to the business interface in the abnormal state, further monitoring and management for the next preset period are performed, the monitoring of the business interface in the abnormal state is strengthened, the probability of the business interface failing to process business data normally is reduced, and the user experience is enhanced.

[0096] Figure 3 Schematic diagram of the process of the state monitoring method of the business interface provided in this application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, for any service interface, a method for monitoring the status of the service interface is described in detail, and the method includes:

[0097] S301. Obtain business interface data of a business interface within a current preset period to obtain current indicator data.

[0098] More specifically, the business interface data of the business interface in the current preset period is acquired, and the current indicator data of the business interface in the current preset period is determined according to the business interface data in the current business period.

[0099] For example, obtain the business interface data within one minute and determine the current transaction volume corresponding to the business interface data within one minute.

[0100] S302: Determine historical indicator data of the service interface within a preset time period, and determine an indicator range according to the historical indicator data.

[0101] More specifically, historical business interface data of the business interface within a preset time period is determined, historical indicator data is determined based on the historical business interface data, and the corresponding current indicator mean and standard deviation are calculated based on the historical indicator data, thereby obtaining the indicator range.

[0102] For example, determine the historical business interface data of the business interface between the previous month and the previous minute, and obtain the corresponding historical transaction volume based on the historical business interface data. When the historical transaction volume is 10,000 transactions, calculate the transaction volume mean μ and standard deviation σ in the time period from the previous month to the previous minute based on the historical transaction volume, and obtain the transaction volume range corresponding to the business interface as (μ-σ) to (μ+σ).

[0103] S303: Determine whether the current indicator data exceeds the indicator range.

[0104] Exemplarily, when it is determined that the numerical value corresponding to the current transaction volume is between (μ-σ) and (μ+σ), it is determined that the current indicator data does not exceed the indicator range.

[0105] Exemplarily, when it is determined that the numerical value corresponding to the current transaction volume is not between (μ-σ) and (μ+σ), it is determined that the current indicator data exceeds the indicator range.

[0106] S304: When it is determined that the current indicator data exceeds the indicator range, the predicted indicator data is calculated based on the historical indicator data.

[0107] More specifically, when it is determined that the current indicator data exceeds the indicator range, a time series operator analysis is performed on the historical indicator data of the business interface to calculate the degree of deviation of the business interface through the time series operator to obtain predicted indicator data calculated based on the historical indicator data.

[0108] Exemplarily, when it is determined that the current transaction volume exceeds the transaction volume range, a time series operator analysis is performed on the historical transaction volume of the business interface in the time period from the previous month to the previous minute to obtain the predicted transaction volume.

[0109] Optionally, the time series operator includes but is not limited to a seasonal analysis model.

[0110] S305: When it is determined that the current indicator data does not exceed the indicator range, determine that the business interface is in a normal state.

[0111] Optionally, when it is determined to be a normal state, step S311 is executed.

[0112] S306: Compare the current indicator data with the predicted indicator data to determine the indicator deviation.

[0113] More specifically, after the predicted indicator data is calculated, the current indicator data is compared with the predicted indicator data to obtain the indicator deviation degree of the current indicator data from the predicted indicator data.

[0114] S307. Determine the rating data of the business interface according to the indicator deviation.

[0115] More specifically, the deviation data corresponding to the business interface is determined based on the indicator deviation; the indicator correction data corresponding to the business interface is determined based on the historical indicator data; the weight data is calculated based on the preset attenuation degree; and the rating data is calculated based on the deviation data, indicator correction data and weight data of the business interface.

[0116] In a possible embodiment, when it is determined that the indicator deviation corresponding to the service interface is within a deviation interval of 98%-99%, the deviation data corresponding to the service interface is determined to be 0.5.

[0117] Exemplarily, when it is determined that the indicator deviation corresponding to the business interface is within a deviation range of 90%-95%, the deviation data corresponding to the business interface is determined to be 2.

[0118] In a possible embodiment, when the historical transaction volume of the business interface from the previous month to the previous minute is 10,000 transactions, when it is determined that the historical transaction volume exceeds the third correction threshold, the indicator correction data is determined to be 3.

[0119] In a possible embodiment, it is determined that a preset initial value of the weight data is 1.

[0120] In a possible embodiment, the rating data is calculated as 2×3×1=6 based on the deviation data, the index correction data and the weight data.

[0121] S308: Determine the status of the service interface according to the classification data.

[0122] Optionally, when it is determined that the rating data is not less than 1 and less than 3, the service interface is determined to be in an abnormal state, and the service interface is continuously monitored.

[0123] Optionally, when it is determined that the rating data is not less than 0 and less than 1, the service interface is determined to be in a normal state and the service interface is not monitored.

[0124] Optionally, when it is determined that the rating data is not less than 3, the service interface is determined to be in an emergency state.

[0125] S309: When it is determined that the service interface is in an abnormal state, update the weight data.

[0126] More specifically, when it is determined that the service interface is in an abnormal state, the value of the weight data used in the next minute monitoring of the service interface is calculated and updated, and step S301 is executed after the update.

[0127] S310: When it is determined that the service interface is in an emergency state, an alarm message is issued.

[0128] More specifically, when it is determined that the service interface is in an emergency state, an alarm message is issued to prompt that the service interface needs to be repaired immediately to avoid affecting the normal handling of the business.

[0129] S311. When it is determined to be in a normal state, stop monitoring the service interface.

[0130] The status monitoring method of the business interface provided in the embodiment of the present application obtains the indicator deviation by comparing the current indicator data with the predicted indicator data, thereby determining the deviation data in detail through the specific data of the indicator deviation, and calculating the level data, and refining the detailed status of the current business interface through the value of the level data, thereby enhancing the accuracy and stability of status monitoring, reducing the impact on business processing, and enhancing user experience.

[0131] Figure 4 A schematic diagram of the structure of the status monitoring device for the service interface provided in this application, such as Figure 4 As shown, the service interface status monitoring device 40 provided in this embodiment includes:

[0132] An acquisition module 401 is used to acquire data of each service interface at every preset period, and determine current indicator data of the corresponding service interface based on the data of each service interface in the current preset period;

[0133] Processing module 402, used to determine the historical indicator data of each service interface within a preset time period before the current preset period, and determine the indicator range of the corresponding service interface according to the historical indicator data of each service interface;

[0134] The processing module 402 is further used to determine the predicted index data within the current preset period according to the historical index data corresponding to the business interface when it is determined that the current index data of any business interface exceeds the index range, and compare the current index data of the business interface with the predicted index data to obtain the index deviation corresponding to the business interface;

[0135] The processing module 402 is further used to determine the classification data corresponding to the business interface according to the indicator deviation, and determine the state of the business interface according to the classification data.

[0136] Optionally, the processing module 402 is further used to determine the indicator correction data of the business interface according to the historical indicator data of the business interface, and determine the initial value of the weight data corresponding to the business interface;

[0137] The grading data corresponding to the business interface is determined based on the initial values ​​of the indicator correction data, indicator deviation and weight data.

[0138] Optionally, the processing module 402 is further configured to determine that the service interface corresponding to the rated data is in an abnormal state if it is determined that the rated data is within the continuous monitoring range, and to continuously monitor the service interface corresponding to the rated data;

[0139] If the rating data is within the normal range, the service interface corresponding to the rating data is determined to be in a normal state, and monitoring of the service interface corresponding to the rating data is stopped;

[0140] If it is determined that the classified data is within the emergency range, the business interface corresponding to the classified data is determined to be in an emergency state, and an alarm message is issued based on the emergency state. The alarm message is used to prompt the interface to repair the emergency state.

[0141] Optionally, the processing module 402 is further configured to update the weight data corresponding to the service interface according to a preset attenuation value after determining that the service interface corresponding to the rating data is in an abnormal state;

[0142] The status of the service interface in the next preset period is determined according to the updated weight data.

[0143] Optionally, the processing module 402 is further configured to determine, for any one of the service interfaces, whether the historical indicator data of the service interface in a current preset period exceeds a first threshold value, and when it is determined that the historical indicator data exceeds the first threshold value, determine the calculation step length of the service interface to be a first unit value;

[0144] When the historical indicator data of the service interface does not exceed the first threshold, determine whether it is lower than the second threshold, and when it is determined that it is not lower than the second threshold, determine the calculation step of the service interface to be the second unit value; otherwise, determine the calculation step of the service interface to be the third unit value;

[0145] Determine the indicator range of the business interface based on the calculation step corresponding to the business interface.

[0146] Optionally, processing module 402 is also used to determine the indicator range of the business interface based on the calculation step corresponding to the business interface, and when it is determined that the current indicator data of the business interface exceeds the indicator range, determine the predicted indicator data of the business interface within the current preset period based on the calculation step.

[0147] The service interface status monitoring 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.

[0148] Figure 5 This 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.

[0149] 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.

[0150] 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.

[0151] 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.

[0152] 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.

[0153] 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.

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

[0155] 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.

[0156] 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.

[0157] 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.

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

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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 monitoring the status of a service interface, characterized in that: include: Acquire data of each service interface at every preset period, and determine current indicator data of the corresponding service interface based on the data of each service interface in the current preset period; Determine the historical indicator data of each business interface within a preset time period before the current preset period, and determine the indicator range of the corresponding business interface according to the historical indicator data of each business interface; When it is determined that the current indicator data of any service interface exceeds the indicator range, the predicted indicator data within the current preset period is determined according to the historical indicator data corresponding to the service interface, and the current indicator data of the service interface is compared with the predicted indicator data to obtain the indicator deviation corresponding to the service interface; The grading data corresponding to the service interface is determined according to the indicator deviation, and the state of the service interface is determined according to the grading data.

2. The method according to claim 1, characterized in that Determining the grading data corresponding to the business interface according to the indicator deviation includes: Determine the indicator correction data of the business interface according to the historical indicator data of the business interface, and determine the initial value of the weight data corresponding to the business interface; The grading data corresponding to the business interface is determined according to the indicator correction data, the indicator deviation and the initial value of the weight data.

3. The method according to claim 2, characterized in that Determining the state of the service interface according to the classification data includes: If it is determined that the rated data is within the continuous monitoring range, then determining that the service interface corresponding to the rated data is in an abnormal state, and continuously monitoring the service interface corresponding to the rated data; If the rating data is within a normal range, determining that the service interface corresponding to the rating data is in a normal state, and stopping monitoring the service interface corresponding to the rating data; If it is determined that the classified data is within the emergency range, then the service interface corresponding to the classified data is determined to be in an emergency state, and an alarm message is issued based on the emergency state, wherein the alarm message is used to prompt the interface to repair the emergency state.

4. The method according to claim 3, characterized in that After determining that the service interface corresponding to the rated data is in an abnormal state, the method includes: Update the weight data corresponding to the service interface according to the preset attenuation value; The state of the service interface in the next preset period is determined according to the updated weight data.

5. The method according to claim 1, characterized in that Determine the indicator range of the corresponding business interface based on the historical indicator data of each business interface, including: For any service interface, determine whether the historical indicator data of the service interface in the current preset period exceeds a first threshold, and when it is determined that the historical indicator data exceeds the first threshold, determine the calculation step of the service interface to be a first unit value; When the historical indicator data of the service interface does not exceed the first threshold, determine whether it is lower than the second threshold, and when it is determined that it is not lower than the second threshold, determine the calculation step of the service interface to be a second unit value; otherwise, determine the calculation step of the service interface to be a third unit value; The indicator range of the service interface is determined based on the calculation step corresponding to the service interface.

6. The method according to claim 5, characterized in that After determining the indicator range of the service interface based on the calculation step corresponding to the service interface, the method further includes: When it is determined that the current indicator data of the service interface exceeds the indicator range, the predicted indicator data of the service interface within the current preset period is determined based on the calculation step.

7. A device for monitoring the status of a service interface, characterized in that: include: An acquisition module, used to acquire data of each service interface at every preset period, and determine current indicator data of the corresponding service interface based on the data of each service interface in the current preset period; A processing module, used to determine the historical indicator data of each business interface within a preset time period before the current preset period, and determine the indicator range of the corresponding business interface according to the historical indicator data of each business interface; The processing module is further configured to determine the predicted index data within the current preset period according to the historical index data corresponding to the business interface when it is determined that the current index data of any business interface exceeds the index range, and compare the current index data of the business interface with the predicted index data to obtain the index deviation corresponding to the business interface; The processing module is further used to determine the classification data corresponding to the business interface according to the indicator deviation, and determine the state of the business interface according to the classification data.

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.