CN111339466A - Interface management method and device, electronic equipment and readable storage medium - Google Patents

Interface management method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111339466A
CN111339466A CN202010118768.4A CN202010118768A CN111339466A CN 111339466 A CN111339466 A CN 111339466A CN 202010118768 A CN202010118768 A CN 202010118768A CN 111339466 A CN111339466 A CN 111339466A
Authority
CN
China
Prior art keywords
interface
statistical
data
request
interfaces
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
CN202010118768.4A
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.)
Tianjin Manyun Software Technology Co Ltd
Original Assignee
Tianjin Manyun Software 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 Tianjin Manyun Software Technology Co Ltd filed Critical Tianjin Manyun Software Technology Co Ltd
Priority to CN202010118768.4A priority Critical patent/CN111339466A/en
Publication of CN111339466A publication Critical patent/CN111339466A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Fuzzy Systems (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides an interface management method, an interface management device, electronic equipment and a readable storage medium, and relates to the technical field of data processing. The method comprises the following steps: acquiring an interface statistical request, wherein the interface statistical request comprises at least one statistical dimension; responding to the interface counting request, and counting at least one target interface in the plurality of interfaces according to the at least one counting dimension to obtain a counting result; and managing the at least one target interface based on the statistical result. In the scheme, the plurality of interfaces are integrated on the interface management platform, so that the interface management platform can conveniently count the interfaces according to the corresponding statistical dimensions, the interfaces can be conveniently managed in a unified mode, and compared with the prior art that one interface needs to develop one monitoring task to obtain data of the interfaces, resource consumption can be effectively reduced.

Description

Interface management method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an interface management method and apparatus, an electronic device, and a readable storage medium.
Background
With the development of Web technologies, front-end and back-end separation frameworks become more and more popular. The data is generally stored in the back end, the front end is responsible for presentation and interaction of the data, and in order to obtain the data, the front end may provide a plurality of interfaces, and a user may click on the interfaces to obtain the corresponding data.
In the prior art, in order to facilitate operation and maintenance management of the interfaces, a monitoring task is generally developed for each interface, and corresponding data of the interfaces are obtained through the monitoring task, so that an administrator can perform operation and maintenance management on the interfaces through the obtained data, but when the interfaces are more, a larger number of monitoring tasks need to be developed to obtain the data of the interfaces, which results in higher resource consumption.
Disclosure of Invention
An object of the embodiments of the present application is to provide an interface management method, an interface management apparatus, an electronic device, and a readable storage medium, so as to solve the problem in the prior art that resource consumption is large because a monitoring task needs to be developed for each interface to obtain data of the interface.
In a first aspect, an embodiment of the present application provides an interface management method, which is applied to an interface management platform, where the interface management platform is integrated with multiple interfaces, and the method includes: acquiring an interface statistical request, wherein the interface statistical request comprises at least one statistical dimension; responding to the interface counting request, and counting at least one target interface in the plurality of interfaces according to the at least one counting dimension to obtain a counting result; and managing the at least one target interface based on the statistical result.
In the implementation process, the plurality of interfaces are integrated on the interface management platform, so that the interface management platform can conveniently count the interfaces according to the corresponding statistical dimensions, the interfaces can be conveniently managed in a unified manner, and compared with the prior art in which one interface needs to develop one monitoring task to acquire data of the interfaces, the resource consumption can be effectively reduced.
Optionally, the at least one statistical dimension comprises: at least one of time, interface calling condition, data storage component corresponding to the interface, data acquisition task configured by the interface, interface parameters, error times of data returned by the interface and timeliness of data returned by the interface.
Optionally, the managing the at least one target interface based on the statistical result includes:
analyzing whether the at least one target interface has an abnormality or not based on the statistical result;
and when the abnormality exists, outputting alarm information representing that the abnormality exists in the at least one target interface.
In the implementation process, when the target interface is determined to be abnormal, the output warning information can effectively remind an administrator of finding the abnormal target interface in time, and then corresponding measures can be taken in time to maintain the target interface so as to ensure the normal operation of the target interface.
Optionally, the method further comprises:
acquiring an interface configuration request, wherein the interface configuration request comprises interface configuration parameters;
and responding to the interface configuration request, and configuring a corresponding interface on the interface management platform based on the interface configuration parameters.
In the implementation process, a user can configure the corresponding interface on the interface management platform according to the requirement of the user, so that the flexible configuration of the interface can be realized.
Optionally, the interface configuration parameters include: at least one of data volume, query rate per second QPS, data acquisition task and data storage component corresponding to the interface.
Optionally, the interface configuration parameters include: the method further includes, after configuring a corresponding interface on the interface management platform based on the interface configuration parameters, a data volume and a query rate per second QPS:
and selecting a data storage component corresponding to the interface according to the data volume and the QPS.
In the implementation process, the data storage component corresponding to the interface is selected according to the data volume and the QPS, so that the data called by the interface can be stored in the corresponding data storage component, and the method is applicable to different data requirements.
Optionally, the data storage component comprises Mysql, Hbase, Redis.
In a second aspect, an embodiment of the present application provides an interface management apparatus, which operates on an interface management platform, where the interface management platform is integrated with a plurality of interfaces, and the apparatus includes:
the device comprises a request acquisition module, a data processing module and a data processing module, wherein the request acquisition module is used for acquiring an interface statistical request which comprises at least one statistical dimension;
the statistical module is used for responding to the interface statistical request, and performing statistics on at least one target interface in the plurality of interfaces according to the at least one statistical dimension to obtain a statistical result;
and the management module is used for managing the at least one target interface based on the statistical result.
Optionally, the at least one statistical dimension comprises: at least one of time, interface calling condition, data storage component corresponding to the interface, data acquisition task configured by the interface, interface parameters, error times of data returned by the interface and timeliness of data returned by the interface.
Optionally, the statistical module is configured to analyze whether there is an abnormality in the at least one target interface based on the statistical result; and when the abnormality exists, outputting alarm information representing that the abnormality exists in the at least one target interface.
Optionally, the apparatus further comprises:
the interface configuration module is used for acquiring an interface configuration request, and the interface configuration request comprises interface configuration parameters; and responding to the interface configuration request, and configuring a corresponding interface on the interface management platform based on the interface configuration parameters.
Optionally, the interface configuration parameters include: at least one of data volume, query rate per second QPS, data acquisition task and data storage component corresponding to the interface.
Optionally, the interface configuration parameters include: the interface configuration module is further configured to select a data storage component corresponding to the interface according to the data volume and the QPS.
Optionally, the data storage component comprises Mysql, Hbase, Redis.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps in the method as provided in the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device for executing an interface management method according to an embodiment of the present application;
fig. 2 is a flowchart of an interface management method according to an embodiment of the present application;
fig. 3 is a block diagram of an interface management apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application provides an interface management method, in the method, a plurality of interfaces are managed through an interface management platform, so that corresponding statistics can be carried out on at least one target interface according to at least one statistical dimension through the interface management platform, then the target interface is managed based on a statistical result, so that the plurality of interfaces can be integrated on one interface management platform, the interface management platform can conveniently carry out statistics on the interfaces according to the corresponding statistical dimension, the interfaces can be conveniently managed in a unified mode, compared with the prior art that one interface needs to develop a monitoring task to obtain data of the interface, resource consumption can be effectively reduced.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device for executing an interface management method according to an embodiment of the present application, where the electronic device may include: at least one processor 110, such as a CPU, at least one communication interface 120, at least one memory 130, and at least one communication bus 140. Wherein the communication bus 140 is used for realizing direct connection communication of these components. The communication interface 120 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The memory 130 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. Memory 130 may optionally be at least one memory device located remotely from the aforementioned processor. The memory 130 stores computer readable instructions, and when the computer readable instructions are executed by the processor 110, the electronic device performs the following method process shown in fig. 2, for example, the memory 130 may be configured to store statistical results of the interface, and the processor 110 may be configured to respond to an interface statistical request, perform statistics on the interface according to at least one statistical dimension, and then perform corresponding management on the interface based on the statistical results.
It should be noted that the interface management platform in the embodiment of the present application may run in the electronic device, that is, the interface management platform may refer to a section of program, and when the interface management platform runs, the processor 110 may read the program from the memory to execute the program, that is, the interface management platform is used to execute the interface management method provided in the embodiment of the present application.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and that the electronic device may also include more or fewer components than shown in fig. 1 or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 2, fig. 2 is a flowchart of an interface management method according to an embodiment of the present application, where the method includes the following steps:
step S110: an interface statistic request is obtained, wherein the interface statistic request comprises at least one statistic dimension.
The interface management method provided by the application is applied to an interface management platform, the interface management platform can be understood as a software platform for providing a development environment and an operation environment for each interface, a plurality of interfaces can be integrated on the interface management platform, and the interfaces can have the same or different functions, for example, the interfaces can comprise interfaces for providing data query for a user, and also can comprise interfaces with other functions, such as data calculation, data statistics and the like. Of course, other applications may call these interfaces to obtain the corresponding data.
Therefore, the desired data can be obtained through the interfaces, for example, when a user wants to query certain data, the corresponding interface can be clicked on the interface management platform, the interface is used for querying the data, after the user clicks the interface, a data query request can be triggered, the interface management platform can receive the data query request, the data query request can include an interface identifier, the interface identifier is an identifier corresponding to the interface, the interface management platform can respond to the data query request, call the interface corresponding to the interface identifier to obtain corresponding data, and then output the data to the user, so that the user can query and obtain the desired data. Similarly, the user clicks other interfaces, and the required data can be obtained through other interfaces.
Therefore, the interface management platform can call the corresponding interfaces to obtain corresponding data based on the click request of the user, the interface management platform can also count the corresponding conditions of the interfaces, for example, the user can trigger the interface counting request, the interface counting request can be used for indicating the interface management platform to count the corresponding interfaces, for example, the interface management platform can also provide the interface for triggering the interface counting request for the user, and the user can trigger the interface counting request after clicking the interface. In order to facilitate the interface management platform to directly count the interfaces, the interfaces can be configured in advance, for example, the statistical dimensions and the interfaces needing to be counted are configured, and thus, after the user triggers the interface statistical request, the interface management platform can know which dimensions are needed to count which interfaces.
Certainly, for different statistical dimensions and interfaces to be counted, interfaces triggered by different interface statistical requests may also be configured, that is, a user may click different interfaces to trigger different interface statistical requests, for example, when the user clicks interface 1, the interface with interface identifier 100 and 200 on the interface management platform may be triggered to perform statistics according to statistical dimension 1, and when the user clicks interface 2, the interface with interface identifier 150 and 250 on the interface management platform may be triggered to perform statistics according to statistical dimension 2, in this case, the interface statistical requests may be triggered through multiple interfaces. If only one interface can trigger the interface counting request, some configurations of the interface can be modified to trigger the interface under different counting requirements, so that the corresponding interface can be counted according to the configured counting dimension.
Of course, the interface statistical request may not necessarily be triggered by clicking the corresponding interface on the interface management platform, and the interface statistical request may also be sent to the interface management platform by the user through the user terminal, or may also be generated by the interface management platform at regular time, or may be generated at a specified time point, for example, the interface management platform may generate an interface statistical request at regular intervals for automatically performing corresponding statistics on the interface management platform. Therefore, the triggering manner of the interface statistics request is not limited to the above examples, and the interface statistics request may be triggered by any other manner.
Step S120: and responding to the interface counting request, and counting at least one target interface in the plurality of interfaces according to the at least one counting dimension to obtain a counting result.
After obtaining the interface statistical request, the interface management platform can respond to the interface statistical request and perform statistics on at least one target interface according to at least one statistical dimension. If the interface statistical request does not carry the interface identifier of the interface to be counted, the interface management platform may default to count all the interfaces after receiving the interface statistical request, and in this case, the at least one target interface includes a plurality of interfaces on the interface management platform. Of course, the interface management platform may also perform statistics on the default partial interfaces, and at this time, at least one target interface includes the default partial interfaces; if the interface statistical request carries the interface identifier of the interface to be counted, the interface management platform can find the interface corresponding to the interface identifier after obtaining the interface identifier, and then count the interfaces, at this moment, at least one target interface comprises the interface corresponding to the interface identifier carried in the interface statistical request.
The statistical dimension may be understood to refer to an index according to which the interface is counted, for example, at least one statistical dimension includes but is not limited to: at least one of time, interface calling condition, data storage component corresponding to the interface, data acquisition task configured by the interface, interface parameter, number of data errors returned by the interface, timeliness of data returned by the interface, and the like.
For example, the interface management platform may count the operation condition of at least one target interface at a certain time node or in a certain time period; or the interface management platform can count the interface calling condition of at least one target interface, such as the calling frequency of each target interface or the accumulated calling times of each target interface; the data storage components corresponding to the interfaces comprise Mysql, Hbase, Redis and the like, the data storage components can be used for storing corresponding data, if the data storage component corresponding to the interface 1 is Mysql, the interface 1 can acquire required data from the Mysql, or corresponding data generated by the interface 1 can be stored in the Mysql, and the interface management platform can also count which interfaces corresponding to Mysql, Hbase or Redis; the data acquisition tasks comprise real-time tasks or off-line tasks, the real-time tasks can be used for indicating the interfaces to acquire data in real time, the off-line tasks can be used for indicating the interfaces to acquire data in a delayed mode, the data acquisition tasks can be configured for the corresponding interfaces in advance, for example, the real-time tasks are configured for the interface 1, the off-line tasks are configured for the interface 2, the interface management platform can count the number of the interfaces configured with the real-time tasks, the number of the interfaces configured with the off-line tasks, or the running condition of the interfaces configured with the realization tasks, and the like; the interface parameters refer to some parameters of the interface itself, such as data volume that the interface can process or query rate per second (QPS), and the interface management platform may count the data volume or QPS of each target interface; the number of data errors returned by the interface refers to the number of times that the interface cannot return required data due to errors when the interface is called, and the interface management platform can count the number of data errors returned by each target interface; the timeliness of the interface return data can be understood as the rate of the interface return data, and the interface management platform can count the timeliness of the return data of each target interface.
Of course, only some of the statistical dimensions are illustrated, and in practical applications, the interface may be counted from other statistical dimensions according to actual requirements, such as the type or function of the interface, so as to obtain statistical results corresponding to different statistical dimensions.
Step S130: and managing the at least one target interface based on the statistical result.
For example, when the statistical result includes the interface calling condition of each target interface, the interface management platform may notify an administrator to expand the interface with more interface calls, perform offline processing on the interface which has not been called for a long time, and the like, or the statistical result includes timeliness of data returned by each target interface, the interface management platform may count where the rate of data returned by the target interface is lower and which is higher, and may automatically acquire some data of the interface for the target interface with the lower rate to analyze the reason of the lower rate, and the like.
It can be understood that the interface management platform may manage the target interfaces based on preset management conditions, as shown in the above example of managing the target interfaces based on each statistical dimension, corresponding management conditions may be set for different statistical dimensions, so that the interface management platform may directly manage the target interfaces according to the corresponding management conditions after obtaining the statistical result, thereby facilitating the unified management of the plurality of interfaces.
In the implementation process, the plurality of interfaces are integrated on the interface management platform, so that the interface management platform can conveniently count the interfaces according to the corresponding statistical dimensions, the interfaces can be conveniently managed in a unified manner, and compared with the prior art in which one interface needs to develop one monitoring task to acquire data of the interfaces, the resource consumption can be effectively reduced.
As an embodiment, in order to facilitate operation and maintenance management on each target interface, the interface management platform may further analyze whether at least one target interface is abnormal based on the statistical result, and output alarm information indicating that at least one target interface is abnormal when the at least one target interface is abnormal.
For example, when the statistical result includes the interface call condition of each target interface, if a certain target interface is not called in a long period of time, it may indicate that the target interface may have an abnormality, which may output alarm information carrying the interface identifier of the target interface. Or, the statistical result includes timeliness of data returned by each target interface, and if the rate of data returned by a certain target interface is lower than a preset value, it is determined that the target interface is abnormal, and alarm information carrying the interface identifier of the target interface is output.
It can be understood that, for other statistical results, if the relevant data of a certain target interface in the statistical results does not satisfy the relevant preset conditions, it is determined that the target interface is abnormal, and then the alarm information may be output, and certainly, the statistical results obtained for different statistical dimensions are determined that the abnormal preset conditions are different, and the preset conditions may be configured in advance, and then the interface management platform may analyze the statistical results according to the preset conditions, so as to determine whether the target interface is abnormal.
The interface management platform can output the alarm information to the administrator terminal, so that an administrator can know that the target interface is abnormal through the administrator terminal, and operation and maintenance management can be carried out on the target interface. Or the interface management platform can output the alarm information in the form of an alarm sound, so that an administrator can listen to the alarm sound and then check the abnormal target interface, and further perform abnormal troubleshooting on the target interface.
Of course, the interface management platform may further be understood as storing the statistical result or sending the statistical result to the administrator terminal, so that the administrator may directly view the statistical result, and the administrator may execute some operation conditions of the target interfaces based on the data counted in the statistical result, so as to know whether the target interfaces are abnormal.
In the implementation process, when the target interface is determined to be abnormal, the output warning information can effectively remind an administrator of finding the abnormal target interface in time, and then corresponding measures can be taken in time to maintain the target interface so as to ensure the normal operation of the target interface.
In addition, the interface management platform may also provide functions such as interface configuration, interface addition, interface deletion, and the like for the user, for example, the user may configure a corresponding interface on the interface management platform according to the own requirements, and when the user needs to configure the interface, the interface management platform obtains an interface configuration request including interface configuration parameters, then responds to the interface configuration request, and configures a corresponding interface on the interface management platform based on the interface configuration parameters.
The interface configuration parameters include but are not limited to: at least one of data volume, query rate per second QPS, data acquisition task and data storage component corresponding to the interface. Of course, the interface configuration parameters may also be flexibly added according to actual requirements, and for interfaces with different functions, different interface configuration parameters may be configured, for example, the interface configuration parameters may also include calculation rules of the interfaces, for example, some interfaces may further process and calculate the obtained data.
If a user wants to modify a certain interface on the interface management platform, an interface configuration request can be triggered on the interface management platform, and then corresponding interface configuration parameters are input, or existing interface configuration parameters are selected, the interface management platform can carry out corresponding configuration on the interface based on the interface configuration parameters so as to modify the interface configuration parameters of the interface, if the user wants to add a self-defined interface on the interface management platform, the interface configuration request can also be triggered, and at the moment, the interface management platform can generate a new interface based on the interface configuration parameters.
Therefore, a user can configure the interface on the interface management platform according to the requirement or modify some parameters of the interface, so that the optimization of the interface can be facilitated.
In the implementation process, a user can configure the corresponding interface on the interface management platform according to the requirement of the user, so that the flexible configuration of the interface can be realized.
In order to guarantee the effectiveness of data, when the interface configuration parameters include the data volume and the query rate per second QPS, the data storage component corresponding to the interface may be selected according to the data volume and the QPS.
For example, for an interface with a smaller data volume requirement and a higher QPS requirement, Redis may be selected, which may support data persistence and emphasis relationships, and is suitable for cache data with a high-speed data volume that is not too large, and for an interface with a larger data volume requirement and a smaller QPS requirement, Mysql may be selected, which is suitable for data with a larger data volume that needs to fall to the ground, and Hbase is suitable for a scenario of a data warehouse with a huge data volume, for example, a user portrait may be stored in Hbase, for an interface that needs to call such data, service summary data may be stored in Mysql, for an interface that needs to call such data, total data or dimension data that is used at a high frequency may be stored in reds, and for an interface that needs to call such data, Redis may be selected.
In the implementation process, the data storage component corresponding to the interface is selected according to the data volume and the QPS, so that the data called by the interface can be stored in the corresponding data storage component, and the method is applicable to different data requirements.
Referring to fig. 3, fig. 3 is a block diagram of an interface management apparatus 200 according to an embodiment of the present application, where the apparatus 200 may be a module, a program segment, or a code on an interface management platform. It should be understood that the apparatus 200 corresponds to the above-mentioned embodiment of the method of fig. 2, and can perform various steps related to the embodiment of the method of fig. 2, and the specific functions of the apparatus 200 can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy.
Optionally, the apparatus 200 comprises:
a request obtaining module 210, configured to obtain an interface statistics request, where the interface statistics request includes at least one statistics dimension;
a counting module 220, configured to respond to the interface counting request, count at least one target interface in the multiple interfaces according to the at least one counting dimension, and obtain a counting result;
a management module 230, configured to manage the at least one target interface based on the statistical result.
Optionally, the at least one statistical dimension comprises: at least one of time, interface calling condition, data storage component corresponding to the interface, data acquisition task configured by the interface, interface parameters, error times of data returned by the interface and timeliness of data returned by the interface.
Optionally, the statistic module 220 is configured to analyze whether there is an abnormality in the at least one target interface based on the statistic result; and when the abnormality exists, outputting alarm information representing that the abnormality exists in the at least one target interface.
Optionally, the apparatus 200 further comprises:
the interface configuration module is used for acquiring an interface configuration request, and the interface configuration request comprises interface configuration parameters; and responding to the interface configuration request, and configuring a corresponding interface on the interface management platform based on the interface configuration parameters.
Optionally, the interface configuration parameters include: at least one of data volume, query rate per second QPS, data acquisition task and data storage component corresponding to the interface.
Optionally, the interface configuration parameters include: the interface configuration module is further configured to select a data storage component corresponding to the interface according to the data volume and the QPS.
Optionally, the data storage component comprises Mysql, Hbase, Redis.
The embodiment of the present application provides a readable storage medium, and when being executed by a processor, the computer program performs the method process performed by the electronic device in the method embodiment shown in fig. 2.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, comprising: acquiring an interface statistical request, wherein the interface statistical request comprises at least one statistical dimension; responding to the interface counting request, and counting at least one target interface in the plurality of interfaces according to the at least one counting dimension to obtain a counting result; and managing the at least one target interface based on the statistical result.
To sum up, in the method, a plurality of interfaces are integrated on one interface management platform, so that the interface management platform can count the interfaces according to corresponding statistical dimensions, and thus the interfaces can be managed uniformly.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An interface management method is applied to an interface management platform, the interface management platform is integrated with a plurality of interfaces, and the method comprises the following steps:
acquiring an interface statistical request, wherein the interface statistical request comprises at least one statistical dimension;
responding to the interface counting request, and counting at least one target interface in the plurality of interfaces according to the at least one counting dimension to obtain a counting result;
and managing the at least one target interface based on the statistical result.
2. The method of claim 1, wherein the at least one statistical dimension comprises: at least one of time, interface calling condition, data storage component corresponding to the interface, data acquisition task configured by the interface, interface parameters, error times of data returned by the interface and timeliness of data returned by the interface.
3. The method of claim 1, wherein managing the at least one target interface based on the statistics comprises:
analyzing whether the at least one target interface has an abnormality or not based on the statistical result;
and when the abnormality exists, outputting alarm information representing that the abnormality exists in the at least one target interface.
4. The method of claim 1, further comprising:
acquiring an interface configuration request, wherein the interface configuration request comprises interface configuration parameters;
and responding to the interface configuration request, and configuring a corresponding interface on the interface management platform based on the interface configuration parameters.
5. The method of claim 4, wherein the interface configuration parameters comprise: at least one of data volume, query rate per second QPS, data acquisition task and data storage component corresponding to the interface.
6. The method of claim 5, wherein the interface configuration parameters comprise: the method further includes, after configuring a corresponding interface on the interface management platform based on the interface configuration parameters, a data volume and a query rate per second QPS:
and selecting a data storage component corresponding to the interface according to the data volume and the QPS.
7. The method of claim 6, wherein the data storage component comprises Mysql, Hbase, Redis.
8. An interface management apparatus, operating on an interface management platform integrated with a plurality of interfaces, the apparatus comprising:
the device comprises a request acquisition module, a data processing module and a data processing module, wherein the request acquisition module is used for acquiring an interface statistical request which comprises at least one statistical dimension;
the statistical module is used for responding to the interface statistical request, and performing statistics on at least one target interface in the plurality of interfaces according to the at least one statistical dimension to obtain a statistical result;
and the management module is used for managing the at least one target interface based on the statistical result.
9. An electronic device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 1-7.
10. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010118768.4A 2020-02-25 2020-02-25 Interface management method and device, electronic equipment and readable storage medium Pending CN111339466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010118768.4A CN111339466A (en) 2020-02-25 2020-02-25 Interface management method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010118768.4A CN111339466A (en) 2020-02-25 2020-02-25 Interface management method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111339466A true CN111339466A (en) 2020-06-26

Family

ID=71181967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010118768.4A Pending CN111339466A (en) 2020-02-25 2020-02-25 Interface management method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111339466A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559202A (en) * 2020-12-08 2021-03-26 北京机电工程研究所 Aircraft application software communication method based on embedded real-time operating system
CN113225228A (en) * 2021-04-30 2021-08-06 北京百度网讯科技有限公司 Data processing method and device
CN113297121A (en) * 2021-06-16 2021-08-24 深信服科技股份有限公司 Interface management method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573107A (en) * 2015-02-02 2015-04-29 国家计算机网络与信息安全管理中心江苏分中心 Network security application NoSQL database and relational database fusion interface method
CN108509313A (en) * 2018-03-23 2018-09-07 深圳乐信软件技术有限公司 A kind of business monitoring method, platform and storage medium
WO2018201978A1 (en) * 2017-05-04 2018-11-08 平安科技(深圳)有限公司 Interface call data processing method, apparatus, computer device and storage medium
CN109784503A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Business O&M method, apparatus, equipment and readable storage medium storing program for executing
CN110224870A (en) * 2019-06-19 2019-09-10 腾讯云计算(北京)有限责任公司 Interface monitoring method, apparatus calculates equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573107A (en) * 2015-02-02 2015-04-29 国家计算机网络与信息安全管理中心江苏分中心 Network security application NoSQL database and relational database fusion interface method
WO2018201978A1 (en) * 2017-05-04 2018-11-08 平安科技(深圳)有限公司 Interface call data processing method, apparatus, computer device and storage medium
CN108509313A (en) * 2018-03-23 2018-09-07 深圳乐信软件技术有限公司 A kind of business monitoring method, platform and storage medium
CN109784503A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Business O&M method, apparatus, equipment and readable storage medium storing program for executing
CN110224870A (en) * 2019-06-19 2019-09-10 腾讯云计算(北京)有限责任公司 Interface monitoring method, apparatus calculates equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559202A (en) * 2020-12-08 2021-03-26 北京机电工程研究所 Aircraft application software communication method based on embedded real-time operating system
CN113225228A (en) * 2021-04-30 2021-08-06 北京百度网讯科技有限公司 Data processing method and device
CN113225228B (en) * 2021-04-30 2022-10-21 北京百度网讯科技有限公司 Data processing method and device
CN113297121A (en) * 2021-06-16 2021-08-24 深信服科技股份有限公司 Interface management method, device, equipment and readable storage medium
CN113297121B (en) * 2021-06-16 2024-02-23 深信服科技股份有限公司 Interface management method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110661659B (en) Alarm method, device and system and electronic equipment
CN111049705B (en) Method and device for monitoring distributed storage system
CN103220173B (en) A kind of alarm monitoring method and supervisory control system
CN111339466A (en) Interface management method and device, electronic equipment and readable storage medium
CN108845910A (en) Monitoring method, device and the storage medium of extensive micro services system
CN111339175B (en) Data processing method, device, electronic equipment and readable storage medium
CN112311617A (en) Configured data monitoring and alarming method and system
CN111124609B (en) Data acquisition method and device, data acquisition equipment and storage medium
CN110995497A (en) Method for unified operation and maintenance in cloud computing environment, terminal device and storage medium
CN112306700A (en) Abnormal RPC request diagnosis method and device
CN108509313A (en) A kind of business monitoring method, platform and storage medium
CN109669835A (en) MySQL database monitoring method, device, equipment and readable storage medium storing program for executing
CN108306749B (en) Monitoring system alarming method, monitoring system and monitoring device
CN113590437A (en) Alarm information processing method, device, equipment and medium
CN111597091A (en) Data monitoring method and system, electronic equipment and computer storage medium
US9544214B2 (en) System and method for optimized event monitoring in a management environment
CN103823743A (en) Monitoring method and monitoring device of software system
CN109510730A (en) Distributed system and its monitoring method, device, electronic equipment and storage medium
CN114816914A (en) Data processing method, equipment and medium based on Kubernetes
CN115150253A (en) Fault root cause determination method and device and electronic equipment
CN115469966A (en) Elastic expansion method and device for container cloud service
CN115129491A (en) Micro service request message tracking method, generating method, device, medium and equipment
CN114706893A (en) Fault detection method, device, equipment and storage medium
EP3832985A1 (en) Method and apparatus for processing local hot spot, electronic device and storage medium
CN114338350A (en) Alarm method, alarm device, electronic equipment and computer 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