Flow data screening method and device, equipment and storage medium

By combining and executing policy operators in business scenarios to process traffic data, the problem of high development costs of traffic screening strategies caused by changes in business scenarios in the existing technology is solved, and efficient traffic data screening and resource utilization are achieved.

CN118802771AActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Application Number
CN202310455975.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-18
Estimated Expiration
2043-04-14

AI Technical Summary

Technical Problem

Existing technologies require re-development of traffic screening strategies when business scenarios change, resulting in high manpower and time costs, affecting screening efficiency, and inability to fully utilize developed strategies, resulting in a waste of resources.

Method used

By obtaining the original traffic data associated with the specified business scenario and the preset filtering strategy, using a combination of policy operators to generate a screening strategy, and executing it according to the operator association, precise screening of the original traffic data is achieved, and the cost and time of strategy development are reduced.

Benefits of technology

It effectively reduces the time and labor costs of strategy development, improves screening efficiency, avoids waste of resources, improves resource utilization, and enables strategy reuse for different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802771A_ABST
    Figure CN118802771A_ABST
Patent Text Reader

Abstract

The invention provides a traffic data screening method and device, equipment and a storage medium, and the method comprises the steps: obtaining original traffic data associated with a specified service scene and a preset screening strategy of the service scene, and enabling the screening strategy to comprise a traffic screening process determined for the service scene, the flow screening process is generated by selecting a plurality of strategy operators corresponding to a service scene and combining the selected strategy operators according to an indicated operator association relationship, and due to the fact that each strategy operator represents one unit operation which is determined to be used for original flow data in the service scene, the flow screening efficiency is improved, and the flow screening efficiency is improved. Each unit operation is used for realizing a corresponding processing logic for the screening of the flow data, so that the development efficiency of a single screening strategy is improved, and furthermore, the unit operation can be reused in different service scenes, so that when a plurality of screening strategies are developed, resource waste caused by repeatedly developing the same processing logic can be avoided, and the resource utilization rate is improved. The resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for screening flow data. Background Art

[0002] Currently, after collecting the original traffic data, the online server can use the traffic screening strategy developed for the corresponding business scenario to filter out the accurate traffic data that matches the business scenario from the original traffic data.

[0003] For example, after collecting the original traffic data of its own game service, the online server can use the following traffic screening strategy developed for the corresponding regression test scenario: "Obtain the code coverage data of the original traffic data, calculate the similarity between the code coverage data and the code coverage data of the preset traffic use case, and when the similarity is greater than a preset threshold, eliminate the original traffic data; otherwise, retain the original traffic data" to screen out accurate traffic data that matches the regression test scenario from the original traffic data, that is, accurate traffic data that supports regression testing of game services.

[0004] However, when the business scenario changes, the corresponding traffic screening strategy needs to be redeveloped, resulting in high manpower and time costs, affecting screening efficiency. Summary of the invention

[0005] The present application provides a method, device, electronic device and storage medium for screening traffic data, which are used to reduce the manpower cost and time cost required for strategy development and improve screening efficiency.

[0006] The specific technical solutions provided by the embodiments of this application are as follows:

[0007] Firstly, a method for screening traffic data is proposed, comprising:

[0008] Obtaining the original traffic data associated with the specified business scenario and the screening strategy preset for the business scenario, wherein the screening strategy is generated by selecting multiple strategy operators corresponding to the business scenario and combining the selected multiple strategy operators according to the indicated operator association relationship, each strategy operator represents a unit operation determined to be used for the original traffic data in the business scenario, and each unit operation is used to implement a corresponding processing logic for filtering traffic data;

[0009] According to the operator association relationship, the unit operations in the filtering strategy are executed on the original traffic data until the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

[0010] In a second aspect, a flow data screening device is provided, comprising:

[0011] A strategy acquisition module is used to acquire the original traffic data associated with the specified business scenario and the screening strategy preset for the business scenario, wherein the screening strategy is generated by selecting multiple strategy operators corresponding to the business scenario and combining the selected multiple strategy operators according to the indicated operator association relationship, each strategy operator represents a unit operation determined to be used for the original traffic data in the business scenario, and each unit operation is used to implement a corresponding processing logic for the screening of traffic data;

[0012] The execution module is used to execute each unit operation in the filtering strategy on the original traffic data according to the operator association relationship until the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

[0013] In a possible implementation, before obtaining the screening strategy preset for the business scenario, the strategy acquisition module is further used to:

[0014] Acquire policy description information determined for the business scenario, wherein the policy description information includes: a plurality of to-be-executed functions determined for the business scenario, each to-be-executed function being associated with a processing logic for filtering traffic data;

[0015] Selecting multiple strategy operators associated with multiple functions to be executed from a preset operator set;

[0016] In response to the orchestration configuration operation triggered for the multiple strategy operators, the operator association relationship between the multiple strategy operators is determined, and the multiple strategy operators are combined according to the operator association relationship to generate a corresponding screening strategy.

[0017] In a possible implementation, in response to an orchestration configuration operation triggered for multiple policy operators, determining an operator association relationship between the multiple policy operators, the policy acquisition module is used to:

[0018] In response to a selection operation triggered for a plurality of strategy operators, determining at least two strategy operator sets;

[0019] In response to the orchestration configuration operation triggered for at least two policy operator sets, an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set are determined.

[0020] In a possible implementation, in response to an orchestration configuration operation triggered for at least two policy operator sets, determining an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set includes any one of the following:

[0021] In response to a stage configuration operation triggered for at least two policy operator sets, determining that an association relationship between the at least two policy operator sets is a serial relationship, and that an association relationship between each policy operator in each policy operator set is a serial relationship;

[0022] In response to a task configuration operation triggered for at least two policy operator sets, determining that an association relationship between the at least two policy operator sets is a parallel relationship, and an association relationship between policy operators in each policy operator set is a serial relationship;

[0023] In response to a default configuration operation triggered for at least two policy operator sets, it is determined that the association relationship between the at least two policy operator sets is a serial relationship, and that the association relationship between the policy operators in each policy operator set is a serial relationship.

[0024] In a possible implementation, after generating the corresponding screening strategy, the strategy acquisition module is further used to: encapsulate the screening strategy and obtain the strategy plug-in;

[0025] Then obtain the scheduling strategy preset for the business scenario. The strategy acquisition module is used to:

[0026] Get the policy plug-in preset for the business scenario. The policy plug-in carries the filtering policy.

[0027] Load the policy plug-in through the preset policy loader to obtain the filtering policy.

[0028] In a possible implementation, each candidate plug-in carries a candidate strategy preset for a candidate scenario, each candidate strategy includes a candidate screening process determined for a corresponding candidate scenario, the candidate screening process is generated by selecting multiple strategy operators corresponding to a candidate scenario, and combining the selected multiple candidate operators according to the indicated candidate association relationship, each candidate operator represents a unit operation determined to be used for the original traffic data in the corresponding candidate scenario;

[0029] After the policy output data is used as accurate traffic data that matches the business scenario, the execution module is also used to:

[0030] In response to a scheduling request carrying plug-in identifiers of multiple candidate plug-ins, each candidate plug-in of each plug-in identifier is scheduled according to the indicated plug-in scheduling relationship, and the following operations are performed each time the scheduling is performed: according to the candidate association relationship in the candidate plug-in, each unit operation in the corresponding candidate strategy is executed on the original traffic data;

[0031] Until the scheduling completion information of each candidate plug-in is obtained, the corresponding candidate output data is obtained, and the candidate output data is used as the accurate traffic data matching the business scenario.

[0032] In a possible implementation manner, after the candidate output data is used as accurate traffic data matching the business scenario, the execution module is further used to:

[0033] In response to the plug-in recommendation request, key information of each of the plurality of candidate plug-ins is obtained, wherein each key information includes at least: parameter information of the corresponding candidate plug-in, and historical loading information of the corresponding candidate plug-in;

[0034] According to each key information, respectively obtain the plug-in evaluation value of each of the plurality of candidate plug-ins, and sort the plurality of candidate plug-ins in descending order according to the plug-in evaluation value;

[0035] Selecting at least one candidate plug-in satisfying a preset sorting condition from a plurality of candidate plug-ins as a target plug-in;

[0036] It is recommended to select at least one target plugin.

[0037] In a possible implementation, based on each key information, plug-in evaluation values ​​of each of the plurality of candidate plug-ins are obtained respectively, and the execution module is used to:

[0038] For multiple candidate plug-ins, perform the following operations respectively:

[0039] According to a preset evaluation rule, parameter information of a candidate plug-in is evaluated to obtain a parameter evaluation value of the candidate plug-in, and according to the evaluation rule, historical loading information of a candidate plug-in is evaluated to obtain a performance evaluation value of the candidate plug-in;

[0040] The parameter evaluation value and the performance evaluation value are weighted and summed to obtain a plug-in evaluation value of a candidate plug-in.

[0041] In a third aspect, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the program.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned traffic data screening method.

[0043] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the steps of the above-mentioned traffic data screening method.

[0044] The beneficial effects of this application are as follows:

[0045] The embodiments of the present application provide a method, device, electronic device and storage medium for filtering traffic data. The method can be applied to electronic devices such as servers, and includes obtaining original traffic data associated with a specified business scenario, and a filtering strategy preset for the business scenario. The filtering strategy includes a traffic filtering process determined for the business scenario. The traffic filtering process is generated by selecting multiple policy operators corresponding to the business scenario, and combining the selected multiple policy operators according to the indicated operator association relationship. For example, the client can select multiple policy operators associated with the business scenario, indicate the operator association relationship, and then combine the selected multiple policy operators according to the operator association relationship to generate the filtering strategy. Therefore, for the original traffic data, the unit operations represented by each policy operator in the filtering strategy are executed according to the operator association relationship, wherein each unit operation is used to implement a corresponding processing logic for filtering traffic data, which is equivalent to reproducing the traffic filtering process in the traffic filtering strategy associated with the specified business scenario for the original traffic data. For example, assuming that in the screening strategy associated with the regression test scenario, the corresponding traffic screening process is generated by each strategy operator represented as a unit operation such as "obtaining the code coverage data of the original traffic data", "calculating the similarity between the code coverage data and the code coverage data of the preset test case", "eliminating the original traffic data", and "retaining the original traffic data", as well as an operator association relationship represented as "serial-serial-parallel". In this way, executing the unit operations represented by each strategy operator in the screening strategy according to the operator association relationship is equivalent to reproducing the traffic screening process for the original traffic data as follows: "obtaining the code coverage data of the original traffic data, calculating the similarity between the code coverage data and the code coverage data of the preset test case, and when the similarity is greater than a preset threshold, eliminating the original traffic data, otherwise, retaining the original traffic data", and then, based on the above method, accurate traffic data matching the business scenario is screened out from the original traffic data.

[0046] In this way, according to the operator association relationship, each unit operation in the filtering strategy is executed on the original traffic data until the execution completion information of the filtering strategy is obtained, and the corresponding strategy output data is obtained, and then the strategy output data is used as the precise traffic data matching the business scenario. That is, the filtering of the original traffic data is realized. For example, the server can execute each unit operation in the filtering strategy sent by the client according to the operator association relationship indicated by the client, and then when the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is used as the precise traffic data matching the business scenario. That is, the precise traffic data matching the business scenario is filtered out from the original traffic data. In this way, the so-called client only needs to select multiple strategy operators corresponding to the business scenario, and combine multiple strategy operators according to the indicated operator association relationship to quickly obtain the screening strategy required for the business scenario, and the so-called server only needs to execute each unit operation in the screening strategy according to the indicated operator association relationship, and when the execution completion information of the screening strategy is obtained, the corresponding strategy output data obtained can be used as the accurate traffic data matching the business scenario. Since each unit operation only needs to be developed once to be reused in different business scenarios, the above method can greatly reduce the time cost and manpower cost required for the client to develop the screening strategy, effectively improving the efficiency of strategy development. On the other hand, when developing multiple screening strategies, it avoids the waste of resources caused by repeated development of the same processing logic, thereby reducing the total amount of resources required for the joint development of multiple screening strategies, and effectively improving resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0048] Figure 1 A schematic diagram of filtering flow data provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a scenario architecture provided for an embodiment of the present application;

[0050] Figure 3a-3d A schematic diagram of a configuration interface provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of a directed acyclic graph provided in an embodiment of the present application;

[0052] Figure 5A flow chart of a method for screening flow data provided in an embodiment of the present application;

[0053] Figure 6 An example diagram of flow screening provided in an embodiment of the present application;

[0054] Figure 7 An example diagram of a regression test provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of a public operator library provided in an embodiment of the present application;

[0056] Fig. 9 A schematic diagram of a loading strategy plug-in provided in an embodiment of the present application;

[0057] Fig.10 A schematic diagram of another loading strategy plug-in provided in an embodiment of the present application;

[0058] Fig.11 A schematic diagram of a flow data screening system provided in an embodiment of the present application;

[0059] Fig.12 A schematic diagram of an interaction flow of a scheduling plug-in provided in an embodiment of the present application;

[0060] Figure 13a-Figure 13c A schematic diagram of a specific scenario provided for an embodiment of the present application;

[0061] Fig.14 A schematic diagram of a flow data screening device provided in an embodiment of the present application;

[0062] Fig.15 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0064] It is understandable that in the following specific implementations of this application, the collection, use, storage, etc. of the raw traffic data involved require the permission or consent of the relevant objects or organizations, and must comply with the laws, regulations and standards of the relevant countries and regions. In some cases, the above permission or consent can be in the form of an interface pop-up window, etc., to indicate that the relevant object or organization has signed in a specified area; or, it can be obtained from a public database that has been made public; or, data can be collected within an authorized organization; or, data can be collected by simulating relevant objects in a virtual scene.

[0065] First, some key terms involved in the embodiments of the present invention are explained as follows.

[0066] Raw traffic data refers to data generated by devices connected to the network in the process of providing online services; specifically, in one embodiment, users of online services can initiate online requests for online services to online servers through network connections, and the online server generates response messages for the online requests. In this way, the online server can collect online requests and response messages for online services to obtain the raw traffic data of the online services, wherein online services include, for example, game services, multimedia information recommendation services, and billboard services.

[0067] For example, assume that object A initiates an online request a for game service A to the online server, and the online server generates a response message b for the online request a. In this way, the online server can use the relevant data carried by the above online request a and the response message b (such as the uniform resource locator url, return code, etc.) as the original traffic data collected for game service A.

[0068] Traffic screening strategy refers to a strategy developed for a specified business scenario that can filter out accurate traffic data that matches the specified business scenario from the collected raw traffic data.

[0069] Exemplarily, in a regression testing scenario, the relevant technology can adopt the following traffic screening strategy: "Obtain code coverage data of the original traffic data, calculate the similarity between the code coverage data and the code coverage data of the preset test case, and when the similarity is greater than a preset threshold, eliminate the original traffic data, otherwise, retain the original traffic data" to filter out accurate traffic data that supports regression testing of online services from the original traffic data.

[0070] Accurate traffic data refers to traffic data that matches a specified business scenario; that is, traffic data that supports the business scenario.

[0071] For example, see Figure 1As shown, in the field of software testing, accurate traffic data that matches regression testing scenarios, performance testing scenarios, security testing scenarios, etc. can be screened out from the original traffic data of online services, that is, accurate traffic data that supports regression testing, performance testing, security testing, etc. of online services.

[0072] For example, in the field of multimedia information recommendation, accurate traffic data that matches the object feature collection scenarios, object region collection scenarios, etc. can be screened out from the original traffic data of online services, that is, accurate traffic data that supports object feature collection, object region collection, etc. of target objects using online services.

[0073] For example, in the field of machine learning, accurate traffic data that matches the training set collection scenario can be screened out from the original traffic data of online services, that is, accurate traffic data that supports being used as a model training set.

[0074] The following is a brief introduction to the design concept of the embodiments of the present application.

[0075] In the related technology, after collecting the original traffic data, the online server can use the traffic screening strategy developed for the corresponding business scenario to filter out accurate traffic data that matches the business scenario from the original traffic data.

[0076] For example, after collecting the original traffic data of its own game service, the online server can use the following traffic screening strategy developed for the corresponding regression test scenario: "Obtain the code coverage data of the original traffic data, calculate the similarity between the code coverage data and the code coverage of the preset test case, and when the similarity is greater than the preset threshold, eliminate the original traffic data; otherwise, retain the original traffic data" to filter out the accurate traffic data that matches the regression test scenario from the original traffic data, that is, accurate traffic data that supports regression testing of the game service.

[0077] However, when the business scenario changes, the corresponding traffic screening strategy needs to be redeveloped. Since the traffic screening strategy is usually developed through engineering research and development, the manpower and time costs required are high, which in turn affects the screening efficiency.

[0078] At the same time, since online servers can only use traffic screening strategies developed for corresponding business scenarios, when developing traffic screening strategies currently, they cannot fully utilize the developed traffic screening strategies. This can easily lead to repeated development and cause certain waste of resources.

[0079] For example, suppose that the traffic screening strategy a developed for the regression test scenario is: "Obtain the code coverage data of the original traffic data, calculate the similarity between the code coverage data and the code coverage data of the preset test case, and when the similarity is greater than a preset threshold, eliminate the original traffic data, otherwise, retain the original traffic data." Further, suppose that a traffic screening strategy needs to be developed for the performance test scenario. Then, if the traffic screening strategy a cannot correspond to the currently required performance test scenario, it is necessary to develop the corresponding traffic screening strategy through engineering research and development of the performance test scenario, which is likely to cause a waste of resources.

[0080] In view of this, an embodiment of the present application provides a method, device, electronic device and storage medium for screening traffic data. The method can be applied to electronic devices such as servers, and includes obtaining original traffic data associated with a specified business scenario, and a screening strategy preset for the business scenario. The screening strategy includes a traffic screening process determined for the business scenario. The traffic screening process is generated by selecting multiple policy operators corresponding to the business scenario, and combining the selected multiple policy operators according to the indicated operator association relationship. For example, the client can select multiple policy operators associated with the business scenario, indicate the operator association relationship, and then combine the selected multiple policy operators according to the operator association relationship to generate the screening strategy. Therefore, for the original traffic data, the unit operations represented by each policy operator in the screening strategy are executed according to the operator association relationship, wherein each unit operation is used to implement a corresponding processing logic for the screening of traffic data, which is equivalent to reproducing the traffic screening process in the traffic screening strategy associated with the specified business scenario for the original traffic data. For example, assuming that in the screening strategy associated with the regression test scenario, the corresponding traffic screening process is generated by each strategy operator represented as a unit operation such as "obtaining the code coverage data of the original traffic data", "calculating the similarity between the code coverage data and the code coverage data of the preset test case", "eliminating the original traffic data", and "retaining the original traffic data", as well as an operator association relationship represented as "serial-serial-parallel". In this way, executing the unit operations represented by each strategy operator in the screening strategy according to the operator association relationship is equivalent to reproducing the traffic screening process for the original traffic data as follows: "obtaining the code coverage data of the original traffic data, calculating the similarity between the code coverage data and the code coverage data of the preset test case, and when the similarity is greater than a preset threshold, eliminating the original traffic data, otherwise, retaining the original traffic data", and then, based on the above method, accurate traffic data matching the business scenario is screened out from the original traffic data.

[0081] In this way, according to the operator association relationship, each unit operation in the filtering strategy is executed on the original traffic data until the execution completion information of the filtering strategy is obtained, and the corresponding strategy output data is obtained, and then the strategy output data is used as the precise traffic data matching the business scenario. That is, the filtering of the original traffic data is realized. For example, the server can execute each unit operation in the filtering strategy sent by the client according to the operator association relationship indicated by the client, and then when the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is used as the precise traffic data matching the business scenario. That is, the precise traffic data matching the business scenario is filtered out from the original traffic data. In this way, the so-called client only needs to select multiple strategy operators corresponding to the business scenario, and combine multiple strategy operators according to the indicated operator association relationship to quickly obtain the filtering strategy required for the business scenario, and the so-called server only needs to execute each unit operation in the filtering strategy according to the indicated operator association relationship, and when the execution completion information of the filtering strategy is obtained, the corresponding strategy output data obtained can be used as the accurate traffic data matching the business scenario. Since each unit operation only needs to be developed once to be reused multiple times, the above method can greatly reduce the time cost and manpower cost required for the client to develop the filtering strategy, effectively improving the strategy development efficiency. On the other hand, when developing multiple filtering strategies, it avoids the waste of resources caused by repeated development of the same processing logic, thereby reducing the total amount of resources required for the joint development of multiple filtering strategies, and effectively improving resource utilization.

[0082] It should be understood that the specific implementation methods of the present application may not be limited to use in the fields involving the screening of traffic data, such as the testing field, the game field, the multimedia information recommendation field, the machine learning field, and the like in the Internet, cloud technology, artificial intelligence, smart transportation, smart home, smart wearable devices, smart driving, the Internet of Things, and other technologies. And further speaking, the business scenarios involved in the present application may be scenarios related to the screening of traffic data in the above-mentioned fields. For example, in the field of software testing, the present application may involve business scenarios such as regression testing scenarios, performance testing scenarios, and security testing scenarios; for another example, in the field of multimedia information recommendation, the present application may involve business scenarios such as object feature collection scenarios, object region collection scenarios, and for another example, in the field of machine learning, the present application may involve business scenarios such as training set collection scenarios.

[0083] In other words, the original traffic data involved in this application can come from any electronic device in the network, and then, the proposed traffic data screening method can be implemented on the original traffic data, so that the screened accurate traffic data can be used in regression testing scenarios, performance testing scenarios, security testing scenarios, object feature collection scenarios, object region collection scenarios, etc.

[0084] Furthermore, the embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0085] See also Figure 2 As shown, it is a schematic diagram of a scenario architecture applicable to an embodiment of the present application, and the scenario architecture includes device 201, device 202 and device 203, wherein the number of devices 201 can be one or more, the number of devices 202 and devices 203 can also be one or more, and devices 201, devices 202 and devices 203 can communicate with each other through a communication network, and the communication network used by devices 201, devices 202 and devices 203 can be a wired network or a wireless network.

[0086] Device 201 may be, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a desktop computer, an e-book reader, an intelligent voice interaction device, an intelligent home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto. In a possible implementation, device 201 may be a device that is provided with online services, such as a device that is installed with an online service client, and the so-called online services include, but are not limited to, game services, e-commerce services, multimedia information recommendation services, audio and video services, etc., or device 201 may also be a device dedicated to generating raw traffic data, such as a traffic storage device, and correspondingly, device 202 may be a device that provides online services, such as a backend server corresponding to an online service, or a device dedicated to filtering traffic data, such as a traffic filtering platform server, etc.

[0087] It is understandable that the present application does not limit the type of online services, and does not limit the number of devices 201 and 202. For example, in some embodiments, the original traffic data may come from one device 201, or the original traffic data may be obtained from multiple devices 201. Device 202 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0088] It should be noted that in this scenario architecture, the device 202 completes the processing operations on the original traffic data, including: obtaining the original traffic data associated with the specified business scenario, and the filtering strategy preset for the business scenario; according to the operator association relationship, executing each unit operation in the filtering strategy on the original traffic data until the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario, wherein the above-mentioned filtering strategy can be pre-stored by the device 202, and the filtering strategy is generated by multiple strategy operators associated with the business scenario, and the operator association relationship between the multiple strategy operators, or it can also be the filtering strategy sent by the receiving device 203, and the filtering strategy is generated by multiple strategy operators associated with the business scenario, and the operator association relationship between the multiple strategy operators.

[0089] Furthermore, device 203 may be, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a desktop computer, an e-book reader, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, and device 203 may be a device for sending filtering policies to device 202, such as a management device of device 202. In device 203, a management terminal related to the filtering of traffic data may be installed. The management terminal may be software (such as a browser, communication software, etc.), or a web page, a small program, etc. In the above application scenario, device 203 may generate a filtering policy based on multiple policy operators associated with the business scenario and the operator association relationship between multiple policy operators by installing a management terminal, and send the filtering policy to device 202 through a communication network.

[0090] That is, in the specific implementation process of the above-mentioned application scenario, device 202 obtains the original traffic data associated with the business scenario from device 201, and obtains the screening strategy preset for the business scenario from device 203, wherein the screening strategy includes a traffic screening process determined for the business scenario, and the traffic screening process is generated by multiple policy operators associated with the business scenario, and the operator association relationship between the multiple policy operators, and each policy operator represents a unit operation determined for the business scenario.

[0091] In a possible implementation, the device 203 may generate a screening strategy in the following manner, including: obtaining policy description information determined for a business scenario, wherein the policy description information includes: multiple functions to be executed determined for the business scenario, each function to be executed being associated with a processing logic for implementing screening for traffic data; selecting multiple policy operators associated with each function to be executed from a preset set of operators; in response to an orchestration configuration operation triggered for multiple policy operators, determining an operator association relationship between multiple policy operators, and combining multiple policy operators according to the operator association relationship to generate a corresponding screening strategy.

[0092] Specifically, each strategy operator represents a unit operation determined for use with respect to raw traffic data in a business scenario, and each unit operation is used to implement a corresponding processing logic for filtering traffic data, the so-called processing logic being, for example, rule calculation, model calculation, algorithm processing, etc. In this way, those skilled in the art may pre-develop multiple unit operations for filtering traffic data, wherein each unit operation is used to implement a corresponding processing logic for filtering traffic data, and thus, the device 203 may select multiple strategy operators associated with multiple functions to be executed corresponding to the business scenario in the pre-developed unit operations according to multiple functions to be executed determined for the business scenario.

[0093] Exemplarily, in a regression test scenario, multiple policy operators can be selected for corresponding business scenarios based on policy description information applicable to regression testing, wherein it is assumed that the policy description information contains multiple functions to be executed: "preprocessing", "obtaining code coverage of original traffic data", "calculating the similarity between the code coverage and the code coverage of preset test cases", "eliminating the original traffic data when the similarity is greater than a preset threshold", "retaining the original traffic data when the similarity is not greater than a preset threshold" and "post-processing". Further, it is assumed that from a preset operator set, policy operators A, B, C, D, E, and F that can respectively realize the functions to be executed such as "preprocessing", "obtaining code coverage of original traffic data", "calculating the similarity between the code coverage and the code coverage of preset test cases", "eliminating the original traffic data when the similarity is greater than a preset threshold", "retaining the original traffic data when the similarity is not greater than a preset threshold" and "post-processing" are obtained, that is, multiple policy operators A, B, C, D, E, and F associated with the multiple functions to be executed in the policy description information are selected.

[0094] Furthermore, by triggering the orchestration configuration operation for multiple strategy operators, the operator association relationship between the multiple strategy operators is determined, and the multiple strategy operators are combined according to the operator association relationship to generate a corresponding screening strategy.

[0095] In a possible implementation, the above-mentioned orchestration configuration operation triggered by multiple policy operators may be performed in a configuration interface, which may be an interface presented in the management terminal of the device 203, see Figure 3a As shown, it is a schematic diagram of a possible configuration interface provided in an embodiment of the present application. In this configuration interface, the device 203 generates a corresponding screening strategy in response to the orchestration configuration operation triggered by the above-mentioned multiple strategy operators A, B, C, D, E, and F.

[0096] In one possible implementation, device 203 determines at least two policy operator sets in response to triggering a selection operation for multiple policy operators, and device 203 determines an association relationship between at least two policy operator sets and an association relationship between each policy operator in each policy operator set in response to triggering an orchestration configuration operation for at least two policy operator sets.

[0097] For example, assuming that the relevant object has selected policy operators A, B, and C, and has selected policy operators D and F, and has further selected policy operator F in the configuration interface presented by device 203, then device 203, in response to the selection operation triggered for policy operators A, B, and C, in response to the selection operation triggered for policy operators D and E, and in response to the selection operation triggered for policy operator F, determines three policy operator sets {A, B, C}, {D, E}, and {F}.

[0098] The following describes the orchestration configuration operations triggered by the policy operator set.

[0099] In a possible implementation, the device 203 determines that the association relationship between the at least two policy operator sets is a serial relationship, and the association relationship between the policy operators in each policy operator set is a serial relationship in response to the stage configuration operation triggered for the at least two policy operator sets.

[0100] For example, see Figure 3b As shown, assuming that the relevant object selects two policy operator sets {A, B, C, D, E}, {F} for multiple policy operators A, B, C, D, E, F, and the relevant object further configures the two policy operator sets {A, B, C, D, E}, {F} into different stages, namely: stage 1 and stage 2, in the operation interface presented by the device 203, then the device 203 responds to the stage configuration operation for the two policy operator sets {A, B, C, D, E}, {F}, and determines that the association relationship between the policy operator set {A, B, C, D, E} and the policy operator set {F} is a serial relationship, and the association relationship between the policy operators A, B, C, D, E in the policy operator set {A, B, C, D, E} is a serial relationship.

[0101] In a possible implementation, the device 203 determines that the association relationship between the at least two strategy operator sets is a parallel relationship, and the association relationship between the strategy operators in each strategy operator set is a serial relationship in response to the task configuration operation triggered for the at least two strategy operator sets.

[0102] For example, see Figure 3c As shown, assuming that the relevant object selects two policy operator sets {D} and {E} for multiple policy operators A, B, C, D, E, and F, and the relevant object further configures the two policy operator sets {D} and {E} as different tasks, namely, "Task 1" and "Task 2" in the configuration interface presented by device 203, then device 203 responds to the task configuration operation for the two policy operator sets {D} and {E}, and determines that the association relationship between the policy operator set {D} and the policy operator set {E} is a parallel relationship.

[0103] In a possible implementation, the device 203 determines that the association relationship between the at least two policy operator sets is a serial relationship, and the association relationship between the policy operators in each policy operator set is a serial relationship in response to the default configuration operation triggered for the at least two policy operator sets.

[0104] For example, see Figure 3d As shown, assuming that the relevant object selects two policy operator sets {A, B, C}, {D, E, F} for multiple policy operators A, B, C, D, E, F, and does not continue to operate on the two policy operator sets in the configuration interface presented by device 203, then device 203 responds to the default configuration operation for the two policy operator sets {A, B, C}, {D, E, F}, and determines that the association relationship between the policy operator set {A, B, C} and the policy operator set {D, E, F} is a serial relationship, the association relationship between the policy operators A, B, C in the policy operator set {A, B, C} is a serial relationship, and the association relationship between the policy operators D, E, F in the policy operator set {D, E, F} is a serial relationship.

[0105] In this way, device 203, in response to the selection operation triggered for multiple strategy operators and the orchestration configuration operation triggered for at least two strategy operator sets, determines the operator association relationship to generate a corresponding screening strategy based on the operator association relationship; in a possible implementation, the operator association relationship can be embodied as a directed acyclic graph (DAG).

[0106] Exemplarily, assume that device 203, in response to a stage configuration operation for two policy operator sets {A, B, C, D, E}, {F}, determines that the association relationship between the policy operator set {A, B, C, D, E} and the policy operator set {F} is a serial relationship; then, in response to a default configuration operation for the two policy operator sets {A, B, C}, {D, E, F}, determines that the association relationship between the policy operator set {A, B, C} and the policy operator set {D, E, F} is a serial relationship; then, in response to a task configuration operation for the two policy operator sets {D}, {E}, determines that the association relationship between the policy operator set {D} and the policy operator set {E} is a parallel relationship, wherein the association relationship between the policy operators in each policy operator set is a series relationship, then the operator association relationship between the policy operators A, B, C, D, E, F determined above is embodied as a directed acyclic graph, and the directed acyclic graph can be as follows Figure 4 shown.

[0107] In this way, through the above method, device 203 adopts multiple policy operators associated with business scenarios, and the operator association relationship between multiple policy operators, to generate screening strategies corresponding to business scenarios, and then the screening strategies corresponding to business scenarios can be developed without manual writing by R&D personnel, so that the manpower cost and time cost required for development are reduced, and the efficiency of strategy development is improved. Furthermore, with the help of multiple policy operators associated with business scenarios, and the operator association relationship between multiple policy operators, when facing the same or different business scenarios, the screening strategies can be quickly generated by adjusting the operator association relationship between multiple policy operators, and then, with the help of the resources of existing screening strategies, the screening strategies required for the business can be developed, thereby avoiding the waste of resources caused by repeated development and improving resource utilization.

[0108] Further, based on the above application scenarios and generated screening strategies, see Figure 5 As shown, the process of the method for screening flow data involved in the present application is described below. It is worth noting that the process of the method for screening flow data is described by taking a regression test scenario as an example, including:

[0109] S501: Acquire the original traffic data associated with the specified business scenario and the screening strategy preset for the business scenario.

[0110] Specifically, the so-called raw traffic data refers to the data generated by devices connected to the network in the process of providing online services; the so-called screening strategy includes a traffic screening process determined for a business scenario, wherein the traffic screening process is generated by selecting multiple strategy operators corresponding to the business scenario, and combining the selected multiple strategy operators according to the indicated operator association relationship. Each strategy operator represents a unit operation determined to be used for the raw traffic data in the business scenario, and each unit operation is used to implement a corresponding processing logic for the screening of traffic data.

[0111] For example, see Figure 6 As shown, it is assumed that in the regression test scenario, device 202 provides game services for device 201, and then device 202 obtains the original traffic data of the game service. Further, device 202 obtains the screening strategy for the regression test scenario sent by device 203. In the screening strategy, the unit operations corresponding to the strategy operators A, B, C, D, E, and F are: "pre-processing", "obtaining the code coverage of the original traffic data", "calculating the similarity between the code coverage and the code coverage of the preset test case", "removing the original traffic data when the similarity is greater than the preset threshold", "retaining the original traffic data when the similarity is not greater than the preset threshold" and "post-processing", and the operator association relationship between the above-mentioned strategy operators is shown in FIG. Figure 4 shown.

[0112] S502: According to the operator association relationship, execute each unit operation in the filtering strategy on the original traffic data until the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

[0113] Specifically, device 202 can execute each unit operation in the filtering strategy through a specific process or engine, and then when the execution completion information returned by the process or engine is obtained, it is determined that the filtering strategy is executed and the corresponding strategy output data obtained is used as accurate traffic data matching the business scenario.

[0114] For example, see Figure 7 As shown, it is assumed that device 202 uses its associated engine as shown in Figure 4The operator association relationship shown in the figure executes the unit operations corresponding to the strategy operators A, B, C, D, E, and F respectively. In this way, for the original traffic data, the traffic screening process in the screening strategy is implemented, which is: "preprocessing; obtaining the code coverage of the original traffic data; calculating the similarity between the code coverage and the code coverage of the preset test case; when the similarity is greater than the preset threshold, eliminating the original traffic data; when the similarity is not greater than the preset threshold, retaining the original traffic data; post-processing". In this way, the device 202 can obtain the corresponding strategy output data when obtaining the execution completion information of the screening strategy in the engine, that is, the traffic data whose similarity between the corresponding code coverage and the code coverage of the preset test case is not greater than the threshold, and then the strategy output data can be used as accurate traffic data to support regression testing.

[0115] It is understandable that in actual applications, corresponding to the version replacement of the screening strategy associated with the same business scenario, the strategy operator associated with each screening strategy can be stored in a public operator library, see Figure 8 As shown, it is a schematic diagram of a possible public operator library provided by the present application. In the public operator library, three versions of screening strategies corresponding to business scenarios A, B, C, and D are stored. Specifically, in version V1, the screening strategy a_V1 corresponding to business scenario A is associated with strategy operator 1 in the public operator library, the screening strategy b_V1 corresponding to business scenario B is associated with strategy operator 3 in the public operator library, the screening strategy c_V1 corresponding to business scenario C is associated with strategy operator 4 in the public operator library, and the screening strategy d_V1 corresponding to business scenario D is associated with strategy operator 6 in the public operator library; further, in version V2, the screening strategy a_V2 corresponding to business scenario A is associated with strategy operators 1, 7, and 8 in the public operator library, and the screening strategy b_V2 corresponding to business scenario B is associated with strategy operator 6 in the public operator library. The policy operators 3 and 9 are associated, the screening policy c_V2 corresponding to the business scenario C is associated with the policy operators 4, 10, 5, and 11 in the public operator library, and the screening policy d_V2 corresponding to the business scenario D is associated with the policy operators 5, 11, 6, and 12 in the public operator library; further, in version V3, the screening policy a_V3 corresponding to the business scenario A is associated with the policy operators 1, 7, 8, 13, 14, and 15 in the public operator library, the screening policy b_V3 corresponding to the business scenario B is associated with the policy operators 3 and 9 in the public operator library, the screening policy c_V3 corresponding to the business scenario C is associated with the policy operators 3, 9, 15, 4, 10, and 16 in the public operator library, and the screening policy d_V3 corresponding to the business scenario D is associated with the policy operators 4, 10, 16, 11, 6, 12, and 18 in the public operator library.

[0116] Thus, based on the above method, corresponding to the version replacement of the screening strategy associated with the same business scenario, multiple strategy operators associated with each screening strategy are stored in a public operator library, thereby improving storage efficiency.

[0117] In a possible implementation, after generating the filtering policy, device 203 further includes: encapsulating the filtering policy and generating a policy plug-in, so that device 203 sends the policy plug-in to device 202, so that after device 202 obtains the original traffic data in device 201, it loads the policy plug-in through a preset policy loader, obtains the filtering policy, and executes the subsequent steps involved in this application.

[0118] In this way, the present application encapsulates the filtering policy as a policy plug-in to ensure the flexible loading of each filtering policy, which is more universal. For example, when it is necessary to set or adjust the corresponding filtering policy to adapt to a specific business scenario or to respond to emergencies in the business scenario, it is currently necessary to adjust the system file corresponding to the filtering policy based on actual needs through the management end, and use the adjusted system file to globally replace the required filtering policy with the required filtering policy. This will result in a higher difficulty in replacing the filtering policy and a lower loading speed. In an embodiment of the present application, the policy plug-in corresponding to the adjusted filtering policy is used to directly replace the policy plug-in corresponding to the current filtering policy, so that the required filtering policy can be loaded without making corresponding changes to the system file. In this way, the loading speed of the filtering policy is improved, and the system file is not associated with the filtering policy, so that the developed filtering policy can be applied to different systems with higher universality.

[0119] It is worth noting that in actual applications, the number of policy plug-ins obtained by encapsulating the corresponding filtering policy is not limited. For example, a filtering policy can be encapsulated into a corresponding policy plug-in, or, according to actual needs, a filtering policy can be encapsulated into multiple policy plug-ins. In the process of encapsulating a filtering policy into multiple policy plug-ins, it can be understood that each policy plug-in needs to carry at least one of the corresponding multiple policy operators. Then, corresponding to the operator association relationship between the corresponding at least one policy operator, the plug-in association relationship between the multiple policy plug-ins can be further determined. For example, assuming that a filtering policy is encapsulated into two policy plug-ins A and B, and policy plug-in A contains the following policy operators: {A, B, C, D, E}, and policy plug-in B contains the following policy operator {F}, then according to the determined operator association relationship, it is determined that the relationship between policy plug-in A and policy plug-in B can be a serial relationship.

[0120] For ease of understanding, the present application will be described below in terms of a screening strategy encapsulated as a strategy plug-in.

[0121] Optionally, the above-mentioned preset strategy loader can be a class loader StrategyClassLoader. The so-called class loader supports hot loading between different filtering strategies associated with the same business scenario, and then loads the specified filtering strategy associated with the business scenario.

[0122] For example, see Fig. 9 As shown, it is assumed that device 203 sends a strategy plug-in to device 202, and the strategy plug-in carries the screening strategy a_V2 corresponding to the business scenario A. In this way, device 202 performs hot loading between the currently used strategy plug-in a_V1 corresponding to the business scenario A and the obtained strategy plug-in a_V2 through the class loader StrategyClassLoader, that is, by replacing the pointer of the parameter information such as the address of the corresponding strategy plug-in a_V1 with the pointer of the parameter information of the corresponding strategy plug-in a_V1, thereby quickly loading the strategy plug-in a_V2.

[0123] In this way, by encapsulating the screening strategy as a policy plug-in and dynamically loading it through the class loader, the corresponding policy execution plug-in can be flexibly and quickly deployed when adapting to specific business scenarios or responding to emergencies in business scenarios, so that the screening strategy can adapt to actual needs more quickly.

[0124] Further, in a possible implementation, the device 203 can generate candidate strategies associated with each of the multiple candidate scenarios corresponding to its own needs, and then obtain multiple candidate plug-ins carrying the candidate strategies. It can be understood that in the process of generating the candidate plug-in, the device 203 can execute the steps of generating screening strategies and strategy plug-ins as described above. For example, in the process of generating the candidate plug-in corresponding to the performance test scenario, the device 203 can execute the steps of determining the multiple candidate operators associated with the performance test scenario as described above, and determining the candidate association relationship between the multiple candidate operators in response to the orchestration configuration operation for the multiple candidate operators.

[0125] It should be understood that, in a possible implementation, the candidate policy generated by device 203 is further encapsulated as a candidate plug-in, so that device 203 can further send multiple candidate plug-ins to device 202, and then, after device 202 receives the multiple candidate plug-ins, it can flexibly load the multiple candidate plug-ins to quickly adapt to actual needs.

[0126] For example, see Fig.10 As shown, it is assumed that device 203 sends the following candidate plug-ins to device 202: candidate plug-in A, candidate plug-in B, and candidate plug-in C, wherein candidate plug-in A corresponds to a performance test scenario, candidate plug-in B corresponds to a security test scenario, and candidate plug-in C corresponds to a traffic diversion test scenario. Each candidate plug-in is associated with multiple corresponding policy operators. After device 202 receives multiple candidate plug-ins, it can load multiple candidate plug-ins separately. In this way, device 202 can filter out accurate traffic data that supports performance testing, accurate traffic data that supports security testing, and accurate traffic data that supports traffic diversion testing from the original traffic data.

[0127] Further, in a possible implementation, after device 202 obtains multiple candidate plug-ins, device 203 may also initiate a scheduling request carrying plug-in identifiers of multiple candidate plug-ins to device 202, and then device 202 schedules each candidate plug-in of each plug-in identifier according to the indicated plug-in scheduling relationship, and each scheduling is performed on the original traffic data according to the candidate association relationship in the candidate plug-in, and each unit operation in the corresponding candidate strategy is performed on the original traffic data until the scheduling completion information of each candidate plug-in is obtained, the corresponding candidate output data is obtained, and the candidate output data is used as the original traffic data, The precise traffic data that matches the business scenario. In this way, device 203 can freely schedule the existing candidate plug-ins in device 202, and then when the business scenario is not determined, or an emergency occurs in the business scenario, the corresponding candidate output data obtained is used as the precise traffic data that matches the business scenario in the original traffic data, so as to improve the user experience.

[0128] It is worth noting that the above-mentioned plug-in scheduling relationship can be indicated by the device 203 according to actual needs, or, when multiple candidate plug-ins to be scheduled are associated with the same filtering policy, it can be determined by the corresponding plug-in association relationship between multiple candidate plug-ins. For example, in one possible scenario, the device 203 can flexibly indicate serial scheduling or parallel scheduling between multiple candidate plug-ins associated with the same or different filtering policies according to actual needs, or indicate that multiple candidate plug-ins associated with the same filtering policy are scheduled according to the plug-in association relationship.

[0129] Further, in a possible implementation, device 203 sends a recommendation request for multiple candidate plug-ins to device 202, so that device 202 responds to the recommendation request for the multiple candidate plug-ins, obtains key information of each of the multiple candidate plug-ins, obtains plug-in evaluation values ​​of each of the multiple candidate plug-ins based on each key information, and sorts the multiple candidate plug-ins in descending order based on each plug-in evaluation value, selects at least one candidate plug-in that meets a preset sorting condition from the multiple candidate plug-ins as a target plug-in, and recommends the selected at least one target plug-in to device 203.

[0130] Specifically, each key information includes at least: parameter information of the corresponding candidate plug-in, and historical loading information of the corresponding candidate plug-in; for example, in the specific implementation of the present application, the key information of a candidate plug-in may include: language characteristics (go, c++), framework characteristics (cgi, server, appsvr), user scores, access volume, execution time, disk / CPU / memory consumption and other parameter information of the candidate plug-in, as well as historical loading information such as historical coverage of the candidate plug-in.

[0131] In one possible implementation, according to preset evaluation rules, parameter information of a candidate plug-in is evaluated to obtain a parameter evaluation value of the candidate plug-in, and according to the evaluation rules, historical loading information of a candidate plug-in is evaluated to obtain a performance evaluation value of the candidate plug-in, and the parameter evaluation value and the performance evaluation value are weightedly summed to obtain a plug-in evaluation value of the candidate plug-in.

[0132] For example, according to the preset evaluation rules, the language characteristics (go, c++), framework characteristics (cgi, server, appsvr), user scores, access volume, execution time, disk / CPU / memory consumption and other parameter information of a candidate plug-in are evaluated to obtain the parameter evaluation value a, and according to the evaluation rules, the historical coverage of a candidate plug-in is evaluated to obtain a performance evaluation value b of the candidate plug-in, and then, based on the preset parameter evaluation weight weight_a and the performance evaluation weight weight_b, a plug-in evaluation value score = a*weight_a+b*weight_b of the candidate plug-in is obtained.

[0133] In this way, at least one target plug-in is recommended to the device 203 when necessary, thereby making full use of existing candidate strategies and reducing strategy trial and error costs.

[0134] For further information, see Fig.11 As shown, the present application also provides a traffic data screening system, which can be built through a microservice architecture. Specifically, the server end of the system can be shown as device 202, and the management end of the system can be shown as device 203. The so-called system also supports connecting to external application devices, which can be device 201. Further, the server-side device 202 supports plug-in orchestration and scheduling services, plug-in recommendation services, policy plug-in management services, software development kit SDK services, and data channel services.

[0135] It should be noted that, based on the plug-in orchestration and scheduling service, the plug-in scheduling relationship can be indicated according to actual needs, such as indicating serial scheduling or parallel scheduling between every two candidate plug-ins; based on the plug-in recommendation service, at least one recommended target plug-in can be selected from multiple candidate plug-ins; based on the policy plug-in management service, existing policy plug-ins or candidate plug-ins can be deleted, replaced, and other management configurations can be performed; based on the software development kit SDK service, development tools related to policy operators, policy plug-ins, etc. can be provided to create a standardized development environment. For example, the so-called software development kit SDK service can provide development tool documents, plug-in access documents, etc., and specify the security specifications and access specifications of each policy plug-in, among which the security specifications include but are not limited to: organizational structure verification, traffic data access permission verification, traffic screening result write permission verification, access scope, etc., and the access specifications include but are not limited to: policy plug-in interface, object type declaration, etc.; based on the data channel service, the relevant data generated in the system can be transmitted.

[0136] Correspondingly, the device 203 on the management side supports policy plug-in upload service, policy plug-in feature management service, traffic screening pipeline orchestration service, policy operator management service, and business access management service.

[0137] It should be noted that based on the policy plug-in upload service, you can develop policy plug-ins associated with business scenarios and upload the policy plug-ins associated with the business scenarios to the server; based on the policy plug-in feature management service, you can view and obtain the properties of stored policy plug-ins or candidate plug-ins, such as the plug-in development language, etc.; based on the policy operator management service, you can delete, replace and manage existing policy operators; based on the business access management service, you can manage the original traffic data associated with the currently required business scenarios.

[0138] Furthermore, the above-mentioned traffic data screening system also includes a storage service, which can be a Web Feature Service (WFS) or a designated database service. Specifically, the storage service can be deployed in device 202, or it can be deployed on a designated external storage device. Furthermore, based on the so-called storage service, relevant data generated in the traffic data screening system can be stored.

[0139] So, based on Fig.11 In a possible implementation of the flow data screening system shown in FIG. 2 , device 203 corresponds to a management end in the system, and device 202 corresponds to a server end in the system. The management end is used to send a scheduling request carrying plug-in identifiers of multiple candidate plug-ins; the server end stores each candidate plug-in identifier and can execute the scheduling request initiated by the management end through a scheduling engine, see Fig.12As shown in the figure, during plug-in scheduling, the process interaction between the so-called management end and the so-called server end includes:

[0140] S1201: The traffic screening pipeline orchestration service in the management end sends a scheduling request carrying plug-in identifiers of multiple candidate plug-ins to the scheduling engine in the server end;

[0141] S1202: The scheduling engine in the server side requests the policy plug-in management service to obtain each candidate plug-in identified by each plug-in;

[0142] S1203: The scheduling engine in the server schedules multiple candidate plug-ins according to the indicated plug-in scheduling relationship; each time scheduling is performed, S12031-S12033 is executed;

[0143] S12031: The scheduling engine in the server requests the storage service to record scheduling information;

[0144] S12032: The scheduling engine in the server side requests the plug-in orchestration scheduling service to schedule a candidate plug-in;

[0145] S12033: The scheduling engine in the server requests the storage service to update the scheduling information;

[0146] S1204: The scheduling engine in the server sends a scheduling completion message to the traffic screening pipeline orchestration service in the management end.

[0147] It should be noted that in Fig.12 In the process interaction illustrated, the so-called scheduling engine in the server side can request the plug-in orchestration scheduling service to schedule the corresponding candidate plug-ins in a serial or parallel manner according to the plug-in scheduling relationship. Each time a candidate plug-in is scheduled, the so-called scheduling engine in the server side can execute the unit operations represented by the corresponding multiple strategy operators in a synchronous or asynchronous manner according to the operator association relationship in the candidate plug-in. For example, when scheduling a candidate plug-in, if the current strategy operator to be executed and its corresponding next strategy operator are in a serial relationship, the unit operations represented by the current strategy operator and the next strategy operator are executed synchronously; if the current strategy operator to be executed and its corresponding next strategy operator are in a parallel relationship, the unit operations represented by the current strategy operator and the next strategy operator are executed asynchronously.

[0148] In this way, when it is necessary to adapt to specific business scenarios or respond to emergencies in business scenarios, the candidate plug-ins of existing candidate strategies can be used to flexibly and quickly deploy applicable traffic data screening pipelines, so that they can adapt to actual needs more quickly and thus improve user experience.

[0149] The following will describe the specific scenarios involved in this application based on the traffic data screening system provided above.

[0150] See also Fig.13a As shown, in a specific scenario, the target object can select multiple policy operators associated with the current business scenario through the policy plug-in upload service in the management end, and trigger the orchestration configuration operation for the multiple policy operators in the management end to determine the operator association relationship between the multiple policy operators. Furthermore, the so-called policy plug-in upload service supports encapsulating multiple policy operators to obtain the corresponding policy plug-in V2, and uploading the policy plug-in V2 to the plug-in orchestration scheduling service in the server end. Further, the plug-in orchestration scheduling service in the server end loads the policy plug-in V2 to realize the replacement of the screening strategy, and then adopts the latest screening strategy to filter out accurate traffic data. In this specific scenario, the accurate traffic data can be used for system testing.

[0151] See also Fig.13b As shown, in another specific scenario, the target object can select multiple candidate plug-ins through the traffic screening pipeline orchestration service in the management end, and request the plug-in orchestration scheduling service in the server end to schedule multiple candidate plug-ins according to the indicated plug-in scheduling relationship. Then the server end uses each candidate plug-in to implement traffic data screening under the indicated traffic screening pipeline, and screen out the corresponding required accurate traffic data.

[0152] See also Fig.13c As shown, in another specific scenario, the plug-in recommendation service in the server side can calculate the plug-in evaluation value of each candidate plug-in through the key information of each candidate plug-in uploaded by the target object, and then sort the multiple candidate plug-ins in order from large to small according to the evaluation value of each plug-in, and select at least one candidate plug-in that meets the preset sorting conditions from the multiple candidate plug-ins as the target plug-in to recommend to the management side, so that the management side can obtain the candidate plug-ins that may be associated with the business scenario more quickly to further improve the efficiency of policy development.

[0153] Based on the same technical concept, the present application embodiment provides a structural schematic diagram of a flow data screening device, such as Fig.14 As shown, the device 1400 includes:

[0154] The strategy acquisition module 1401 is used to acquire the original traffic data associated with the specified business scenario and the screening strategy preset for the business scenario, wherein the screening strategy is generated by selecting multiple strategy operators corresponding to the business scenario and combining the selected multiple strategy operators according to the indicated operator association relationship, each strategy operator represents a unit operation determined to be used for the original traffic data in the business scenario, and each unit operation is used to implement a corresponding processing logic for the screening of traffic data;

[0155] The execution module 1402 is used to execute each unit operation in the filtering strategy on the original traffic data according to the operator association relationship until the execution completion information of the filtering strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

[0156] In a possible implementation, before obtaining the screening strategy preset in the business scenario, the strategy obtaining module 1401 is further used to:

[0157] Acquire policy description information determined for the business scenario, wherein the policy description information includes a plurality of to-be-executed functions determined for the business scenario, and each to-be-executed function is associated with a processing logic for filtering traffic data;

[0158] Selecting multiple strategy operators associated with multiple functions to be executed from a preset operator set;

[0159] In response to the orchestration configuration operation triggered for the multiple strategy operators, the operator association relationship between the multiple strategy operators is determined, and the multiple strategy operators are combined according to the operator association relationship to generate a corresponding screening strategy.

[0160] In a possible implementation, in response to the orchestration configuration operation triggered for multiple policy operators, determining the operator association relationship between the multiple policy operators, the policy acquisition module 1401 is used to:

[0161] In response to a selection operation triggered for a plurality of strategy operators, determining at least two strategy operator sets;

[0162] In response to the orchestration configuration operation triggered for at least two policy operator sets, an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set are determined.

[0163] In a possible implementation, in response to an orchestration configuration operation triggered for at least two policy operator sets, determining an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set includes any one of the following:

[0164] In response to a stage configuration operation triggered for at least two policy operator sets, determining that an association relationship between the at least two policy operator sets is a serial relationship, and that an association relationship between each policy operator in each policy operator set is a serial relationship;

[0165] In response to a task configuration operation triggered for at least two policy operator sets, determining that an association relationship between the at least two policy operator sets is a parallel relationship, and an association relationship between policy operators in each policy operator set is a serial relationship;

[0166] In response to a default configuration operation triggered for at least two policy operator sets, it is determined that the association relationship between the at least two policy operator sets is a serial relationship, and that the association relationship between the policy operators in each policy operator set is a serial relationship.

[0167] In a possible implementation, after generating the corresponding screening policy, the policy acquisition module 1401 is further used to: encapsulate the screening policy and obtain a policy plug-in;

[0168] Then obtain the scheduling strategy preset in the business scenario, and the strategy acquisition module 1401 is used to:

[0169] Get the policy plug-in preset for the business scenario. The policy plug-in carries the filtering policy.

[0170] Load the policy plug-in through the preset policy loader to obtain the filtering policy.

[0171] In a possible implementation, each candidate plug-in carries a candidate strategy preset for a candidate scenario, each candidate strategy includes a candidate screening process determined for a corresponding candidate scenario, the candidate screening process is generated by selecting multiple strategy operators corresponding to a candidate scenario, and combining the selected multiple candidate operators according to the indicated candidate association relationship, each candidate operator represents a unit operation determined to be used for the original traffic data in the corresponding candidate scenario;

[0172] After the policy output data is used as accurate traffic data matching the business scenario, the execution module 1402 is further used to:

[0173] In response to a scheduling request carrying plug-in identifiers of multiple candidate plug-ins, each candidate plug-in of each plug-in identifier is scheduled according to the indicated plug-in scheduling relationship, and the following operations are performed each time the scheduling is performed: according to the candidate association relationship in the candidate plug-in, each unit operation in the corresponding candidate strategy is executed on the original traffic data;

[0174] Until the scheduling completion information of each candidate plug-in is obtained, the corresponding candidate output data is obtained, and the candidate output data is used as the accurate traffic data matching the business scenario.

[0175] In a possible implementation manner, after the candidate output data is used as accurate traffic data matching the business scenario, the execution module 1402 is further used to:

[0176] In response to the plug-in recommendation request, key information of each of the plurality of candidate plug-ins is obtained, wherein each key information includes at least: parameter information of the corresponding candidate plug-in, and historical loading information of the corresponding candidate plug-in;

[0177] According to each key information, respectively obtain the plug-in evaluation value of each of the plurality of candidate plug-ins, and sort the plurality of candidate plug-ins in descending order according to the plug-in evaluation value;

[0178] Selecting at least one candidate plug-in satisfying a preset sorting condition from a plurality of candidate plug-ins as a target plug-in;

[0179] It is recommended to select at least one target plugin.

[0180] In a possible implementation, based on each key information, plug-in evaluation values ​​of each of the plurality of candidate plug-ins are obtained respectively, and the execution module 1402 is used to:

[0181] For multiple candidate plug-ins, perform the following operations respectively:

[0182] According to a preset evaluation rule, parameter information of a candidate plug-in is evaluated to obtain a parameter evaluation value of the candidate plug-in, and according to the evaluation rule, historical loading information of a candidate plug-in is evaluated to obtain a performance evaluation value of the candidate plug-in;

[0183] The parameter evaluation value and the performance evaluation value are weighted and summed to obtain a plug-in evaluation value of a candidate plug-in.

[0184] Based on the same technical concept, the embodiment of the present application provides a computer device, which can be Figure 2 The device 202 shown, such as Fig.15 As shown, it includes at least one processor 1501 and a memory 1502 connected to the at least one processor. The specific connection medium between the processor 1501 and the memory 1502 is not limited in the embodiment of the present application. Fig.15 For example, the processor 1501 and the memory 1502 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0185] In the embodiment of the present application, the memory 1502 stores instructions that can be executed by at least one processor 1501. The at least one processor 1501 can perform the steps of the above-mentioned traffic data screening method by executing the instructions stored in the memory 1502.

[0186] Among them, the processor 1501 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, and realize video editing by running or executing instructions stored in the memory 1502 and calling data stored in the memory 1502. Optionally, the processor 1501 may include one or more processing units, and the processor 1501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1501. In some embodiments, the processor 1501 and the memory 1502 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0187] Processor 1501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.

[0188] Memory 1502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1502 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. Memory 1502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 1502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0189] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned traffic data screening method.

[0190] Based on the same inventive concept, an embodiment of the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the steps of the above-mentioned traffic data screening method.

[0191] The embodiments of the present application provide a method, device, electronic device and storage medium for screening traffic data. The method can be applied to a server, and includes obtaining original traffic data associated with a specified business scenario, and a screening strategy preset for the business scenario. Since the screening strategy includes a traffic screening process determined for the business scenario, the traffic screening process is generated by multiple policy operators associated with the business scenario, and an operator association relationship between the multiple policy operators. Each policy operator represents a unit operation determined for the business scenario. Therefore, for the original traffic data, each unit operation in the screening strategy is executed according to the operator association relationship, that is, by reproducing the traffic screening process, each screening step for the original traffic data is performed, and then accurate traffic data matching the business scenario is screened out from the original traffic data. For example, assuming that in the screening strategy associated with the regression test scenario, the corresponding traffic screening process is: "obtain the code coverage of the original traffic data, calculate the similarity between the code coverage and the code coverage of the preset test case, wherein when the similarity is greater than a preset threshold, the original traffic data is eliminated, otherwise, the original traffic data is retained", then the traffic screening process is generated by the strategy operators respectively characterized as "obtaining the code coverage of the original traffic data", "calculating the similarity between the code coverage and the code coverage of the preset test case", "eliminating the original traffic data", etc., and the operator association relationship between each strategy operator. In this way, according to the operator association relationship, the corresponding unit operations are performed on the original traffic data, that is, the traffic screening process in the screening strategy is reproduced to obtain accurate traffic data matching the regression test scenario.

[0192] In this way, from the perspective of the server, by executing the screening operations of each unit in the screening strategy on the original traffic data, accurate traffic data matching the business scenario can be screened out from the original traffic data; from the perspective of the client, through multiple policy operators associated with the business scenario, and the operator association relationship between multiple policy operators, a screening strategy corresponding to the business scenario can be generated, and then the screening strategy corresponding to the business scenario can be developed without manual writing by R&D personnel, thereby reducing the manpower and time costs of development and improving the screening efficiency of traffic data. Furthermore, with the help of multiple policy operators associated with the business scenario and the operator association relationship between multiple policy operators, when facing the same business scenario, the latest version of the screening strategy corresponding to the business scenario can be generated by adjusting the operator association relationship between multiple policy operators, thereby making full use of the current screening strategy corresponding to the business scenario, reducing resource waste and improving the utilization rate of the screening strategy.

[0193] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0194] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0197] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0198] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for screening flow data, characterized in that: include: Obtaining raw traffic data associated with a specified business scenario and a screening strategy preset for the business scenario, wherein the screening strategy includes a traffic screening process determined for the business scenario, the traffic screening process is generated by selecting multiple strategy operators corresponding to the business scenario, and combining the selected multiple strategy operators according to the indicated operator association relationship, each strategy operator represents a unit operation determined for use with respect to the raw traffic data under the business scenario, and each unit operation is used to implement a corresponding processing logic for screening of traffic data; According to the operator association relationship, the unit operations in the screening strategy are executed on the original traffic data until the execution completion information of the screening strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

2. The method according to claim 1, characterized in that Before obtaining the screening strategy preset for the business scenario, the method further includes: Acquire policy description information determined for the business scenario, wherein the policy description information includes: a plurality of to-be-executed functions determined for the business scenario, each to-be-executed function being associated with a processing logic for filtering traffic data; Selecting a plurality of strategy operators associated with the plurality of functions to be executed from a preset set of operators; In response to the orchestration configuration operation triggered for the multiple strategy operators, the operator association relationship between the multiple strategy operators is determined, and the multiple strategy operators are combined according to the operator association relationship to generate a corresponding screening strategy.

3. The method according to claim 2, characterized in that The determining, in response to the orchestration configuration operation triggered for the multiple strategy operators, the operator association relationship between the multiple strategy operators includes: In response to a selection operation triggered on the plurality of strategy operators, determining at least two strategy operator sets; In response to the orchestration configuration operation triggered for the at least two policy operator sets, an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set are determined.

4. The method according to claim 3, characterized in that The determining, in response to the orchestration configuration operation triggered for the at least two policy operator sets, of the association relationship between the at least two policy operator sets and the association relationship between the policy operators in each policy operator set includes any one of the following: In response to a stage configuration operation triggered for the at least two strategy operator sets, determining that the association relationship between the at least two strategy operator sets is a serial relationship, and that the association relationship between the strategy operators in each strategy operator set is a serial relationship; In response to a task configuration operation triggered for the at least two strategy operator sets, determining that an association relationship between the at least two strategy operator sets is a parallel relationship, and an association relationship between strategy operators in each strategy operator set is a serial relationship; In response to a default configuration operation triggered for the at least two policy operator sets, it is determined that the association relationship between the at least two policy operator sets is a serial relationship, and that the association relationship between the policy operators in each policy operator set is a serial relationship.

5. The method according to any one of claims 1 to 4, characterized in that: After the corresponding screening strategy is generated, the method further includes: encapsulating the screening strategy to obtain a strategy plug-in; The step of obtaining the preset scheduling strategy for the business scenario includes: Obtaining a policy plug-in preset for the business scenario, wherein the policy plug-in carries the screening policy; The policy plug-in is loaded through a preset policy loader to obtain the screening policy.

6. The method according to any one of claims 1 to 4, characterized in that: Each candidate plug-in carries a candidate strategy preset for a candidate scenario, each candidate strategy includes a candidate screening process determined for a corresponding candidate scenario, the candidate screening process is generated by selecting multiple strategy operators corresponding to a candidate scenario, and combining the selected multiple candidate operators according to the indicated candidate association relationship, each candidate operator represents a unit operation determined to be used for the original traffic data under the corresponding candidate scenario; Then, after the policy output data is used as accurate traffic data matching the business scenario, the method further includes: In response to a scheduling request carrying plug-in identifiers of multiple candidate plug-ins, scheduling each candidate plug-in of each plug-in identifier according to the indicated plug-in scheduling relationship, and performing the following operations each time the scheduling is performed: executing each unit operation in the corresponding candidate strategy on the original traffic data according to the candidate association relationship in the candidate plug-in; Until the scheduling completion information of each candidate plug-in is obtained, the corresponding candidate output data is obtained, and the candidate output data is used as the accurate traffic data matching the business scenario.

7. The method according to claim 6, characterized in that After taking the candidate output data as accurate traffic data matching the business scenario, the method further includes: In response to the plug-in recommendation request, key information of each of the plurality of candidate plug-ins is obtained, wherein each key information includes at least: parameter information of the corresponding candidate plug-in, and historical loading information of the corresponding candidate plug-in; According to each key information, respectively obtain the plug-in evaluation value of each of the plurality of candidate plug-ins, and sort the plurality of candidate plug-ins in descending order according to each plug-in evaluation value; Selecting at least one candidate plug-in satisfying a preset sorting condition from the multiple candidate plug-ins as a target plug-in; It is recommended to select at least one target plugin.

8. The method according to claim 7, characterized in that The step of obtaining the plug-in evaluation values ​​of the plurality of candidate plug-ins respectively according to the key information includes: For the multiple candidate plug-ins, perform the following operations respectively: According to a preset evaluation rule, parameter information of a candidate plug-in is evaluated to obtain a parameter evaluation value of the candidate plug-in, and according to the evaluation rule, historical loading information of the candidate plug-in is evaluated to obtain a performance evaluation value of the candidate plug-in; A weighted sum is performed on the parameter evaluation value and the performance evaluation value to obtain a plug-in evaluation value of the candidate plug-in.

9. A flow data screening device, characterized in that: include: A strategy acquisition module, used to acquire the original traffic data associated with a specified business scenario and the screening strategy preset for the business scenario, wherein the screening strategy is generated by selecting multiple strategy operators corresponding to the business scenario and combining the selected multiple strategy operators according to the indicated operator association relationship, each strategy operator represents a unit operation determined to be used for the original traffic data under the business scenario, and each unit operation is used to implement a corresponding processing logic for the screening of traffic data; An execution module is used to execute each unit operation in the screening strategy on the original traffic data until the execution completion information of the screening strategy is obtained, the corresponding strategy output data is obtained, and the strategy output data is used as the accurate traffic data matching the business scenario.

10. The device according to claim 9, characterized in that Before obtaining the screening strategy preset in the business scenario, the strategy acquisition module is further used to: Acquire policy description information determined for the business scenario, wherein the policy description information includes: a plurality of to-be-executed functions determined for the business scenario, each to-be-executed function being associated with a processing logic for filtering traffic data; Selecting a plurality of strategy operators associated with the plurality of functions to be executed from a preset set of operators; In response to the orchestration configuration operation triggered for the multiple strategy operators, the operator association relationship between the multiple strategy operators is determined, and the multiple strategy operators are combined according to the operator association relationship to generate a corresponding screening strategy.

11. The device according to claim 10, characterized in that In response to the orchestration configuration operation triggered for the multiple policy operators, determining the operator association relationship between the multiple policy operators, the policy acquisition module is used to: In response to a selection operation triggered on the plurality of strategy operators, determining at least two strategy operator sets; In response to the orchestration configuration operation triggered for the at least two policy operator sets, an association relationship between the at least two policy operator sets and an association relationship between the policy operators in each policy operator set are determined.

12. The device according to claim 11, characterized in that The determining, in response to the orchestration configuration operation triggered for the at least two policy operator sets, of the association relationship between the at least two policy operator sets and the association relationship between the policy operators in each policy operator set includes any one of the following: In response to a stage configuration operation triggered for the at least two strategy operator sets, determining that the association relationship between the at least two strategy operator sets is a serial relationship, and that the association relationship between the strategy operators in each strategy operator set is a serial relationship; In response to a task configuration operation triggered for the at least two strategy operator sets, determining that an association relationship between the at least two strategy operator sets is a parallel relationship, and an association relationship between strategy operators in each strategy operator set is a serial relationship; In response to a default configuration operation triggered for the at least two policy operator sets, it is determined that the association relationship between the at least two policy operator sets is a serial relationship, and that the association relationship between the policy operators in each policy operator set is a serial relationship.

13. The device according to any one of claims 9 to 12, characterized in that: After the corresponding screening strategy is generated, the strategy acquisition module is further used to: encapsulate the screening strategy and obtain a strategy plug-in; Then, the scheduling strategy preset in the business scenario is obtained, and the strategy acquisition module is used to: Obtaining a policy plug-in preset for the business scenario, wherein the policy plug-in carries the screening policy; The policy plug-in is loaded through a preset policy loader to obtain the screening policy.

14. The device according to any one of claims 9 to 12, characterized in that: Each candidate plug-in carries a candidate strategy preset for a candidate scenario, each candidate strategy includes a candidate screening process determined for a corresponding candidate scenario, the candidate screening process is generated by selecting multiple strategy operators corresponding to a candidate scenario, and combining the selected multiple candidate operators according to the indicated candidate association relationship, each candidate operator represents a unit operation determined to be used for the original traffic data under the corresponding candidate scenario; Then, after the policy output data is used as accurate traffic data matching the business scenario, the method further includes: In response to a scheduling request carrying plug-in identifiers of multiple candidate plug-ins, scheduling each candidate plug-in of each plug-in identifier according to the indicated plug-in scheduling relationship, and performing the following operations each time the scheduling is performed: executing each unit operation in the corresponding candidate strategy on the original traffic data according to the candidate association relationship in the candidate plug-in; Until the scheduling completion information of each candidate plug-in is obtained, the corresponding candidate output data is obtained, and the candidate output data is used as the accurate traffic data matching the business scenario.

15. The device according to claim 14, characterized in that After the candidate output data is used as accurate traffic data matching the business scenario, the execution module is further used to: In response to the plug-in recommendation request, key information of each of the plurality of candidate plug-ins is obtained, wherein each key information includes at least: parameter information of the corresponding candidate plug-in, and historical loading information of the corresponding candidate plug-in; According to each key information, respectively obtain the plug-in evaluation value of each of the plurality of candidate plug-ins, and sort the plurality of candidate plug-ins in descending order according to each plug-in evaluation value; Selecting at least one candidate plug-in satisfying a preset sorting condition from the multiple candidate plug-ins as a target plug-in; It is recommended to select at least one target plugin.

16. The device according to claim 15, characterized in that According to each key information, the plug-in evaluation values ​​of each of the plurality of candidate plug-ins are obtained respectively, and the execution module is used to: For the multiple candidate plug-ins, perform the following operations respectively: According to a preset evaluation rule, parameter information of a candidate plug-in is evaluated to obtain a parameter evaluation value of the candidate plug-in, and according to the evaluation rule, historical loading information of the candidate plug-in is evaluated to obtain a performance evaluation value of the candidate plug-in; A weighted sum is performed on the parameter evaluation value and the performance evaluation value to obtain a plug-in evaluation value of the candidate plug-in.

17. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.

18. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computer device. When the program is run on the computer device, the computer device executes the steps of any method described in claims 1 to 8.

19. A computer program product, characterized in that The computer program product comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Traffic data processing method

    CN113382019A

  • Information screening method, device and system

    CN114065036A

  • Business data processing method and device, electronic equipment and storage medium

    CN115757934A

  • Traffic management method and apparatus, traffic management strategy configuration method and apparatus, and device and medium

    WO2022148050A1

Cited By

  • Message processing method and corresponding apparatus

    WO2026158386A1