CN111209161B - Method and system for automatically generating configuration file based on interface monitoring - Google Patents

Method and system for automatically generating configuration file based on interface monitoring Download PDF

Info

Publication number
CN111209161B
CN111209161B CN202010002161.XA CN202010002161A CN111209161B CN 111209161 B CN111209161 B CN 111209161B CN 202010002161 A CN202010002161 A CN 202010002161A CN 111209161 B CN111209161 B CN 111209161B
Authority
CN
China
Prior art keywords
interface
monitoring
configuration file
monitoring parameter
file
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.)
Active
Application number
CN202010002161.XA
Other languages
Chinese (zh)
Other versions
CN111209161A (en
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.)
Guangdong Kamfu Technology Co ltd
Original Assignee
Guangdong Kamfu 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 Guangdong Kamfu Technology Co ltd filed Critical Guangdong Kamfu Technology Co ltd
Priority to CN202010002161.XA priority Critical patent/CN111209161B/en
Publication of CN111209161A publication Critical patent/CN111209161A/en
Application granted granted Critical
Publication of CN111209161B publication Critical patent/CN111209161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Abstract

The application relates to a method and a system for automatically generating a configuration file based on interface monitoring, wherein the method comprises the following steps: acquiring interface information of a monitoring configuration file; determining interface monitoring parameter generation rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file; and generating a monitoring attribute configuration file based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information. After the interface information of the monitoring configuration file is obtained, the interface monitoring parameter generation rule and the interface monitoring parameter attribute information are determined based on the interface information and the monitoring attribute file, and then the monitoring attribute configuration file is generated based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information, so that the automatic generation of the monitoring attribute configuration file is realized.

Description

Method and system for automatically generating configuration file based on interface monitoring
Technical Field
The application relates to the technical field of computers, in particular to a method and a system for automatically generating a configuration file based on interface monitoring.
Background
In software applications, the application system may invoke a large number of interfaces to implement data interactions due to the coupling between the various application systems. In the running of the application system, once an interface is unstable or call fails, a certain function abnormality of the application system is caused, and then normal use of a user is influenced. The stability of the monitoring interface is particularly important in the daily maintenance work of the application system.
In the commonly used interface monitoring systems (such as zabbix and nagios), a very important task is to configure the interface to monitor and debug the configuration successfully, which is very tedious, time-consuming, repeated and very error-prone, so it is very important and valuable to find a general and visual method to automatically generate the interface monitoring configuration file and automatically debug.
Especially for some application systems with larger coupling, the daily use amount of the interface can reach millions or even tens of millions, so that the aim of guaranteeing the stability and the reliability of the interface is achieved, the problem of timely responding to and processing the faults of the interface is particularly important, and in order to achieve the aim, a plurality of different types of interfaces need to be monitored, so that a plurality of service interface monitoring configuration files are correspondingly required to be manually configured, meanwhile, the success is ensured by debugging one by one, a great deal of manpower and time are required to be consumed for the work, and great trouble is brought to the interface monitoring work.
It is therefore desirable to devise a solution that is visualized, capable of automatically generating corresponding profiles for the needs of different types of interface monitoring, and capable of automatic debugging.
Disclosure of Invention
First, the technical problem to be solved
In order to solve the problems in the prior art, the application provides a method and a system for automatically generating a configuration file based on interface monitoring.
(II) technical scheme
In order to achieve the above purpose, the main technical scheme adopted by the application comprises the following steps:
a method for generating a configuration file based on interface monitoring, the method comprising:
acquiring interface information of a monitoring configuration file;
determining interface monitoring parameter generation rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file;
and generating a monitoring attribute configuration file based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information.
Optionally, the monitoring attribute file includes; the interface monitoring parameters generate rule configuration files, and the interface is called to return a status code configuration file and a control file of the debugging interface;
the interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file;
the calling interface returns a status code configuration file, and is used for providing a corresponding relation between the interface and the status code returned when the interface monitoring configuration file is executed;
the control file of the debug interface is used for providing control parameters when the debug interface monitors the configuration file.
Optionally, the generating a monitoring attribute configuration file based on the interface monitoring parameter generating rule and the interface monitoring parameter attribute information includes:
debugging the interface according to the interface monitoring parameter attribute information to check the availability of the interface and the correctness of the interface monitoring configuration parameters;
and inserting the debugged interface monitoring parameter attribute information into an interface monitoring configuration file according to the interface monitoring parameter generation rule and storing the interface monitoring parameter attribute information in the interface monitoring configuration file.
Optionally, the interface information includes one or more of the following: interface type, interface address, interface name, interface request message and interface return message.
Optionally, the interface monitoring parameter attribute information includes one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and correspondent key value.
In order to achieve the above purpose, the main technical scheme adopted by the application further comprises:
a profile generation system based on interface monitoring, the system comprising: an interface monitoring configuration file generation module and a monitoring attribute file;
the monitoring attribute file is used for storing attribute information of the monitoring configuration file;
the interface monitoring configuration file generating module is used for acquiring interface information of the monitoring configuration file, determining interface monitoring parameter generating rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file, and generating the monitoring attribute configuration file based on the interface monitoring parameter generating rules and the interface monitoring parameter attribute information.
Optionally, the monitoring attribute file includes: the interface monitoring parameters generate rule configuration files, and the interface is called to return a status code configuration file and a control file of the debugging interface;
the interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file;
the calling interface returns a status code configuration file, and is used for providing a corresponding relation between the interface and the status code returned when the interface monitoring configuration file is executed;
the control file of the debug interface is used for providing control parameters when the debug interface monitors the configuration file.
Optionally, the interface monitoring configuration file generating module includes: the interface information input module, the interface monitoring parameter processing module, the interface monitoring parameter display module, the interface monitoring parameter rule configuration module, the configuration file of the debugging monitoring interface and the interface monitoring configuration file insertion module;
the interface information input module is used for acquiring interface information of the monitoring configuration file;
the interface monitoring parameter processing module is used for determining interface monitoring parameter attribute information based on the interface information and the monitoring attribute file;
the interface monitoring parameter display module is used for displaying interface monitoring parameter attribute information;
the interface monitoring parameter rule configuration module is used for configuring interface monitoring parameter generation rules;
the configuration file of the debugging monitoring interface is used for debugging the interface according to the attribute information of the interface monitoring parameters so as to check the availability of the interface and the correctness of the interface monitoring configuration parameters;
the interface monitoring configuration file inserting module is used for inserting the debugged interface monitoring parameter attribute information into the interface monitoring configuration file according to the interface monitoring parameter generating rule and storing the interface monitoring parameter attribute information in the interface monitoring configuration file folder.
Optionally, the interface information includes one or more of the following: interface type, interface address, interface name, interface request message and interface return message.
Optionally, the interface monitoring parameter attribute information includes one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and correspondent key value.
(III) beneficial effects
The beneficial effects of the application are as follows: after the interface information of the monitoring configuration file is obtained, the interface monitoring parameter generation rule and the interface monitoring parameter attribute information are determined based on the interface information and the monitoring attribute file, and then the monitoring attribute configuration file is generated based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information, so that the automatic generation of the monitoring attribute configuration file is realized.
Drawings
Fig. 1 is a flow chart of a configuration file generating method based on interface monitoring according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a configuration file generating system based on interface monitoring according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another configuration file generating system based on interface monitoring according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another configuration file generating system based on interface monitoring according to an embodiment of the present application;
fig. 5 is a timing chart of a configuration file generating method based on interface monitoring according to an embodiment of the present application.
Detailed Description
The application will be better explained by the following detailed description of the embodiments with reference to the drawings.
In a common interface monitoring system, an important task is to configure an interface to monitor and debug the configuration successfully, and the task is very tedious, time-consuming, repeated and very prone to error, so it is very important and valuable to find a general and visual method to automatically generate an interface monitoring configuration file and automatically debug.
Especially for some application systems with larger coupling, the daily use amount of the interface can reach millions or even tens of millions, so that the aim of guaranteeing the stability and the reliability of the interface is achieved, the problem of timely responding to and processing the faults of the interface is particularly important, and in order to achieve the aim, a plurality of different types of interfaces need to be monitored, so that a plurality of service interface monitoring configuration files are correspondingly required to be manually configured, meanwhile, the success is ensured by debugging one by one, a great deal of manpower and time are required to be consumed for the work, and great trouble is brought to the interface monitoring work.
Based on the interface information and the monitoring attribute file, the method provided by the application determines the interface monitoring parameter generation rule and the interface monitoring parameter attribute information based on the interface information and the monitoring attribute file after the interface information of the monitoring configuration file is obtained, and generates the monitoring attribute configuration file based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information, thereby realizing the automatic generation of the monitoring attribute configuration file.
Referring specifically to fig. 1, the implementation flow of the method is as follows:
s101, acquiring interface information of a monitoring configuration file.
Wherein the interface information includes one or more of the following: interface type, interface address, interface name, interface request message and interface return message.
S102, based on the interface information and the monitoring attribute file, determining an interface monitoring parameter generation rule and interface monitoring parameter attribute information.
Wherein the monitoring attribute file comprises. The interface monitoring parameters generate rule configuration files, and call the interface to return the status code configuration files and the control files of the debugging interface.
The interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file.
And calling the interface return state code configuration file to provide the corresponding relation between the interface and the state code returned when the interface monitoring configuration file is executed.
And the control file of the debugging interface is used for providing control parameters when the debugging interface monitors the configuration file.
In addition, the interface monitoring parameter attribute information includes one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and correspondent key value.
S103, generating a monitoring attribute configuration file based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information.
The implementation process of the method comprises the following steps: and debugging the interface according to the interface monitoring parameter attribute information to check the usability of the interface and the correctness of the interface monitoring configuration parameters. And inserting the debugged interface monitoring parameter attribute information into an interface monitoring configuration file according to the interface monitoring parameter generation rule, and storing the interface monitoring parameter attribute information in the interface monitoring configuration file.
The method provided by the embodiment is a visualized solution which can automatically generate interface monitoring parameter rules according to the requirements of different types of interface monitoring and create monitoring interface configuration files and automatic debugging.
The method comprises the steps of automatically identifying the interface attribute, successfully calling a return status code and a method for effectively calling key names and key values in an interface return message; a method for monitoring parameter rules by a custom configuration interface, a method for monitoring configuration files by an automatic debugging interface, and the like.
In a specific implementation, the method timing diagram provided in this embodiment may be as shown in fig. 5,
1. the user opens the tool, which presents an input interface type interface.
2. The user selects the interface type, the tool returns the corresponding interface information input interface, the user inputs the interface information, the tool inquires the interface type, the interface address, the interface name, the interface request message, the successful call interface return state code, the effective key name and the corresponding key value of the interface return message according to the input information of the user, and the effective key name and the corresponding key value are displayed according to the established rule.
3. The user selects an interface monitoring parameter generation rule, the tool generates data according to the rule configured by the user, and the interface monitoring parameter is debugged. After the user confirms that the monitoring configuration file is generated, the tool generates an interface monitoring configuration file and inserts the interface monitoring configuration file into the target folder, and returns a successful interface.
By the method provided by the embodiment, the interface type, the interface address, the interface name, the interface request message, the successful calling of the interface return status code, the effective key name of the interface return message and the corresponding key value can be automatically identified. The interface request message can be directly obtained by writing codes (such as java) according to the existing method of the application of the interface type, the interface address, the interface name and the interface request message.
The method provided by the embodiment is simple and easy to use, greatly reduces the technical requirements of a large number of configuration and debugging interface monitoring configuration files, and improves the efficiency of configuration monitoring interfaces. The method can automatically identify the attribute of the interface, successfully call the effective key name and the corresponding key value of the interface return state code and the interface return message, and particularly automatically identify the effective key name and the corresponding key value of the return message as monitoring parameters, so that the time for screening the monitoring parameters of the effective interface can be greatly reduced. The system can be configured according to the requirements of different interface types, and various configuration rules improve the universality and flexibility of interface monitoring parameter generation. The method integrates the functions of inquiring interface attributes and interface messages, generating configurable rules of interface monitoring parameters and automatically debugging interface monitoring configuration files, improves the efficiency of configuration interface monitoring, and thus reflects the application value of the configuration interface monitoring.
In a specific implementation, the method shown in fig. 1 may be executed by a configuration file generating system based on interface monitoring, so as to implement automatic generation of a monitoring attribute configuration file.
Referring to fig. 2, the configuration file generating system based on interface monitoring includes: an interface monitoring configuration file generating module and a monitoring attribute file.
1. Monitoring property files
And the monitoring attribute file is used for storing attribute information of the monitoring configuration file.
2. Interface monitoring configuration file generation module
The interface monitoring configuration file generation module is used for acquiring interface information of the monitoring configuration file, determining interface monitoring parameter generation rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file, and generating the monitoring attribute configuration file based on the interface monitoring parameter generation rules and the interface monitoring parameter attribute information.
Wherein, the monitoring attribute file includes: the interface monitoring parameters generate rule configuration files, and call the interface to return the status code configuration files and the control files of the debugging interface.
The interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file.
And calling the interface return state code configuration file to provide the corresponding relation between the interface and the state code returned when the interface monitoring configuration file is executed.
And the control file of the debugging interface is used for providing control parameters when the debugging interface monitors the configuration file.
Specifically, the interface monitoring configuration file generating module includes: the system comprises an interface information input module, an interface monitoring parameter processing module, an interface monitoring parameter display module, an interface monitoring parameter rule configuration module, a configuration file of a debugging monitoring interface and an interface monitoring configuration file insertion module.
And the interface information input module is used for acquiring the interface information of the monitoring configuration file.
And the interface monitoring parameter processing module is used for determining the interface monitoring parameter attribute information based on the interface information and the monitoring attribute file.
And the interface monitoring parameter display module is used for displaying attribute information of the interface monitoring parameters.
And the interface monitoring parameter rule configuration module is used for configuring the interface monitoring parameter generation rule.
And the configuration file of the debugging monitoring interface is used for debugging the interface according to the attribute information of the interface monitoring parameters so as to check the availability of the interface and the correctness of the interface monitoring configuration parameters.
The interface monitoring configuration file inserting module is used for inserting the debugged interface monitoring parameter attribute information into the interface monitoring configuration file according to the interface monitoring parameter generating rule and storing the interface monitoring parameter attribute information in the interface monitoring configuration file folder.
Further, the interface information includes, but is not limited to, one or more of the following: interface type, interface address, interface name, interface request message and interface return message.
The interface monitoring parameter attribute information includes, but is not limited to, one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and correspondent key value.
With reference to the structure shown in figure 4,
1. interface information input module
The main work is to obtain interface information of the monitoring configuration file through the page. For example, relevant information of the interface to be monitored is obtained, including interface type, interface address, interface name, interface request message and interface return message.
2. Interface monitoring parameter processing module
The main work is to determine interface monitoring parameter attribute information based on interface information and monitoring attribute files, for example, query interface information in the monitoring attribute files, and the parameter acquisition includes: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message, and corresponding key value.
3. Interface monitoring parameter display module
The main work is to display the attribute information of the interface monitoring parameters, for example, the queried interface monitoring parameter information is displayed according to the established rule.
4. Interface monitoring parameter rule configuration module
The main work is to configure interface monitoring parameter generation rules. The configuration of various generation rules of the interface monitoring parameters can be realized through the module, such as randomly selecting a pair, randomly selecting a plurality of pairs, sequentially selecting the first pair, all the pairs and the like according to the effective key name and the corresponding key value of the interface return message.
5. Configuration file for debugging monitoring interface
The main work is to debug the interface according to the attribute information of the monitoring parameters of the interface, for example, debug the interface according to the queried monitoring parameters, and check the availability of the interface and the correctness of the monitoring configuration parameters of the interface.
6. Interface monitoring configuration file insertion module
The main work is that the attribute information of the interface monitoring parameters through debugging is inserted into the interface monitoring configuration file according to the generation rule of the interface monitoring parameters and is stored in the interface monitoring configuration file.
In a specific implementation, the configuration file generating system based on interface monitoring provided in this embodiment may be shown in fig. 3, where the system is composed of an interface monitoring configuration file generating module and a monitoring attribute file. The user can realize the generation and debugging of the interface monitoring configuration file through the visual interface presentation, and finally the interface monitoring configuration file is inserted into the interface monitoring configuration folder.
Wherein the monitoring attribute file is an associated configuration file.
For example, a user logs in a configuration file generating system based on interface monitoring at first, selects the type of an interface to be monitored, inputs an interface address and an interface name, then imports a request and a return message of the interface, configures the interface monitoring parameter generating rule, automatically debugs the monitoring configuration file of the interface through software, generates an interface monitoring configuration file and stores the interface monitoring configuration file in an interface monitoring configuration folder.
In the prior art, a scheme of successfully calling the interface return state code is not obtained, but the method or the system provided by the embodiment adopts the method of creating the successfully calling the interface return state code corresponding to the interface type in advance, and then obtaining the corresponding successfully calling interface return state code according to the interface type. Namely, establishing a mapping corresponding relation between the interface type and the state code, and matching the state code according to the type.
In addition, in the prior art, there is no method for obtaining the effective key name (keyword) and the corresponding key value of the interface return message, and the method or system provided in this embodiment provides a scheme, that is, firstly, the content of the interface return message is obtained, then, according to the interface type, the key name and the key value of the effective method body in the interface return message are selected, and finally, the non-null key value and the corresponding key name are obtained.
In addition, the method provided by the embodiment can flexibly configure the interface monitoring parameter generation rule, such as randomly selecting one pair, randomly selecting a plurality of pairs, sequentially selecting the first pair, completely selecting and the like according to the effective key name and the corresponding key value of the interface return message. Different rules may be selected for configuration for each monitoring interface.
Meanwhile, under the condition that the normal use of the interface is ensured, the interface is called, whether the calling interface return status code is consistent with the successful calling return status code corresponding to the interface type is checked, and whether the selected interface monitoring parameters exist in the interface return message is checked. And ensuring that the generated interface monitoring configuration file is available, generating a file of configuration information which is successfully debugged, and storing the file.
The method provided by the embodiment is simple and easy to use, greatly reduces the technical requirements of a large number of configuration and debugging interface monitoring configuration files, and improves the efficiency of configuration monitoring interfaces. The method can automatically identify the attribute of the interface, successfully call the effective key name and the corresponding key value of the interface return state code and the interface return message, and particularly automatically identify the effective key name and the corresponding key value of the return message as monitoring parameters, so that the time for screening the monitoring parameters of the effective interface can be greatly reduced. The system can be configured according to the requirements of different interface types, and various configuration rules improve the universality and flexibility of interface monitoring parameter generation. The method integrates the functions of inquiring interface attributes and interface messages, generating configurable rules of interface monitoring parameters and automatically debugging interface monitoring configuration files, improves the efficiency of configuration interface monitoring, and thus reflects the application value of the configuration interface monitoring.
According to the method provided by the embodiment, after the interface information of the monitoring configuration file is obtained, the interface monitoring parameter generation rule and the interface monitoring parameter attribute information are determined based on the interface information and the monitoring attribute file, and then the monitoring attribute configuration file is generated based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information, so that the automatic generation of the monitoring attribute configuration file is realized.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present application.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Finally, it should be noted that: the embodiments described above are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced with equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (5)

1. A method for generating a configuration file based on interface monitoring, the method comprising:
acquiring interface information of a monitoring configuration file;
determining interface monitoring parameter generation rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file;
generating a monitoring attribute configuration file based on the interface monitoring parameter generation rule and the interface monitoring parameter attribute information;
the interface monitoring parameter attribute information includes one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and corresponding key value;
the successful call return status code is used for checking the consistency of the call interface return status code and the successful call return status code corresponding to the interface type, and verifying the availability of the generated interface monitoring configuration file when the selected interface monitoring parameters exist in the interface return message;
the monitoring attribute file comprises; the interface monitoring parameters generate rule configuration files, and the interface is called to return a status code configuration file and a control file of the debugging interface;
the interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file;
the calling interface returns a status code configuration file, and is used for providing a corresponding relation between the interface and the status code returned when the interface monitoring configuration file is executed;
the control file of the debugging interface is used for providing control parameters when the debugging interface monitors the configuration file;
the generating a monitoring attribute configuration file based on the interface monitoring parameter generating rule and the interface monitoring parameter attribute information comprises the following steps:
debugging the interface according to the interface monitoring parameter attribute information to check the availability of the interface and the correctness of the interface monitoring configuration parameters;
and inserting the debugged interface monitoring parameter attribute information into an interface monitoring configuration file according to the interface monitoring parameter generation rule and storing the interface monitoring parameter attribute information in the interface monitoring configuration file.
2. The method of claim 1, wherein the interface information comprises one or more of: interface type, interface address, interface name, interface request message and interface return message.
3. A profile generation system based on interface monitoring, the system comprising: an interface monitoring configuration file generation module and a monitoring attribute file;
the monitoring attribute file is used for storing attribute information of the monitoring configuration file;
the interface monitoring configuration file generation module is used for acquiring interface information of the monitoring configuration file, determining interface monitoring parameter generation rules and interface monitoring parameter attribute information based on the interface information and the monitoring attribute file, and generating a monitoring attribute configuration file based on the interface monitoring parameter generation rules and the interface monitoring parameter attribute information;
the interface monitoring parameter attribute information includes one or more of the following: interface type, interface address, interface name, interface request message, successful call return status code, effective key name of interface return message and corresponding key value;
the successful call return status code corresponds to the interface type and is used for verifying the availability of the monitoring attribute configuration file;
the monitoring attribute file includes: the interface monitoring parameters generate rule configuration files, and the interface is called to return a status code configuration file and a control file of the debugging interface;
the interface monitoring parameter generation rule configuration file is used for providing monitoring parameter generation rule attributes in the interface monitoring configuration file;
the calling interface returns a status code configuration file, and is used for providing a corresponding relation between the interface and the status code returned when the interface monitoring configuration file is executed;
the control file of the debugging interface is used for providing control parameters when the debugging interface monitors the configuration file;
the interface monitoring configuration file generation module comprises: a configuration file of the debugging monitoring interface and an interface monitoring configuration file inserting module;
the configuration file of the debugging monitoring interface is used for debugging the interface according to the attribute information of the interface monitoring parameters so as to check the availability of the interface and the correctness of the interface monitoring configuration parameters;
the interface monitoring configuration file inserting module is used for inserting the debugged interface monitoring parameter attribute information into the interface monitoring configuration file according to the interface monitoring parameter generating rule and storing the interface monitoring parameter attribute information in the interface monitoring configuration file folder.
4. The system of claim 3, wherein the interface monitoring profile generation module further comprises: the system comprises an interface information input module, an interface monitoring parameter processing module, an interface monitoring parameter display module and an interface monitoring parameter rule configuration module;
the interface information input module is used for acquiring interface information of the monitoring configuration file;
the interface monitoring parameter processing module is used for determining interface monitoring parameter attribute information based on the interface information and the monitoring attribute file;
the interface monitoring parameter display module is used for displaying interface monitoring parameter attribute information;
the interface monitoring parameter rule configuration module is used for configuring interface monitoring parameter generation rules.
5. The system of claim 3 or 4, wherein the interface information comprises one or more of: interface type, interface address, interface name, interface request message and interface return message.
CN202010002161.XA 2020-01-02 2020-01-02 Method and system for automatically generating configuration file based on interface monitoring Active CN111209161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010002161.XA CN111209161B (en) 2020-01-02 2020-01-02 Method and system for automatically generating configuration file based on interface monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010002161.XA CN111209161B (en) 2020-01-02 2020-01-02 Method and system for automatically generating configuration file based on interface monitoring

Publications (2)

Publication Number Publication Date
CN111209161A CN111209161A (en) 2020-05-29
CN111209161B true CN111209161B (en) 2023-10-17

Family

ID=70787170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010002161.XA Active CN111209161B (en) 2020-01-02 2020-01-02 Method and system for automatically generating configuration file based on interface monitoring

Country Status (1)

Country Link
CN (1) CN111209161B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
CN105490881A (en) * 2015-12-09 2016-04-13 北京交控科技股份有限公司 Configurable data interface test method and system
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN107577622A (en) * 2017-08-01 2018-01-12 广州酷狗计算机科技有限公司 Back end interface analogy method, equipment and storage medium
CN108540321A (en) * 2018-04-06 2018-09-14 南京数脉动力信息技术有限公司 A kind of Internet service interface data processing method that reliability is high
CN109298861A (en) * 2018-10-19 2019-02-01 中国银行股份有限公司 A kind of method and device automatically generating file according to interface document
CN110262851A (en) * 2019-06-24 2019-09-20 北京搜房科技发展有限公司 Interface allocation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7150037B2 (en) * 2001-03-21 2006-12-12 Intelliden, Inc. Network configuration manager

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
CN105490881A (en) * 2015-12-09 2016-04-13 北京交控科技股份有限公司 Configurable data interface test method and system
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN107577622A (en) * 2017-08-01 2018-01-12 广州酷狗计算机科技有限公司 Back end interface analogy method, equipment and storage medium
CN108540321A (en) * 2018-04-06 2018-09-14 南京数脉动力信息技术有限公司 A kind of Internet service interface data processing method that reliability is high
CN109298861A (en) * 2018-10-19 2019-02-01 中国银行股份有限公司 A kind of method and device automatically generating file according to interface document
CN110262851A (en) * 2019-06-24 2019-09-20 北京搜房科技发展有限公司 Interface allocation method and device

Also Published As

Publication number Publication date
CN111209161A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN108234170B (en) Monitoring method and device for server cluster
JP4215384B2 (en) A technique for referencing fault information representing multiple related faults in a distributed computing environment
CN109361562B (en) Automatic testing method based on associated network equipment access
CN105224458A (en) A kind of database method of testing and system
CN112286806A (en) Automatic testing method and device, storage medium and electronic equipment
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN112100078B (en) Method, device and equipment for generating interface test case
CN112187933B (en) Method and system for monitoring services in multi-architecture cloud platform
CN111399828A (en) Model-driven logic device modeling method and terminal
CN113672456A (en) Modular self-monitoring method, system, terminal and storage medium of application platform
CN113609119A (en) Data account checking and repairing method and device, storage medium and electronic equipment
CN111045879B (en) Method, device and storage medium for generating pressure test report
US6597666B1 (en) Method, editor, computer, control module, and storage means for editing configuration data for telecommunications systems
CN111209161B (en) Method and system for automatically generating configuration file based on interface monitoring
CN111158995B (en) Method and system for realizing cross-system log tracking query based on skywalk and ELK platform
CN111124828B (en) Data processing method, device, equipment and storage medium
CN111737431A (en) Equipment exception processing method and device, storage medium and electronic device
CN110347409B (en) Automatic control method, client and server
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN111966394A (en) ETL-based data analysis method, device, equipment and storage medium
CN111030863A (en) Node topology information determination method, device, equipment and storage medium
CN114448851B (en) Automatic data testing method and system
KR102145403B1 (en) Method for application monitoring in smart devices by big data analysis of excption log
CN110489439B (en) Parameter processing method and power terminal

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
GR01 Patent grant
GR01 Patent grant