CN113535832A - Method and device for acquiring cloud service data, electronic equipment and medium - Google Patents

Method and device for acquiring cloud service data, electronic equipment and medium Download PDF

Info

Publication number
CN113535832A
CN113535832A CN202110651148.1A CN202110651148A CN113535832A CN 113535832 A CN113535832 A CN 113535832A CN 202110651148 A CN202110651148 A CN 202110651148A CN 113535832 A CN113535832 A CN 113535832A
Authority
CN
China
Prior art keywords
field
api
change
client program
target
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
Application number
CN202110651148.1A
Other languages
Chinese (zh)
Inventor
赵明
李震宇
李克勤
麻志毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Original Assignee
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Advanced Institute of Information Technology AIIT of Peking University, Hangzhou Weiming Information Technology Co Ltd filed Critical Advanced Institute of Information Technology AIIT of Peking University
Priority to CN202110651148.1A priority Critical patent/CN113535832A/en
Publication of CN113535832A publication Critical patent/CN113535832A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for acquiring cloud service data, electronic equipment and a medium. In the application, after a field change event of the target client program is detected, a change field identifier of the target client program can be determined; determining a target change field corresponding to the change field identification from a preset AP I information database according to the change field identification; the target change field is returned to the target client program through the AP I access interface. By applying the technical scheme of the application, when the change of the AP I interface document of the webpage is detected in real time, the changed field part can be automatically identified, and the changed field data is extracted and updated to the AP I database. And then mapping with the field actually used by the program, so that when the AP I changes, the client program can find out the required field value according to the field mapping table in the database, and directly extract the corresponding change field from the AP I database, thereby ensuring the running continuity.

Description

Method and device for acquiring cloud service data, electronic equipment and medium
Technical Field
The present application relates to data processing technologies, and in particular, to a method and an apparatus for acquiring cloud service data, an electronic device, and a medium.
Background
In the related art, public cloud service providers provide convenience for users to better manage and use resources on the cloud, and provide an API interface in addition to a WEB page.
Furthermore, the user can realize the function of the WEB console by calling the API. Specifically, the API interface is a channel for transmitting data, the entry needs to request data, and the exit needs to return results. The user of the interface does not need to care how the interface is implemented, but only the last return result that can not be reached by the interface. The provider of the interface needs to define interface request parameters, response contents, etc., and also needs to pay attention to the performance of the interface, whether high-concurrency calls can be satisfied, how stable the interface is, etc.
However, in the related art, the method for the cloud user to perceive the content change of the API interface document webpage is to download the webpage data to the local by using a crawler, calculate the hash value of the webpage data, compare the calculated hash value with the hash value calculated last time, and if the calculated hash value is inconsistent with the hash value calculated last time, give the engineer a further manual process. As can be appreciated, this approach is inefficient and may affect the smoothness of the processing of the service.
Disclosure of Invention
An embodiment of the present application provides a method, an apparatus, an electronic device, and a medium for acquiring cloud service data, where according to an aspect of an embodiment of the present application, the method for acquiring cloud service data is provided, and includes:
if a field change event of a target client program is detected, determining a change field identifier of the target client program;
determining a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier;
returning the target change field to the target client program through an API access interface.
Optionally, in another embodiment based on the foregoing method of the present application, after returning the target change field to the target client program through the API access interface, the method includes:
calling a return field table in the API information database, and mapping and converting the target change field into a first mapping field;
returning the first mapping field to the target client program through the API access interface.
Optionally, in another embodiment based on the foregoing method of the present application, before the determining the change field identifier of the target client program, the method further includes:
determining at least one associated client program associated with the API information database;
performing initialization scanning on the associated client program, and identifying API information and API return field identification corresponding to the associated client program;
and recording the API information and the API return field identification corresponding to the associated client program into an API information table of the API information database.
Optionally, in another embodiment based on the foregoing method of the present application, after the recording the API information and the API return field identifier corresponding to the associated client program into an API information table of an API information database, the method further includes:
scanning the API document according to a preset period interval;
if the API document is determined to have the change record, obtaining a change field corresponding to the change record;
and returning the change field to the API information database.
According to another aspect of the embodiments of the present application, there is provided a cloud service data acquisition system, including:
the API information database is configured to return a target change field corresponding to an acquisition request to a target client program through an API access interface when the change field acquisition request sent by the target client program is received;
the target client program is configured to send the change field acquisition request to the API information database and receive the returned target change field if a field change event is detected;
and the database initialization module is configured to perform initialization scanning on the client programs related to the API information database, and record the API information and the API return field identification corresponding to the related client programs into an API information table of the API information database.
And the API document timing scanning module is configured to scan the API document according to a preset periodic interval and return the change field to the API information database when determining that a change record occurs in the API document.
Optionally, in another embodiment of the system according to the present application, the system further includes:
the target client program is configured to determine an API name corresponding to the target change field and a field value corresponding to the target change word after receiving the returned target change field;
and the target client program is configured to generate an exception notification for notifying a programmer to process the target change field if the field value corresponding to the target change word cannot be determined.
Optionally, in another embodiment of the system according to the present application, the system further includes:
and the API information database is configured to comprise an API information table and an API return field table, wherein the API information table is used for recording API information to be accessed by the associated client program, and the API return field table is used for mapping and converting the change field by other data structures.
According to another aspect of the embodiments of the present application, there is provided an apparatus for acquiring cloud service data, including:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is configured to determine a change field identifier of a target client program if a field change event of the target client program is detected;
the second determining module is configured to determine a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier;
a return module configured to return the target change field to the target client program through an API access interface.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
and the display is used for displaying with the memory to execute the executable instructions so as to complete the operation of any one of the cloud service data acquisition methods.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which, when executed, perform the operations of any one of the above cloud service data obtaining methods.
In the application, after a field change event of the target client program is detected, a change field identifier of the target client program can be determined; determining a target change field corresponding to the change field identification from a preset API information database according to the change field identification; the target change field is returned to the target client program through the API access interface. By applying the technical scheme of the application, when the API document of the webpage is detected to change in real time, the changed field part can be automatically identified, and the changed field data is extracted and updated to the API database. And then mapping with the field actually used by the program, so that when the API changes, the client program can find out the required field value according to the field mapping table in the database, and directly extract the corresponding changed field from the API database, thereby ensuring the running continuity.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a method for acquiring cloud service data according to the present application;
fig. 2 is a schematic diagram of a system architecture for acquiring cloud service data according to the present application;
fig. 3 is a schematic structural diagram of an electronic device for acquiring cloud service data according to the present application;
fig. 4 is a schematic structural diagram of an electronic device of the massage apparatus according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
The following describes a method for acquiring cloud service data according to an exemplary embodiment of the present application with reference to fig. 1 to 2. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a method and a device for acquiring the cloud service data, a target terminal and a medium.
Fig. 1 schematically shows a flowchart of a method for acquiring cloud service data according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, if detecting that a field change event occurs in the target client program, determining a change field identifier of the target client program.
With the rapid development of cloud computing, it has become a trend to build business systems by using cloud services, cloud service providers provide basic resources such as computing, storage, network and the like for users, and the users can apply for the resources to be used as assets on the cloud. In order to facilitate users to better manage and use the assets on the cloud, cloud service providers also provide public network-oriented API interfaces through which users can manage and use their assets on the cloud.
The cloud service provider may change the API interface parameters (whether request parameters or response parameters) for various reasons and not proactively notify the user. In this case, the API-based service established by the user may be affected, and whether the API interface changes can be determined only by actively querying the interface document of the cloud service provider. The user needs to send a specially-assigned person to check whether the interface document provided by the cloud service provider is changed every day, if so, the user needs to find a changed place and timely inform technicians in a company to modify the system; the workload is large and some change information is easily missed.
Public cloud service providers can better manage and use resources on the cloud for tenants conveniently, and provide API interfaces besides WEB pages. The user can realize the function of the WEB console by calling the API. And the function introduction and use methods of all API interfaces are published in the API interface document of the official website by the cloud service provider. If the API interface changes, the API interface is only updated into the corresponding interface document and is not notified to the tenant.
The API interface is a channel for transmitting data, and the entry needs to request data, and the exit needs to return results. The user of the interface does not need to care how the interface is implemented, but only the last return result that can not be reached by the interface. The provider of the interface needs to define interface request parameters, response contents, etc., and also needs to pay attention to the performance of the interface, whether high-concurrency calls can be satisfied, how stable the interface is, etc.
An API interface document typically contains several parts of an interface description, an interface address, a request method, request parameters, response content, error codes, examples, and the like. Further, currently, sensing content changes of API interface document web pages generally includes: downloading the webpage data to the local by adopting a crawler mode, then calculating the hash value of the webpage data, comparing the hash value calculated this time with the hash value calculated last time, and if the hash value is inconsistent, handing the hash value to an engineer for further manual processing. The disadvantages of this approach are: (1) hash calculation is carried out on most data of the webpage, so that the efficiency is low; (2) changes to important data in a web page cannot be handled automatically, let alone the changed parts can be loaded automatically into the running online environment.
Further, in order to solve the above problem, the present application may trigger the program scanning module when detecting that the target client program changes, so as to determine the change field identifier of the target client program. The change field identifier is a part that can represent the field to be updated in the client program. So that the information in the API return field table is subsequently updated from the API database based on the change field identification.
Specifically, the newly added API return field access and the deleted API return field access in the target client program are processed separately in the present application. Thereby ensuring that the final result is that the information in the API return field table is consistent with the API return field accesses present in the client program. And further, the client program can find out the required field value according to the field mapping table in the database, and directly extract the corresponding change field from the API database, thereby ensuring the running continuity.
And S102, determining a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier.
Further, the target change field corresponding to the change field identifier can be determined from a preset API information database after the change field identifier is obtained. Therefore, the client program can automatically find out the required field value according to the field mapping table in the database, and directly extract the corresponding change field from the API database, thereby ensuring the running continuity.
S103, the target change field is returned to the target client program through the API access interface.
In the present application, after the target change field is returned to the target client program through the API access interface, the client program may invoke its API parsing information, call the API from line 3 to line 6 in the returned target change field, and obtain the returned JSON structure. Lines 7 through 9 determine the name of the field to be accessed in the current version of the API. Lines 12 through 14 use the current field name to obtain the value of the field from the JSON structure. When this field is not already present and no value is available, lines 16 through 18 raise a program exception and notify the programmer to handle.
It can be understood that the present application can deal with the situations of field renaming and field deletion in a certain field structure. And the case of adding fields has no influence on the program. The client's program thus keeps the field structure stable in the event of a field change.
In the application, after a field change event of the target client program is detected, a change field identifier of the target client program can be determined; determining a target change field corresponding to the change field identification from a preset API information database according to the change field identification; the target change field is returned to the target client program through the API access interface. By applying the technical scheme of the application, when the API document of the webpage is detected to change in real time, the changed field part can be automatically identified, and the changed field data is extracted and updated to the API database. And then mapping with the field actually used by the program, so that when the API changes, the client program can find out the required field value according to the field mapping table in the database, and directly extract the corresponding changed field from the API database, thereby ensuring the running continuity.
Optionally, in a possible embodiment of the present application, after returning the target change field to the target client program through the API access interface, the method includes:
calling a return field table in an API information database, and mapping and converting the target change field into a first mapping field;
the first mapping field is returned to the target client program through the API access interface.
Further, since the data structures used by the respective client programs may be different, the obtained change fields are directly available. Before returning the target change field to the target client program, the present application may utilize the return field table stored in the API information database to map the target change field into the first mapping field (i.e., the field of the field structure that can be used by the target client program). It will be appreciated that only after the change field mapping is converted to the first mapping field, the first mapping field may be returned to the target client program via the API access interface.
Optionally, in a possible implementation manner of the present application, before determining the change field identifier of the target client program, the method further includes:
determining at least one associated client program associated with the API information database;
performing initialization scanning on the associated client program, and identifying API information and API return field identification corresponding to the associated client program;
and respectively recording the API information and the API return field identification corresponding to the associated client program into an API information table and an API return field table of the API information database.
Further, in the process of establishing the API information database, one or more associated client programs associated with the API information database may be determined first, and then the associated client programs may be initialized and associated.
The initialization of the API information database in the application can be realized in two ways: one way is manually, i.e., when access to an API occurs while the client program is being written, the corresponding API information and API return field information are populated into the corresponding database table. In another mode, after the client program is written, an automated tool is used to scan the client program, identify the call to the API interface, and fill the corresponding API information and API return field information into the corresponding API information table in the API information database.
Optionally, in a possible implementation manner of the present application, after recording the API information and the API return field identifier corresponding to the associated client program in the API information table of the API information database, the method further includes:
scanning the API document according to a preset period interval;
if the change record appears in the API document, acquiring a change field corresponding to the change record;
the change field is returned to the API information database.
Fig. 2 schematically shows a flow diagram of a cloud service data acquisition system according to an embodiment of the present application. As shown in fig. 2, the system includes:
the API information database is configured to return a target change field corresponding to an acquisition request to a target client program through an API access interface when the change field acquisition request sent by the target client program is received;
the target client program is configured to send a change field acquisition request to the API information database and receive a returned target change field if a field change event is detected;
and the database initialization module is configured to perform initialization scanning on the client programs associated with the API information database, and record the API information corresponding to the associated client programs and the API return field identification into an API information table of the API information database.
And the API document timing scanning module is configured to scan the API document according to a preset periodic interval and return the change field to the API information database when determining that the change record appears in the API document.
Further optionally, in a possible implementation manner of the present application, the system further includes:
the target client program is configured to determine an API name corresponding to the target change field and a field value corresponding to the target change word after receiving the returned target change field;
and the target client program is configured to generate an exception notification if the field value corresponding to the target change word cannot be determined, wherein the exception notification is used for notifying a programmer to process the target change field.
In the present application, after the target change field is returned to the target client program through the API access interface, the client program may invoke its API parsing information, call the API from line 3 to line 6 in the returned target change field, and obtain the returned JSON structure. Lines 7 through 9 determine the name of the field to be accessed in the current version of the API. Lines 12 through 14 use the current field name to obtain the value of the field from the JSON structure. When this field is not already present and no value is available, lines 16 through 18 raise a program exception and notify the programmer to handle.
Optionally, in a possible implementation manner of the present application, the system further includes:
and the API information database is configured to comprise an API information table and an API return field table, wherein the API information table is used for recording API information to be accessed by the associated client program, and the API return field table is used for mapping and converting the change field by other data structures.
Further, the API information database in the present application may include an API information table and an API return field table.
The API information table is used to record API information accessed by the client program. The column names and meanings of the table are described in table 1.
Table 1: API information table
Figure BDA0003111218330000111
The API return field table records information for JSON fields in the API return structure accessed by the client program. The column names and meanings of the table are described in table 2. The two columns, field _ referred _ name and field _ current _ name, are set to account for changes in the JSON field names in the API return structure. For example, a field named "NumberOfInstances" is renamed to "NumOfInstances" in the new version of the API. In this case, the value of the field _ referred _ name column of the corresponding record in the API return field table is "NumberOfInstances", and the value of the field _ current _ name column is "NumOfInstances". Only field _ referred _ name is used in the code of the client program, i.e. only "NumberOfInstances" is hard-coded. When the field in the returned JSON structure needs to be accessed, the current name of the field is obtained by inquiring the API returned field table. In this manner, the client program is not required to be modified.
Table 2: API return field table
Figure BDA0003111218330000112
Figure BDA0003111218330000121
Optionally, in another embodiment of the present application, as shown in fig. 3, the present application further provides an apparatus for acquiring cloud service data. The method comprises a first determining module 201, a second determining module 202 and a returning module 203, wherein:
the first determining module 201 is configured to determine a change field identifier of a target client program if a field change event of the target client program is detected;
a second determining module 202, configured to determine, according to the change field identifier, a target change field corresponding to the change field identifier from a preset API information database;
a return module 203 configured to return the target change field to the target client program through an API access interface.
In the application, after a field change event of the target client program is detected, a change field identifier of the target client program can be determined; determining a target change field corresponding to the change field identification from a preset API information database according to the change field identification; the target change field is returned to the target client program through the API access interface. By applying the technical scheme of the application, when the API document of the webpage is detected to change in real time, the changed field part can be automatically identified, and the changed field data is extracted and updated to the API database. And then mapping with the field actually used by the program, so that when the API changes, the client program can find out the required field value according to the field mapping table in the database, and directly extract the corresponding changed field from the API database, thereby ensuring the running continuity.
In another embodiment of the present application, the first determining module 201 further includes:
a first determining module 201, configured to call a return field table in the API information database, and convert the target change field mapping into a first mapping field;
a first determination module 201 configured to return the first mapping field to the target client program through the API access interface.
In another embodiment of the present application, the first determining module 201 further includes:
a first determining module 201 configured to determine at least one associated client program associated with the API information database;
a first determining module 201, configured to perform initialization scanning on the associated client program, and identify API information and API return field identifiers corresponding to the associated client program;
the first determining module 201 is configured to record the API information and the API return field identifier corresponding to the associated client program into an API information table and an API return field table of the API information database, respectively.
In another embodiment of the present application, the first determining module 201 further includes:
a first determining module 201 configured to scan the API document at preset periodic intervals;
a first determining module 201, configured to, if it is determined that a change record occurs in the API document, obtain a change field corresponding to the change record;
a first determining module 201 configured to return the change field to the API information database.
Fig. 4 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as a memory, including instructions executable by an electronic device processor to perform the method of obtaining cloud service data described above, the method including: if a field change event of a target client program is detected, determining a change field identifier of the target client program; determining a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier; returning the target change field to the target client program through an API access interface. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by a processor of an electronic device to perform the above method for acquiring cloud service data, the method including: if a field change event of a target client program is detected, determining a change field identifier of the target client program; determining a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier; returning the target change field to the target client program through an API access interface. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above.
Fig. 4 is an exemplary diagram of the computer device 30. Those skilled in the art will appreciate that the schematic diagram 4 is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30 and may include more or less components than those shown, or combine certain components, or different components, e.g., the computer device 30 may also include input output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
Memory 301 may be used to store computer readable instructions 303 and processor 302 may implement various functions of computer device 30 by executing or executing computer readable instructions or modules stored within memory 301 and by invoking data stored within memory 301. The memory 301 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer device 30, and the like. In addition, the Memory 301 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage devices.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by hardware related to computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for acquiring cloud service data is characterized by comprising the following steps:
if a field change event of a target client program is detected, determining a change field identifier of the target client program;
determining a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier;
returning the target change field to the target client program through an API access interface.
2. The method of claim 1, wherein returning the target change field to the target client program via the API access interface comprises:
calling a return field table in the API information database, and mapping and converting the target change field into a first mapping field;
returning the first mapping field to the target client program through the API access interface.
3. The method of claim 1, prior to said determining the change field identification of the target client program, further comprising:
determining at least one associated client program associated with the API information database;
performing initialization scanning on the associated client program, and identifying API information and API return field identification corresponding to the associated client program;
and respectively recording the API information and the API return field identification corresponding to the associated client program into an API information table and an API return field table of the API information database.
4. The method of claim 3, after recording the API information and API return field identification corresponding to the associated client program into an API information table of an API information database, further comprising:
scanning the API document according to a preset period interval;
if the API document is determined to have the change record, obtaining a change field corresponding to the change record;
and returning the change field to the API information database.
5. A cloud service data acquisition system, comprising:
the API information database is configured to return a target change field corresponding to an acquisition request to a target client program through an API access interface when the change field acquisition request sent by the target client program is received;
the target client program is configured to send the change field acquisition request to the API information database and receive the returned target change field if a field change event is detected;
and the database initialization module is configured to perform initialization scanning on the client programs related to the API information database, and record the API information and the API return field identification corresponding to the related client programs into an API information table of the API information database.
And the API document timing scanning module is configured to scan the API document according to a preset periodic interval and return the change field to the API information database when determining that a change record occurs in the API document.
6. The method of claim 5, wherein the system further comprises:
the target client program is configured to determine an API name corresponding to the target change field and a field value corresponding to the target change word after receiving the returned target change field;
and the target client program is configured to generate an exception notification for notifying a programmer to process the target change field if the field value corresponding to the target change word cannot be determined.
7. The method of claim 5, wherein the system further comprises:
and the API information database is configured to comprise an API information table and an API return field table, wherein the API information table is used for recording API information to be accessed by the associated client program, and the API return field table is used for mapping and converting the change field by other data structures.
8. An apparatus for acquiring cloud service data, comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is configured to determine a change field identifier of a target client program if a field change event of the target client program is detected;
the second determining module is configured to determine a target change field corresponding to the change field identifier from a preset API information database according to the change field identifier;
a return module configured to return the target change field to the target client program through an API access interface.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for displaying with the memory to execute the executable instructions to complete the operations of the method for acquiring cloud service data of any of claims 1-4.
10. A computer-readable storage medium storing computer-readable instructions, wherein the instructions, when executed, perform the operations of the method for acquiring cloud service data according to any one of claims 1 to 4.
CN202110651148.1A 2021-06-10 2021-06-10 Method and device for acquiring cloud service data, electronic equipment and medium Pending CN113535832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110651148.1A CN113535832A (en) 2021-06-10 2021-06-10 Method and device for acquiring cloud service data, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110651148.1A CN113535832A (en) 2021-06-10 2021-06-10 Method and device for acquiring cloud service data, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN113535832A true CN113535832A (en) 2021-10-22

Family

ID=78124898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110651148.1A Pending CN113535832A (en) 2021-06-10 2021-06-10 Method and device for acquiring cloud service data, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113535832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114284A (en) * 2022-05-27 2022-09-27 中银金融科技有限公司 Table change processing method and system

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004272317A (en) * 2003-03-05 2004-09-30 Hitachi Ltd Program management method and system, and storage medium storing processing program therefor
US8863156B1 (en) * 2011-01-04 2014-10-14 AppCentric Solutions, LLC API wizard
US20150317295A1 (en) * 2014-04-30 2015-11-05 Adobe Systems Incorporated Automating Data Entry For Fields in Electronic Documents
US20180278471A1 (en) * 2017-03-21 2018-09-27 International Business Machines Corporation Generic connector module capable of integrating multiple applications into an integration platform
CN109710298A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Interface managerial method, interface management apparatus, interface management equipment and storage medium
CN109766262A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Interface data processing method, automated testing method, device, equipment and medium
US10452650B1 (en) * 2016-09-08 2019-10-22 Google Llc Data querying
CN110532107A (en) * 2019-07-22 2019-12-03 平安付科技服务有限公司 Interface call method, device, computer equipment and storage medium
CN110826004A (en) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 Front-end request data processing method and related device
CN112115190A (en) * 2020-08-20 2020-12-22 苏宁云计算有限公司 Method, device and system for converting interface message
CN112115175A (en) * 2020-09-21 2020-12-22 成都知道创宇信息技术有限公司 Cloud service product processing method and device, electronic equipment and storage medium
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium
CN112395098A (en) * 2019-08-19 2021-02-23 网易(杭州)网络有限公司 Application program interface calling method and device, storage medium and electronic equipment
CN112579124A (en) * 2020-12-11 2021-03-30 平安普惠企业管理有限公司 Application program interface management method and device, computer equipment and storage medium
CN112650533A (en) * 2020-12-22 2021-04-13 深圳前海微众银行股份有限公司 Interface document generation method and device and terminal equipment
CN112667720A (en) * 2020-12-28 2021-04-16 平安普惠企业管理有限公司 Conversion method, device, equipment and storage medium of interface data model
CN112765175A (en) * 2021-01-21 2021-05-07 恒安嘉新(北京)科技股份公司 Interface data processing method and device, computer equipment and medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004272317A (en) * 2003-03-05 2004-09-30 Hitachi Ltd Program management method and system, and storage medium storing processing program therefor
US8863156B1 (en) * 2011-01-04 2014-10-14 AppCentric Solutions, LLC API wizard
US20150317295A1 (en) * 2014-04-30 2015-11-05 Adobe Systems Incorporated Automating Data Entry For Fields in Electronic Documents
US10452650B1 (en) * 2016-09-08 2019-10-22 Google Llc Data querying
US20180278471A1 (en) * 2017-03-21 2018-09-27 International Business Machines Corporation Generic connector module capable of integrating multiple applications into an integration platform
CN109710298A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Interface managerial method, interface management apparatus, interface management equipment and storage medium
CN109766262A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Interface data processing method, automated testing method, device, equipment and medium
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
CN110532107A (en) * 2019-07-22 2019-12-03 平安付科技服务有限公司 Interface call method, device, computer equipment and storage medium
CN112395098A (en) * 2019-08-19 2021-02-23 网易(杭州)网络有限公司 Application program interface calling method and device, storage medium and electronic equipment
CN110826004A (en) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 Front-end request data processing method and related device
CN112115190A (en) * 2020-08-20 2020-12-22 苏宁云计算有限公司 Method, device and system for converting interface message
CN112115175A (en) * 2020-09-21 2020-12-22 成都知道创宇信息技术有限公司 Cloud service product processing method and device, electronic equipment and storage medium
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium
CN112579124A (en) * 2020-12-11 2021-03-30 平安普惠企业管理有限公司 Application program interface management method and device, computer equipment and storage medium
CN112650533A (en) * 2020-12-22 2021-04-13 深圳前海微众银行股份有限公司 Interface document generation method and device and terminal equipment
CN112667720A (en) * 2020-12-28 2021-04-16 平安普惠企业管理有限公司 Conversion method, device, equipment and storage medium of interface data model
CN112765175A (en) * 2021-01-21 2021-05-07 恒安嘉新(北京)科技股份公司 Interface data processing method and device, computer equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QQ_42734243: "java将字段映射成另一个字段,关于接口传参字段不对应转换", Retrieved from the Internet <URL:https://blog.csdn.net/qq_42734243/article/details/90377080> *
携梦想而抚凌: "服务端指南 | 良好的 API 设计指南", Retrieved from the Internet <URL:https://juejin.cn/post/6844903495334641672> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114284A (en) * 2022-05-27 2022-09-27 中银金融科技有限公司 Table change processing method and system

Similar Documents

Publication Publication Date Title
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN110838071A (en) Policy data processing method and device and server
CN108959495B (en) page display method, device, equipment and computer storage medium of H5 webpage
CN110889073B (en) Page request response method, server and computer storage medium
CN111008892A (en) Business limit adjusting method and device and computer readable storage medium
CN111461762A (en) Merchant detection method and device and electronic equipment
CN113535832A (en) Method and device for acquiring cloud service data, electronic equipment and medium
US8707403B2 (en) Subscription interface for providing access to digital publications
CN112799760A (en) Form rendering method and device
CN113515717A (en) Navigation page updating method and device, electronic equipment and storage medium
CN111857781A (en) Resource updating method and related equipment
CN116010016A (en) Method, device, electronic equipment and medium for switching abnormal languages of service by system
CN108632348B (en) Service checking method and device
US20150163268A1 (en) System and Methods for Dynamically Loading a Compatible Media Player Based on a User&#39;s Environment
CN114157720A (en) Method, device, electronic equipment and medium for processing service request
CN104598220B (en) Method and device for providing and realizing webpage auxiliary function
CN114860238A (en) Page generation method and device and electronic equipment
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN109190352B (en) Method and device for verifying accuracy of authorization text
CN108182202B (en) Content update notification method, content update notification device, electronic equipment and storage medium
CN111897728A (en) Interface debugging method and related equipment
CN112256654A (en) Document sharing method and device
CN117648510B (en) Information display method, information display device, computer equipment and storage medium
CN112433821B (en) Method and device for building business model, electronic equipment and medium
CN108121811B (en) Webpage content adaptation method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination