Web traffic monitoring method and device

By using the section processing logic and configuration center method in web traffic monitoring, the traffic monitoring policy configuration and monitoring of the HTTP interface is automatically completed, solving the problems of complex manual configuration and easy to miss in the existing technology, and achieving efficient and automated Web traffic monitoring.

CN120223586APending Publication Date: 2025-06-27NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311815652.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In the prior art, web traffic monitoring is done through traditional manual configuration, with a large workload and easy to miss. Each application system iteration needs to be manually configured in time before it is launched, and the process is complicated.

Method used

A web traffic monitoring method is proposed. By obtaining the target interface identification information in the HTTP request based on the section processing logic, it determines whether the target HTTP interface has completed the traffic monitoring policy configuration. If it is not completed, it sends the identification information to the configuration center for policy configuration, and traffic monitoring is performed according to the policy configured by the configuration center.

Benefits of technology

Through tangential programming, business logic is decoupled, multiple iterations and modules are maintained separately, and interface capture and acquisition are automatically completed, manual intervention is reduced, omissions and labor costs are reduced, and automation is improved and system maintenance efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223586A_ABST
    Figure CN120223586A_ABST
Patent Text Reader

Abstract

The invention provides a Web traffic monitoring method and device, and relates to the technical field of computers. The method comprises the following steps: acquiring target interface identification information carried in a received hyper text transfer protocol HTTP request based on section processing logic; according to the target interface identification information, judging whether a target HTTP interface corresponding to the HTTP request completes flow monitoring strategy configuration or not; in response to the fact that the target HTTP interface does not complete the flow monitoring strategy configuration, target interface identification information is sent to a configuration center for flow monitoring strategy configuration; and performing traffic monitoring on the target HTTP interface according to the traffic monitoring strategy configured by the configuration center. The method is realized in a aspect-oriented programming mode, is decoupled from business logic, is convenient to split and iterate for multiple times, conforms to agile development rules, is convenient for engineering management and risk control, automatically completes interface capture and acquisition, avoids manual intervention, reduces omission, reduces labor cost, improves automation degree, and reduces system maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a Web traffic monitoring method and apparatus thereof. Background Art

[0002] A World Wide Web (Web) application is an application that can be accessed via the Web. Web traffic monitoring refers to the process of monitoring and analyzing network traffic in a Web application. It can help website administrators understand the performance and usage of their websites. In related technologies, various application systems are updated and iterated relatively quickly, and there are numerous Hyper Text Transfer Protocol (HTTP) interfaces for each application system. Implementing traffic monitoring through traditional manual configuration methods involves a large amount of work and is prone to omissions. Before each application system is iterated and launched, it is necessary to manually configure the corresponding interface traffic monitoring policy in a timely manner, and the process is relatively complex. Summary of the Invention

[0003] This application aims to solve at least one of the technical problems in the related technologies to some extent.

[0004] To this end, one objective of this application is to propose a Web traffic monitoring method, which obtains target interface identification information carried in a received Hyper Text Transfer Protocol (HTTP) request based on aspect processing logic; determines whether a traffic monitoring policy for a target HTTP interface corresponding to the HTTP request has been configured according to the target interface identification information; in response to the traffic monitoring policy for the target HTTP interface not being configured, sends the target interface identification information to a configuration center for traffic monitoring policy configuration; and performs traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

[0005] A second objective of this application is to propose a Web traffic monitoring apparatus.

[0006] A third objective of this application is to propose an electronic device.

[0007] A fourth objective of this application is to propose a non-transitory computer-readable storage medium.

[0008] A fifth objective of this application is to propose a computer program product.

[0009] To achieve the above object, an embodiment of the first aspect of the present application provides a Web traffic monitoring method, including: obtaining target interface identification information carried in a received Hypertext Transfer Protocol (HTTP) request based on aspect processing logic; determining whether a target HTTP interface corresponding to the HTTP request has completed traffic monitoring policy configuration according to the target interface identification information; in response to the target HTTP interface not having completed traffic monitoring policy configuration, sending the target interface identification information to a configuration center for traffic monitoring policy configuration; and performing traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

[0010] According to an embodiment of the present application, obtaining target interface identification information carried in a received HTTP request based on aspect processing logic includes: obtaining a Uniform Resource Locator (URL) address and a request method carried in the HTTP request based on aspect processing logic; and using the URL address and the request method as the target interface identification information.

[0011] According to an embodiment of the present application, determining whether a target HTTP interface corresponding to an HTTP request has completed traffic monitoring policy configuration according to the target interface identification information includes: obtaining all candidate interface identification information that has completed traffic monitoring configuration from a cache; matching the target interface identification information with each candidate interface identification information to obtain a matching result; in response to the matching result indicating that there is no candidate interface identification information in the cache that is the same as the target interface identification information, determining that the target HTTP interface has not completed traffic monitoring configuration; and in response to the matching result indicating that there is candidate interface identification information in the cache that is the same as the target interface identification information, determining that the target HTTP interface has completed traffic monitoring configuration.

[0012] According to an embodiment of the present application, the Web traffic monitoring method further includes: performing a traffic monitoring operation in response to the target HTTP interface having completed traffic monitoring configuration.

[0013] According to an embodiment of the present application, the Web traffic monitoring method further includes: dynamically adjusting the traffic monitoring policy of the target HTTP interface in response to receiving an update request for the traffic monitoring policy of the target HTTP interface.

[0014] According to an embodiment of the present application, sending the target interface identification information to a configuration center for traffic monitoring policy configuration includes: sending the target interface identification information to the configuration center for traffic monitoring policy configuration through an asynchronous thread pool.

[0015] To achieve the above object, an embodiment of the second aspect of the present application provides a Web traffic monitoring device, including: an acquisition module, configured to obtain target interface identification information carried in a received Hypertext Transfer Protocol (HTTP) request based on aspect processing logic; a judgment module, configured to judge whether a target HTTP interface corresponding to the HTTP request has completed traffic monitoring policy configuration according to the target interface identification information; a configuration module, configured to, in response to the target HTTP interface not having completed traffic monitoring policy configuration, send the target interface identification information to a configuration center for traffic monitoring policy configuration; and a monitoring module, configured to perform traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

[0016] According to an embodiment of the present application, the acquisition module is further configured to: obtain a Uniform Resource Locator (URL) address and a request method carried in the HTTP request based on aspect processing logic; and use the URL address and the request method as the target interface identification information.

[0017] According to an embodiment of the present application, the judgment module is further configured to: obtain all candidate interface identification information that has completed traffic monitoring configuration from a cache; match the target interface identification information with each candidate interface identification information to obtain a matching result; in response to the matching result indicating that there is no candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has not completed traffic monitoring configuration; and in response to the matching result indicating that there is candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has completed traffic monitoring configuration.

[0018] According to an embodiment of the present application, the Web traffic monitoring device further includes: an execution module, configured to perform a traffic monitoring operation in response to the target HTTP interface having completed traffic monitoring configuration.

[0019] According to an embodiment of the present application, the Web traffic monitoring device further includes: an adjustment module, configured to dynamically adjust the traffic monitoring policy of the target HTTP interface in response to receiving an update request for the traffic monitoring policy of the target HTTP interface.

[0020] According to an embodiment of the present application, the configuration module is further configured to: send the target interface identification information to the configuration center for traffic monitoring policy configuration in a manner of an asynchronous thread pool.

[0021] To achieve the above object, an embodiment of the third aspect of the present application provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the Web traffic monitoring method as described in the embodiment of the first aspect of the present application.

[0022] To achieve the above object, an embodiment of the fourth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to implement the Web traffic monitoring method as described in the embodiment of the first aspect of the present application.

[0023] To achieve the above object, an embodiment of the fifth aspect of the present application provides a computer program product, including a computer program, where the computer program, when executed by a processor, implements the Web traffic monitoring method as described in the embodiment of the first aspect of the present application.

[0024] The present application at least achieves the following beneficial effects: The present application is implemented by means of aspect-oriented programming, decoupled from the business logic, facilitating multiple iterations of splitting, separate maintenance of each module, conforming to the rules of agile development, facilitating project management and risk control, and automatically capturing and collecting interfaces, avoiding manual intervention, reducing omissions, reducing labor costs, improving the degree of automation, and reducing system maintenance costs. Description of the Drawings

[0025] The above and / or additional aspects and advantages of the present application will become apparent and understandable from the following description of the embodiments in conjunction with the drawings, where:

[0026] Figure 1 is a schematic diagram of an exemplary implementation manner of a Web traffic monitoring method shown in an embodiment of the present application.

[0027] Figure 2 is a schematic diagram of an exemplary implementation manner of a Web traffic monitoring method shown in an embodiment of the present application.

[0028] Figure 3 is a schematic diagram of a Web traffic monitoring device shown in an embodiment of the present application.

[0029] Figure 4 is a schematic diagram of an electronic device shown in an embodiment of the present application. Detailed Embodiments

[0030] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions from beginning to end. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present application, and should not be construed as a limitation to the present application.

[0031] Figure 1 is a schematic diagram of an exemplary implementation manner of a Web traffic monitoring method shown in the present application, as Figure 1 shown, the Web traffic monitoring method includes the following steps:

[0032] S101, obtain the target interface identification information carried in the received HyperText Transfer Protocol (HTTP) request based on the aspect processing logic.

[0033] Web traffic monitoring can track key information such as the sources, behaviors, and preferences of visitors. These tools can usually provide useful statistical data, such as the number of visitors, page views, access time periods, access devices, conversion rates, and so on. This data can help website administrators understand users' interests and needs and determine corresponding strategies and goals.

[0034] Web traffic monitoring can also help discover potential problems and opportunities. For example, identify the most popular pages and content to optimize the website structure and content; discover pages and processes with low conversion rates to optimize the user experience and shopping experience; analyze search engine rankings and traffic to determine SEO strategies and keyword selection; monitor malicious attacks and abnormal traffic to protect the security and stability of the website; collect and record log behaviors and other functions.

[0035] Aspect-Oriented Programming (AOP) is a programming paradigm that allows developers to define and use cross-cutting logic in an application. Contrary to traditional Object-Oriented Programming (OOP), AOP focuses on functions that span multiple objects and modules. AOP is a continuation of OOP, a hot topic in software development, and an important part of the Spring framework. It is a derivative paradigm of functional programming. Using AOP can isolate various parts of the business logic, thereby reducing the coupling degree between different parts of the business logic, improving the reusability of the program, and at the same time improving the development efficiency.

[0036] A World Wide Web (Web) application is an application that can be accessed via the Web. The greatest advantage of a Web application is that it is very easy for users to access. All a user needs is a browser, without the need to install any other software. The Request Mapping annotation is a very important annotation in Spring MVC, which is used to map HTTP requests to corresponding controller methods. In this application, the aspect processing logic for the Request Mapping annotation is added. The server receives a Hyper Text Transfer Protocol (HTTP) request sent by the client, and based on the aspect processing logic of AOP, obtains the interface identification information carried in the received HTTP request, and uses the identification information carried in the HTTP request as the target interface identification information. Among them, the Uniform Resource Locator (URL) address and the request method carried in the HTTP request can be used as the target interface identification information.

[0037] S102, according to the target interface identification information, determine whether the target HTTP interface corresponding to the HTTP request has completed the traffic monitoring policy configuration.

[0038] Take the interface corresponding to the HTTP request as the target HTTP interface. When an HTTP request is received, the target interface identification information can be extracted from the HTTP request, and the database table or cache can be queried to obtain the monitoring policy configuration of the target HTTP interface. If no matching record is found in the database table or cache, it can be considered that the target HTTP interface has not been configured with a traffic monitoring policy. If a matching record is found in the database table or cache, it can be considered that the target HTTP interface has completed the traffic monitoring policy configuration.

[0039] S103, in response to the target HTTP interface not having completed the traffic monitoring policy configuration, send the target interface identification information to the configuration center for traffic monitoring policy configuration.

[0040] If the target HTTP interface has not completed the traffic monitoring policy configuration, its corresponding target interface identification information can be sent to the API interface of the configuration center or other management systems and wait for a response. The configuration center can be an independent service or a centralized management platform for storing and managing the monitoring policy configuration information of all HTTP interfaces. When the target interface identification information is received, the configuration center can generate traffic monitoring policy configurations through a series of algorithms and rules and save them back to the database.

[0041] S104, perform traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

[0042] Specifically, according to the monitoring strategy configuration information of the configuration center, relevant data of the target HTTP interface can be collected and analyzed, and compared and analyzed with predefined thresholds and rules.

[0043] The following are some monitoring metrics that may be used:

[0044] (1) Request count: Records the total number of requests that the target HTTP interface has processed. This metric can be used to determine the traffic load and access frequency of the target HTTP interface.

[0045] (2) Access rate: Records the average number of requests per second for the target HTTP interface. This metric can be used to detect potential overloads or DDoS attacks and help adjust system resources.

[0046] (3) Response time: Records the total time from receiving an HTTP request to completing the response. This metric can be used to determine the performance and availability of the target HTTP interface and detect response latency or failures.

[0047] (4) Error rate: Records the percentage of errors or exceptions in HTTP requests. This metric can be used to identify problems and predict the likelihood of system crashes or outages.

[0048] When the monitoring metrics exceed the preset threshold values, alerts or other automated operations can be triggered, such as sending notifications, adjusting cache sizes, or routing traffic to backup servers, etc. Multiple tools and technologies can be used to implement these functions, such as database queries, log analysis, and machine learning algorithms, etc.

[0049] An embodiment of the present application proposes a Web traffic monitoring method. By obtaining the target interface identification information carried in the received Hypertext Transfer Protocol (HTTP) request based on the aspect processing logic; according to the target interface identification information, determining whether the traffic monitoring strategy configuration for the target HTTP interface corresponding to the HTTP request has been completed; in response to the traffic monitoring strategy configuration for the target HTTP interface not being completed, sending the target interface identification information to the configuration center for traffic monitoring strategy configuration; and performing traffic monitoring on the target HTTP interface according to the traffic monitoring strategy configured by the configuration center. The present application is implemented through aspect-oriented programming, decoupled from the business logic, facilitating splitting for multiple iterations, separate maintenance of each module, conforming to the rules of agile development, facilitating project management and risk control, and automatically capturing and collecting interfaces, avoiding manual intervention, reducing omissions, lowering labor costs, increasing automation, and reducing system maintenance costs.

[0050] Further, if an update request for the traffic monitoring policy of the target HTTP interface is received, the traffic monitoring policy of the target HTTP interface is dynamically adjusted to ensure that the target HTTP interface can promptly respond to changes in system performance and user requirements. In this application, through the unified management method of the configuration center, the dynamic adjustment of configuration rules is realized to achieve the purpose of flexible configuration, which is convenient for subsequent expansion of various traffic monitoring and protection capabilities.

[0051] Figure 2 It is a schematic diagram of an exemplary embodiment of a Web traffic monitoring method shown in this application. As Figure 2 shown, the Web traffic monitoring method includes the following steps:

[0052] S201, Obtain the Uniform Resource Locator (URL) address and request method carried in the HTTP request based on the aspect processing logic.

[0053] In this application, the aspect processing logic for the Request Mapping annotation is added. The server receives a Hyper Text Transfer Protocol (HTTP) request sent by the client and, based on the aspect processing logic of AOP, obtains the Uniform Resource Locator (URL) address and request method carried in the HTTP request.

[0054] Among them, the URL address (Uniform Resource Locator) specifies the location of the Web resource to be accessed.

[0055] Among them, the HTTP request method represents the type of operation to be performed by the client.

[0056] S202, Use the URL address and request method as the target interface identification information.

[0057] Use the determined URL address and request method as the target interface identification information.

[0058] S203, Obtain all candidate interface identification information with completed traffic monitoring configuration from the cache.

[0059] In this application, the interface identification information of all interfaces with completed traffic monitoring configuration is stored in the cache. The interface identification information of each interface with completed traffic monitoring configuration is used as the candidate interface identification information, and all candidate interface identification information is obtained from the cache.

[0060] S204, Match the target interface identification information with each candidate interface identification information to obtain the matching result.

[0061] Match the target interface identification information with each candidate interface identification information to obtain the matching result.

[0062] S205, in response to the matching result indicating that there is no candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has not completed the traffic monitoring configuration.

[0063] If the matching result indicates that there is no candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has not completed the traffic monitoring configuration.

[0064] S206, in response to the matching result indicating that there is candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has completed the traffic monitoring configuration.

[0065] If the matching result indicates that there is candidate interface identification information in the cache that is the same as the target interface identification information, determine that the target HTTP interface has completed the traffic monitoring configuration.

[0066] S207, in response to the target HTTP interface not having completed the traffic monitoring policy configuration, send the target interface identification information to the configuration center for traffic monitoring policy configuration.

[0067] If the target HTTP interface has not completed the traffic monitoring policy configuration, send the target interface identification information to the configuration center for traffic monitoring policy configuration through an asynchronous thread pool.

[0068] Among them, the asynchronous thread pool can effectively improve the throughput and response speed of the system, and avoid blocking caused by waiting for external input / output (Input / Output, abbreviated as I / O). By sending the target interface identification information to the asynchronous thread pool for processing, the main program thread can return results faster, improving the concurrency and stability of the system. At the same time, the asynchronous thread pool can also queue and limit the requests to avoid the system being overwhelmed by malicious attacks or sudden large traffic.

[0069] Among them, the configuration center can be an independent service or a centralized management platform for storing and managing the monitoring policy configuration information of all HTTP interfaces. When receiving the target interface identification information, the configuration center can generate traffic monitoring policy configurations through a series of algorithms and rules and save them back to the database.

[0070] S208, perform traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

[0071] Collect and analyze relevant data of the target HTTP interface according to the monitoring strategy configuration information of the configuration center, and compare and analyze it with predefined thresholds and rules.

[0072] S209. In response to the target HTTP interface having completed traffic monitoring configuration, perform traffic monitoring operations.

[0073] If it is known from the matching result that the target HTTP interface has completed traffic monitoring configuration, directly perform traffic monitoring operations.

[0074] This application is implemented through aspect-oriented programming, decoupled from the business logic, facilitating splitting for multiple iterations, with each module maintained separately, conforming to the rules of agile development, facilitating project management and risk control, and automatically capturing and collecting interfaces, avoiding manual intervention, reducing omissions, lowering labor costs, increasing automation, and reducing system maintenance costs.

[0075] Figure 3 It is a schematic diagram of a Web traffic monitoring device shown in this application. As Figure 3 shown, the Web traffic monitoring device 300 includes an acquisition module 301, a judgment module 302, a configuration module 303, and a monitoring module 304, where:

[0076] The acquisition module 301 is used to obtain the target interface identification information carried in the received Hypertext Transfer Protocol (HTTP) request based on the aspect processing logic.

[0077] The judgment module 302 is used to judge whether the target HTTP interface corresponding to the HTTP request has completed the traffic monitoring strategy configuration according to the target interface identification information.

[0078] The configuration module 303 is used to send the target interface identification information to the configuration center for traffic monitoring strategy configuration in response to the target HTTP interface not having completed the traffic monitoring strategy configuration.

[0079] The monitoring module 304 is used to perform traffic monitoring on the target HTTP interface according to the traffic monitoring strategy configured by the configuration center.

[0080] This device realizes Web traffic monitoring through aspect-oriented programming, decoupled from the business logic, facilitating splitting for multiple iterations, with each module maintained separately, conforming to the rules of agile development, facilitating project management and risk control, and automatically capturing and collecting interfaces, avoiding manual intervention, reducing omissions, lowering labor costs, increasing automation, and reducing system maintenance costs.

[0081] According to an embodiment of the present application, the obtaining module 301 is further configured to: obtain the Uniform Resource Locator (URL) address and the request method carried in the HTTP request based on the aspect processing logic; and use the URL address and the request method as the target interface identification information.

[0082] According to an embodiment of the present application, the determining module 302 is further configured to: obtain all candidate interface identification information with completed traffic monitoring configuration from the cache; match the target interface identification information with each candidate interface identification information to obtain a matching result; in response to the matching result indicating that there is no candidate interface identification information identical to the target interface identification information in the cache, determine that the target HTTP interface has not completed the traffic monitoring configuration; and in response to the matching result indicating that there is candidate interface identification information identical to the target interface identification information in the cache, determine that the target HTTP interface has completed the traffic monitoring configuration.

[0083] According to an embodiment of the present application, the Web traffic monitoring device 300 further includes: an execution module 305, configured to perform a traffic monitoring operation in response to the target HTTP interface having completed the traffic monitoring configuration.

[0084] According to an embodiment of the present application, the Web traffic monitoring device 300 further includes: an adjustment module 306, configured to dynamically adjust the traffic monitoring policy of the target HTTP interface in response to receiving an update request for the traffic monitoring policy of the target HTTP interface.

[0085] According to an embodiment of the present application, the configuration module 303 is further configured to: send the target interface identification information to the configuration center through an asynchronous thread pool for traffic monitoring policy configuration.

[0086] To implement the above embodiments, an embodiment of the present application further provides an electronic device 400, as Figure 4 shown. The electronic device 400 includes: a processor 401 and a memory 402 communicatively connected to the processor. The memory 402 stores instructions executable by at least one processor. The instructions are executed by at least one processor 401 to implement the Web traffic monitoring method as shown in the above embodiments.

[0087] To implement the above embodiments, an embodiment of the present application further provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to implement the Web traffic monitoring method as shown in the above embodiments.

[0088] To implement the above embodiments, an embodiment of the present application further provides a computer program product, including a computer program, where the computer program implements the Web traffic monitoring method as shown in the above embodiments when executed by a processor.

[0089] In the description of the present application, it should be understood that the orientation or positional relationship indicated by terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application.

[0090] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality" means two or more unless otherwise specifically defined.

[0091] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0092] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as a limitation to the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. A Web traffic monitoring method, characterized in that, Including: Obtaining, based on aspect processing logic, the target interface identification information carried in the received Hypertext Transfer Protocol (HTTP) request; Judging, according to the target interface identification information, whether the target HTTP interface corresponding to the HTTP request has completed the traffic monitoring policy configuration; In response to the target HTTP interface not having completed the traffic monitoring policy configuration, sending the target interface identification information to a configuration center for traffic monitoring policy configuration; Performing traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

2. The Web traffic monitoring method according to claim 1, wherein The obtaining, based on aspect processing logic, the target interface identification information carried in the received Hypertext Transfer Protocol (HTTP) request includes: Obtaining, based on aspect processing logic, the Uniform Resource Locator (URL) address and the request method carried in the HTTP request; Using the URL address and the request method as the target interface identification information.

3. The Web traffic monitoring method according to claim 1, characterized in that, The judging, according to the target interface identification information, whether the target HTTP interface corresponding to the HTTP request has completed the traffic monitoring policy configuration includes: Obtaining all candidate interface identification information that has completed traffic monitoring configuration from a cache; Matching the target interface identification information with each of the candidate interface identification information to obtain a matching result; In response to the matching result indicating that there is no candidate interface identification information in the cache that is the same as the target interface identification information, determining that the target HTTP interface has not completed the traffic monitoring configuration; In response to the matching result indicating that there is candidate interface identification information in the cache that is the same as the target interface identification information, determining that the target HTTP interface has completed the traffic monitoring configuration.

4. The Web traffic monitoring method according to claim 3, wherein The method further includes: In response to the target HTTP interface having completed the traffic monitoring configuration, performing a traffic monitoring operation.

5. The Web traffic monitoring method according to any one of claims 1-4, characterized in that, The method further includes: In response to receiving an update request for the traffic monitoring policy of the target HTTP interface, dynamically adjusting the traffic monitoring policy of the target HTTP interface.

6. The Web traffic monitoring method according to any one of claims 1-4, characterized in that The sending the target interface identification information to a configuration center for traffic monitoring policy configuration includes: Sending the target interface identification information to the configuration center for traffic monitoring policy configuration in an asynchronous thread pool manner.

7. A Web traffic monitoring device, characterized in that, Including: An obtaining module, configured to obtain, based on aspect processing logic, the target interface identification information carried in the received Hypertext Transfer Protocol (HTTP) request; A judging module, configured to judge, according to the target interface identification information, whether the target HTTP interface corresponding to the HTTP request has completed the traffic monitoring policy configuration; A configuration module, configured to, in response to the target HTTP interface not having completed the traffic monitoring policy configuration, send the target interface identification information to a configuration center for traffic monitoring policy configuration; A monitoring module, configured to perform traffic monitoring on the target HTTP interface according to the traffic monitoring policy configured by the configuration center.

8. An electronic device, including: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1-6.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are for causing the computer to execute the method according to any one of claims 1-6.

10. A computer program product, comprising a computer program which, when executed by a processor, implements the steps according to any one of claims 1-6.