A method, device, equipment and medium for aggregating and counting business request performance indicators

By forming standard URLs through grouping and reverse deduction, the problems of inaccurate statistics and slow database indexing caused by changes in URL path parameters are solved, achieving more accurate performance metric aggregation and faster data response.

CN118708830BActive Publication Date: 2024-11-26SHENZHOU LINGYUN (HUNAN) TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411179731.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-26
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

In existing technologies, URL path parameters change with business requirements, leading to inaccurate aggregated statistics of business request performance metrics. Furthermore, indexing URL path fields in the database consumes a lot of memory and results in slow query speeds.

Method used

By obtaining the target URL path, determining the first-level group and the second-level group based on the identification information, forming a standard URL through reverse deduction, and updating the data storage information, the standardization and classification aggregation of URL paths are achieved.

Benefits of technology

It improved the accuracy of statistical results, reduced the data processing base, and increased data response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708830B_ABST
    Figure CN118708830B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a method, device, equipment, and medium for aggregating and statistically analyzing service request performance indicators. The method comprises: obtaining a target URL path; determining a first-level grouping based on identification information of the target URL; forming a second-level grouping based on the first-level grouping and the corresponding level of the path segment divided by the identification information; forming a standard URL based on the second-level grouping and the first-level grouping in reverse order; and updating data storage information based on the standard URL. The scheme of the present invention improves the accuracy of statistical results and data response speed by classifying and aggregating URL paths to form a standard URL.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for aggregating and counting business request performance indicators. Background Art

[0002] Full-link business performance monitoring includes mobile, network, and server ends. It counts the business request performance indicators of applications on each end, and aggregates the number of requests, slow requests, extremely slow requests, average response time, error rate and other performance indicators based on the URL (uniform resource locator) path of the business request. The general format of the URL is: protocol: / / hostname[:port] / path / [;parameters][? query]#fragment. The URL path is a string consisting of path segments, some of which may be path parameters. Path parameters are often used to identify resources or specify unique identifiers of resources, such as obtaining user information, obtaining specific articles, etc. For example: `http: / / account.com / user / {userId}`, `{userId}` is a placeholder for the path parameter, and the actual parameter value will replace the placeholder part.

[0003] In the related art, path parameters vary with business changes and have a very large cardinality, so when a large number of collected business requests and their performance indicators are aggregated and counted, multiple specific URL paths and their performance indicators are collected. The number of times each specific URL path appears within a certain period of time may not be large, and the aggregate statistics are the results of a small number of scattered multiple URL paths. However, users need to view the overall performance indicators of the same type of URL paths, which leads to inaccurate statistical results. In addition, since the cardinality of the URL path field in the business request table of the database is large, a lot of memory is required when the database indexes this field, and the speed of scanning the index during query is also greatly affected, reducing the response speed of the system. Summary of the invention

[0004] In view of this, the present invention provides a method, device, equipment, and medium for aggregating and counting business request performance indicators to solve the technical problems of inaccurate data statistics and reduced system response speed.

[0005] In a first aspect, the present invention provides a method for aggregating and counting business request performance indicators, the method comprising: obtaining a target URL path; determining a first-level grouping based on identification information of the target URL; forming a second-level grouping based on the first-level grouping and using the corresponding levels of the path segments divided by the identification information; forming a standard URL based on the second-level grouping and the first-level grouping by reverse deduction; and updating data storage information based on the standard URL.

[0006] In combination with the first aspect, in a possible implementation of the first aspect, the first-level grouping is determined based on the identification information of the target URL, including: determining the path segment of each target URL based on the identification information of the target URL; and grouping based on the number of each path segment to determine the first-level grouping.

[0007] In combination with the first aspect, in a possible implementation of the first aspect, based on the first-level grouping, a second-level grouping is formed using the corresponding levels of the path segments divided by the identification information, including: based on the first-level grouping, multiple first sets corresponding to the levels are formed through the corresponding path segments in the levels of the target URL; based on the number of first elements in each first set, a classification is determined to form a second-level grouping.

[0008] In combination with the first aspect, in a possible implementation method of the first aspect, a standard URL is formed based on the second-level grouping and the first-level grouping by reverse deduction, including: based on the second-level grouping, URL path standardization is performed at the level of the target URL through corresponding path segments to form an aggregated URL; based on the aggregated URL, the standard URL is formed by reverse deduction using the second-level grouping and the first-level grouping.

[0009] In combination with the first aspect, in a possible implementation of the first aspect, based on the second-level grouping, URL path standardization is performed at the level of the target URL through corresponding path segments to form an aggregated URL, including: based on the second-level grouping, multiple second sets corresponding to the levels are formed through corresponding path segments at the level of the target URL; classification is performed based on the number of second elements in each second set to obtain classification results; and second elements that match the classification results are replaced with preset characters to form an aggregated URL.

[0010] In combination with the first aspect, in a possible implementation of the first aspect, data storage information is updated based on the standard URL, including: based on the standard URL, through a preset algorithm, determining the corresponding URL path identifier; updating the standard URL and the URL path identifier to the database table.

[0011] In combination with the first aspect, in a possible implementation of the first aspect, after updating the standard URL and URL path identifier to the database table, the method also includes: in response to the statistical request, pulling the standard URL and URL path identifier based on the database table; and forming response data corresponding to the statistical request based on the pulled standard URL and URL path identifier.

[0012] In a second aspect, the present invention provides a device for aggregating and counting business request performance indicators, the device comprising: an acquisition module for acquiring a target URL path; a first grouping module for determining a first-level grouping based on identification information of the target URL; a second grouping module for forming a second-level grouping based on the first-level grouping and using the corresponding levels of the path segments divided by the identification information; a standard module for forming a standard URL based on the second-level grouping and the first-level grouping in reverse; and an update module for updating data storage information based on the standard URL.

[0013] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the business request performance indicator aggregation and statistical method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for aggregating and counting business request performance indicators of the first aspect or any corresponding embodiment thereof.

[0015] The technical solution of the present invention has the following advantages:

[0016] The present invention provides a method, device, equipment, and medium for aggregating and statistically analyzing performance indicators of business requests. The method obtains the target URL path, determines the first-level grouping and the second-level grouping respectively, and uses the first-level grouping and the second-level grouping for reverse deduction to determine the standard URL to update the data storage information. In this process, the path segment is segmented by the identification information of the target URL to form the first-level grouping, and is segmented again on the basis of the first-level grouping to form the second-level grouping, thereby using the two grouping processes to achieve classification aggregation of short URL paths, and the standard URL is formed in a reverse manner through the first grouping and the second grouping, thereby completing the standardization of the target URL, so that the standardized URL can update the database table, so that the data reflected when the user views the performance indicator is the aggregated and standardized URL data, which improves the accuracy of the statistical results, and because the standard URL is classified and aggregated relative to the original data, the data base to be processed is reduced, the time required for scanning the index is reduced, and the data response speed is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flow chart of a method for aggregating and counting service request performance indicators according to an embodiment of the present invention;

[0019] Figure 2 This is a data flow diagram of a method for aggregating and counting service request performance indicators provided in accordance with an embodiment of the present invention;

[0020] Figure 3 It is another data flow diagram of a method for aggregating and counting service request performance indicators provided according to an embodiment of the present invention;

[0021] Figure 4 It is another data flow diagram of a method for aggregating and counting service request performance indicators provided in accordance with an embodiment of the present invention;

[0022] Figure 5 This is a tree diagram of response data according to a method for aggregating and counting service request performance indicators provided in an embodiment of the present invention;

[0023] Figure 6 It is a structural block diagram of a device for aggregating and counting service request performance indicators according to an embodiment of the present invention;

[0024] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0026] In the related art, because the URL path parameters vary with the business, the aggregate statistics of performance indicators directly aggregated and counted based on the URL path of the business request are discrete, resulting in inaccurate statistical results. In addition, due to the large cardinality of the URL path field in the database's business request table, the database needs to occupy a lot of memory when indexing this field, and the speed of scanning the index during query is also greatly affected. The following Table 1 exemplifies some data statistical results in the related art:

[0027] Table 1

[0028]

[0029] On this basis, in order to improve the accuracy of data statistics and improve the data response speed, according to an embodiment of the present invention, a method for aggregating statistics of business request performance indicators is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] This embodiment provides a method for aggregating and counting service request performance indicators, such as Figure 1 As shown, the method comprises the following steps:

[0031] S101, obtaining the target URL path.

[0032] Specifically, obtaining the target URL path means, through a scheduled task, aggregating and querying the target URL path within a preset time from the business request table of the database, where the preset time can be set according to the actual working conditions. This embodiment does not make a specific limitation on this, and 24 hours can usually be selected. The target URL path refers to the URL path with an empty URL path identifier, that is, the URL path with an empty path id.

[0033] S102: Determine the first level grouping based on the identification information of the target URL.

[0034] Specifically, determining the first level grouping based on the identification information of the target URL means determining the path segment of each target URL through the identification information of the target URL, and determining the first level grouping based on the number of each path segment.

[0035] S103 . Based on the first level grouping, a second level grouping is formed using corresponding levels of the path segments divided by the identification information.

[0036] Specifically, based on the first-level grouping, the corresponding levels of the path segments divided by the identification information are used to form the second-level grouping, which means that through the first-level grouping, multiple first sets corresponding to the levels are formed using the corresponding path segments at the level of the target URL, thereby forming the second-level grouping through the number of first elements at the first level.

[0037] S104. Based on the second-level grouping and the first-level grouping, reverse deduction is performed to form a standard URL.

[0038] Specifically, forming a standard URL based on the second-level grouping and the first-level grouping by reverse deduction means that based on the second-level grouping, the target URL is standardized at the level through the corresponding path segments to form an aggregated URL, and then the standard URL is formed by the aggregated URL by reverse deduction using the second-level grouping and the first-level grouping.

[0039] S105. Update data storage information based on the standard URL.

[0040] Specifically, based on the standard URL, updating the data storage information refers to determining the URL path identifier corresponding to the standard URL, ie, pathid, through a preset algorithm.

[0041] The present invention provides a method, device, equipment, and medium for aggregated statistics of performance indicators of business requests. The method obtains the target URL path, determines the first-level grouping and the second-level grouping respectively, and uses the first-level grouping and the second-level grouping for reverse deduction to determine the standard URL to update the data storage information. In this process, the path segment is segmented by the identification information of the target URL to form the first-level grouping, and is segmented again on the basis of the first-level grouping to form the second-level grouping, so that the classification aggregation of URL paths with short paths is realized by using the two grouping processes, and the standard URL is formed in a reverse manner through the first grouping and the second grouping, so as to complete the standardization of the target URL, so that the standardized URL can update the database table, so that the data reflected when the user views the performance indicators is the aggregated and standardized URL data, which improves the accuracy of the statistical results, and because the standard URL is classified and aggregated relative to the original data, the data base to be processed is reduced, the time required for scanning the index is reduced, and the data response speed is improved.

[0042] In an optional implementation, determining the first level grouping based on the identification information of the target URL includes:

[0043] Based on the identification information of the target URL, the path segment of each target URL is determined. Based on the number of each path segment, grouping is performed to determine the first level grouping.

[0044] Specifically, the identification information of the target URL refers to the symbol used to separate or identify the path segment of the target URL. Usually, the identification information of the target URL is " / ", such as Figure 2 The figure shows the process of determining the first-level grouping based on the identification information of the target URL, where the strings "user", "2010", "item" and so on located on both sides of the symbol " / " are the path segments of each target URL. For example, the number of path segments of the target URL "user / 2010 / address" is 3, so the number of path segments is determined according to the number of path segments. Figure 2 The first-level group on the right, each box belongs to the same first-level group, where Figure 2 (a) shows multiple URL paths as an example. Figure 2 (b) for Figure 2 (a) Based on the first path segment in the URL address, the field name is classified and the results are displayed after sorting from the largest to the smallest number of path segments. Figure 2 (c) for Figure 2 (b) The sorted URL paths are each formed into a group, such as the group {user, 2010, address}, so as to form the following Figure 2 The first-level groups in (d) provide the data basis.

[0045] Specifically, grouping is performed based on the number of each path segment. Determining the first-level grouping means forming groups according to the number of path segments. For example, the number of path segments of the target URL "store / 278651 / discount / items" is 4, and the number of path segments of the target URL "store / 103122 / item / 103 / price" is 5. Although the first path segment of both is "store", different first-level groups are formed due to the different number of path segments. Because different numbers of path segments mean different levels, it provides a data basis for subsequent second-level grouping and forming standard URLs.

[0046] In an optional implementation, based on the first level grouping, a second level grouping is formed using corresponding levels of the path segments divided by the identification information, including:

[0047] Based on the first level grouping, a plurality of first sets corresponding to the levels are formed by corresponding path segments at the levels of the target URLs. Based on the number of first elements in each first set, a classification is determined to form a second level grouping.

[0048] Specifically, based on the first level grouping, forming a plurality of first sets corresponding to the levels by corresponding path segments at the level of the target URL means forming a first set by corresponding path segments at the level of the target URL. Figure 3 As shown, in the first level grouping, take {store, 278651, discount, items} as an example, where the path segment "store" corresponds to the first level in the target URL, the path segment "278651" corresponds to the second level in the target URL, and so on, the path segment "items" corresponds to the fourth level in the target URL. Thus, the first set {{store}, {278651, 466821, 566820, 566822}, {discount, best}, {items}} is formed. Figure 3 As shown in (a), all path segment strings belonging to the same layer in each first-level grouping are formed into a set. Taking the first-level groups {store,278651,discount,item}, {store,466821,best,item}, {store,566820,best,item}, {store,566822,discount,item} as an example, the ones belonging to the same level are {store}, {278651,466821,566820,566822}, {best,discount}, {item}, thus forming Figure 3 The set shown in (a) is the first set.

[0049] Specifically, the classification is determined based on the number of first elements in each first set. Forming the second level grouping means determining the number of first elements in the corresponding set through the hierarchical relationship. If the number of first elements exceeds the preset numerical range, it means that the corresponding first elements all belong to the URL path parameter. If the number of first elements meets the preset interval value, it means that the corresponding first element does not belong to the URL path parameter. It is necessary to use the path segment that does not belong to the URL path parameter as the classification basis to form the second level grouping. Figure 3Take the above grouping in (b) as an example, where the first elements {store}, {discount, best}, and {items} do not belong to URL path parameters, and {278651, 466821, 566820, 566822} belong to URL path parameters. Therefore, {store}, {discount, best}, and {items} are used as classification basis, where {discount, best} contains two categories, thus forming two second-level groupings, namely the first second-level grouping {store, 466821, best, item}, {store, 566820, best, item}, and the second second-level grouping {store, 278651, discount, item}, {store, 566822, discount, item}. Usually, the value of the preset interval value is 10 elements, which is not specifically limited in this embodiment and can be set according to actual working conditions. Figure 3 In the example shown, the number of first elements conforming to the preset interval value means that the corresponding number of first elements belongs to [1,10], and the number of first elements exceeding the preset interval value means that the number of first elements exceeds 10. It should be understood that the classification is determined according to the number of first elements in the first set, and the formation of the second level grouping is the process of aggregating the path segments that do not belong to the URL path and belong to the same level, providing a data basis for the subsequent formation of standard URLs.

[0050] In an optional implementation, the standard URL is formed based on the second-level grouping and the first-level grouping in reverse order, including:

[0051] Based on the second-level grouping, the URL path is standardized at the target URL level through the corresponding path segment to form an aggregate URL. Based on the aggregate URL, the second-level grouping and the first-level grouping are reversed to form a standard URL.

[0052] Specifically, based on the aggregated URL, the second-level grouping and the first-level grouping are used to reversely infer to form a standard URL. This means that the aggregated URL is used to reversely infer the target URL level corresponding to the second-level grouping and the first-level grouping according to the corresponding level to form a standard URL. This process is as follows Figure 4 (a) to Figure 4 (c) shown.

[0053] In an optional implementation, based on the second level grouping, URL path normalization is performed at the level of the target URL by corresponding path segments to form an aggregated URL, including:

[0054] Based on the second level grouping, multiple second sets corresponding to the levels are formed by corresponding path segments in the target URL. Classification is performed based on the number of second elements in each second set to obtain a classification result. The second elements that match the classification result are replaced with preset characters to form an aggregated URL.

[0055] Specifically, based on the second-level grouping, by corresponding to the path segments at the target URL level, forming multiple second sets corresponding to the level means forming all the path segment strings at the same level into one set, namely, the second set. Figure 4 (a) to Figure 4 As shown in (b), the two second-level groups in the above embodiment are split and expanded into elements in the second set corresponding to the levels.

[0056] Specifically, based on the number of second elements in each second set, classification is performed, and the classification result is that if the number of second elements in the second set corresponding to the level is 1, it means that the corresponding second element is a non-URL path; if the number of second elements in the second set corresponding to the level is greater than 1, it means that the corresponding second element is the path segment where the URL path parameter is located, thereby obtaining the classification result of URL path parameters and non-URL path parameters. Figure 4 As shown in (b), taking {store,466821,best,item} and {store,566820,best,item} in the second group as an example, the number of store, best and item in the second element at the corresponding level is 1, which means that the level at which the second element is located is a non-URL path. The number of the second elements 466821 and 566820 at the corresponding level is greater than 1, which means that the level at which the second element is located is a URL path.

[0057] Specifically, the second element that matches the classification result refers to the second element that belongs to the URL path parameter. Replacing the second element that matches the classification result with a preset character to form an aggregate URL refers to replacing the second element that belongs to the URL path parameter with a preset character to form a URL. Figure 4 As shown in (c), the default character used here is "*".

[0058] In an optional implementation, updating data storage information based on a standard URL includes:

[0059] Based on the standard URL, the corresponding URL path identifier is determined through a preset algorithm. The standard URL and URL path identifier are updated to the database table.

[0060] Specifically, based on the standard URL, by using a preset algorithm, determining the corresponding URL path identifier means calculating the path id using the standard URL by using a preset algorithm. The preset algorithm can be set according to actual working conditions, and this embodiment does not specifically limit this, and usually a preset algorithm such as sha1 is used for calculation.

[0061] Specifically, updating the standard URL and URL path identifier to the database table means querying all standardized URL paths and pathid arrays in the database table, and pushing the array to the application, network and server probes, thereby providing a data basis for subsequent responses to statistical requests.

[0062] In an optional implementation, after updating the standard URL and the URL path identifier to the database table, the method further includes:

[0063] In response to the statistical request, the standard URL and URL path identifier are pulled based on the database table. Based on the pulled standard URL and URL path identifier, response data corresponding to the statistical request is formed.

[0064] Specifically, in response to the statistical request, based on the database table, pulling the standard URL and URL path identifier means pulling the standard URL and URL path identifier from the updated data storage information in response to the statistical request. That is, pulling all standardized url paths and pathid data, and then constructing them into a TRIE tree, the root node of the TRIE tree is " / ", the other nodes of the TRIE tree are url path segments, and the leaf nodes record the standardized url paths and pathids, such as Figure 5 As shown, intercept the service requests sent by each end, obtain the url path and performance indicators of the service request. Split the url path into an array of url path segments, and then match the corresponding standardized url path and pathid through the TRIE tree (each url path segment string is matched if it is the same as the TRIE tree node string, and the "*" character can match any url path segment string, and then recursively match the next layer). If not found, replace it with an empty string.

[0065] Specifically, the statistical request can be initiated by a system probe. For example, when the probe is started, all standard URLs and URL path identifiers are pulled from the system's internal database table, and then the construction of the TRIE tree in the above embodiment is completed, thereby realizing the aggregated and standardized URL data display based on the statistical request within the system, that is, forming response data corresponding to the statistical request.

[0066] Specifically, the statistical request may also be initiated by a third party, for example, a URL data statistical request initiated by a third party connected to a system that applies the business request performance indicator aggregation statistical method provided in this embodiment, thereby pulling all standard URLs and URL path identifiers, and then completing the construction of the TRIE tree in the above embodiment, realizing a statistical request based on the outside of the system, completing the aggregated and standardized URL data display, and forming response data corresponding to the statistical request.

[0067] Specifically, based on the standard URL and URL path identifier, forming the response data corresponding to the statistical request means forming the following Figure 4 (c) The response data shown in Table 2 shows the same statistics as Table 1:

[0068] Table 2

[0069]

[0070] Compared with the content shown in Table 1, the method adopted in this embodiment divides the path segment through the identification information of the target URL to form a first-level grouping, and divides it again on the basis of the first-level grouping to form a second-level grouping, thereby utilizing the two grouping processes to realize the classification aggregation of short URL paths, and through the first grouping and the second grouping, a standard URL is formed in a reverse manner, thereby completing the standardization of the target URL, so that the standardized URL can update the database table, so that the data reflected when the user views the performance indicators is the aggregated and standardized URL data, thereby improving the accuracy of the statistical results, and because the standard URL is classified and aggregated relative to the original data, the data base to be processed is reduced, the time required for scanning the index is reduced, and the data response speed is improved.

[0071] In this embodiment, a service request performance index aggregation statistics device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0072] This embodiment provides a device for aggregating statistics of service request performance indicators, such as Figure 6 As shown, including:

[0073] The acquisition module 201 is used to acquire the target URL path. The specific process can be found in the description of step S101 in the above embodiment, which will not be repeated here.

[0074] The first grouping module 202 is used to determine the first level grouping based on the identification information of the target URL. The specific process can refer to the relevant description of step S102 in the above embodiment, which will not be repeated here.

[0075] The second grouping module 203 is used to form a second level grouping based on the first level grouping and using the corresponding levels of the path segments divided by the identification information. The specific process can be found in the description of step S103 in the above embodiment, which will not be repeated here.

[0076] The standard module 204 is used to form a standard URL based on the second-level grouping and the first-level grouping in reverse order. The specific process can be found in the description of step S104 in the above embodiment, which will not be repeated here.

[0077] The updating module 205 is used to update the data storage information based on the standard URL. The specific process can be found in the description of step S105 in the above embodiment, which will not be repeated here.

[0078] The service request performance indicator aggregation and statistical device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0079] The embodiment of the present invention also provides a computer device having the above Figure 6 The service request performance indicator aggregation and statistical device is shown.

[0080] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 301, memory 302, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7A processor 301 is taken as an example.

[0081] The processor 301 may be a central processing unit, a network processor or a combination thereof. The processor 301 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.

[0082] The memory 302 stores instructions executable by at least one processor 301, so that the at least one processor 301 executes the method shown in the above embodiment.

[0083] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0084] The memory 302 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 302 may also include a combination of the above types of memory. The computer device also includes a communication interface 303, which is used for the computer device to communicate with other devices or communication networks.

[0085] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0086] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for aggregating and counting service request performance indicators, characterized in that: The method comprises: Get the target URL path; Determining a first level grouping based on the identification information of the target URL; Based on the first level grouping, a second level grouping is formed using corresponding levels of the path segments divided by the identification information; Based on the second-level grouping and the first-level grouping, reverse deduction is performed to form a standard URL; Based on the standard URL, updating data storage information; The determining of the first level grouping based on the identification information of the target URL comprises: Determine the path segment of each target URL based on the identification information of the target URL; Based on the number of each of the path segments, grouping is performed to determine a first level grouping; The forming of a standard URL based on the reverse deduction of the second level grouping and the first level grouping includes: Based on the second level grouping, forming an aggregated URL by performing URL path normalization at the level of the target URL corresponding to the path segment; Based on the aggregated URL, reversely inferring using the second-level grouping and the first-level grouping to form a standard URL; The forming of an aggregated URL by performing URL path normalization at the level of the target URL corresponding to the path segment based on the second level grouping includes: Based on the second level grouping, by corresponding to the path segments at the level of the target URL, a plurality of second sets corresponding to the level are formed; Perform classification based on the number of second elements in each of the second sets to obtain a classification result; The second element that matches the classification result is replaced with a preset character to form an aggregate URL.

2. The method according to claim 1, characterized in that The forming of the second level grouping based on the first level grouping and using the corresponding levels of the path segments divided by the identification information includes: Based on the first level grouping, by corresponding to the path segments at the level of the target URL, a plurality of first sets corresponding to the level are formed; Based on the number of first elements in each of the first sets, a classification is determined to form a second level grouping.

3. The method according to claim 1, characterized in that The updating of data storage information based on the standard URL includes: Based on the standard URL, determine the corresponding URL path identifier through a preset algorithm; The standard URL and the URL path identifier are updated in the database table.

4. The method according to claim 3, characterized in that After updating the standard URL and the URL path identifier to the database table, the method further includes: In response to the statistical request, based on the database table, pull the standard URL and the URL path identifier; Based on the retrieved standard URL and the URL path identifier, response data corresponding to the statistical request is generated.

5. A device for aggregating and counting service request performance indicators, characterized in that: The device comprises: The acquisition module is used to obtain the target URL path; A first grouping module is used to determine the first level grouping based on the identification information of the target URL; the determination of the first level grouping based on the identification information of the target URL includes: determining the path segment of each target URL based on the identification information of the target URL; performing grouping based on the number of each path segment to determine the first level grouping; A second grouping module, configured to form a second level grouping based on the first level grouping and using corresponding levels of the path segments divided by the identification information; A standard module, used for reverse deduction based on the second-level grouping and the first-level grouping to form a standard URL; the reverse deduction based on the second-level grouping and the first-level grouping to form a standard URL, including: based on the second-level grouping, by corresponding to the path segment at the level of the target URL to standardize the URL path to form an aggregate URL; based on the aggregate URL, using the second-level grouping and the first-level grouping to reverse deduction to form a standard URL; based on the second-level grouping, by corresponding to the path segment at the level of the target URL to standardize the URL path to form an aggregate URL, including: based on the second-level grouping, by corresponding to the path segment at the level of the target URL, forming a plurality of second sets corresponding to the level; classifying based on the number of second elements in each of the second sets to obtain a classification result; replacing the second elements that match the classification result with preset characters to form an aggregate URL; The updating module is used to update the data storage information based on the standard URL.

6. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the service request performance indicator aggregation and statistical method according to any one of claims 1 to 4 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the service request performance indicator aggregation and statistical method according to any one of claims 1 to 4.