Interface processing method and device, storage medium and processor
A technology of interface processing and storage media, which is applied in the field of data processing, can solve problems such as easy avalanche effects, and achieve the effect of avoiding avalanche effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] The embodiment of the present invention provides an interface processing method.
[0032] figure 1 It is a flowchart of an interface processing method according to an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:
[0033] Step S102, collecting monitoring data obtained by monitoring the target interface.
[0034] In the technical solution provided in the above step S102 of the present application, the monitoring data obtained by monitoring the target interface is collected.
[0035] In production, there are many kinds of monitoring data, such as host temperature, processor (CPU) operating data, memory usage, disk space size, network IO throughput, etc. In this embodiment, the target interface is also a service interface. For example, the target interface is an Http interface, a DUBBO interface, etc., and the target interface is monitored to obtain monitoring data. The monitoring data can include different ind...
Embodiment 2
[0070] The technical solution of the present invention will be described below in conjunction with preferred embodiments, specifically taking the target interface as the service interface for illustration
[0071] In this embodiment, at least the following monitoring data are collected for the service interface:
[0072] (1) Interface time-consuming, that is, the time of interface request;
[0073] (2) The number of requests, that is, the total number of requests made to the target interface;
[0074] (3) The number of exceptions, that is, the number of times when an exception occurs when a request is made to the target interface;
[0075] (4) Error code, that is, interface error code.
[0076] The above monitoring data is pushed to the graphite database for storage, and the monitoring data is taken as a time period of one minute. For these monitoring data, aggregate functions such as summation or average value are used to output graphs, and alarms are added.
[0077] fig...
Embodiment 3
[0112] The embodiment of the present invention also provides a flowchart of an interface processing device. It should be noted that the interface processing apparatus in this embodiment can be used to execute the interface processing method in the embodiment of the present invention.
[0113] Figure 7 is a schematic diagram of an interface processing device according to an embodiment of the present invention. Such as Figure 7 As shown, the device may include: an acquisition unit 10 , a processing unit 20 , an execution unit 30 and a control unit 40 .
[0114] The collection unit 10 is configured to collect monitoring data obtained by monitoring the target interface.
[0115] The processing unit 20 is configured to process the monitoring data to obtain target parameters, wherein the target parameters are used to detect whether the target interface generates a target event, and the target event is used to make the service corresponding to the target interface be in the firs...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com