CN114048097A - Interface monitoring method and device, computing equipment and medium - Google Patents

Interface monitoring method and device, computing equipment and medium Download PDF

Info

Publication number
CN114048097A
CN114048097A CN202111345568.3A CN202111345568A CN114048097A CN 114048097 A CN114048097 A CN 114048097A CN 202111345568 A CN202111345568 A CN 202111345568A CN 114048097 A CN114048097 A CN 114048097A
Authority
CN
China
Prior art keywords
information
monitoring
feature
data
verification information
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
CN202111345568.3A
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.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music 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 Hangzhou Netease Cloud Music Technology Co Ltd filed Critical Hangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202111345568.3A priority Critical patent/CN114048097A/en
Publication of CN114048097A publication Critical patent/CN114048097A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides an interface monitoring method, an interface monitoring device, computing equipment and a medium. The interface monitoring method comprises the following steps: collecting monitoring data of a target application program interface requested to be called; extracting characteristic information of the monitoring data; responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating new verification information from the characteristic information according to a verification information generation rule; and adding the newly added verification information into the monitoring configuration information base. The scheme of the embodiment of the disclosure can improve the monitoring accuracy and monitoring efficiency of the application program interface.

Description

Interface monitoring method and device, computing equipment and medium
Technical Field
The embodiments of the present disclosure relate to the field of communications technologies, and in particular, to an interface monitoring method, an interface monitoring apparatus, a computing device, and a computer-readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The client can simply and conveniently perform data information interaction with the server through an Application Programming Interface (API), and access Application services, computing services and the like provided by the server. Taking music software as an example, the functions of the music software can be realized by calling a Web API (Web application program interface) provided by a cloud server and combining with local control logic. When problems occur in these APIs, failures and abnormalities may occur in the client, so monitoring performance such as stability and effectiveness of the APIs is very important.
However, in the existing API monitoring scheme, monitoring configuration information such as APIs to be monitored, monitored fields, and exception judgment logic of each API needs to be clarified before monitoring, and then the monitoring configuration information is issued to a server or a client to implement monitoring. When a new API comes online, monitoring configuration information of the new API needs to be manually added, which affects monitoring efficiency, and particularly, when the number of APIs is large, it is difficult for a person to follow up each API detail change, and situations such as missing configuration or configuration error are likely to occur, which leads to a decrease in accuracy of API monitoring.
For this reason, an improved interface monitoring scheme is highly required to improve the monitoring efficiency and accuracy of the API.
Disclosure of Invention
Embodiments of the present disclosure desirably provide an interface monitoring method, an interface monitoring apparatus, a computing device, and a computer-readable storage medium to improve monitoring efficiency and accuracy of an API.
In a first aspect of the embodiments of the present disclosure, there is provided an interface monitoring method, including:
collecting monitoring data of a target application program interface requested to be called;
extracting characteristic information of the monitoring data;
responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating new verification information from the characteristic information according to a verification information generation rule;
and adding the newly added verification information into the monitoring configuration information base.
In some example embodiments of the present disclosure, the monitoring data is data in a JavaScript object notation JSON format; the extracting the characteristic information of the monitoring data comprises:
and describing the monitoring data by using a JSON mode JSON-Schema to obtain the characteristic information of the monitoring data.
In some example embodiments of the present disclosure, the generating new verification information from the feature information according to a verification information generation rule in response to that verification information matching the feature information is not found in the current monitoring configuration information base includes:
and in response to that the verification feature combination consistent with the feature combination is not found in the current monitoring configuration information base, generating new verification information from the feature information according to a verification information generation rule.
In some example embodiments of the present disclosure, the generating new verification information from the feature information according to a verification information generation rule in response to that verification information matching the feature information is not found in the current monitoring configuration information base is a single data feature item includes:
and responding to the condition that the current monitoring configuration information base does not have the verification characteristics which are the same as the single data characteristic item, and generating the characteristic information into newly added verification information according to a verification information generation rule.
In some example embodiments of the present disclosure, the new parity information includes at least one of the following: the field identification, field data type, field format and field characteristic value of the field are required to be contained.
In some example embodiments of the present disclosure, the new parity information further includes parity sequence information.
In some example embodiments of the present disclosure, in response to the target application program interface being a new application program interface, the generating, according to a check information generation rule, new check information from the feature information includes:
and taking the characteristic information as new verification information.
In some example embodiments of the present disclosure, the feature information includes at least one data feature item, and the using the feature information as new-addition-verification information includes:
setting a checking sequence for the at least one data characteristic item to obtain checking sequence information;
and the at least one data characteristic item and the verification sequence information are combined in an associated mode to obtain newly added verification information.
In some example embodiments of the present disclosure, the adding the new verification information to the monitoring configuration information base includes:
creating a corresponding relation between the target application program interface and the newly added check information;
and adding the created corresponding relation to the monitoring configuration information base.
In some example embodiments of the present disclosure, in response to the target application program interface being an existing application program interface, the generating, according to a check information generation rule, the new check information from the feature information includes:
acquiring a change mode of the characteristic information changed relative to target verification information, wherein the target verification information is verification information corresponding to the target application program interface in the current monitoring configuration information base;
responding to the change mode to meet the set condition allowed to be used as new verification configuration, and acquiring a target characteristic item in the characteristic information, wherein the target characteristic item comprises at least one of a target field identifier, a target field data type, a target field format and a target field characteristic value;
and performing correlation combination on the target characteristic items to obtain newly added check information.
In some example embodiments of the present disclosure, the obtaining new verification information by associating and combining the target feature items includes:
setting a checking sequence for the target characteristic item to obtain checking sequence information;
and combining the target characteristic item and the verification sequence information in an associated manner to obtain newly added verification information.
In some example embodiments of the present disclosure, the interface monitoring method further includes:
and outputting abnormal alarm prompt information in response to the fact that the change mode does not conform to the set condition allowed to be used as the new verification configuration.
In some example embodiments of the present disclosure, the generating, according to the check information generation rule, the new check information by using the feature information includes:
displaying a newly added feature processing interface, wherein the newly added feature processing interface comprises a confirmation control for confirming that the feature information is generated into newly added verification information;
and responding to the confirmation operation facing the confirmation control, and taking the characteristic information as newly added verification information.
In some example embodiments of the present disclosure, the taking the feature information as new-added verification information in response to the confirmation operation facing the confirmation control includes:
responding to the confirmation operation facing the confirmation control, and acquiring a target characteristic item from the characteristic information, wherein the target characteristic item comprises at least one of a target field identifier, a target field data type, a target field format and a target field characteristic value;
and performing correlation combination on the target characteristic items to obtain newly added check information.
In some example embodiments of the present disclosure, the new feature processing interface further includes a modification control for modifying the feature information; the interface monitoring method further comprises the following steps:
responding to the modification operation facing the modification control, and modifying the data feature item in the feature information to obtain modified feature information;
and taking the modified characteristic information as new verification information.
In some example embodiments of the present disclosure, in response to that no verification information matching the feature information is found in the current monitoring configuration information base, the interface monitoring method further includes:
and outputting the newly added feature prompt information.
In some example embodiments of the present disclosure, the adding the new verification information to the monitoring configuration information base includes:
displaying a monitoring configuration information management interface, wherein the monitoring configuration information management interface comprises an adding control of the newly added verification information;
and responding to the adding operation facing the adding control, and adding the newly added verification information into the monitoring configuration information base.
In a second aspect of embodiments of the present disclosure, there is provided an interface monitoring apparatus, including:
the data acquisition module is used for acquiring monitoring data of a target application program interface requested to be called;
the characteristic extraction module is used for extracting characteristic information of the monitoring data;
the information generation module is used for responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating the characteristic information into newly-added verification information according to a verification information generation rule;
and the information processing module is used for adding the newly added verification information into the monitoring configuration information base.
In a third aspect of embodiments of the present disclosure, there is provided a computing device comprising: a processor and a memory, the memory storing executable instructions, the processor being configured to invoke the memory-stored executable instructions to perform the method of any of the first aspects described above.
In a fourth aspect of embodiments of the present disclosure, there is provided a medium having stored thereon a program which, when executed by a processor, implements the method as described in any one of the above first aspects.
According to the technical scheme of the embodiment of the disclosure, on one hand, the characteristic change of the application program interface can be automatically identified, and new verification information is generated based on the characteristic change, so that the problems that omission is easy to occur when the application program interface is manually followed up, and errors are easy to occur when the verification information is manually configured are avoided, and the monitoring accuracy of the application program interface is improved; on the other hand, when a new application program interface is online, new verification information can be automatically generated and added into the monitoring configuration information base, and compared with a method that verification information must be manually configured and added, the monitoring efficiency of the application program interface is obviously improved; moreover, the characteristic change of the same application program interface at different time can be automatically detected, and stable verification information can be generalized for the application program interface based on the characteristic change.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 schematically illustrates an application scenario diagram of an interface monitoring method according to some example embodiments of the present disclosure;
FIG. 2 schematically illustrates a system deployment diagram of an application scenario, according to some example embodiments of the present disclosure;
fig. 3 schematically illustrates another system deployment scenario in accordance with some example embodiments of the present disclosure;
fig. 4 schematically illustrates a flow chart of an interface monitoring method according to some example embodiments of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of verifying characteristic information of monitoring data from a monitoring configuration information base, according to some example embodiments of the present disclosure;
fig. 6 schematically illustrates a flowchart of a method for generating new verification information from feature information of monitoring data according to a verification information generation rule, according to some example embodiments of the present disclosure;
FIG. 7 schematically illustrates a schematic diagram of generating new parity information from feature information of monitored data according to parity information generation rules in the presence of multiple modes of the same application program interface, according to some example embodiments of the present disclosure;
fig. 8 schematically illustrates a method flow of generating new verification information from feature information according to a verification information generation rule, according to some example embodiments of the present disclosure;
fig. 9 schematically illustrates a schematic diagram of a computer-readable storage medium, according to some example embodiments of the present disclosure;
FIG. 10 schematically illustrates a block diagram of an interface monitoring apparatus according to some embodiments of the present disclosure;
FIG. 11 schematically illustrates a block diagram of an electronic device, in accordance with some embodiments of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present disclosure will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to an embodiment of the disclosure, an interface monitoring method, medium, device and computing equipment are provided.
In this context, it is to be understood that the terms referred to:
the JSON (JavaScript Object Notation), which is a lightweight data exchange format, stores and represents data in a text format completely independent of a programming language, and has the advantages of easy reading and processing because its content is composed of attributes and values.
The JSON-schema (JSON schema) is a text format used for describing a JSON data structure, and can be used for verifying the JSON data format and can also be expressed by the JSON format.
The server may refer to a server and a program running on the server and providing an application program interface service for the client. This document may refer to a server in a Web application architecture and a program running on the server that provides application program interface services for clients.
And the client corresponds to the server and provides a program of local service for the client, and the program can be a visual program or a command line program for interaction of a user.
The interface monitoring refers to monitoring the performances of stability, effectiveness and the like of an application program interface. The application program interface may be, for example, a Web API.
The Web API, in a Web application architecture, is used to implement a capability of communicating between a client and a server, and may be implemented based on HTTP (Hyper Text Transfer Protocol). The request data and the return result of the Web API may be represented in JSON format.
Moreover, any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.
Summary of The Invention
In the existing interface stability monitoring scheme, for example, for a Web API, two modes of server monitoring and client monitoring are mainly included.
For the server monitoring mode, the monitoring logic code can be configured at the server. When a Web API call request of a client is received, before the Web API call request is returned to the client to call data, whether the Web API call request has various conditions of data request ineligibility, insufficient authority of a requester, overtime service operation and the like or not is detected, whether the call request is normal or not is judged, and a detection result is recorded into a log.
For the client monitoring mode, the logic code for monitoring can be configured at the client. When a client side initiates a Web API call request, whether the Web API service is abnormal or not is judged according to the result of the call request. For example, it may be determined whether a corresponding HTTP Status Code (HTTP Status Code) is normal, and if the HTTP Status Code is 40X or 50X, it indicates that the Web API returns an exception; if the HTTP status code is normal, a specified field may be further detected according to an agreement, for example, the specified field represents information of "request exception this time", which indicates that the Web API call request is abnormal. When the abnormity is detected, the client can record the abnormity and report the abnormity to the corresponding log service in batch immediately or periodically.
The inventors have found that the above monitoring scheme requires the following work to be done before monitoring becomes effective:
(1) defining a list of application program interfaces to be monitored, and issuing the list to a server or a client;
(2) the method comprises the steps of determining the specific field configuration of an application program interface to be monitored, and issuing the specific field configuration to a server side or a client side;
(3) and determining the abnormal judgment logic of each application program interface, and issuing or hard-coding the judgment logic to a server or a client.
Therefore, the existing interface monitoring scheme needs to collect the application program interface to be monitored and the field to be monitored in advance, and needs a specialist to maintain for a long time, and for the Web API which has a large number of application program interfaces and needs to be cooperatively maintained by multiple teams, the existing interface monitoring scheme is difficult to follow the detail change of the application program interface every time, and the situations of missing configuration or configuration errors are easy to occur. Moreover, when a new application program interface is online, monitoring configuration needs to be performed according to the new application program interface and configured monitoring items need to be issued, the monitoring configuration of the application program interface is implemented manually, the configuration efficiency is low, and errors are prone to occur.
Based on the above, the basic idea of the present disclosure is: providing an interface monitoring method, an interface monitoring device, computing equipment and a medium, and acquiring monitoring data of a target application program interface requested to be called; extracting characteristic information of the monitoring data; responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating new verification information from the characteristic information according to a verification information generation rule; and adding the newly added verification information into the monitoring configuration information base. On one hand, the method can automatically identify the characteristic change of the application program interface and generate new verification information based on the characteristic change, thereby avoiding the problems that omission is easy to occur when the application program interface is manually followed up, and errors are easy to occur when the verification information is manually configured, and improving the monitoring accuracy of the application program interface; on the other hand, when a new application program interface is online, new verification information can be automatically generated and added into the monitoring configuration information base, and compared with a method that verification information must be manually configured and added, the monitoring efficiency of the application program interface is obviously improved; moreover, the characteristic change of the same application program interface at different time can be automatically detected, and stable verification information can be generalized for the application program interface based on the characteristic change.
Having described the general principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
Application scene overview
It should be noted that the following application scenarios are merely illustrated to facilitate an understanding of the spirit and principles of the present disclosure, and embodiments of the present disclosure are not limited in this respect. Rather, embodiments of the present disclosure may be applied to any scenario where applicable.
For example, the technical solution of the embodiment of the present disclosure may be applied to a scenario for monitoring performance such as stability and validity of an application program interface. For example, in a Web application architecture, taking a call Web API as an example, referring to fig. 1, a schematic diagram of an application scenario of the interface monitoring method according to the embodiment of the present disclosure is schematically shown, where the application scenario may include at least one client 11 and a server 12, and the client 11 and the server 12 communicate with each other through a network 13. Various applications, such as music applications, video applications, etc., may be run on the client 11. Taking the music application program running on the client 11 as an example, when running, it will call the Web API provided by the server 12, and implement the function of the music application program by combining with its own logic code. According to the interface monitoring scheme provided by the embodiment of the present disclosure, when a music application program running on a client 11 requests to call a Web API provided by a server 12, monitoring data of the Web API requested to be called is acquired, then feature information of the monitoring data is extracted, in response to that verification information matching the feature information is not found in a current monitoring configuration information base, new verification information is generated from the feature information according to a verification information generation rule, and then the new verification information is added to the monitoring configuration information base.
It should be noted that the client 11 may be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer, or a vehicle-mounted terminal. The server 12 may be a physical server including an independent host, or a virtual server carried by a host cluster, or a cloud server. The Network 13 may be a wired Network or a wireless Network, for example, the Network 13 may be a PSTN (Public Switched Telephone Network) or the internet.
Illustratively, based on the application scenario shown in fig. 1, referring to fig. 2, a system deployment diagram of the application scenario according to an exemplary embodiment of the present disclosure is schematically shown, wherein a monitoring rule system 231 and a monitoring configuration information base 232 may be deployed on a dedicated server 23, the monitoring rule system 231 may be provided for an administrator to perform a monitoring management operation, and meanwhile, a monitoring system 211 may be deployed on a client 21, and the monitoring system 211 may implement collection of monitoring data and extraction of feature information. When a music application program running on the client 21 requests to call a Web API provided by the server 22, the client 21 acquires corresponding monitoring data through the monitoring system 211 and extracts feature information of the monitoring data, and then reports the feature information to the monitoring rule system 231, and when the monitoring rule system 231 determines that verification information matching the feature information is not found in the current monitoring configuration information base, the monitoring rule system 231 generates new verification information from the feature information according to a verification information generation rule, and then adds the new verification information to the monitoring configuration information base 232. In practical applications, the server 23 may also be a server of the server 22, and the monitoring rule system 231 and the monitoring configuration information base 232 may be directly deployed on the server 22.
Illustratively, based on the application scenario shown in fig. 1, referring to fig. 3, another system deployment diagram of the application scenario according to an exemplary embodiment of the present disclosure is schematically shown, wherein the monitoring configuration information base 322 and the monitoring system 323 may be deployed on the server 32, and the monitoring rule system 331 may be deployed on the administrator server 33. In practical applications, the monitoring rule system 331 may also be directly deployed on the server 32. The monitoring system 323 can collect monitoring data and extract and process characteristic information, and the monitoring rule system 331 can be used for an administrator to perform monitoring management operations. When a music application program running on the client 31 requests to call a Web API provided by the server 32, the server 32 may collect corresponding monitoring data and extract feature information of the monitoring data through the monitoring system 323, and when it is determined that verification information matching the feature information is not found in the current monitoring configuration information base, report the exception and the feature information to the monitoring rule system 331, the monitoring rule system 331 may automatically generate new verification information from the feature information and issue the new verification information to the monitoring system 323, and the monitoring system 323 adds the new verification information to the monitoring configuration information base 322. The monitoring rule system 331 may also send an alarm to the administrator according to the reported abnormality, and the alarm is processed by the administrator, for example, whether the alarm is abnormal or new service logic, whether the feature information is generated as new verification information, whether the feature information is modified, and the like are confirmed.
Exemplary method
In the following, in conjunction with the above application scenario, an interface monitoring method according to an exemplary embodiment of the present disclosure is described with reference to fig. 4. The interface monitoring method may include steps S410 to S440. The execution main body of the interface monitoring method provided by the embodiment of the disclosure may be a device with a computing processing function, such as a mobile phone, a computer, a server, and the like.
Referring to fig. 4, in step S410, monitoring data of a target application program interface requested to be called is collected.
In an example embodiment, the monitoring data may be call request data sent to the server when the client requests the call server to provide the target application program interface, or may be data returned to the client by the target application program interface of the server for the call request.
In step S420, feature information of the monitoring data is extracted.
The characteristic information of the monitoring data can describe the characteristics of the data from multiple dimensions, for example, the characteristics of the monitoring data can be described from at least one dimension, such as a protocol format, whether the protocol format is legal or not, whether a field concerned exists or not, whether the field is legal or not, whether the format adopted by the field is legal or not, and the like. The protocol format may include, for example, an HTTP protocol, a WebSocket protocol, or a Tunnel protocol. Taking the HTTP protocol as an example, it can be considered whether the monitoring data is legal in the HTTP protocol format, whether the request header objects are legal, what format the requester body adopts, what the request verb is, and the like.
It should be noted that the examined dimensions and contents listed herein are only for illustration and are not used to limit the disclosure, and any examined dimensions can be used in practical applications.
In an example embodiment of the present disclosure, the monitoring data may be JSON formatted data. Correspondingly, the JSON-Schema can be used for describing the monitoring data to obtain the characteristic information of the monitoring data.
For example, taking a data packet in JSON format returned when a Web API is called as an example, the data packet may be described as follows:
Figure BDA0003353961310000111
this is a Track object returned by the called Web API, which may look at one or more of the following characteristics of the packet, for example: what the trackId means, whether the trackName field is required, whether the artistAge field can be 0, whether tags must be an array, whether all values in an array must be strings, etc.
According to the bases of the investigation, the data packet can be described by using a JSON-Schema, so as to obtain a standard JSON-Schema object, and the JSON-Schema object may include the following contents:
Figure BDA0003353961310000121
illustratively, the JSON-Schema object may characterize the following features of the above-mentioned Track object returned by the Web API:
(ii) the trackId must be of integer type;
② the trackName must be string type;
③ two fields of trackId and trackName are needed in the data;
the tags field must be an array, the element type in the array must be string type, and each element in the array must be unique.
The data characteristic item (c) is the characteristic information of the extracted monitoring data.
It should be noted that the content and the number of the data feature items are only used for illustration and are not used for limiting the disclosure, and it is understood that the extracted feature information of the monitoring data may be a single data feature item or a feature combination of a plurality of data feature items.
In step S430, in response to that the verification information matching the feature information is not found in the current monitoring configuration information base, the feature information is generated into new verification information according to the verification information generation rule.
In an example embodiment, in response to that the verification information matching the feature information is not found in the current monitoring configuration information base, new feature prompt information may be further output to prompt an administrator that a new interface data feature appears.
The monitoring configuration information base can store the corresponding relation between the application program interface and the verification information, and different application program interfaces correspond to different verification information. The verification information may include contents that the application program interface needs to verify. Illustratively, the check information may include at least one of a field identifier, a field data type, a field format, and a field characteristic value of the field to be included. Illustratively, the check information may include, for example, a combination of one or more of the above-mentioned data feature items (c) and (c).
For example, assuming that N (N is a positive integer) application program interfaces exist in the monitoring configuration information base, and Xi represents the number of check items in the check information of the ith application program interface, the number SUM of the check items stored in the monitoring configuration information base is
Figure BDA0003353961310000131
The monitoring configuration information base can be deployed at the client, and the client checks the extracted characteristic information of the monitoring data according to the checking information in the monitoring configuration information base. The monitoring configuration information base can also be deployed at a server side, and the server side verifies the extracted characteristic information of the monitoring data according to the verification information in the monitoring configuration information base. The monitoring principle is the same whether the monitoring is carried out by a server or a client, namely, the characteristic information of the monitoring data is confirmed item by item according to the check item in the existing check information in the monitoring configuration information base for the application program interface requested to be called, whether the monitoring data has abnormal conditions such as data error, service abnormity, data redundancy, data loss and the like can be judged through checking, and the process has no invasion to the service code.
For example, referring to fig. 5, a schematic diagram of checking characteristic information of monitoring data according to a monitoring configuration information base according to some exemplary embodiments of the present disclosure is schematically shown, and it is assumed that application program interfaces A, B and C and corresponding checking information thereof are stored in the monitoring configuration information base 53, and the corresponding relationships are corresponding relationship 531, corresponding relationship 532 and corresponding relationship 533, respectively. When the client 51 calls the application program interface a to the server 52, the verification information in the correspondence 531 may be used to verify the characteristic information of the monitoring data of the application program interface a; correspondingly, for the application program interface B, the verification information in the corresponding relation 532 may be used for verification, and for the application program interface C, the verification information in the corresponding relation 533 may be used for verification.
In an example embodiment of the present disclosure, the feature information of the monitoring data may be a feature combination of a plurality of data feature items, after the feature information of the monitoring data is extracted, a verification feature combination consistent with the feature combination may be searched in the current monitoring configuration information base, and if the verification feature combination is not found, it indicates that a new data feature occurs in the monitoring data, and the new data feature may occur because a target application program interface requested to be called is a new application program interface, or may also occur because an application program interface already existing in the system has a new data feature, and the feature information may be further generated into new verification information according to a verification information generation rule. The generated new verification information may include at least one of the following: the field identification, field data type, field format and field characteristic value of the field are required to be contained.
In an embodiment, the generated new verification information may further include verification sequence information, where the verification sequence information may indicate a verification sequence of each verification item when the new verification information is used as the verification information in the monitoring configuration information base. For example, the newly added check information includes a field data type and a field format, and the check sequence information indicates that the check sequence is "field format — field data type", so that when the newly added check information is used as the check information in the monitoring configuration information base, the field format is checked first, and then the field data type is checked.
In an example embodiment of the present disclosure, the feature information of the monitoring data may also be a single data feature item, after the feature information of the monitoring data is extracted, it may be determined whether a verification feature identical to the single data feature item exists in the current monitoring configuration information base, and if the verification feature does not exist, it indicates that the single data feature item is a newly appeared feature, and the new feature may appear because the target application program interface requested to be called is a new application program interface, or may also because a new data feature appears in an application program interface already existing in the system, new verification information may be further generated from the feature information of the monitoring data according to a verification information generation rule.
Illustratively, in response to that the verification information matched with the extracted feature information is not found in the current monitoring configuration information base, the feature information may be recorded for later use, the feature information may be automatically changed into newly added verification information according to a set processing strategy, or the feature information may be marked as information to be processed, the feature information is confirmed item by a manager, and the manager determines whether to generate the newly added verification information.
In the embodiment of the present disclosure, the target application program interface requested to be called may be a newly added application program interface, or may be a known application program interface in the system.
In an example embodiment, in response to the target application program interface called by the request being the new application program interface, the feature information of the monitoring data may be directly used as the new verification information. For example, the extracted feature information of the monitoring data is the data feature items (i) and (iv) in the step S420, and the data feature items are combined to describe a new data feature, and if the new data feature is considered to be caused by the new application program interface, the data feature items can be combined to directly serve as the new verification information.
For example, the feature information of the monitoring data may include at least one data feature item, and a verification order may also be set for the at least one data feature item to obtain verification order information, and then the at least one data feature item and the obtained verification order information are associated and combined to obtain new verification information.
In an exemplary embodiment, referring to fig. 6, in response to that the target application program interface is an existing application program interface, generating new verification information according to the verification information generation rule and the feature information of the monitoring data may include steps S610 to S640 as follows:
in step S610, a change mode in which the feature information is changed with respect to the target verification information is obtained, where the target verification information is verification information corresponding to a target application program interface in the current monitoring configuration information base.
The monitoring configuration information base may store verification information corresponding to each of known application program interfaces, for example, as shown in fig. 5, a corresponding relationship between an application program interface a and the verification information thereof is a corresponding relationship 531, and when a target application program interface requested to be called is the application program interface a, the verification information in the corresponding relationship 531 is target verification information.
For example, in response to that no verification information matching the extracted feature information is found in the current monitoring configuration information base, the feature information is compared with the target verification information, and a change manner of the feature information is determined, where the change manner may include at least one of the following: field data type changes, field format changes, field feature value changes, and the like.
The field data type change may be, for example, a change from one of enumerated type enum, integer type integer, floating point type float, boolean type borolean, string type string, object type object, array type array, and the like to another. The field characteristic value change may be, for example: the integer type is also the integer type, the limitation of the maximum value and the minimum value originally exists, and characteristic values smaller than the minimum value or larger than the maximum value appear; the element type is also array type, the element type is originally limited to be integer, but string type elements appear; the enum type has a situation of breaking through the original enumerated value, and the like.
For example, in different usage scenarios, multiple data structures may appear in the same application program interface, resulting in a generalization of multiple JSON schemas, which may be referred to as multimodal in the embodiments of the present disclosure. For example, after acquiring a Track object returned by the same Web API and performing JSON-Schema description on the Track object, the following result 1 and result 2 may appear in a tag field in the Track object:
results 1: { "tags" [ "Past Present and Future", "Janet Jackson" ] };
results 2: { "tags": "Past Present and Future" }.
As shown in the results 1 and 2, the tags field of the Track object may be string type, or may be an array in which all elements are string type, that is, a change in field data type occurs.
In practical application, when the feature information is changed, it means that an application program interface service is abnormal or a normal business logic is newly added to the application program interface service. These changes can be handled according to a set policy. For example, some new data features may be directly added to the monitoring configuration information base as new verification information, for example, data in which a field is originally string but the field value is integer occurs, and this change is considered as new service logic that occurs, and may be directly added to the monitoring configuration information base as new verification information. For another example, some new data features are considered as abnormal features, and an alarm is required, for example, a certain field is originally of an integer type, the feature value is limited to be 1-100, but feature data with a value of 101 appears, and when the change is considered as an abnormal condition, an alarm prompt needs to be given.
For example, in one embodiment, the feature information that is changed may be processed in steps S620 to S640 based on the obtained change mode. In another embodiment, the administrator may also be notified when the feature information of the monitoring data is detected to be new feature information, and the administrator determines whether to generate the feature information as the new verification information, and an exemplary implementation method of the method may be as shown in fig. 8.
In step S620, in response to the change pattern matching the setting condition allowed as the new verification configuration, the target feature item in the feature information is acquired.
The target characteristic item may include at least one of a target field identification, a target field data type, a target field format, and a target field characteristic value. For example, one, more or all of the data feature items may be selected from the data feature items in the feature information as the target feature items.
In an exemplary embodiment, for example, if the difference represented by the change mode is negligible, for example, such difference does not affect the secure and legal invocation of the target application program interface, the change mode may be considered to be in accordance with the setting condition allowed as the new verification configuration; correspondingly, if the difference represented by the change mode is not negligible, for example, the difference may affect the security and legal call of the target application program interface, or may represent a new service logic of the target application program interface, the change mode may be considered not to be compliant with the setting condition allowed as the new verification configuration, and step S640 may be executed.
It should be noted that the method for determining whether the modification manner is allowed to be used as the setting condition of the new verification configuration in the present exemplary embodiment is only an example, and is not intended to limit the present disclosure, and in practical applications, adaptive setting may be performed as needed without departing from the basic idea of the present disclosure.
In step S630, the target feature items are combined in an associated manner to obtain new verification information.
For example, the obtained target features include a target field identifier, a target field data type, and a target field format, and these three feature items may be associated and combined into a whole to obtain the newly added verification information. For example, an identity may also be added to the new verification information.
In an exemplary embodiment, a check sequence may also be set for the obtained target feature item to obtain check sequence information, and then the target feature item and the check sequence information are associated and combined to obtain new check information.
In step S640, in response to the change pattern not conforming to the setting condition permitted as the new verification configuration, an abnormality warning message is output.
When the change mode does not meet the set condition allowed to be used as new verification configuration, if the new characteristic information of the monitoring data needs to be processed, the characteristic information can be recorded, and abnormal alarm prompt information is sent to an administrator, for example, the output prompt information "new data interface characteristic appears", and an alarm prompt tone can also be output at the same time. After receiving the abnormal alarm prompt message, the administrator needs to manually confirm whether the new characteristic information is caused by the service abnormality of the target application program interface or because new business logic appears. If it is determined that a new service logic is present, the feature information may be optionally generated as new verification information, and after the determination, step S440 is performed.
For example, fig. 7 schematically illustrates a schematic diagram of generating new verification information from feature information of monitoring data according to a verification information generation rule when multiple modes occur in the same application program interface according to an exemplary embodiment of the present disclosure, and as shown in fig. 7, the monitoring configuration information base 73 includes verification information F1 and F2, after extracting the feature information of the monitoring data, matches and compares the feature information with the verification information F1 and F2, and if the feature information is different from the verification information F1 and F2, it is considered that a new data interface feature occurs, and may record the feature information. Then, acquiring a change mode of the feature information relative to changes of F1 and F2 respectively, and according to a judgment method and a corresponding processing strategy of whether the change mode meets the set conditions allowed to be used as new verification configuration, if the new data interface features are considered to be acceptable, giving no alarm; if such a new data interface feature is deemed to need to be processed, an alert may be issued to the administrator that the new data interface feature is present. The manager needs to confirm whether an exception occurs or a new business logic occurs. If the service logic is considered to be new, the administrator may choose to generate new verification information from the feature information and add the new verification information to the monitoring configuration information base 73. If the data interface characteristics are monitored next time, no alarm is sent out.
With the repeated appearance of multiple modes, more and more verification information is accumulated in the monitoring configuration information base 73, and monitoring assets with certain scale and business significance can be formed. For the same application program interface, diversified data structures can be automatically generalized into consistent application program interface description, automatic convergence is carried out to stable application program interface monitoring configuration, and monitoring efficiency and accuracy of the application program interface are improved.
In an exemplary embodiment of the disclosure, fig. 8 schematically illustrates a flow of a method for generating new verification information from feature information according to a verification information generation rule, where the method may be implemented by a manager to determine whether to generate new verification information from extracted feature information. Referring to fig. 8, the method may include steps S810 to S820 as follows:
in step S810, a new feature processing interface is displayed, where the new feature processing interface includes a confirmation control for confirming that the feature information is generated as new verification information.
In step S820, in response to the confirmation operation facing the confirmation control, the feature information is used as the new verification information.
Illustratively, in response to the confirmation operation facing the confirmation control, a target characteristic item is obtained from the characteristic information, and the target characteristic item may include at least one of a target field identification, a target field data type, a target field format and a target field characteristic value. For example, the data feature items included in the feature information may be displayed to the manager, and the manager may select one, a plurality of, or all of the data feature items as the target feature items. For another example, whether the feature information is generated as the prompt information of the newly added verification information or not may be displayed in the newly added feature processing interface, a corresponding confirmation button is set, and after triggering the confirmation button, the manager automatically obtains the target feature item from the feature information according to a preset rule, where the preset rule may include at least one of the number of the selected data feature items, the data feature item to be selected, the selection priority of the data feature item, and the like.
And after the target characteristic item is obtained, performing association combination on the target characteristic item to obtain newly added check information. In one embodiment, the target feature items may be aggregated into a feature item set, so as to obtain new verification information. In another embodiment, a check sequence may be further set for the data feature item in the target feature item to obtain check sequence information, and the check sequence information and the target feature item may be combined in an associated manner to obtain new check information.
In an example embodiment of the present disclosure, based on the method in the embodiment corresponding to fig. 8, the newly added feature processing interface may further include a modification control for modifying the feature information, and if the feature information needs to be modified, an administrator may execute a modification operation through the modification control. Specifically, the method may include: and responding to the modification operation facing the modification control, modifying the data feature item in the feature information to obtain modified feature information, and taking the modified feature information as newly added verification information.
For example, the data feature items included in the feature information may be displayed to a manager, and if a certain data feature item needs to be modified, for example, a field type is changed or a field feature value is changed, the data feature item may be selected and modified by using a modification control.
In step S440, the new verification information is added to the monitoring configuration information base.
After the newly added check information is generated, the newly added check information is added to the monitoring configuration information base, the feature information of the monitoring data can be additionally checked by using the newly added check information on the basis of the original check information for the subsequent monitoring data of the same application program interface, and when the abnormality is checked, the steps of the interface monitoring method provided by the embodiment of the disclosure can be repeatedly executed, for example, the feature information can be recorded and alarm information can be sent out, and an administrator can judge whether protective measures need to be taken, the abnormality is ignored or the feature information is generated into the newly added check information according to the alarm information.
For example, in an embodiment, adding the new verification information to the monitoring configuration information base may include: establishing a corresponding relation between a target application program interface and newly added check information; and adding the created corresponding relation to a monitoring configuration information base. It can be understood that, if the target application program interface is an existing application program interface, the newly added verification information may be directly added to the verification information set corresponding to the target application program interface in the monitoring configuration information base. Of course, the monitoring configuration information base may also store only the verification information without distinguishing which application program interface belongs to, and correspondingly, the newly added verification information may be directly added to the monitoring configuration information base.
For example, in another embodiment, the administrator may also determine whether to add new verification information to the monitoring configuration information base. Specifically, adding the newly added verification information to the monitoring configuration information base may include: displaying a monitoring configuration information management interface, wherein the monitoring configuration information management interface comprises an adding control for adding new verification information; and responding to the adding operation facing the adding control, and adding the newly added verification information into the monitoring configuration information base.
In the exemplary embodiment of the present disclosure, differences of application program interfaces with different data characteristics may be distinguished according to actual requirements of a service calling a target application program interface, and if the differences are negligible, the same application program interface may be considered, and if the differences are not negligible, a new application program interface may be considered to be generated. Accordingly, it is possible to determine whether the target application program interface requested to be called is the newly added application program interface in this manner.
For example, taking the HTTP protocol as an example, for two requests occurring in two time periods in the actual service, namely two application program interfaces that request calls:
request 1: GET http:// xxx. server. com/api/todo/listoffset 0& limit 10;
request 2: GET http:// xxx. server. com/api/todo/listoffset 10& limit 10.
In request 1 and request 2, the character "? "the appended characters are considered as request parameters, and both requests attempt to obtain information of an entity such as todo (backlog) from the server, and finally return a list of todo. The profile information of the first invocation request (request 1) may be summarized to the monitoring configuration information base.
For request 1, it tries to obtain the 1 st to 10 th data corresponding to the target application program interface, and for request 2, it tries to obtain the 11 th to 20 th data corresponding to the target application program interface. If the difference between them can be considered negligible in real business, then request 2 can be considered to correspond to request 1 and the same application program interface.
Suppose there is a request 3 of "POST http:// xxx. server. com/api/todo/add", the content of the requesting body of the request being "{ title:" work "}". Comparing request 3 with request 1, the following differences exist:
(1) the request verbs differ: request 1 is GET, request 3 is POST;
(2) the URL (Uniform Resource Locator) path of an HTTP request differs: request 1 is "/api/todo/list" and request 3 is "/api/todo/add".
Thus, request 1 and request 3 represent completely different meanings, i.e., request 1 attempts to obtain data for the server and request 3 attempts to modify data for the server. In real-life traffic where the difference is significant and not negligible, request 3 would be considered as the presence of a new application program interface that needs to be archived in the monitoring configuration information base.
Exemplary Medium
Having described the methods of the exemplary embodiments of the present disclosure, the media of the exemplary embodiments of the present disclosure are described next.
In some example embodiments of the present disclosure, various aspects of the present disclosure may also be implemented as a medium having stored thereon program code for implementing steps in an evaluation method of a search algorithm according to various example embodiments of the present disclosure described in the above-mentioned "example method" section of this specification when the program code is executed by a processor of a device.
In some example embodiments of the disclosure, the program code, when executed by a processor of the device, may be for implementing the steps of any of the example embodiment methods described above. For example, the following steps can be implemented: step S410, collecting monitoring data of a target application program interface requested to be called; step S420, extracting characteristic information of the monitoring data; step S430, in response to the fact that the verification information matched with the feature information is not found in the current monitoring configuration information base, generating new verification information from the feature information according to a verification information generation rule; step S440, adding the new verification information to the monitoring configuration information base.
Referring to fig. 9, a program product 900 for implementing the above-described interface monitoring method according to an embodiment of the present disclosure is described, which may employ a portable compact disc rom and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto.
It should be noted that: the above-mentioned medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory, a read only memory, an erasable programmable read only memory, an optical fiber, a portable compact disk read only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a local area network or a wide area network, or may be connected to an external computing device (e.g., over the internet using an internet service provider).
Exemplary devices
Having described the media of the exemplary embodiment of the present disclosure, the interface monitoring apparatus of the exemplary embodiment of the present disclosure is explained next with reference to fig. 10.
Referring to fig. 10, the interface monitoring apparatus 1000 may include: a data acquisition module 1010, a feature extraction module 1020, an information generation module 1030, and an information processing module 1040. The data acquisition module 1010 is configured to acquire monitoring data of a target application program interface requested to be called; the feature extraction module 1020 is configured to extract feature information of the monitoring data; the information generating module 1030 is configured to, in response to that the verification information matched with the feature information is not found in the current monitoring configuration information base, generate new verification information from the feature information according to a verification information generation rule; the information processing module 1040 is configured to add the new verification information to the monitoring configuration information base.
In some example embodiments of the present disclosure, the monitoring data may be JavaScript object notation JSON formatted data; correspondingly, the feature extraction module 1020 may be specifically configured to describe the monitoring data by using a JSON mode JSON-Schema, so as to obtain feature information of the monitoring data.
In some example embodiments of the present disclosure, the feature information of the monitoring data may be a feature combination of a plurality of data feature items, and correspondingly, the information generating module 1030 may be specifically configured to, in response to that no verification feature combination consistent with the feature combination is found in the current monitoring configuration information base, generate new verification information from the feature information according to a verification information generation rule.
In some example embodiments of the present disclosure, the feature information of the monitoring data may be a single data feature item, and correspondingly, the information generating module 1030 may be specifically configured to generate, in response to that no verification feature identical to the single data feature item exists in the current monitoring configuration information base, new verification information from the feature information according to a verification information generation rule.
In some example embodiments of the present disclosure, the new parity information may include at least one of the following: the field identification, field data type, field format and field characteristic value of the field are required to be contained.
In some example embodiments of the present disclosure, the new parity information may further include parity sequence information.
In some example embodiments of the present disclosure, in response to the target application program interface being the new application program interface, the information generating module 1030 may be specifically configured to use the feature information as the new verification information.
In some example embodiments of the present disclosure, the feature information may include at least one data feature item, and the information generating module 1030 may be specifically configured to set a check order for the at least one data feature item, obtain check order information, and associate and combine the at least one data feature item and the check order information to obtain new check information.
In some example embodiments of the present disclosure, the information processing module 1040 may be specifically configured to create a corresponding relationship between the target application program interface and the new verification information, and add the created corresponding relationship to the monitoring configuration information base.
In some example embodiments of the present disclosure, in response to the target application program interface being an existing application program interface, the information generating module 1030 may include a first obtaining unit, a second obtaining unit, and a combining unit. The first acquisition unit is used for acquiring a change mode of the characteristic information changed relative to target verification information, and the target verification information is verification information corresponding to a target application program interface in a current monitoring configuration information base; the second obtaining unit is used for responding to the set condition that the change mode accords with the permission of being used as the new verification configuration, and obtaining a target characteristic item in the characteristic information, wherein the target characteristic item comprises at least one of a target field identifier, a target field data type, a target field format and a target field characteristic value; the combination unit is used for combining the target characteristic items in a correlation manner to obtain newly added verification information.
In some example embodiments of the present disclosure, the combining unit may be specifically configured to set a check sequence for the target feature item, obtain check sequence information, and associate and combine the target feature item and the check sequence information to obtain the new check information.
In some example embodiments of the present disclosure, the information generating module 1030 may further include an output unit, and the output unit may be configured to output an abnormal warning prompt message in response to the change manner not meeting the setting condition allowed as the new verification configuration.
In some example embodiments of the present disclosure, the information generating module 1030 may further include a first interface display unit and a verification information generating unit. The first interface display unit is used for displaying a newly-added feature processing interface, and the newly-added feature processing interface comprises a confirmation control for confirming that the feature information is generated into newly-added verification information; the verification information generating unit may be configured to take the feature information as the new verification information in response to a confirmation operation directed to the confirmation control.
In some example embodiments of the present disclosure, the check information generating unit may be specifically configured to: responding to the confirmation operation facing the confirmation control, and acquiring a target characteristic item from the characteristic information, wherein the target characteristic item comprises at least one of a target field identification, a target field data type, a target field format and a target field characteristic value; and (4) performing correlation combination on the target characteristic items to obtain newly added check information.
In some example embodiments of the present disclosure, the newly added feature processing interface may further include a modification control for modifying the feature information; the information generating module 1030 may further include a modifying module, where the modifying module is configured to modify a data feature item in the feature information in response to a modification operation oriented to the modification control, so as to obtain modified feature information; the verification information generating unit is further specifically configured to use the modified feature information as new verification information.
In some example embodiments of the present disclosure, the interface monitoring apparatus 1000 may further include a feature prompt module, and the feature prompt module may be configured to output new feature prompt information in response to that verification information matching the feature information is not found in the current monitoring configuration information base.
In some example embodiments of the present disclosure, the information processing module 1040 may include a second interface display unit and an information adding unit. The second interface display unit may be configured to display a monitoring configuration information management interface, where the monitoring configuration information management interface may include an addition control for adding new verification information; the information adding unit may be configured to add the newly added verification information to the monitoring configuration information base in response to an adding operation oriented to the adding control.
Exemplary computing device
Having described the methods, media, and apparatus of the exemplary embodiments of the present disclosure, a computing device in accordance with another exemplary embodiment of the present disclosure is described next.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a computing device according to embodiments of the present disclosure may include at least one processor, and at least one memory. Wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps in the interface monitoring method according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above in this specification. For example, the processor may perform the steps as shown in fig. 4.
An electronic device 1100 according to an example embodiment of the disclosure is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 11, electronic device 1100 is embodied in the form of a general purpose computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting different system components (including the memory unit 1120 and the processing unit 1110), and a display unit 1140.
The memory unit 1120 stores therein program code, which can be executed by the processing unit 1110, so that the processing unit 1110 performs the steps according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary method" section of the present specification. For example, processing unit 1110 may perform the method steps shown in fig. 4, 6, or 8, among others.
The storage unit 1120 may include a readable medium in the form of a volatile Memory, such as a RAM (Random Access Memory) 1121 and/or a cache Memory 1122, and may further include a ROM (Read-Only Memory) 1123.
The storage unit 1120 may also include a program/utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1130 may include a data bus, an address bus, and a control bus.
The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboard, pointing device, bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and/or any devices (e.g., router, modem, etc.) that enable the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 1150. The electronic device 1100 also includes a display unit 1140 that is connected to the input/output (I/O) interface 1150 for display. Also, the electronic device 1100 may communicate with one or more networks (e.g., a local area network (FAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 1160. As shown, the network adapter 1160 communicates with the other modules of the electronic device 1100 over the bus 1130. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, RAID (Redundant array of Independent Disks) systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the interface monitoring apparatus are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the present disclosure have been described with reference to several particular embodiments, it is to be understood that the present disclosure is not limited to the particular embodiments disclosed, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. An interface monitoring method, comprising:
collecting monitoring data of a target application program interface requested to be called;
extracting characteristic information of the monitoring data;
responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating new verification information from the characteristic information according to a verification information generation rule;
and adding the newly added verification information into the monitoring configuration information base.
2. The interface monitoring method according to claim 1, wherein the monitoring data is data in JavaScript object notation JSON format; the extracting the characteristic information of the monitoring data comprises:
and describing the monitoring data by using a JSON mode JSON-Schema to obtain the characteristic information of the monitoring data.
3. The interface monitoring method according to claim 1 or 2, wherein the feature information of the monitoring data is a feature combination of a plurality of data feature items, and the generating of the new verification information from the feature information according to the verification information generation rule in response to that verification information matching the feature information is not found in the current monitoring configuration information base includes:
and in response to that the verification feature combination consistent with the feature combination is not found in the current monitoring configuration information base, generating new verification information from the feature information according to a verification information generation rule.
4. The interface monitoring method according to claim 1 or 2, wherein the feature information of the monitoring data is a single data feature item, and the generating, in response to that the verification information matching the feature information is not found in the current monitoring configuration information base, the feature information into new verification information according to a verification information generation rule includes:
and responding to the condition that the current monitoring configuration information base does not have the verification characteristics which are the same as the single data characteristic item, and generating the characteristic information into newly added verification information according to a verification information generation rule.
5. The interface monitoring method according to claim 1, wherein the new parity information includes at least one of: the field identification, field data type, field format and field characteristic value of the field are required to be contained.
6. The interface monitoring method according to claim 5, wherein the new verification information further includes verification sequence information.
7. The interface monitoring method of claim 1, wherein, in response to the target application program interface being a new application program interface, the generating new verification information from the feature information according to the verification information generation rule comprises:
and taking the characteristic information as new verification information.
8. An interface monitoring device, comprising:
the data acquisition module is used for acquiring monitoring data of a target application program interface requested to be called;
the characteristic extraction module is used for extracting characteristic information of the monitoring data;
the information generation module is used for responding to the situation that the verification information matched with the characteristic information is not found in the current monitoring configuration information base, and generating the characteristic information into newly-added verification information according to a verification information generation rule;
and the information processing module is used for adding the newly added verification information into the monitoring configuration information base.
9. A computing device, comprising: a processor and a memory, the memory storing executable instructions, the processor to invoke the memory-stored executable instructions to perform the method of any of claims 1 to 7.
10. A medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202111345568.3A 2021-11-15 2021-11-15 Interface monitoring method and device, computing equipment and medium Pending CN114048097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111345568.3A CN114048097A (en) 2021-11-15 2021-11-15 Interface monitoring method and device, computing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111345568.3A CN114048097A (en) 2021-11-15 2021-11-15 Interface monitoring method and device, computing equipment and medium

Publications (1)

Publication Number Publication Date
CN114048097A true CN114048097A (en) 2022-02-15

Family

ID=80208843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111345568.3A Pending CN114048097A (en) 2021-11-15 2021-11-15 Interface monitoring method and device, computing equipment and medium

Country Status (1)

Country Link
CN (1) CN114048097A (en)

Similar Documents

Publication Publication Date Title
US10560465B2 (en) Real time anomaly detection for data streams
US20200389495A1 (en) Secure policy-controlled processing and auditing on regulated data sets
US9876813B2 (en) System and method for web-based log analysis
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
CN110324416B (en) Download path tracking method, device, server, terminal and medium
CN111885007B (en) Information tracing method, device, system and storage medium
EP4064097A1 (en) Blockchain-based host security monitoring method and apparatus, medium and electronic device
WO2021155683A1 (en) Log printing method and apparatus, electronic device, and storage medium
CN114491518A (en) Unauthorized access detection method, device, system and medium
CN115329381A (en) Sensitive data-based analysis and early warning method and device, computer equipment and medium
CN112887289A (en) Network data processing method and device, computer equipment and storage medium
CN114640508B (en) Network anti-fraud method and device
US7653742B1 (en) Defining and detecting network application business activities
CN114048097A (en) Interface monitoring method and device, computing equipment and medium
CN113778709B (en) Interface calling method, device, server and storage medium
CN112948733B (en) Interface maintenance method, device, computing equipment and medium
CN112416875B (en) Log management method, device, computer equipment and storage medium
CN112003819B (en) Method, device, equipment and computer storage medium for identifying crawler
KR20090058271A (en) Integration security system and method by tracking web-database attack detection log data
CN114760349A (en) Service access method and device, system, equipment and medium
CN111858782A (en) Database construction method, device, medium and equipment based on information security
CN110995658A (en) Gateway protection method, device, computer equipment and storage medium
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment
CN115174367B (en) Service system boundary determining method and device, electronic equipment and storage medium
CN117034210B (en) Event image generation method and device, storage medium and electronic equipment

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