CN117909207A - Method and device for debugging cloud service application program interface API and related equipment - Google Patents
Method and device for debugging cloud service application program interface API and related equipment Download PDFInfo
- Publication number
- CN117909207A CN117909207A CN202310293831.1A CN202310293831A CN117909207A CN 117909207 A CN117909207 A CN 117909207A CN 202310293831 A CN202310293831 A CN 202310293831A CN 117909207 A CN117909207 A CN 117909207A
- Authority
- CN
- China
- Prior art keywords
- parameter
- api
- cloud service
- cloud
- computing platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 239000008186 active pharmaceutical agent Substances 0.000 claims description 64
- 230000015654 memory Effects 0.000 claims description 23
- 230000008569 process Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 47
- 238000010586 diagram Methods 0.000 description 18
- 238000012795 verification Methods 0.000 description 17
- 230000010354 integration Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 206010047289 Ventricular extrasystoles Diseases 0.000 description 7
- 238000005129 volume perturbation calorimetry Methods 0.000 description 7
- 238000004458 analytical method Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000037361 pathway Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/366—Software debugging using diagnostics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method, a device and related equipment for debugging a cloud service application program interface API in a cloud computing platform, wherein the method comprises the following steps: firstly, a cloud computing platform provides an API configuration interface for a user to select a cloud service API to be debugged, then the first cloud service API selected by the user is obtained through the API configuration interface, a parameter value of a first parameter of the first cloud service API input by the user is obtained, a parameter set of the first cloud service API related to the first parameter is recommended to the user, a parameter value of a second parameter in the parameter set input by the user is obtained, finally, the cloud computing platform deploys cloud services related to the first cloud service API in cloud computing resources according to the parameter value of the first parameter and the parameter value of the second parameter to realize the debugging of the first cloud service API, and a debugging result of the first cloud service API is provided through a debugging result interface. The method can improve the correlation and accuracy of parameter recommendation, so that the cloud service API is more efficient to debug.
Description
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for debugging a cloud service application program interface API in a cloud computing platform, and related devices.
Background
Cloud vendors provide a number of cloud services for computing, storage, networking, etc., and APIs are a bridge between cloud services and users. The premise of the user to select the cloud service API is reliability and availability, but more importantly, the usability of the corresponding tool in the development and debugging process. The usability of a cloud service API generally refers to whether there is accurate and detailed usage instructions, whether there are rich scene examples, whether convenient tuning means are provided, etc. in terms of documents and tool support.
The cloud manufacturer provides massive APIs and simultaneously brings the problems of easiness in use such as API searching, API convenient debugging, API parameter choosing and rejecting, API debugging and troubleshooting. At present, in order to solve the problems of API searching, API debugging and the like, all cloud manufacturers generally provide functions of API full-element information searching, online debugging and the like. However, the functions of API parameter selection, debugging and diagnosis and the like are not perfect, the correlation of service scenes is not considered in parameter selection, and the personalized requirement is lacked. For API debug diagnostics, the error cues provided may be one-sided or inaccurate, resulting in associated solutions that are also one-sided, presenting some difficulty in debugging.
Disclosure of Invention
The application provides a method, a device and related equipment for debugging a cloud service Application Program Interface (API) in a cloud computing platform, wherein when a user configures the cloud service API, a group dependency relationship among parameters in the cloud service API is extracted in advance, a parameter group which is filled in preferentially is recommended, the correlation and the accuracy of the recommendation of the parameters of the cloud service API can be improved, the debugging time of the user is saved, and therefore the cloud service API can be debugged efficiently and rapidly.
In a first aspect, there is provided a method for debugging a cloud service application program interface API in a cloud computing platform, the cloud computing platform providing a plurality of cloud services and managing cloud computing resources for deploying the cloud services, the cloud services having a cloud service API, the cloud computing platform providing a debugging service of the cloud service API and being configured with an API configuration interface and a debugging results interface of the debugging service, the method comprising: firstly, a cloud computing platform provides an API configuration interface for a user to select a cloud service API to be debugged, then the cloud computing platform obtains a first cloud service API selected by the user through the API configuration interface, obtains a parameter value of a first parameter of the first cloud service API input by the user, recommends a parameter set of the first cloud service API related to the first parameter to the user, and then obtains a parameter value of a second parameter in the parameter set input by the user, wherein the second parameter is part of parameters or all parameters in the parameter set, and finally the cloud computing platform deploys cloud services related to the first cloud service API in cloud computing resources according to the parameter value of the first parameter and the parameter value of the second parameter to debug the first cloud service API, and provides a debugging result of the first cloud service API through a debugging result interface.
According to the scheme, when the user debugs the cloud service API, the parameter set corresponding to the cloud service API related to the parameter can be recommended to the user according to the parameter value of the cloud service API parameter to be debugged, which is input by the user, so that the correlation and accuracy of parameter filling can be improved, and the debugging of the cloud service API is more efficient.
In one possible implementation, before the cloud computing platform recommends a parameter set of a first cloud service API related to the first parameter through the API configuration interface, the cloud computing platform selects one or more parameters belonging to the same functional module as the first parameter as the parameter set.
In one possible implementation manner, the cloud computing platform generates an association relationship between the functional module of the first cloud service API and the parameter set based on the parameter description file of the first cloud service API.
In one possible implementation, before the cloud computing platform recommends a parameter set of a first cloud service API related to the first parameter through the API configuration interface, the cloud computing platform selects one or more parameters of a second cloud service called by the first cloud service API as the parameter set, wherein the first parameter belongs to the second cloud service.
By implementing the implementation manner, one or more parameters of the second cloud service which belong to the same functional module or the first cloud service API call as the first parameter input by the user can be selected as the parameter set, the parameters which are preferably filled in the next step are recommended to the user, so that the user can more accurately and rapidly configure the parameters, and the efficiency of the user for debugging the cloud service API can be improved.
In one possible implementation, if the parameter value of the first parameter entered by the user does not meet the requirement of the first parameter, the cloud computing platform prompts the user to modify the parameter value of the first parameter through the API configuration interface.
In one possible implementation, the requirements of the first parameter include one or more of the following: the type of the first parameter, the parameter range of the first parameter or the service requirement of the first parameter.
In one possible implementation, if a debug error occurs in the first cloud service API, the cloud computing platform provides a solution to the debug error through a debug results interface.
By implementing the implementation mode, the user is prompted to modify the parameter values which do not meet the parameter requirements, and a solution for prompting to solve the debugging errors is provided for the user, so that the user is convenient to check the reasons of the debugging errors, the user can solve the problems in a directed manner, and the cloud service API can be debugged more efficiently.
In one possible implementation, the cloud computing platform generates code for triggering debugging of the first cloud service API according to the first programming language and the parameter values of the first cloud service API.
In a second aspect, there is provided a cloud computing platform for debugging a cloud service application program interface API in a cloud computing platform, the cloud computing platform providing a plurality of cloud services and managing cloud computing resources for deploying the cloud services, the cloud services having a cloud service API, the cloud computing platform providing a debugging service of the cloud service API and being configured with an API configuration interface and a debugging result interface of the debugging service, the cloud computing platform comprising: the configuration module is used for providing an API configuration interface for a user to select a cloud service API to be debugged, and then, the configuration module is used for acquiring a first cloud service API selected by the user through the API configuration interface, acquiring a parameter value of a first parameter of the first cloud service API input by the user, recommending a parameter set of the first cloud service API related to the first parameter to the user, and acquiring a parameter value of a second parameter in the parameter set input by the user through the API configuration interface, wherein the second parameter is part of parameters or all parameters in the parameter set; the debugging module is used for deploying cloud services associated with the first cloud service API in the cloud computing resources according to the parameter values of the first parameters and the parameter values of the second parameters to realize the debugging of the first cloud service API; and the result display module is used for providing the debugging result of the first cloud service API through the debugging result interface.
In one possible implementation manner, the configuration module is configured to select, as the parameter set, one or more parameters that belong to the same functional module as the first parameter before recommending, through the API configuration interface, the parameter set of the first cloud service API related to the first parameter.
In one possible implementation manner, the configuration module is specifically configured to generate, based on a parameter description file of the first cloud service API, an association relationship between a function module of the first cloud service API and the parameter set.
In one possible implementation manner, the configuration module is specifically configured to select, as the parameter set, one or more parameters of a second cloud service called by the first cloud service API before recommending, through the API configuration interface, the parameter set of the first cloud service API related to the first parameter, where the first parameter belongs to the second cloud service.
In one possible implementation manner, the configuration module is specifically configured to prompt, through an API configuration interface, a number of filled parameter values in the parameter set during a process of filling parameter values of a part of parameters in the parameter set by a user.
In one possible implementation manner, the configuration module is specifically configured to prompt, through an API configuration interface, a user to modify a parameter value of the first parameter if the parameter value of the first parameter entered by the user does not meet the requirement of the first parameter.
In one possible implementation, the requirements of the first parameter include one or more of the following: the type of the first parameter, the parameter range of the first parameter or the service requirement of the first parameter.
In one possible implementation manner, the above result display module is specifically configured to provide a solution for prompting to solve the debug error through the debug result interface if the first cloud service API has a debug error.
In one possible implementation manner, the configuration module is further configured to generate, according to the first programming language and the parameter value of the first cloud service API, a code for triggering debugging of the first cloud service API.
In a third aspect, a cluster of computing devices is provided, including at least one computing device, each computing device including a processor and a memory; the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method as provided above in the first aspect or any possible implementation of the first aspect.
In a fourth aspect, there is provided a computer program product containing instructions which, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the method as provided above in the first aspect or any possible implementation of the first aspect.
In a fifth aspect, a computer readable storage medium is provided, comprising computer program instructions which, when executed by a cluster of computing devices, perform a method as provided by the above-described first aspect or any of the possible implementations of the first aspect.
Drawings
In order to more clearly describe the embodiments of the present application or the technical solutions in the background art, the following description will describe the drawings that are required to be used in the embodiments of the present application or the background art.
Fig. 1 is a schematic diagram of an application scenario according to the present application.
Fig. 2 is a schematic diagram of an architecture for debugging a cloud service API on a cloud computing platform according to the present application.
Fig. 3 is a schematic diagram of a shallow integration method according to the present application.
Fig. 4 is a schematic diagram of a deep integration mode provided by the present application.
Fig. 5 is a schematic flow chart of cloud service API debugging provided by the present application.
Fig. 6 is a schematic diagram of a parameter set recommendation provided by the present application.
Fig. 7 is another flow chart of cloud service API debugging provided by the present application.
Fig. 8 is a schematic structural diagram of a parameter DAG library and a parameter verification library provided by the present application.
Fig. 9 is a schematic diagram of a parameter DAG library of a cloud service API provided by the present application.
Fig. 10 is a schematic diagram of a cloud service API calling a parameter DAG library of another cloud service provided by the present application.
Fig. 11 is another flow chart of cloud service API debugging provided by the present application.
Fig. 12 is a schematic diagram of panoramic error information display provided by the present application.
Fig. 13 is a schematic diagram of generating cloud service API debug code according to the present application.
Fig. 14 is a schematic structural diagram of a cloud computing platform provided by the present application.
Fig. 15 is a schematic structural diagram of a computing device provided by the present application.
Fig. 16 is a schematic structural diagram of a computing device cluster according to the present application.
Fig. 17 is a schematic diagram of a configuration of a computing device connected by a network according to the present application.
Detailed Description
The application provides a method, a device and other equipment for debugging a cloud service application program interface API in a cloud computing platform, and the method, the device and the other equipment are described below with reference to the accompanying drawings.
The terms first and second and the like in the description and in the claims are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, "first request" and "second request" and the like are intended to distinguish between different requests and are not intended to describe a particular order of requests.
In order to make the technical scheme provided by the application clearer, before the technical scheme provided by the application is specifically described, explanation of related terms is firstly carried out.
(1) Application program interface (Application Programming Interface, API): is a computing interface that defines the type of calls or requests that can be made, how calls or requests are made, the data format that should be used, the conventions that are followed, etc. The main purpose of the method is to enable the developer to call a group of routine functions without considering the underlying source code implementation or understanding the details of an internal working mechanism, thereby simplifying the development of the application and saving time and cost.
(2) Another markup language (Yet Another Markup Language, YAML): is a format with high readability for expressing data serialization. The YAML language is intended to be intuitively recognized by a computer, easily readable by humans, and interactable with scripting language. Can be used to express or edit data structures, various configuration files, file schemas, and the like.
(3) Directed acyclic graph (DIRECTED ACYCLIC GRAPH, DAG): is a loop-free directed graph. If a directed graph, starting from any vertex, cannot go back to the point through several edges, then the graph is a directed acyclic graph. The graph is composed of vertices and edges connecting the vertices. The graph with each edge pointing from one vertex to another is a directed graph. The roads in the directed graph are a series of edges, and the end point of each edge in the series is the start point of the next edge. If the start of a path is the end of the path, then the path is a loop. The directed acyclic graph is a graph of the directed graph with no rings present.
(4) Integrated development environment (INTEGRATED DEVELOPMENT ENVIRONMENT, IDE): is an application program for providing a program development environment, and generally includes a code editor, a compiler, a debugger, a graphical user interface, and the like. The integrated development software service integrating the code writing function, the analysis function, the compiling function, the debugging function and the like helps developers to develop software codes efficiently.
(5) Software development kit (Software Development Kit, SDK): is a collection of development tools that a developer uses to create application software for a particular software package, software framework, hardware platform, operating system, etc. Software developers may be assisted in creating applications for a particular platform, system, or programming language.
The application scenario according to the embodiment of the present application is briefly described below.
Referring to fig. 1 and 2, fig. 1 and 2 are schematic views of two application scenarios exemplarily shown in the present application. The application scenario shown in fig. 1 specifically corresponds to a scenario in which a user performs cloud service API debugging on a cloud computing platform. The application scenario shown in fig. 2 is a basic flow of cloud service API debug service usage on a cloud computing platform.
In the application scenario shown in fig. 1, a user 10 may interact with a cloud computing platform 20 to configure and debug parameters of a cloud service API. The cloud computing platform 20 is configured with an API configuration interface 210 and a debug result interface 220 of the cloud service API, and is displayed in columns, and after parameter configuration is completed on the API configuration interface 210, a user clicks a debug button, i.e. can intuitively see a debug result after debugging on the debug result interface 220.
The API configuration interface 210 displays all parameters of a certain cloud service API, including the fill-in parameters and the not-fill-in parameters. As shown in fig. 1, "×" represents the mandatory parameters, and clicking the "see mandatory items only" button filters out the non-mandatory parameters. Taking the creation of a cloud server (CREATE SERVERS) as an example, the cloud service API may involve configuration of multiple functional modules such as a hard disk, an operating system image, an elastic IP, and a network card. Accordingly, the parameters are configured with basic functional parameters, such as an operating system, hardware specifications, etc.; there are also parameters related to the traffic optimization, such as whether IPV6 can be used, whether SSD hard disk is used, or whether it is a computing scenario, etc. The proportion of parameter configuration affects the use cost on one hand and determines the performance of the deployment service on the other hand.
Clicking on the "debug" button of API configuration interface 210 displays the results of the cloud service API debugging on debug results interface 220. If the cloud service API call is successful, displaying that the debugging is successful at the top of the debugging result interface 220; if the cloud service API call fails, the debug failure is displayed on top of the debug results interface 220, and in addition, the failure cause of the debug failure is returned and the corresponding solution is associated. As shown in fig. 1, the debug results interface 220 displays "this debug failed," clicks to view "diagnostic results'", clicks on "diagnostic results" and jumps to the solution associated with this debug failed. The column "error_code" indicates that the reason for the failure of the debugging is "MISSING PARAMETER", i.e. the missing parameter; the column "error_message" shows that the specific reason for the debug failure is "The input parameter \parameter c\ that is mandatory for processing this request is not supplied", i.e. "output parameter C'" necessary for handling the request is not provided ".
In the process of debugging through the cloud service API debugging service shown in fig. 1, a user needs to fill in configuration parameters of the cloud service API. Taking the creation of a cloud server (CREATE SERVERS) as an example, the cloud service API has about 100 parameters, with about 10 parameters being necessary. The cloud service API debugging service is divided into a left column interface and a right column interface, wherein the left column is an API configuration interface, and the right side is a debugging result interface. Clicking the "watch only fill item" button can filter out unnecessary fill parameters, clicking the "debug" button initiates a debug request. When the debugging result is reported to be wrong, the right column interface displays the debugging failure reason, and the user clicks the diagnosis result to jump to the solution associated with the debugging failure. However, parameters of the cloud service API are generally tens or even hundreds, a user needs to select and select a parameter set, and parameter values need to be filled after the parameter set is selected, so that the efficiency of filling parameters by the user is low, the process of debugging the cloud service API is tedious, and the entering difficulty is high. After the debugging is wrong, although the error reasons are shown, the user is required to inquire the corresponding error solution through a search engine alone, so that the whole cloud service API debugging process is time-consuming and low in efficiency.
In order to avoid the problem, the cloud service API debugging service recommends parameter sets to a user based on the historical call information of the cloud service API, and displays the proportion of the parameter sets in all successfully called parameter sets, so that the user can screen out the corresponding parameter sets according to recommendation. However, the recommendation is performed based on the historical call information of the cloud service API, the current service scene of the user is not considered, and in addition, the recommendation cannot be performed on the cloud service API which is newly online and has no call history. Secondly, after debugging and reporting errors, only one error message is returned, and the returned error message may have a situation of one-sided or inaccurate. As shown in fig. 1, the column "error_message" in the debug results interface 220 shows that the necessary output parameter "parameter C" is absent, but it can be seen by the API configuration interface 210 that "parameter C" is an unnecessary filling parameter. Thus, a one-sided or inaccurate error hint may result in an associated error solution that may also be one-sided or inaccurate.
In order to solve the problems, the application provides a method, a device and related equipment for debugging a cloud service application program interface API in a cloud computing platform, and the method, the device and the related equipment are used for recommending a parameter group which is filled in preferentially when a user configures the parameters of the cloud service API by extracting the grouping dependency relationship among the parameters in the cloud service API in advance, so that the correlation and the accuracy of parameter recommendation can be improved, and the debugging of the cloud service API is more efficient. Meanwhile, through the parameter pre-checking function, parameter pre-checking is carried out in the process of configuring parameters of the cloud service API by a user, panoramic error information can be returned, so that the user can avoid the problem in advance, and the reasons of errors are positioned in a vector manner, thereby saving the debugging time of the user and efficiently and quickly realizing the debugging of the cloud service API.
In order to more clearly understand the method, the device and the related equipment for debugging the cloud service application program interface API in the cloud computing platform provided by the application, the detailed description is respectively given below with reference to the corresponding drawings.
First, a basic architecture for cloud service API debugging service in a cloud computing platform according to the present application is described with reference to fig. 2, where gray frames are the problems to be solved by the present application. The cloud computing platform comprises three parts, namely API parameter configuration, debugging and API debugging results. When the user configures the cloud service API parameters, the user can dynamically recommend the parameter set which is filled in preferentially, and prompt the number of the filled parameter values in the parameter set to be the ratio, namely the completion degree of parameter filling in the parameter set. After parameter configuration is completed, the pre-verification can be dynamically grouped, potential problems are listed, an ordered panoramic error information list is given, and solutions corresponding to debugging errors are associated. The user modifies according to the returned error prompt solution to realize successful debugging continuously and perfectly.
The embodiment of the application combines the recommendation of the API parameter set and the pre-verification of the parameter, and is used for solving the problem to be solved in the figure 2. In practical application, two integration modes are adopted for the recommendation of the API parameter set and the parameter pre-verification, and the integration can be shallow integration or deep integration. These two integration modes are described in detail below with reference to the accompanying drawings, respectively.
Referring to the schematic diagram of the shallow integration manner shown in fig. 3, the API parameter set recommendation is integrated with the existing API/SDK related plug-in, and when the user configures parameters through the cloud service IDE plug-in, the parameter set recommendation provides the user with a recommended parameter set list, where the recommended parameter set list is used to enhance the code complement function of the original service API/SDK.
Referring to the schematic diagram of the deep integration mode shown in fig. 4, parameter group recommendation and parameter pre-verification are integrated together into the existing cloud service API debugging service, when a user completes parameter configuration, the cloud service API debugging service generates a recommended parameter group list, recommends a parameter group which is filled in preferentially to the user, and displays the ratio of the current parameter group filled with parameter values in the form of a percentage progress bar. Meanwhile, before formal debugging, the parameter pre-verification function works in the background all the time, and if the parameter filling is detected to be out of the requirements, a user is prompted to modify corresponding parameter values, and panoramic error reporting information is provided for the user.
The flow diagram of the method for debugging the cloud service application program interface API in the cloud computing platform provided by the application is shown in fig. 5, and the method can be applied to the cloud computing platform shown in fig. 1.
As shown in fig. 5, the method provided by the present application includes steps S501 to S508:
S501, the cloud computing platform 20 configures the API configuration interface 210 and the debug result interface 220 of the cloud service API debug service.
In this embodiment, the cloud computing platform provides a plurality of cloud services, and manages cloud computing resources for deploying the cloud services, wherein the cloud services have cloud service APIs. In order to facilitate debugging by a user, the cloud computing platform provides a debugging service of the cloud service API and is configured with an API configuration interface and a debugging result interface as shown in fig. 1. In an example of the present application, the cloud computing platform may be the cloud computing platform 20 shown in fig. 1, the API configuration interface may be the API configuration interface 210 shown in fig. 1, and the debug result interface may be the debug result interface 220 shown in fig. 1, which is also described below as an example.
Illustratively, a user debugs a cloud service API on the cloud computing platform 20, completes parameter configuration of the cloud service API at the API configuration interface 210, and deploys a cloud service associated with the cloud service API in the cloud computing resource according to the parameter value completed by the user configuration by the cloud computing platform 20 to implement the debugging of the cloud service API. After clicking the "debug" button, the user provides the debug result of the cloud service API on the debug result interface 220, and if the debug is successful, the cloud service API is successfully debugged; if the debugging fails, displaying the debugging failure and associating the solution corresponding to the debugging failure.
S502, the API configuration interface 210 is used for a user to select a cloud service API to be debugged.
In this embodiment, the API configuration interface 210 allows the user to select a cloud service API to be debugged. The user can select the cloud service API to be debugged according to the own requirements for debugging. In addition, the API configuration interface 210 classifies the cloud service APIs according to the class of the cloud service, for example, classifying according to storage, network, security, etc., so that the user can search and select the cloud service APIs according to the class of the cloud service. After the user selects the API to be debugged, the API configuration interface 210 also exposes the user with detailed information of the cloud service API, where the detailed information may be a functional description of the cloud service, a help document, and related resource information.
In one possible implementation, the cloud service API to be debugged may also be provided by an interface other than the API configuration interface 210, and in addition to classifying the cloud service API and providing detailed information of the cloud service API, further functions may be provided for the user. These functions may be a recently accessed cloud service API, a recently debugged cloud service API, a frequently debugged cloud service API, making configuration and debugging of the cloud service API more efficient for the user.
S503, the API configuration interface 210 acquires a first cloud service API selected by a user.
In this embodiment, the user selects the cloud service API to be debugged, that is, the first cloud service API according to the own requirement, and the API configuration interface 210 presents the names of all parameters of the first cloud service API and the input area of the parameter values to be input for the user. In addition, the API configuration interface 210 may further provide the user with description information of each parameter, where the description information may be a name, function information, a value range, a filling example, etc. of the parameter, so that the user can know the filling element and the filling specification of the parameter more accurately and rapidly, which can improve user experience and efficiency of configuring the parameter by the user.
S504, the API configuration interface 210 acquires a parameter value of a first parameter of the first cloud service API entered by a user.
In this embodiment, after the user selects the first cloud service API, parameters need to be configured for the cloud service API. The user selects one of the parameters of the cloud service API to fill in the corresponding parameter value, namely the parameter value of the first parameter, and the parameter value of the first parameter of the first cloud service API input by the user is acquired by the API configuration interface 210. The parameter may be a fill-in parameter of the cloud service API, or may be a non-fill-in parameter, which is not specifically limited herein.
S505, the API configuration interface 210 recommends a parameter set of the first cloud service API related to the first parameter.
In this embodiment, after the user inputs the parameter value of the first parameter of the first cloud service API, the API configuration interface 210 recommends the parameter set of the first cloud service related to the first parameter for the user to fill in preferentially.
As shown in fig. 6, in the cloud service API debugging service, the parameter set recommendation function provided by the present application may be implemented by turning on a "parameter assist" function, where the "parameter assist" function may be manually turned on by a user before configuring parameters, or may be a default on mode, which is not specifically limited herein. Before turning on "parameter assistance", as shown in fig. 6 (a), the API configuration interface exposes three parameters, namely Region, project-id, and auto_ termintate _time. After the user enters one of the parameter regions with the parameter value of 'beijing 4', the parameter sequence of the API configuration interface remains unchanged. After "parameter assistance" is turned on, as shown in fig. 6 (b), after the user inputs the parameter value of the first parameter, that is, after inputting the parameter value "beijing4" of the parameter Region, the parameter sequence of the API configuration interface changes, and the parameter behind the parameter Region is dynamically adjusted to parameters ImageRef (OS mirror image) and FlavorRef (specification), that is, the API configuration interface recommends the parameter group related to the parameter Region for the user to fill in preferentially. Wherein the dashed boxes indicate that parameters ImageRef and FlavorRef belong to the same parameter set as the user has filled in parameter Region.
In this embodiment, the cloud computing platform 20 pre-extracts the group dependency relationship between the parameters in the cloud service API, and when the user is configuring the parameters of the cloud service API, the set of parameters that are preferably filled in is recommended to the user according to the pre-obtained group dependency relationship between the parameters. As shown in fig. 7, before step S505 is performed, the method for extracting the group dependency relationship may specifically include steps S701 to S703:
S701, the cloud computing platform 20 generates an association relationship between the functional module of the first cloud service API and the parameter set based on the parameter description file of the first cloud service API.
In this embodiment, the association relationship between the function module of the cloud service API and the parameter set is generated based on a parameter description file of the cloud service API, where the parameter description file may be a YAML definition, a function description, a source code of implementation, and the like of the cloud service API. And analyzing the parameter description file of the cloud service API through relevant technologies such as code analysis and data mining, and splitting the functional module of the cloud service API. The specific implementation procedure of this step S701 may include: first, the implementation of the cloud service API relies on a plurality of other cloud services, each containing a plurality of independent business function modules, the implementation of each function module relying on a set of parameters. Based on a code analysis technology or a natural language technology, analyzing a parameter description file of the cloud service API, analyzing to obtain operation and calling relations among the cloud service API, the functional module and the parameter group, and connecting the operation and calling relations through the calling relations, so that a directed acyclic graph centering on the cloud service API is finally constructed. The nodes of the graph are the extracted functional modules and parameter sets of the cloud service API, and paths among the nodes are the dependency relations among the extracted parameter sets.
Specifically, the extraction process of the association relationship between the function module of the cloud service API and the parameter group is shown in fig. 8. Firstly, extracting other cloud services called by each cloud service API realization and other cloud service APIs and parameter related information through code analysis technologies such as grammar analysis, variable extraction and the like based on a source code file of the cloud service API realization. Next, a YAML definition file of the cloud service API is obtained, where the YAML definition file may include a name, a function description, a parameter list of the cloud service API and cloud service information corresponding to the API, and a parameter definition library of the cloud service API is obtained by aggregation construction. And then, through the call relation extracted from the API source code file, the function module extracted from the cloud service is associated with a parameter definition library, and finally, a directed acyclic graph of the function module and the parameter set of the cloud service API is constructed, wherein the directed acyclic graph is also called a parameter DAG library in the application.
For example, as shown in fig. 9, the parameter DAG library of the computing cloud service API is implemented by other cloud services such as storage, network, etc., and the computing cloud service includes a plurality of business function modules such as a function module 1, a function module 2, a function module 3, etc. Each function module implementation will depend on a parameter set, e.g. function module 1 depends on parameter set 1, function module 2 depends on parameter set 2, function module 3 depends on parameter set 3, etc. Each parameter set contains a plurality of parameters, wherein parameter set 1 includes parameter a, parameter a ', parameter a ", parameter set 2 includes parameter B, parameter B ', and parameter set 3 includes parameter C, parameter C ', and parameter C".
S702, the cloud computing platform 20 selects one or more parameters belonging to the same functional module as the first parameter as the parameter set.
In this embodiment, after a user inputs a parameter value of a first parameter of a first cloud service API, the cloud computing platform selects one or more parameters belonging to the same functional module as the first parameter as a parameter set based on a pre-generated association relationship between the functional module and the parameter set of the first cloud service API, and recommends the parameters to be filled in preferentially in the next step for the user, so that the correlation and accuracy of parameter configuration can be improved, and the efficiency of the user for debugging the cloud service API can be improved.
In practical applications, the parameter priorities in the parameter set are calculated by adopting a similarity algorithm, and cosine similarity (cosin), euclidean distance (Euclidean Distance), pearson correlation coefficient (pearson), manhattan distance (MANHATTAN DISTANCE) and the like can be calculated, which are not particularly limited herein.
For example, after a user inputs a parameter value of a parameter C in the computing cloud service API, the cloud computing platform may preprocess the parameter C, and understand and split the parameter C (such as normalization, vectorization, etc.). And recommending the parameter C 'and the parameter C' in the parameter group 3 belonging to the same function module as the parameter C to the user for filling in preferentially based on the association relation between the function module and the parameter group of the cloud computing API constructed in advance.
S703, the cloud computing platform 20 selects one or more parameters of the second cloud service called by the first cloud service API as a parameter set, where the first parameter belongs to the second cloud service.
In this embodiment, the implementation of the first cloud service API may call the second cloud service, and if the first parameter entered by the user belongs to the second cloud service, the cloud computing platform may select one or more parameters of the second cloud service called by the first cloud service API as a parameter set, and recommend the parameter set to be filled in for the user.
Illustratively, the computing cloud service API calls the parameter DAG library of other cloud services, and as shown in fig. 10, implementation of the computing cloud service API may call other cloud services such as network, storage, etc. The configuration of the network cloud service needs to fill out the parameter set 4, and the parameter set 4 includes a parameter D and a parameter D'. When the user inputs the parameter value of the parameter D, the cloud computing platform recommends the parameter D 'which belongs to the network cloud service with the parameter D as a parameter group, and recommends the parameter D' to be filled in by the user in priority.
S506, the API configuration interface 210 acquires parameter values of second parameters in the parameter set input by the user.
In this embodiment, the user inputs the parameter values of the second parameters in the parameter set according to the parameter set of the first cloud service API related to the first parameters recommended by the API configuration interface 210, where the second parameters are part of or all of the parameters in the parameter set.
Illustratively, with continued reference to FIG. 6, after the user enters the parameter value "beijing" for the parameter Region, the API configuration interface recommends to the user the parameter set associated with the parameter Region, which also includes parameters ImageRef and FlavorRef. The user may then proceed to enter parameter ImageRef with a parameter value of "Euleros-2.8".
In some possible implementations, the cloud computing platform also provides the user with a parameter pre-verification function in configuring the cloud service API parameters. Before the user formally debugs the cloud service API, checking whether the parameter value of the parameter entered by the user meets the requirement, as shown in fig. 11, the checking process of the parameter value may specifically include steps S1101-S1102:
S1101, in the process of filling the parameter values of the partial parameters in the parameter set by the user, the API configuration interface 210 prompts the number of filled parameter values in the parameter set to occupy the ratio.
In this embodiment, in the process of inputting the parameter value of the second parameter according to the recommended parameter set related to the first parameter, the API configuration interface may remind the user of the number of filled parameter values in the current parameter set, and may inform the user in the form of a percentage progress bar. And reminding a user whether the current parameter set has parameters which are not yet input or not through the completion degree verification of the parameter set, and informing the user of the input progress of the parameter values in the parameter set in a form of a percentage progress bar.
Illustratively, referring to FIG. 6 (b), the user fills in the second parameter ImageRef from the recommended parameter set, entering its parameter value of "Euleros-2.8", at which time the completion of the current parameter set is shown as a percentage progress bar below the current parameter set as 65%.
S1102, if the parameter value of the first parameter entered by the user does not meet the requirement of the first parameter, the API configuration interface 210 prompts the user to modify the parameter value of the first parameter.
In this embodiment, after the user inputs the parameter value of the first parameter, if the parameter value of the first parameter does not meet the requirement of the first parameter, the API configuration interface prompts the user to modify the parameter value of the first parameter. In addition, when the parameter value of the second parameter input by the user according to the recommended parameter group related to the first parameter does not meet the requirement of the second parameter, the API configuration interface prompts the user to modify the parameter value of the second parameter. Wherein the requirements of the first parameter and the second parameter may comprise one or more of a parameter type, a parameter range or a parameter service requirement.
Specifically, the parameter values recorded by the first parameter and the second parameter are verified according to the requirements of the first parameter and the second parameter, and the prompt user is realized based on a parameter verification library. With continued reference to FIG. 8, a parameter verification library is built on the basis of the parameter DAG library. After the parameter definition library and the parameter DAG library are built, historical call information of a user on the cloud service API is obtained, the call information is preprocessed, the historical call information such as the cloud service API used by the user, parameter sets and parameter values of the corresponding API are obtained through analysis, and the service constraint library is built. Summarizing the parameter definition library, the parameter DAG library and the business constraint library which are obtained by the construction, and constructing a parameter verification library for parameter pre-verification.
The parameter verification library can verify the parameter values of the user input parameters in three layers, namely, parameter type, parameter range and parameter service requirement verification. The parameter type verification is to verify the data type of the parameter according to the initial definition of the cloud service API parameter, for example, the parameter can only fill in character strings, can only select the parameter type in candidates, and the like. The parameter range verification is to verify according to the numerical range of the parameter, and is to limit the filling specification of a single parameter, for example, the parameter can only fill an integer of 0-256, the parameter can only fill 0 or 1, and the like. The parameter business requirement verification is performed by acquiring historical call specifications and parameter groups of users in a team, for example, the selection of the parameters is performed by using an OS version commonly used by the team. Since an API may be successfully called multiple times in team history calls, a call history value list is obtained.
S507, the cloud computing platform 20 deploys cloud services associated with the first cloud service API in the cloud computing resources according to the parameter values of the first parameter and the parameter values of the second parameter to realize the debugging of the first cloud service API.
In this embodiment, after the user configures the parameter value of the first parameter and the parameter value of the second parameter of the first cloud service API, the cloud computing platform deploys the cloud service associated with the first cloud service API in the cloud computing resource according to the parameter value of the first parameter and the parameter value of the second parameter to implement the debugging of the first cloud service API.
S508, the debug result interface 220 provides the debug result of the first cloud service API.
After the user initiates the debugging, the debugging results of the first cloud service API are provided by the debugging results interface 220. If the debugging is successful, the debugging result interface displays that the cloud service API is successfully debugged. If the debug fails, debug results interface 220 may provide a solution to the user that prompts resolution of the debug error. The debug error is matched with the type of the input parameter error, and a list of debug error information is displayed to a user at least from one or more forms of the parameter type, the parameter range or the parameter service requirement of the parameter check library, which is also called panoramic error information in the application. Each error message of the error message list is associated with a corresponding solution, so that a user can conveniently check the reason of debugging errors, and the debugging efficiency of the cloud service API is improved.
In one possible implementation, the panorama error information list is ordered according to the importance level of the parameter, i.e. the priority resolution level. Factors affecting the importance degree of the parameters include the dependency relationship among cloud services, the calling relationship among function modules, the dependency relationship of parameter groups and the like. The dependency relationship among the parameter groups is lower in the relationship among the nodes in the parameter DAG library obtained through the construction, namely the dependency relationship is solved firstly, and then the calling relationship among the functional modules is solved firstly. Therefore, the influence factors of the parameter importance degree are ordered, the dependency relationship among the parameter groups is solved preferentially, the calling relationship among the function modules is inferior, and finally the dependency relationship among the cloud services is achieved. And after the determined priority solving order of the parameters, sequencing the panoramic error information according to the priority solving order of the parameters.
For example, as shown in fig. 12, after the user completes the parameter configuration of the cloud service API "CREATE SERVERS" in the API configuration interface 210, the above-mentioned step S507 is executed, and according to all the entered parameter values, the cloud service associated with the cloud service API is deployed in the cloud computing resource to implement the debug of the cloud service, the debug result interface 220 provides the debug result, and the debug result interface 220 displays "this debug failure". Panoramic error information can be displayed on the debugging result interface 220 from three levels of parameter types, parameter ranges and service requirements, each error information is associated with a corresponding solution, and the solution corresponding to the error parameter can be provided by clicking on "view solution". Each layer of Error information is ordered according to the importance degree of the parameter, for example, in the column of "error_type1 (parameter definition problem)", referring to fig. 9 and 10, the parameter a is located in the parameter set 1 of the function module 1 of the calculation API, the parameter D ' is located in the parameter set 4 of the network cloud service of the calculation API call, and since the dependency relationship between the parameter sets is preferentially resolved, the importance degree of the parameter a is greater than the parameter D ', and the Error information of the parameter a is arranged in front of the parameter D ', that is, the filling Error of the parameter a in the parameter set 1 is preferentially resolved.
In another possible implementation, according to the solution of the debug error provided by the debug result interface 220, the user is prompted to modify the parameter values of the parameters with higher importance in preference to the importance of the parameters. With the modification of the user, the API configuration interface can show the staged success rate of the modification, namely the completion of successful debugging from the cloud service API in real time.
In some possible implementations, when the user completes the configuration of the first parameter and the second parameter of the first cloud service API at the API configuration interface 210, the programming language is selected, and the code for triggering the debugging of the first cloud service API may be generated according to the programming language (first programming language) selected by the user and the parameter value of the first cloud service API. The programming languages may include Java, python, C, C ++ and Go, among others.
For example, as shown in fig. 13, after the user completes the parameter configuration of the cloud service API "CREATE SERVERS" through the API configuration interface 210, the programming language is selected as "C language", and the cloud computing platform generates a code for triggering the debugging of the cloud service API "CREATE SERVERS" according to the C language and all the entered parameter values.
In summary, according to the method for debugging the cloud service application program interface API in the cloud computing platform, the grouping dependency relationship among the parameters in the cloud service API is extracted in advance, and when the user configures the parameters of the cloud service API, the parameter set which is filled in preferentially is recommended. Meanwhile, through the parameter pre-checking function, parameter pre-checking is carried out in the process of configuring parameters of the cloud service API, panoramic error information is returned, accuracy and correlation of parameter recommendation can be improved, problems are avoided in advance, a user can solve the problems in a certain direction, and further cloud service API debugging is more efficient.
The method for debugging the cloud service application program interface API in the cloud computing platform is provided in detail, and in order to facilitate better implementation of the scheme provided by the application, correspondingly, the cloud computing platform and other devices for implementing the scheme in a matching manner are provided.
The cloud computing platform provided by the application can be applied to the debugging of the cloud service API shown in fig. 1 or the cloud service API debugging service shown in fig. 2. Referring to fig. 14, fig. 14 is a schematic structural diagram of a cloud computing platform 1400 provided in the present application, where the cloud computing platform 1400 includes: configuration module 1410, debug module 1420, and results display module 1430.
The configuration module 1410 is configured to provide an API configuration interface, where the API configuration interface is used for a user to select a cloud service API to be debugged.
The configuration module 1410 is further configured to obtain a first cloud service API selected by the user through an API configuration interface.
The configuration module 1410 is further configured to obtain, through an API configuration interface, a parameter value of a first parameter of the first cloud service API entered by the user.
The configuration module 1410 is further configured to recommend a parameter set of the first cloud service API related to the first parameter through the API configuration interface.
The configuration module 1410 is further configured to obtain, through the API configuration interface, a parameter value of a second parameter in the parameter set entered by the user, where the second parameter is a part of or all parameters in the parameter set.
The debugging module 1420 is configured to deploy, in the cloud computing resource, a cloud service associated with the first cloud service API according to the parameter value of the first parameter and the parameter value of the second parameter to implement debugging of the first cloud service API.
The result display module 1430 is configured to provide the debug result of the first cloud service API through the debug result interface.
In one possible implementation, the configuration module 1410 is specifically configured to select, as the parameter set, one or more parameters that belong to the same functional module as the first parameter before recommending, through the API configuration interface, the parameter set of the first cloud service API related to the first parameter.
In one possible implementation, the configuration module 1410 is specifically configured to generate, based on the parameter description file of the first cloud service API, an association relationship between the function module of the first cloud service API and the parameter set.
In one possible implementation, the configuration module 1410 is specifically configured to select, as a parameter set, one or more parameters of a second cloud service called by the first cloud service API, where the first parameter belongs to the second cloud service.
In one possible implementation, the configuration module 1410 is specifically configured to prompt, through an API configuration interface, a number of filled parameter values in the parameter set during parameter values of a part of parameters in the parameter set filled by a user.
In one possible implementation, the configuration module 1410 is specifically configured to prompt the user to modify the parameter value of the first parameter through the API configuration interface if the parameter value of the first parameter entered by the user does not meet the requirement of the first parameter.
In one possible implementation, the requirements of the first parameter include one or more of the following: the type of the first parameter, the parameter range of the first parameter or the service requirement of the first parameter.
In one possible implementation, the result display module 1430 is specifically configured to provide a solution for prompting to solve the debug error through the debug result interface if the first cloud service API has a debug error.
In one possible implementation, the configuration module 1410 is further configured to generate code for triggering debugging the first cloud service API according to the first programming language and the parameter value of the first cloud service API.
Specifically, for specific implementation of the above-mentioned operations performed by the cloud computing platform 1400, reference may be made to the description of the related content in the above-mentioned method embodiment for debugging the cloud service application program interface API in the cloud computing platform, and for brevity of the description, details are not repeated here.
As can be seen from the summary, the cloud computing platform (such as the cloud computing platform 1400 shown in fig. 14) provided by the present application can implement the debugging of the cloud service application program interface API, the configuration module 1410 obtains the parameter values of the cloud service API parameters entered by the user through the API configuration interface, recommends the parameter set of the cloud service API related to the entered parameters to the user, and obtains the parameter values of the parameter set entered by the user. And then, the debugging module 1420 deploys cloud services associated with the cloud service API in the cloud computing resource according to all the parameter values entered by the cloud service API to realize the debugging of the cloud service API. Finally, the result display module 1430 provides the debugging result of the cloud service API through the debugging result interface, so that the correlation and accuracy of parameter recommendation can be improved, and a user can more efficiently and rapidly realize the debugging of the cloud service API.
Wherein, the configuration module 1410, the debug module 1420 and the result display module 1430 may all be implemented by software or may be implemented by hardware. Illustratively, the implementation of the configuration module 1410 is described next as an example of the configuration module 1410. Similarly, the implementation of debug module 1420 and result presentation module 1430 may refer to the implementation of configuration module 1410.
Module as an example of a software functional unit, configuration module 1410 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container, among others. Further, the above-described computing examples may be one or more. For example, configuration module 1410 may include code running on multiple hosts/virtual machines/containers. It should be noted that, multiple hosts/virtual machines/containers for running the code may be distributed in the same region (region), or may be distributed in different regions. Further, multiple hosts/virtual machines/containers for running the code may be distributed in the same availability zone (availability zone, AZ) or may be distributed in different azs, each AZ comprising one data center or multiple geographically close data centers. Wherein typically a region may comprise a plurality of AZs.
Also, multiple hosts/virtual machines/containers for running the code may be distributed in the same virtual private cloud (virtual private cloud, VPC) or may be distributed in multiple vpcs. In general, one VPC is disposed in one region, and a communication gateway is disposed in each VPC for implementing inter-connection between VPCs in the same region and between VPCs in different regions.
Module as an example of a hardware functional unit, the configuration module 1410 may include at least one computing device, such as a server or the like. Alternatively, the configuration module 1410 may be a device implemented using an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or the like. The PLD may be implemented as a complex program logic device (complex programmable logical device, CPLD), a field-programmable gate array (FPGA) GATE ARRAY, a general-purpose array logic (GENERIC ARRAY logic, GAL), or any combination thereof.
The configuration module 1410 may include multiple computing devices distributed in the same region or in different regions. The configuration module 1410 may include multiple computing devices distributed among the same AZ or among different AZs. Likewise, the configuration module 1410 may include multiple computing devices distributed in the same VPC or may be distributed among multiple VPCs. Wherein the plurality of computing devices may be any combination of computing devices such as servers, ASIC, PLD, CPLD, FPGA, and GAL.
It should be noted that, in other embodiments, the configuration module 1410 may be used to perform any step in the method for debugging the cloud service application program interface API in the cloud computing platform, the debugging module 1420 may be used to perform any step in the method for debugging the cloud service application program interface API in the cloud computing platform, the result display module 1430 may be used to perform any step in the method for debugging the cloud service application program interface API in the cloud computing platform, the steps responsible for implementation of the configuration module 1410, the debugging module 1420 and the result display module 1430 may be specified as needed, and the configuration module 1410, the debugging module 1420 and the result display module 1430 implement different steps in the method for debugging the cloud service application program interface API in the cloud computing platform respectively to implement all functions of the cloud computing platform.
The present application also provides a computing device 1500. As shown in fig. 15, the computing device 1500 includes: bus 1502, processor 1504, memory 1506, and communication interface 1508. The processor 1504, memory 1506, and communication interface 1508 communicate via bus 1502. The computing device 1500 may be a server or a terminal device. It should be appreciated that the present application is not limited to the number of processors, memories in computing device 1500.
Bus 1502 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one line is shown in fig. 15, but not only one bus or one type of bus. Bus 1502 may include a pathway to transfer information between various components of computing device 1500 (e.g., memory 1506, processor 1504, communication interface 1508).
The processor 1504 may include any one or more of a central processing unit (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a Microprocessor (MP), or a digital signal processor (DIGITAL SIGNAL processor, DSP).
The memory 1506 may include volatile memory (RAM), such as random access memory (random access memory). The memory 1506 may also include a non-volatile memory (non-volatile memory), such as read-only memory (ROM), flash memory, mechanical hard disk (HARD DISK DRIVE, HDD) or solid state disk (SSD STATE DRIVE).
The memory 1506 has stored therein executable program code that the processor 1504 executes to implement the functions of the aforementioned configuration module 1410, debug module 1420, and result presentation module 1430, respectively, to implement the method of debugging cloud service application program interface API in a cloud computing platform. That is, the memory 1506 has instructions stored thereon for performing a method for debugging cloud service application program interface API in a cloud computing platform.
Communication interface 1508 enables communication between computing device 1500 and other devices or communication networks using a transceiver module such as, but not limited to, a network interface card, transceiver, or the like.
The embodiment of the application also provides a computing device cluster. The cluster of computing devices includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop, notebook, or smart phone.
As shown in fig. 16, the cluster of computing devices includes at least one computing device 1500. The same instructions for performing the method of debugging cloud service application program interface API in a cloud computing platform may be stored in memory 1506 in one or more computing devices 1500 in the cluster of computing devices.
In some possible implementations, the memory 1506 of one or more computing devices 1500 in the computing device cluster may also each have stored therein partial instructions for performing a method of debugging a cloud service application program interface API in a cloud computing platform. In other words, a combination of one or more computing devices 1500 may collectively execute instructions for performing a method of debugging a cloud service application program interface API in a cloud computing platform.
It should be noted that, the memories 1506 in different computing devices 1500 in the computing device cluster may store different instructions for performing part of the functions of the cloud computing platform. That is, the instructions stored by the memory 1506 in the different computing devices 1500 may implement the functionality of one or more of the configuration module 1410, the debug module 1420, and the results presentation module 1430.
In some possible implementations, one or more computing devices in a cluster of computing devices may be connected through a network. Wherein the network may be a wide area network or a local area network, etc. Fig. 17 shows one possible implementation. As shown in fig. 17, two computing devices 1500A and 1500B are connected by a network. Specifically, the connection to the network is made through a communication interface in each computing device. In this type of possible implementation, instructions to perform the functions of configuration module 1410 are stored in memory 1506 of computing device 1500A. Meanwhile, instructions to perform the functions of the debug module 1420 and the result presentation module 1430 are stored in the memory 1506 in the computing device 1500B.
The connection manner between the computing device clusters shown in fig. 17 may be in consideration of that the method for debugging the cloud service application program interface API in the cloud computing platform provided by the present application requires a large amount of computing data, so that the functions implemented by the debugging module 1420 and the result presentation module 1430 are considered to be performed by the computing device 1500B.
It should be appreciated that the functionality of computing device 1500A shown in fig. 17 may also be performed by multiple computing devices 1500. Likewise, the functionality of computing device 1500B may also be performed by multiple computing devices 1500.
Embodiments of the present application also provide a computer program product comprising instructions. The computer program product may be software or a program product containing instructions capable of running on a computing device or stored in any useful medium. The computer program product, when run on at least one computing device, causes the at least one computing device to perform a method of debugging a cloud service application program interface API in a cloud computing platform or a method of debugging a cloud service application program interface API in a cloud computing platform.
The embodiment of the application also provides a computer readable storage medium. The computer readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc. The computer-readable storage medium includes instructions that instruct a computing device to perform a method of debugging a cloud service application program interface API in a cloud computing platform or instruct a computing device to perform a method of debugging a cloud service application program interface API in a cloud computing platform.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; these modifications or substitutions do not depart from the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present invention.
Claims (21)
1. A method of debugging a cloud service application program interface, API, in a cloud computing platform, the cloud computing platform providing a plurality of cloud services, the cloud computing platform managing cloud computing resources for deploying the cloud services, the cloud services having cloud service APIs, the cloud computing platform providing a debugging service of the cloud service APIs, the cloud computing platform being configured with an API configuration interface and a debugging results interface of the debugging service, the method comprising:
the cloud computing platform provides the API configuration interface, and the API configuration interface is used for a user to select a cloud service API to be debugged;
the cloud computing platform acquires a first cloud service API selected by a user through the API configuration interface;
the cloud computing platform acquires a parameter value of a first parameter of the first cloud service API input by a user through the API configuration interface;
recommending a parameter set of the first cloud service API related to the first parameter by the cloud computing platform through the API configuration interface;
the cloud computing platform obtains parameter values of second parameters in the parameter set input by a user through the API configuration interface, wherein the second parameters are part of parameters or all parameters in the parameter set;
The cloud computing platform deploys cloud services associated with the first cloud service API in the cloud computing resources according to the parameter values of the first parameters and the parameter values of the second parameters to debug the first cloud service API;
And the cloud computing platform provides the debugging result of the first cloud service API through the debugging result interface.
2. The method according to claim 1, characterized in that the method comprises:
Before recommending the parameter set of the first cloud service API related to the first parameter through the API configuration interface, the cloud computing platform selects one or more parameters belonging to the same functional module as the first parameter as the parameter set.
3. The method according to claim 2, characterized in that the method comprises:
And the cloud computing platform generates an association relation between the functional module of the first cloud service API and the parameter group based on the parameter description file of the first cloud service API.
4. The method according to claim 1, characterized in that the method comprises:
Before recommending a parameter set of the first cloud service API related to the first parameter through the API configuration interface, the cloud computing platform selects one or more parameters of a second cloud service called by the first cloud service API as the parameter set, wherein the first parameter belongs to the second cloud service.
5. The method according to any one of claims 1 to 4, characterized in that it comprises:
And in the process of filling the parameter values of part of the parameters in the parameter set by the user, the cloud computing platform prompts the number of the filled parameter values in the parameter set to occupy the ratio through the API configuration interface.
6. A method according to any one of claims 1 to 5, characterized in that the method comprises:
And if the parameter value of the first parameter input by the user does not meet the requirement of the first parameter, the cloud computing platform prompts the user to modify the parameter value of the first parameter through the API configuration interface.
7. The method of claim 6, wherein the requirements of the first parameter include one or more of:
The type of the first parameter, the parameter range of the first parameter or the service requirement of the first parameter.
8. The method according to any one of claims 1 to 7, characterized in that the method comprises:
and if the first cloud service API has a debugging error, the cloud computing platform provides a solution for prompting to solve the debugging error through the debugging result interface.
9. The method according to any one of claims 1 to 8, characterized in that the method comprises:
And the cloud computing platform generates codes for triggering the first cloud service API to be debugged according to a first programming language and the parameter values of the first cloud service API.
10. A cloud computing platform for debugging a cloud service application program interface API in a cloud computing platform, the cloud computing platform providing a plurality of cloud services, the cloud computing platform managing cloud computing resources for deploying the cloud services, the cloud services having a cloud service API, the cloud computing platform providing a debugging service for the cloud service API, the cloud computing platform being configured with an API configuration interface and a debugging results interface for the debugging service, the cloud computing platform comprising:
The configuration module is used for providing the API configuration interface, and the API configuration interface is used for a user to select a cloud service API to be debugged;
The configuration module is used for acquiring a first cloud service API selected by a user through the API configuration interface;
The configuration module is used for acquiring a parameter value of a first parameter of the first cloud service API, which is input by a user, through the API configuration interface;
the configuration module is used for recommending a parameter set of the first cloud service API related to the first parameter through the API configuration interface;
The configuration module is used for acquiring parameter values of second parameters in the parameter set recorded by a user through the API configuration interface, wherein the second parameters are part of parameters or all parameters in the parameter set;
The debugging module is used for deploying cloud services associated with the first cloud service API in the cloud computing resources according to the parameter values of the first parameters and the parameter values of the second parameters to realize the debugging of the first cloud service API;
And the result display module is used for providing the debugging result of the first cloud service API through the debugging result interface.
11. The cloud computing platform of claim 10, wherein the configuration module is configured to select, as the parameter set, one or more parameters belonging to the same functional module as the first parameter before recommending, via the API configuration interface, the parameter set of the first cloud service API related to the first parameter.
12. The cloud computing platform of claim 11, wherein the configuration module is configured to generate an association of a functional module of the first cloud service API with a parameter set based on a parameter description file of the first cloud service API.
13. The cloud computing platform of claim 10, wherein the configuration module is configured to select, as the set of parameters, one or more parameters of a second cloud service called by the first cloud service API before recommending, via the API configuration interface, the set of parameters of the first cloud service API, the first parameters belonging to the second cloud service.
14. The cloud computing platform of any of claims 10 to 13, wherein the configuration module is configured to prompt, via the API configuration interface, a number of filled parameter values in the parameter set to be a ratio during parameter values of a portion of the parameters in the parameter set filled by a user.
15. The cloud computing platform of any of claims 10 to 14, wherein the configuration module is configured to prompt a user to modify a parameter value of the first parameter via the API configuration interface if the parameter value of the first parameter entered by the user does not meet the requirement of the first parameter.
16. The cloud computing platform of claim 15, wherein the requirements of the first parameter include one or more of:
The type of the first parameter, the parameter range of the first parameter or the service requirement of the first parameter.
17. The cloud computing platform of any of claims 10 to 16, wherein the results presentation module is configured to provide a solution to prompt resolution of the debug error through the debug results interface if the first cloud service API presents a debug error.
18. The cloud computing platform of any of claims 10 to 17, wherein the configuration module is configured to generate code for triggering debugging of the first cloud service API in accordance with a first programming language and parameter values of the first cloud service API.
19. A cluster of computing devices, comprising at least one computing device, each computing device comprising a processor and a memory;
The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method of any one of claims 1 to 9.
20. A computer program product containing instructions that, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the method of any of claims 1 to 9.
21. A computer readable storage medium comprising computer program instructions which, when executed by a cluster of computing devices, perform the method of any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2023/123680 WO2024078472A1 (en) | 2022-10-11 | 2023-10-10 | Method and apparatus for debugging cloud service application program interface (api) and related device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211241026 | 2022-10-11 | ||
CN2022112410266 | 2022-10-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117909207A true CN117909207A (en) | 2024-04-19 |
Family
ID=90688464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310293831.1A Pending CN117909207A (en) | 2022-10-11 | 2023-03-23 | Method and device for debugging cloud service application program interface API and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117909207A (en) |
-
2023
- 2023-03-23 CN CN202310293831.1A patent/CN117909207A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3433732B1 (en) | Converting visual diagrams into code | |
CN108292231B (en) | Method and system for generating applications from data | |
US10929490B2 (en) | Network search query | |
CN110914818A (en) | Dataflow graph configuration | |
WO2017162024A1 (en) | Method of developing component and template using visual expression, storage medium, and apparatus | |
US20130263089A1 (en) | Generating test cases for functional testing of a software application | |
US10606450B2 (en) | Method and system for visual requirements and component reuse driven rapid application composition | |
CN118202330A (en) | Checking source code validity at code update | |
CN110990274B (en) | Data processing method, device and system for generating test cases | |
CN115039084A (en) | Unit testing of components of a dataflow graph | |
JP2012221380A (en) | Automatic program generation device, method and computer program | |
US20170249126A1 (en) | Easy storm topology design and execution | |
CN111158797A (en) | Method, system and engine device for operating artificial intelligence application | |
CN112925583B (en) | Host application capability extension method, device, equipment and storage medium | |
CN115469849B (en) | Service processing system, method, electronic equipment and storage medium | |
US11947966B2 (en) | Identifying computer instructions enclosed by macros and conflicting macros at build time | |
CN117909207A (en) | Method and device for debugging cloud service application program interface API and related equipment | |
WO2024078472A1 (en) | Method and apparatus for debugging cloud service application program interface (api) and related device | |
CN115269285A (en) | Test method and device, equipment and computer readable storage medium | |
JPWO2011055417A1 (en) | Software library reconstruction apparatus and method, and navigation apparatus using the same | |
US11442724B2 (en) | Pattern recognition | |
JP6097231B2 (en) | Program generating apparatus and method | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
US11645193B2 (en) | Heterogeneous services for enabling collaborative logic design and debug in aspect oriented hardware designing | |
US11340918B2 (en) | Knowledge engine auto-generation of guided flow experience |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |