Control method and device for detection frequency of client, equipment and medium
By acquiring frequency control marking data and calculating the detection frequency, the problem of insufficient stability and accuracy of detection frequency control in the prior art is solved, and the precise frequency control of designated detection targets is realized, which improves the stability and accuracy of detection frequency control.
Patent Information
- Application Number
- CN202311121210.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
When the prior art performs application detection through a distributed detection system, the stability and accuracy of detection frequency control are poor, making it difficult to achieve accurate frequency control of designated detection targets.
By obtaining the frequency control marking data of the target application, determining the frequency control detection target, and calculating the detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency, the sub-detection frequency and the target client in the target detection task are then determined to achieve accurate frequency control of the detection target.
It improves the accuracy and stability of detection frequency control, and can refine the detection targets of the control particle size into the detection task, avoid instability caused by frequency mutations, and reduce detection costs.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment and medium for controlling a detection frequency of a client. Background Art
[0002] With the development of Internet technology, people use more and more types of applications. In order to ensure the performance of applications, it is necessary to detect abnormal problems such as application network and video playback to test whether the client functions normally.
[0003] When detecting an application program through a distributed detection system, the detection frequency is usually adjusted manually by adjusting the execution frequency of the detection task. However, the above detection frequency control method has the problems of poor stability and low accuracy. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a method, device, equipment and medium for controlling the detection frequency of a client.
[0005] The present disclosure provides a method for controlling the detection frequency of a client, the method being applied to a server, and comprising:
[0006] Acquire frequency control mark data of a target application, and determine a frequency control detection target based on the frequency control mark data;
[0007] Determine a corresponding calculated detection frequency based on the historical frequency data of the frequency-controlled detection target and the standard detection frequency;
[0008] Determine, based on the calculated detection frequency, a sub-detection frequency of the frequency control detection target in a target detection task and a target client corresponding to the frequency control detection target, wherein the target detection task includes the frequency control detection target;
[0009] The target detection task is sent to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
[0010] The embodiment of the present disclosure also provides a method for controlling the detection frequency of a client, the method being applied to a target client and comprising:
[0011] Receiving a target detection task, wherein the target detection task is issued by the server at a sub-detection frequency of the target detection task according to the frequency control detection target, the sub-detection frequency is determined based on a calculated detection frequency, and the calculated detection frequency is determined based on historical frequency data of the frequency control detection target and the standard detection frequency;
[0012] The target detection task is executed to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
[0013] The embodiment of the present disclosure further provides a device for controlling the detection frequency of a client, the device being arranged at a server, and comprising:
[0014] An acquisition module, used to acquire frequency control mark data of a target application and determine a frequency control detection target based on the frequency control mark data;
[0015] A calculation module, used to determine a corresponding calculation detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency;
[0016] A determination module, configured to determine, based on the calculated detection frequency, a sub-detection frequency of the frequency-controlled detection target in a target detection task and a target client corresponding to the frequency-controlled detection target, wherein the target detection task includes the frequency-controlled detection target;
[0017] The sending module is used to send the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
[0018] The embodiment of the present disclosure further provides a device for controlling the detection frequency of a client, the device being arranged at a target client, and comprising:
[0019] A receiving module, configured to receive a target detection task, wherein the target detection task is issued by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, the sub-detection frequency is determined based on the calculated detection frequency, and the calculated detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency;
[0020] An execution module is used to execute the target detection task to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
[0021] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the control method of the detection frequency of the client provided in the embodiment of the present disclosure.
[0022] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method for controlling the detection frequency of the client provided in the embodiment of the present disclosure.
[0023] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art: in the control solution of the detection frequency of the client provided by the embodiments of the present disclosure, the server obtains the frequency control mark data of the target application and determines the frequency control detection target based on the frequency control mark data; determines the corresponding calculated detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency; determines the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculated detection frequency, wherein the target detection task includes the frequency control detection target; sends the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application. By adopting the above technical solution, the server can determine the frequency control detection target through the frequency control mark data, and determine the calculated detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency. Then, based on the calculated detection frequency, the sub-detection frequency of the frequency control detection target in the target detection task and the corresponding target client can be determined, and then the target detection task can be sent to the target client according to the sub-detection frequency to achieve precise control of the detection frequency of the specified detection target. By marking the detection target, the control granularity is refined to the detection target in the detection task, thereby improving the precision of control, and the sending frequency is determined by calculation to avoid instability caused by frequency mutation when directly adjusting to the standard detection frequency, thereby improving the stability of detection frequency control. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0025] Figure 1 A schematic diagram of a flow chart of a method for controlling a detection frequency of a client provided in an embodiment of the present disclosure;
[0026] Figure 2 A schematic diagram of detecting frequency changes provided by an embodiment of the present disclosure;
[0027] Figure 3 A flowchart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure;
[0028] Figure 4 A flowchart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure;
[0029] Figure 5A flowchart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure;
[0030] Figure 6 A schematic diagram of the structure of a device for controlling the detection frequency of a client provided in an embodiment of the present disclosure;
[0031] Figure 7 A schematic diagram of the structure of another device for controlling the detection frequency of a client provided in an embodiment of the present disclosure;
[0032] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0034] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0035] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0038] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0039] When detecting an application through a distributed detection system, in order to control the detection frequency of the detection node for a specified target, the task configuration user / or the operation and maintenance user usually manually adjusts the execution frequency of all detection tasks containing the specified target, thereby adjusting the detection frequency of the specified target. However, the above detection frequency control method has the following defects: it can only handle tasks with fixed detection targets, and the detection frequency can only be controlled in the task dimension. All detection targets included in the task will be affected, resulting in low accuracy of detection control; and the scheduling delay changes, availability fluctuations, and task accumulation levels of the detection equipment will cause the detection frequency of the specified target to change, resulting in low stability.
[0040] In order to solve the above problems, an embodiment of the present disclosure provides a method for controlling the detection frequency of a client, which is introduced below in conjunction with a specific embodiment.
[0041] Figure 1 The present invention provides a flow chart of a method for controlling the detection frequency of a client, which can be executed by a device for controlling the detection frequency of a client, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method is applied to the server, including:
[0042] Step 101: Acquire frequency control mark data of a target application, and determine a frequency control detection target based on the frequency control mark data.
[0043] Among them, the target application can be any one or more applications that need to be detected, for example, the target application can be a reading application, a video application or a communication application, etc., without limitation. The target application can be installed in the client for detection, and the client can be a detection device, specifically, a mobile phone, a computer, a tablet computer and other electronic devices. The disclosed embodiment can detect the network connection status of the target application during operation, the implementation status of the business scenario, etc., to determine whether there is a problem, so as to perform subsequent troubleshooting. The detection of the implementation status of the business scenario may include the detection of the video playback, page loading, etc. of the target application. The detection of the target application in the disclosed embodiment can be achieved through a distributed detection system.
[0044] The frequency control mark data may be data used to mark the detection target that needs to be controlled in the detection task. The detection target that needs frequency control in the detection task may be distinguished by the frequency control mark data so as to perform distinguishing processing. The frequency control mark data may include the Uniform Resource Locator (URL) or regular expression of the frequency control detection target. The frequency control detection target may be a detection target that needs to be controlled in the detection frequency. The detection target may be a basic indicator related to network connection and business scenario when the target application is running.
[0045] Specifically, the server may obtain frequency control mark data pre-set for the target application program, and determine the frequency control detection target in the detection task according to the frequency control mark data.
[0046] In some embodiments, determining the frequency control detection target based on the frequency control mark data may include: matching multiple detection tasks of the target application based on the frequency control mark data, and determining the detection target that successfully matches as the frequency control detection target.
[0047] The detection task can be a task set in the configuration file for sending to the client to perform detection on the target application. There can be multiple detection tasks, one detection task can include multiple detection targets, and one frequency control detection target can be distributed in multiple detection tasks.
[0048] The server matches the frequency control mark data in multiple detection tasks of the target application, that is, matches each detection target included in each detection task with the control mark data. If the match is successful, the detection target is a frequency control detection target. For example, when the frequency control mark data is a target URL, the detection target with the same URL as the target URL is determined as a frequency control detection target, and an accurate match is achieved through the URL; when the frequency control mark data is a regular expression "www\.a\.com.*", all detection targets with the domain name of the URL as "www\.a\.com" can be determined as frequency control detection targets, and fuzzy matching is achieved through regular expressions. There are more detection targets that match, and the frequency control configuration of multiple detection targets can be quickly achieved.
[0049] In the above scheme, the detection target that needs frequency control can be marked in other detection tasks through the frequency control marking data, and the frequency control configuration can be quickly implemented, so that the detection target that needs frequency control can be quickly distinguished for differentiated processing, and it can support detection tasks that include dynamic detection targets.
[0050] Step 102: Determine a corresponding calculated detection frequency based on historical frequency data of the frequency-controlled detection target and a standard detection frequency.
[0051] Among them, the historical frequency data can be the detection frequency (Query PerSecond, QPS) of the frequency control detection target actually executed in history, and the detection frequency refers to the number of detections per second. The disclosed embodiment can set a statistical period, and calculate the detection frequency of the frequency control detection target according to the statistical period. The period time of the statistical period can be set according to the actual situation. For example, the statistical period can be the minimum time interval configured for the detection task, which can be 5 minutes. The historical frequency data may include the detection frequency of the frequency control detection target in a first number of historical statistical periods. The first number may be a value greater than 1. When the first number is 1, it may cause the detection frequency to oscillate repeatedly and be unstable. For example, the first number may be 5.
[0052] The standard detection frequency may be the detection frequency expected to be achieved for the frequency control detection target. The calculated detection frequency may be the detection frequency of the frequency control detection target in the next statistical period predicted by calculation, and the calculated detection frequency is gradually approached to the standard detection frequency through control until it is equal to the detection frequency.
[0053] In the embodiment of the present disclosure, determining the corresponding calculated detection frequency based on the historical frequency data of the frequency-controlled detection target and the standard detection frequency may include: determining the sum of the detection frequencies of the frequency-controlled detection target in a first number of historical statistical periods to obtain a historical value; determining the sum of the first number and the second number to obtain a quantity sum value, and determining the product of the quantity sum value and the standard detection frequency to obtain a standard value; dividing the difference between the standard value and the historical value by the value of the second number to determine the calculated detection frequency of the frequency-controlled detection target in the next statistical period.
[0054] The above historical statistical cycle and the next statistical cycle correspond to the same cycle time, that is, the historical statistical cycle and the next statistical cycle are both one statistical cycle. The second number represents the number of statistical cycles for correcting the detection frequency of the frequency-controlled detection target to the standard detection frequency, that is, the correction operation is smoothly distributed to multiple statistical cycles. The second number can be set according to actual conditions, for example, the second number can be set to be the same as the above first number.
[0055] Assume that the detection frequencies of the frequency-controlled detection targets in the first number of historical statistical periods are expressed as F1, F2, F3, ..., F n , n represents the first number, and the standard detection frequency is represented by F t , then the calculated detection frequency F of the frequency-controlled detection target in the next statistical period k The following formula can be used OK, m represents the second quantity, represents the historical value, n+m represents the sum of the first quantity and the second quantity, that is, the quantity and value, F t (n+m) represents the standard value.
[0056] For example, Figure 2 A schematic diagram of detecting frequency changes provided by an embodiment of the present disclosure, such as Figure 2 As shown in the figure, the detection frequency of the frequency-controlled detection target is changed in multiple statistical periods in the future. By introducing the above-mentioned second quantity, the attenuation algorithm is used to smoothly distribute the correction operation of correcting the detection frequency of the frequency-controlled detection target to the standard detection frequency to multiple statistical periods. The figure takes the distribution to 5 statistical periods as an example, which avoids the problem of excessive short-term detection frequency correction operation.
[0057] In the above scheme, the detection frequency of the next statistical period is calculated through the server-side attenuation algorithm, which avoids the problem of excessive detection frequency when directly adjusting to the standard detection frequency and the instability caused by frequency mutation, thereby improving the stability of detection frequency control.
[0058] Step 103: Determine a sub-detection frequency of a frequency-controlled detection target in a target detection task and a target client corresponding to the frequency-controlled detection target based on the calculated detection frequency, wherein the target detection task includes the frequency-controlled detection target.
[0059] The target detection task may be a detection task including a frequency-controlled detection target, and the number of the target detection tasks may be one or more. The sub-detection frequency may be a detection frequency after the calculated detection frequency of the frequency-controlled detection target is allocated to each target detection task, that is, the sum of the sub-detection frequencies of the frequency-controlled detection target in each target detection task is equal to the calculated detection frequency. The target client may be a client capable of realizing frequency-controlled detection target detection.
[0060] In some embodiments, after the server determines the calculation detection frequency of the frequency control detection target, the calculation detection frequency can be evenly distributed to the target detection tasks, that is, the sub-detection frequency of the frequency control detection target in the target detection task is determined to be the value of the calculation detection frequency divided by the number of target detection tasks; the target client can be obtained by arbitrarily selecting a client that meets the required number of calculation detection frequencies from multiple initial clients that meet the detection conditions of the frequency control detection target.
[0061] In other embodiments, determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculated detection frequency may include: obtaining priority frequency control data; determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the priority frequency control data and the calculated detection frequency.
[0062] Among them, the priority frequency control data may include task priority data and device priority data. The task priority data may include task priorities set for different detection tasks, which can be set specifically according to actual conditions. A high task priority indicates that the execution of the corresponding detection task is given priority. The device priority data may include device priorities set for different clients according to resource costs. The lower the single detection cost, the higher the device priority of the client. For example, the device priority of a virtual private server (VPS) device is P0, the device priority of a fixed-site PC device is P1, the device priority of a mobile device (wifi network) is P2, and the device priority of a mobile device (cellular network) is P3. P0 has the highest priority.
[0063] Optionally, determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the priority frequency control data and the calculated detection frequency may include: adjusting the sub-detection frequency of the frequency control detection target in the target detection task from an initial value to a target value based on the task priority data and the calculated detection frequency; and obtaining the target client by screening from multiple initial clients corresponding to the frequency control detection target in order of device priority from high to low based on the device priority data and the calculated detection frequency.
[0064] When the number of target detection tasks is 1, the server can directly adjust the sub-detection frequency of the frequency detection target in the target detection task from the initial value to the target value, and the target value is the calculation detection frequency; when the number of target detection tasks is multiple, the task priority data includes the task priority of each target detection task. On the basis of ensuring that the sum of the target values of the sub-detection frequencies of the frequency control detection target in each target detection task is the calculation detection frequency, the sub-detection frequency of the frequency control detection target in each target detection task can be reduced in order from low to high task priority. The adjustment value of the sub-detection frequency of the frequency control detection target in each target detection task is negatively correlated with the task priority of each target detection task. The adjustment value here can be a change value from the initial value to the target value. The lower the task priority, the larger the adjustment value of the sub-detection frequency. The maximum adjustment value of a sub-detection frequency is equal to the initial value, that is, a sub-detection frequency can be adjusted from the initial value to zero.
[0065] For example, assuming that the task priority of detection task 1 is P0, and the detection frequency is set to be executed once every 5 minutes (that is, QPS = 0.00333); the task priority of detection task 2 is P1, and the detection frequency is configured to be executed once every 2 minutes (that is, QPS = 0.00555); the task priority of detection task 3 is P4, and the detection frequency is configured to be executed once every 10 minutes (that is, QPS = 0.00167); the detection frequency is calculated to be QPS = 0.005, then the sub-detection frequency of the frequency-controlled detection target in detection task 3 can be adjusted to zero, that is, no detection is performed, and the sub-detection frequency of the frequency-controlled detection target in detection task 2 is reduced from once every 2 minutes to once every 10 minutes, that is, the QPS is reduced from 0.00555 to 0.00167, and the sub-detection frequency of the frequency-controlled detection target in detection task 2 is not adjusted.
[0066] When the server determines the target client based on the device priority data and the calculated detection frequency, it can first determine the required number of devices according to the calculated detection frequency, and screen the target clients with the number of devices from multiple initial clients corresponding to the frequency control detection target in order of device priority from high to low, giving priority to clients with high device priority, that is, retaining the target clients from multiple initial clients in order of device priority from high to low, all initial clients with the highest device priority can be retained, and the lower the device priority, the fewer the initial clients retained.
[0067] For example, assuming that the multiple initial clients corresponding to the frequency control detection target include 2 VPS devices, 3 PC devices, 4 mobile phones on wifi networks, and 5 mobile phones on cellular networks, the calculation of the detection frequency only requires 8 devices to support it, that is, the number of devices is 8, then the target clients can include 2 VPS devices, 3 PC devices and 3 mobile phones on wifi networks.
[0068] In the above scheme, the priority frequency data can be used to determine which detection tasks need to be prioritized when frequency control is required and the detection frequency of the client can be adjusted to ensure that some high-priority detection tasks are more in line with actual business needs, and the detection cost can be reduced through client adjustments.
[0069] Step 104: Send the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
[0070] The server can send the target detection task to the target client corresponding to the frequency control detection target according to the sub-detection frequency. The target client can execute the corresponding detection task to achieve detection for the frequency control detection target in the target detection task. The server algorithm calculates the sub-detection frequency to send the task, that is, controls the sending frequency of the detection task, so as to achieve the purpose of stable frequency control.
[0071] The present disclosure provides a control scheme for the detection frequency of a client, in which the server obtains frequency control mark data of a target application and determines a frequency control detection target based on the frequency control mark data; determines a corresponding calculated detection frequency based on historical frequency data of the frequency control detection target and a standard detection frequency; determines a sub-detection frequency of the frequency control detection target in a target detection task and a target client corresponding to the frequency control detection target based on the calculated detection frequency, wherein the target detection task includes a frequency control detection target; and sends the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application. By adopting the above technical solution, the server can determine the frequency control detection target through the frequency control mark data, and determine the calculated detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency. Then, based on the calculated detection frequency, the sub-detection frequency of the frequency control detection target in the target detection task and the corresponding target client can be determined, and then the target detection task can be sent to the target client according to the sub-detection frequency to achieve precise control of the detection frequency of the specified detection target. By marking the detection target, the control granularity is refined to the detection target in the detection task, thereby improving the precision of control, and the sending frequency is determined by calculation to avoid instability caused by frequency mutation when directly adjusting to the standard detection frequency, thereby improving the stability of detection frequency control.
[0072] In some embodiments, the method for controlling the detection frequency of the client may also include: obtaining the detection results of each historical statistical period, and extracting the target results including the redirection records in the detection results; adding the detection frequency of the detection target after redirection corresponding to the target result in each historical statistical period to the historical frequency data.
[0073] The detection result may be the result returned after the client performs the detection task on the target application. The server may extract the target result including the redirection record for the detection result of each historical statistical period, and the redirection record may be an HTTP(S) return code of 302, where 302 stands for Temporarily Moved; if a detection result includes a result with an HTTP(S) return code of 302, then the detection result is the target result, and the detection frequency of the detection target after the redirection in the target result for each historical statistical period may be added to the above historical frequency data, that is, when counting the historical frequency data, the detection frequencies of the detection targets before and after the redirection may be counted.
[0074] In the related art, 302 redirection may affect the actual frequency of a specified URL being detected. For example, if the detection target is A and 302 redirection is sent to B, both A and B are actually detected. However, from the task configuration, only A is detected, and the 302 redirection problem cannot be solved. In the above solution, the frequency control failure problem caused by 302 redirection is solved by counting the detection frequency before and after the redirection.
[0075] Figure 3 This is a flow chart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure. The method can be executed by a device for controlling the detection frequency of a client, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 3 As shown, the method is applied to a target client, comprising:
[0076] Step 301, receiving a target detection task, wherein the target detection task is sent by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, the sub-detection frequency is determined based on the calculated detection frequency, and the calculated detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency.
[0077] The server obtains the frequency control mark data of the target application, determines the frequency control detection target based on the frequency control mark data, determines the corresponding calculation detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency, determines the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculation detection frequency, wherein the target detection task includes the frequency control detection target; sends the target detection task to the target client according to the sub-detection frequency. The target client can receive the target detection task.
[0078] Step 302: Execute the target detection task to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
[0079] The target client can execute the target detection task to detect the frequency control detection target of the target application and obtain the detection result.
[0080] In some embodiments, executing a target detection task may include: detecting whether the detection frequency of the frequency-controlled detection target of the target detection task in the task queue meets the corresponding sub-detection frequency according to a preset detection period; if not, adjusting the position of the target detection task in the task queue to the first position.
[0081] Among them, the preset detection period can be a period set in the client for precise control of the frequency control detection target. The preset detection period can be set according to actual conditions, for example, it can be 30 seconds. The task queue can be a queue constructed when executing the detection task according to the queue mechanism. The positions of the multiple detection tasks included in the task queue are sorted according to the acquisition order. The earlier the position, the earlier the execution. That is, the detection task obtained first is sorted first and executed first, and the detection task obtained later is sorted later and executed later. The task queue includes target detection tasks and other detection tasks that do not include frequency control detection targets.
[0082] When the target client executes the target detection task, the target detection task can be extracted from the task queue for execution. In addition to the target detection task, the task queue also includes other detection tasks. Specifically, according to the preset detection time, it is detected whether the interval time between the frequency control detection target of the target detection task in the task queue and the last detection is greater than the detection period corresponding to the sub-detection frequency. The detection period corresponding to the sub-detection frequency can be determined by dividing 1 by the sub-detection frequency. For example, a frequency control detection target is executed once every 5 minutes when the sub-detection frequency of the target detection task is 0.00333, and the corresponding detection period can be 5 minutes. It is judged whether the interval time between the frequency control detection target and the last detection is greater than 5 minutes; if the interval time between the frequency control detection target and the last detection is not greater than the detection period corresponding to the sub-detection frequency, it means that the detection frequency of the frequency control detection target meets the corresponding sub-detection frequency; if the interval time between the frequency control detection target and the last detection is greater than the detection period corresponding to the sub-detection frequency, it means that the detection frequency of the frequency control detection target does not meet the corresponding sub-detection frequency, and then the position of the target detection task in the task queue can be adjusted. Specifically, the position of the target detection task can be adjusted to the first position, and the target detection task is executed first.
[0083] Since the execution time of each detection task is not fixed and cannot be predicted in advance, the client of the disclosed embodiment sets a preset detection period to regularly detect and adjust the position of the target detection task where the frequency-controlled detection target is located in the task queue to make its detection frequency as consistent as possible with the corresponding sub-detection frequency.
[0084] In the client of this solution, for the frequency control detection target in the detection task, its position can be adjusted regularly when the detection task is queued to ensure that the detection frequency of the frequency control detection target meets the demand as much as possible within the preset detection period. That is, the client queue reordering mechanism is used to control the behavior of each client in detail to achieve the precise frequency control target.
[0085] The control scheme of the detection frequency of the client provided by the embodiment of the present disclosure receives a target detection task, wherein the target detection task is issued by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, the sub-detection frequency is determined based on the calculation detection frequency, and the calculation detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency; the target detection task is executed to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculation detection frequency. After the client receives the target detection task issued by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, it can execute the target detection task to detect the frequency control detection target of the target application. Since the sub-detection frequency is determined based on the calculation detection frequency and the calculation detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency, the detection frequency of the specified detection target is accurately controlled, and the granularity of the control is refined to the detection target in the detection task by marking the detection target, thereby improving the precision of the control, and the sending frequency is determined by calculation, thereby avoiding the instability caused by the frequency mutation when directly adjusting to the standard detection frequency, thereby improving the stability of the detection frequency control.
[0086] Next, a specific example is used to further illustrate the control scheme of the detection frequency of the client in the embodiment of the present disclosure. For example, Figure 4 A flow chart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the figure shows the detection control performed by the server, which may specifically include: step 401, statistically analyzing the historical frequency data of the frequency control detection target. Step 402, determining the corresponding calculation detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency. Step 403, determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target according to the priority frequency control data. Step 404, starting the next task delivery. Step 405, whether the task is a target detection task, if so, executing step 406; otherwise, executing step 407. Step 406, delivering the target detection task to the target client according to the sub-detection frequency. Step 407, delivering the task to the client for execution. Then executing step 408. Step 408, whether the statistical cycle is over, if so, returning to executing step 401; otherwise, returning to executing step 404. Among them, steps 404 to 408 are the delivery process of each detection task of the server.
[0087] For example, Figure 5 A flow chart of another method for controlling the detection frequency of a client provided in an embodiment of the present disclosure is shown as follows: Figure 5As shown, the figure shows the detection control performed by the client, which may specifically include: Step 501, start the next detection. Step 502, whether the detection frequency of the target detection task in the task queue meets the corresponding sub-detection frequency, if so, execute step 503; otherwise, execute step 504. Step 503, adjust the position of the target detection task in the task queue, specifically, the position of the target detection task in the task queue can be adjusted to the first position. Then execute step 504. Step 504, start the next task execution. Step 505, take out a task from the head of the task queue and execute it. That is, take out the detection task from the first position of the task queue and execute it. Step 506, whether the preset detection cycle is over, if so, execute step 501; otherwise, return to execute step 504.
[0088] In this solution, the detection frequency of the specified target can be automatically controlled through the collaboration between the server and the client. The task issuance frequency is controlled by the server algorithm to improve the stability of frequency control. The client queue reordering mechanism is used to control each client behavior in detail to achieve the precise frequency control target. The frequency control accuracy and stability are greatly improved, the frequency control failure problem caused by 302 redirection is solved, and the cost of frequency control is reduced.
[0089] Figure 6 This is a schematic diagram of the structure of a device for controlling the detection frequency of a client provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 6 As shown, the device is arranged at the server end and includes:
[0090] An acquisition module 601 is used to acquire frequency control mark data of a target application and determine a frequency control detection target based on the frequency control mark data;
[0091] A calculation module 602 is used to determine a corresponding calculation detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency;
[0092] A determination module 603 is used to determine the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculated detection frequency, wherein the target detection task includes the frequency control detection target;
[0093] The sending module 604 is used to send the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
[0094] Optionally, the historical frequency data includes the detection frequency of the frequency control detection target in a first number of historical statistical periods, and the calculation module 602 is used to:
[0095] Determine the sum of the detection frequencies of the frequency-controlled detection target in a first number of historical statistical periods to obtain a historical value;
[0096] Determine the sum of the first quantity and the second quantity to obtain a quantity sum value, and determine the product of the quantity sum value and the standard detection frequency to obtain a standard value;
[0097] The difference between the standard value and the historical value is divided by the value of the second quantity to determine the calculated detection frequency of the frequency control detection target in the next statistical period.
[0098] Optionally, the historical statistical period and the next statistical period correspond to the same period time, and the second number represents the number of statistical periods for correcting the detection frequency of the frequency-controlled detection target to the standard detection frequency.
[0099] Optionally, the device further includes a redirection module, configured to:
[0100] Obtaining the detection results of each of the historical statistical periods, and extracting the target results including the redirection records in the detection results;
[0101] The detection frequency of the redirected detection target corresponding to the target result in each of the historical statistical periods is added to the historical frequency data.
[0102] Optionally, the determining module 603 includes:
[0103] The first unit is used to obtain priority frequency control data;
[0104] The second unit is used to determine the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the priority frequency control data and the calculated detection frequency.
[0105] Optionally, the priority frequency control data includes task priority data and device priority data, and the second unit is used to:
[0106] Based on the task priority data and the calculated detection frequency, adjusting the sub-detection frequency of the frequency-controlled detection target in the target detection task from an initial value to a target value;
[0107] Based on the device priority data and the calculated detection frequency, the target client is obtained by screening from a plurality of initial clients corresponding to the frequency control detection target in order of device priority from high to low.
[0108] Optionally, there are multiple target detection tasks, and the sum of the target values of the sub-detection frequencies of the frequency-controlled detection target in each target detection task is the calculated detection frequency;
[0109] The task priority data includes the task priority of each of the target detection tasks, and the adjustment value of the sub-detection frequency of the frequency-controlled detection target in each of the target detection tasks is negatively correlated with the task priority of each of the target detection tasks.
[0110] Optionally, the acquisition module 601 is used to:
[0111] Matching is performed among multiple detection tasks of the target application based on the frequency control mark data, and a detection target with successful matching is determined as the frequency control detection target.
[0112] The device for controlling the detection frequency of a client provided in the embodiments of the present disclosure can execute the method for controlling the detection frequency of a client provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0113] Figure 7 This is a schematic diagram of the structure of another device for controlling the detection frequency of a client provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 7 As shown, the device is arranged on the target client and includes:
[0114] The receiving module 701 is used to receive a target detection task, wherein the target detection task is issued by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, and the sub-detection frequency is determined based on the calculated detection frequency, and the calculated detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency;
[0115] The execution module 702 is used to execute the target detection task to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
[0116] Optionally, the execution module 702 is used to:
[0117] Whether the detection frequency of the frequency-controlled detection target of the target detection task in the task queue meets the corresponding sub-detection frequency according to the preset detection cycle, if not, the position of the target detection task in the task queue is adjusted to the first place.
[0118] The device for controlling the detection frequency of a client provided in the embodiments of the present disclosure can execute the method for controlling the detection frequency of a client provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0119] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method for controlling the detection frequency of a client provided by any embodiment of the present disclosure.
[0120] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0121] The following specific reference Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure. The electronic device 800 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0122] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0123] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0124] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the control method of the detection frequency of the client of the embodiment of the present disclosure are executed.
[0125] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0126] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0127] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0128] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the frequency control mark data of the target application, and determines the frequency control detection target based on the frequency control mark data; determines the corresponding calculated detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency; determines the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculated detection frequency, wherein the target detection task includes the frequency control detection target; sends the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
[0129] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a target detection task, wherein the target detection task is issued by the server at a sub-detection frequency of the target detection task according to the frequency control detection target, and the sub-detection frequency is determined based on a calculated detection frequency, and the calculated detection frequency is determined based on historical frequency data of the frequency control detection target and the standard detection frequency; executes the target detection task to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
[0130] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0133] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0136] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0137] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0138] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for controlling the detection frequency of a client, characterized in that: Applied to the server, including: Acquire frequency control mark data of a target application, and determine a frequency control detection target based on the frequency control mark data; Determine a corresponding calculated detection frequency based on the historical frequency data of the frequency-controlled detection target and the standard detection frequency; Determine, based on the calculated detection frequency, a sub-detection frequency of the frequency control detection target in a target detection task and a target client corresponding to the frequency control detection target, wherein the target detection task includes the frequency control detection target; The target detection task is sent to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
2. The method according to claim 1, characterized in that The historical frequency data includes the detection frequency of the frequency control detection target in a first number of historical statistical periods, and the corresponding calculated detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency, including: Determine the sum of the detection frequencies of the frequency-controlled detection target in a first number of historical statistical periods to obtain a historical value; Determine the sum of the first quantity and the second quantity to obtain a quantity sum value, and determine the product of the quantity sum value and the standard detection frequency to obtain a standard value; The difference between the standard value and the historical value is divided by the value of the second quantity to determine the calculated detection frequency of the frequency control detection target in the next statistical period.
3. The method according to claim 2, characterized in that The historical statistical cycle and the next statistical cycle correspond to the same cycle time, and the second number represents the number of statistical cycles for correcting the detection frequency of the frequency-controlled detection target to the standard detection frequency.
4. The method according to claim 2, characterized in that: The method further comprises: Obtaining the detection results of each of the historical statistical periods, and extracting the target results including the redirection records in the detection results; The detection frequency of the redirected detection target corresponding to the target result in each of the historical statistical periods is added to the historical frequency data.
5. The method according to claim 1, characterized in that Determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target based on the calculated detection frequency includes: Get priority frequency control data; Based on the priority frequency control data and the calculated detection frequency, a sub-detection frequency of the frequency control detection target in the target detection task and a target client corresponding to the frequency control detection target are determined.
6. The method according to claim 5, characterized in that The priority frequency control data includes task priority data and device priority data. Based on the priority frequency control data and the calculated detection frequency, determining the sub-detection frequency of the frequency control detection target in the target detection task and the target client corresponding to the frequency control detection target includes: Based on the task priority data and the calculated detection frequency, adjusting the sub-detection frequency of the frequency-controlled detection target in the target detection task from an initial value to a target value; Based on the device priority data and the calculated detection frequency, the target client is obtained by screening from a plurality of initial clients corresponding to the frequency control detection target in order of device priority from high to low.
7. The method according to claim 6, characterized in that The number of the target detection tasks is multiple, and the sum of the target values of the sub-detection frequencies of the frequency-controlled detection target in each of the target detection tasks is the calculated detection frequency; The task priority data includes the task priority of each of the target detection tasks, and the adjustment value of the sub-detection frequency of the frequency-controlled detection target in each of the target detection tasks is negatively correlated with the task priority of each of the target detection tasks.
8. The method according to claim 1, characterized in that Determining a frequency control detection target based on the frequency control mark data includes: Matching is performed among multiple detection tasks of the target application based on the frequency control mark data, and a detection target with successful matching is determined as the frequency control detection target.
9. A method for controlling the detection frequency of a client, characterized in that: Applied to target clients, including: Receiving a target detection task, wherein the target detection task is issued by the server at a sub-detection frequency of the target detection task according to the frequency control detection target, the sub-detection frequency is determined based on a calculated detection frequency, and the calculated detection frequency is determined based on historical frequency data of the frequency control detection target and the standard detection frequency; The target detection task is executed to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
10. The method according to claim 9, characterized in that Executing the target detection task includes: Whether the detection frequency of the frequency-controlled detection target of the target detection task in the task queue meets the corresponding sub-detection frequency according to the preset detection cycle, if not, the position of the target detection task in the task queue is adjusted to the first place.
11. A control device for a detection frequency of a client, characterized in that: Set on the server side, including: An acquisition module, used to acquire frequency control mark data of a target application and determine a frequency control detection target based on the frequency control mark data; A calculation module, used to determine a corresponding calculation detection frequency based on the historical frequency data of the frequency control detection target and the standard detection frequency; A determination module, configured to determine, based on the calculated detection frequency, a sub-detection frequency of the frequency-controlled detection target in a target detection task and a target client corresponding to the frequency-controlled detection target, wherein the target detection task includes the frequency-controlled detection target; The sending module is used to send the target detection task to the target client according to the sub-detection frequency, so that the target client executes the target detection task to detect the frequency control detection target of the target application.
12. A control device for a detection frequency of a client, characterized in that: Set on the target client, including: A receiving module, configured to receive a target detection task, wherein the target detection task is issued by the server according to the frequency control detection target at the sub-detection frequency of the target detection task, the sub-detection frequency is determined based on the calculated detection frequency, and the calculated detection frequency is determined based on the historical frequency data of the frequency control detection target and the standard detection frequency; An execution module is used to execute the target detection task to detect the frequency control detection target of the target application, wherein the target client is determined based on the calculated detection frequency.
13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for controlling the detection frequency of the client as described in any one of claims 1-10.
14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method for controlling the detection frequency of the client as described in any one of claims 1 to 10.