Supercharge Your Innovation With Domain-Expert AI Agents!

A control method and device for interface calling

An interface call and control method technology, which is applied to multi-programming devices, program startup/switching and other directions, can solve the problems of low control accuracy of interface calls, undetectable malicious calls or abnormal calls by the interface caller, etc., and achieves easy discovery and control. Excluded, high-accuracy effects

Active Publication Date: 2016-03-16
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a control method for interface calls, so as to solve the problems in the prior art that the malicious call or abnormal call of the interface caller is not easy to detect, and the accuracy of interface call control is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A control method and device for interface calling
  • A control method and device for interface calling
  • A control method and device for interface calling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] figure 1 The implementation flow of the interface call control method provided by Embodiment 1 of the present invention is shown, and the method process is described in detail as follows:

[0022] In step S101, the number of interface calls of the interface caller on the current day and each of the N days before this day, where N is greater than or equal to 1, is obtained.

[0023] In this embodiment, when it is necessary to control the interface calls of the day, the number of interface calls of each day in the day and the N days before the day is obtained. Wherein, the N can be any integer value greater than zero, preferably N=7.

[0024] Preferably, in order to obtain the interface call situation of each time period in a day, realize the control of the interface call of each time period, and improve the accuracy of control, the method also includes:

[0025] Divide the daily time into M equal parts on average, obtain the number of interface calls in each equal time...

Embodiment 2

[0035] figure 2 It shows the implementation process of the interface call control method provided by the second embodiment of the present invention. This embodiment adds the following steps on the basis of the first embodiment:

[0036] In step S203, it is judged whether there is a day in the previous N days where the absolute value of the difference between the number of interface calls and the weighted average value is greater than the preset value, if the judgment result is "yes", then execute step S204, otherwise execute step S206 ;

[0037] In step S204, the number of interface calls in the previous N days in which the absolute value of the difference between the number of interface calls and the weighted average value is greater than a preset value is deleted.

[0038] In this embodiment, in order to obtain a more accurate and effective weighted average, the interface calls in the previous N days are denoised, and the number of interface calls in the previous N days se...

Embodiment 3

[0045] image 3 The composition structure of the interface call control device provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0046] The interface call control device may be a software unit, a hardware unit, or a combination of software and hardware running in each application system, or it may be integrated into these application systems as an independent pendant.

[0047] The interface call control device 3 includes an information acquisition unit 31 , a first calculation unit 32 and a call control unit 33 . Among them, the specific functions of each unit are as follows:

[0048] The information acquisition unit 31 is used to obtain the number of interface calls on the day and the number of interface calls of each day in the N days before the day, where N is any integer value greater than zero;

[0049] The first calculation unit 32 is...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the field of computer software, and provides a control method and device for interface calls. The method includes the following steps: step A, acquiring the number of interface call times of an interface calling party in the current day and the number of interface call times of the interface calling party in each of the previous N days, wherein N is any integer value larger than zero; step B, setting a weight for the number of interface call times of the interface calling party in each of the previous N days, and calculating a weighted average of the numbers of interface call times of the previous N days according to the set weight; step C, comparing the number of interface call times of the interface calling party in the current day with the weighted average, continuing to receive an interface call request when the difference value acquired by comparison is smaller than or equal to a preset value, and otherwise, refusing the interface call request. By means of the control method and device for the interface calls, the accuracy rate of interface call control can be higher, and harmful recalls and abnormal recalls of the interface calling party can be conveniently found and eliminated.

Description

technical field [0001] The invention belongs to the field of computer software, and in particular relates to a control method and device for interface calling. Background technique [0002] In the prior art, during the interface calling process, a call frequency threshold for calling the interface is set for each interface caller, and the call of the interface is controlled by the call frequency threshold. For example, if the frequency threshold of an interface call is 24 times per day, if the number of times the interface is called more than 24 times on that day, the server will refuse to call the interface again, so as to achieve the purpose of protecting interface resources. [0003] In the prior art, the call of the interface is only controlled by the call frequency threshold, and the malicious call or abnormal call of the caller of the interface is not easy to be detected, and the accuracy of the control is low. Contents of the invention [0004] The purpose of the e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
Inventor 朱海洋
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More