Method and device for management of application programming interface (API) call records

A technology of API calling and programming interface, applied in the computer field, can solve the problems of occupation, multi-processing resources, large number of API call records, etc.

Inactive Publication Date: 2015-04-08
HUAWEI TECH CO LTD
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main disadvantage of this technology is that the number of API call records that the API billing gateway needs to process is too large, which takes up more processing resources

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
  • Method and device for management of application programming interface (API) call records
  • Method and device for management of application programming interface (API) call records
  • Method and device for management of application programming interface (API) call records

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] See attached Figure 2a , is a schematic flowchart of a method for managing API call records provided by an embodiment of the present invention. It should be understood that this method can be used for figure 1 In the application scenario shown. Specifically, such as Figure 2a As shown, the management method of the API call record provided by the embodiment of the present invention includes the following steps:

[0060] S201. Obtain multiple API call records, each API call record in the multiple API call records includes at least the following attribute information: caller ID, call time Called time, and resource usage, wherein the caller The identifier is used to indicate the caller of the API, and the Called time is used to indicate the time information when the API is called;

[0061] It should be noted that the multiple API call records are generated by the API gateway.

[0062] It should be noted that the caller ID is used to identify the caller of the API, and...

Embodiment 2

[0086] See attached Figure 4 , is a schematic structural diagram of an API call record management device 40 provided in an embodiment of the present invention. It should be noted that the API call record management device 40 can be used in figure 1 In the above-mentioned application scenario diagram, preferably, the management device 40 of the API call record is integrated in figure 1 The API gateway or API billing gateway. Specifically, such as Figure 4 As shown, the management device 40 of the API call record is made up of the following components:

[0087] The obtaining unit 41 is configured to obtain a plurality of API call records, each API call record in the plurality of API call records includes at least the following attribute information: caller identification, call time Called time and resource usage, wherein, The caller ID is used to indicate the caller of the API, and the Called time is used to indicate the time information when the API is called;

[0088] It...

Embodiment 3

[0106] See attached Figure 5 , is a schematic structural diagram of a gateway 500 provided by an embodiment of the present invention. The gateway 500 is the operating carrier of the management device for API call records described in Embodiment 2. It should be understood that the gateway 500 can be used in figure 1 shown in the application scenario diagram. It should be noted that when the API gateway is the operating carrier of the management device for the API call record described in the second embodiment, the gateway 500 refers to the API gateway; when the API billing gateway is the management device for the API call record described in the second embodiment When the operating carrier of the device is used, the gateway 500 refers to the API billing gateway; of course, the gateway 500 can also be other gateways other than the API gateway and the API billing gateway.

[0107] Specifically, such as Figure 5 As shown, the gateway 500 may include at least one processor 501 ...

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 relates to the technical field of flow calculation and provides a method for management of application programming interface (API) call records; the method comprises the steps: acquiring a plurality of API call records; determining the respective affiliated charging period of each call record in the plurality of the API call records according to the Called time of each call record in the plurality of the API call records; superposing the resource usage amount of each of more than two API call records, which are located in the same charging period, have the same caller mark and have the same charging unit price, in the plurality of the API call records according to the preset charging unit price, and obtaining one API call record subjected to superposition. With adoption of the technical scheme, the quantity of the API call records to be processed by an API charging gateway can be reduced and partial processing resources can be released.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a management method and device for application programming interface API call records. Background technique [0002] The API (Application Programming Interface, Application Programming Interface) is used to open the service capabilities of the capability server to the outside world. When in use, the API is usually called through the API gateway to access the capability server. Every time an API is called, the API gateway will generate an API call record, and then the API gateway will transmit the API call record to the API billing gateway, and the API billing gateway will calculate the call according to the preset billing rules Fees incurred by the API. [0003] The main disadvantage of this technology is that the number of API call records that the API billing gateway needs to process is too large, which occupies more processing resources. Contents of the invention [0004...

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 Applications(China)
IPC IPC(8): H04L12/24H04L12/14
CPCH04L12/14
Inventor 叶顺宝
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products