CN106649045A - Third-party interface exception monitoring device - Google Patents
Third-party interface exception monitoring device Download PDFInfo
- Publication number
- CN106649045A CN106649045A CN201611255487.3A CN201611255487A CN106649045A CN 106649045 A CN106649045 A CN 106649045A CN 201611255487 A CN201611255487 A CN 201611255487A CN 106649045 A CN106649045 A CN 106649045A
- Authority
- CN
- China
- Prior art keywords
- exception
- application interface
- interface
- detection module
- application
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a third-party interface exception monitoring device, aiming to solve the problems that existing application interface management technology cannot realizes exception automatic-recovery and lacks a preprocessing mechanism. The third-party interface exception monitoring device comprises an exception detection module, a preprocessing module, a first pre-recovery detection module and a second pre-recovery detection module. The exception detection module is used for carrying out exception detection to an application interface; the preprocessing module is used for reading a preprocessing program to handle exception when monitoring exception of the application interface; the first pre-recovery detection module is used for detecting whether the application interface is normal or not after the exception handling is finished. If the application interface is normal, preset configuration information is read for gated launch, and then the second pre-recovery detection module is applied to handling continuously; if the application interface is in exception state, the preprocessing module is applied to exception handling. The second pre-recovery detection module is used for detecting whether the application interface is normal or not again; if not, then the first pre-recovery detection module is applied to exception handling, and if so, then application is recovered. The third-party interface exception monitoring device can realize automatic handling and recovery of exception of the third-party interface so that the third-party interface works safely and reliably during application.
Description
Technical field
The present invention relates to application interface administrative skill, more particularly to a kind of tripartite's interface exception monitoring apparatus.
Background technology
During applied software development, with increasing for micro services, system needs to use increasing tripartite's interface,
Such as short message sending, payment, information pushing, weather lookup etc., the management of tripartite's interface also becomes thing followed problem.Example
Such as, when tripartite's interface occurs abnormal, tripartite's interface can be cut off, then exception is investigated and solved, finally in abnormal row
Manual reversion tripartite's interface again after removing.
There are the following problems for above-mentioned abnormality eliminating method:The cut-out to tripartite's interface cannot be realized, recover full-automatic pipe
Reason, in addition, the recovery of tripartite's interface judges to need manually, and is usually overall recovery when business recovery, it is possible to another
The secondary possibility for causing tripartite's interface to hang up.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of tripartite's interface abnormal monitoring dress
Put, for solving the problems, such as that existing application interface management cannot accomplish abnormal recovery automatically and shortage pretreatment mechanism.
For achieving the above object and other related purposes, the present invention provides solution below:
A kind of tripartite's interface exception monitoring apparatus, including:Abnormity detecting module, is carried out different for holding to an application interface
Often monitoring;Pretreatment module, for when it is abnormal to monitor the application interface, reading a preprocessor to the exception
Processed;First pre-restore detection module, for after processing is completed, detecting whether the application interface is normal for the first time:
If so, reading a default configuration information carries out gray scale issue, proceeds to one second pre-restore detection module and is processed;If it is not,
Proceed to the pretreatment module to be processed;The second pre-restore detection module, for detecting the application interface for the second time
It is whether normal, if it is not, then return the first pre-restore detection module being processed, if so, then recover application.
In a preferred version, the abnormity detecting module includes:First computing unit, for calculating the application interface
The number of times of continuous mistake;Second computing unit, for calculating success rate of the application interface within a time period;It is abnormal to judge
Unit, for determining whether the application interface is abnormal according to the number of times and success rate.
The invention has the advantages that:The present invention is automatically processed for the abnormal situation of tripartite's interface, compared with existing
Technology can reach more preferable effect in exception using general alarm, because, if alarm does not take measures, then be
Any monitoring or preventive effect are not had;Additionally, the present invention recovers that automated manner can be adopted for tripartite's interface, and
Issued using gray scale and gradually recovered, recovery process is relatively reliable.
Description of the drawings
Fig. 1 is a kind of flow chart of the tripartite's interface abnormality monitoring method be given according to the method face of the present invention.
Fig. 2 is the flow chart that exception monitoring is carried out to an application interface be given according to the method face of the present invention.
Fig. 3 is a kind of schematic diagram of the tripartite's interface exception monitoring apparatus be given according to the device surface of the present invention.
Fig. 4 is a kind of implementation principle figure of the abnormity detecting module be given according to the device surface of the present invention.
Component label instructions
3 tripartite's interface exception monitoring apparatus
31 abnormity detecting modules
311 first computing units
312 second computing units
313 abnormal deciding means
32 pretreatment modules
33 first pre-restore detection modules
34 second pre-restore detection modules
S101~S104 steps
S201~S204 steps
Specific embodiment
Embodiments of the present invention are illustrated below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands easily other advantages and effect of the present invention.The present invention can also pass through concrete realities different in addition
The mode of applying is carried out or applies, the every details in this specification can also based on different viewpoints with application, without departing from
Various modifications and changes are carried out under the spirit of the present invention.It should be noted that, in the case where not conflicting, following examples and enforcement
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates in a schematic way the basic structure of the present invention
Think, only show in schema then with relevant component in the present invention rather than according to component count during actual enforcement, shape and size
Draw, it is actual when the implementing kenel of each component, quantity and ratio can be a kind of random change, and its assembly layout kenel
It is likely more complexity.
Preceding description
Tripartite's interface, also can be named:Tripartite's application interface or application interface, refer in software development process, will be existing
Used with the application access of a certain function, it is this using being realized by application interface, therefore referred to as tripartite should
With.
For example, a payment function is realized in a certain application software, then as long as will be existing by application interface
Alipay, wechat etc. pay application function and access, be not required to develop payment system at oneself.
Embodiment one
Process according to the invention face is illustrating
See Fig. 1, give a kind of tripartite's interface abnormality monitoring method, as illustrated, it passes through order performs following steps
To realize:
Step S101, holding carries out exception monitoring to an application interface;
Step S102, when it is abnormal to monitor the application interface, read a preprocessor is carried out to the exception
Process;
Step S103, after processing is completed, detects for the first time whether the application interface is normal:If so, read default
One configuration information carries out gray scale issue, proceeds to step S104;If it is not, return to step S102;
Step S104, detects for the second time whether the application interface is normal, if it is not, then return to step S103, if so, then extensive
Multiple application.
Wherein, above-mentioned preprocessor is the processed program of an exception arranged according to concrete application interface society, specifically
Application its corresponding exception handler it is different, the present invention is not intended to limit the concrete mode of preprocessor.
For example, weather is shown in a certain application, when the application interface for detecting the weather is abnormal, by arranging one
Preprocessor being simply turned off the weather application, without closing application interface used.
Wherein, above-mentioned gray scale is issued and refers to application is disclosed certain customers and used, and unavailable to other users, passes through
This mode is progressively recovering application interface.Therefore, often all it is extremely much that visit capacity is much to cause, is issued using gray scale
Can be with this abnormal conditions of link, so as to progressively reply application.
In one embodiment, see Fig. 2, include the step of carry out exception monitoring to an application interface:
S201, calculates the number of times of the continuous mistake of the application interface;
S202, calculates success rate of the application interface within a time period;
S203, determines whether the application interface is abnormal according to the number of times and success rate.
Wherein, the number of times of the continuous mistake of above-mentioned application interface refers to that mistake, certain mistake all occurs in continuous data interaction
Type according to the different and different of application interface, for example, dislocation can not open to pay page jump.
But, it is cannot accurately to detect the whether real exception of application interface only with above-mentioned this detecting, for example, although even
Continuous errors number does not reach default threshold values, and within a time period, the number of times of mistake reaches more than 50%, then it is also apparent that
Belong to abnormal conditions.Therefore whether must carry out comprehensive descision application interface with reference to both above condition abnormal.
Specifically, determine whether the application interface is that exception can be by judging this time according to the number of times and success rate
Whether, more than a default threshold values, either condition has exceeded the threshold values will all be confirmed as exception for number and success rate.
Embodiment two
Arrangement according to the invention face is illustrating
See Fig. 3, give a kind of tripartite's interface exception monitoring apparatus 3, it includes:Abnormity detecting module 31, for keeping
Exception monitoring is carried out to an application interface;Pretreatment module 32, for when it is abnormal to monitor the application interface, reading one
Preprocessor is processed the exception;First pre-restore detection module 33, for after processing is completed, detecting for the first time
Whether the application interface is normal:If so, reading a default configuration information carries out gray scale issue, proceeds to the inspection of one second pre-restore
Survey module 34 to be processed;If it is not, proceed to the pretreatment module being processed;The second pre-restore detection module 34, uses
In detecting that the application interface is whether normal for the second time, if it is not, then return the first pre-restore detection module 33 processed, if
It is then to recover application.
In one embodiment, Fig. 4 is seen, the abnormity detecting module 31 includes:First computing unit 311, for calculating
State the number of times of the continuous mistake of application interface;Second computing unit 312, for calculate the application interface within a time period into
Power;Abnormal deciding means 313, for determining whether the application interface is abnormal according to the number of times and success rate.
It should be noted that the method that above-mentioned embodiment one is provided can be realized all by computer program, therefore this
Embodiment example provide a kind of device, due to the principle of the device solve problem it is similar to method, therefore, the implementation process of device
And implementation principle may refer to the implementation process and implementation principle description of preceding method, repeats part and repeats no more.
In sum, the present invention is automatically processed for the abnormal situation of tripartite's interface, is adopted in exception compared with prior art
More preferable effect can be reached with general alarm, because, if alarm does not take measures, then be not have any monitoring
Or preventive effect;Additionally, the present invention for tripartite's interface recover can adopt automated manner, and using gray scale issue by
Gradually recover, recovery process is relatively reliable.
So, the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The principle and its effect of above-described embodiment only illustrative present invention, it is of the invention not for limiting.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and the scope without prejudice to the present invention to above-described embodiment.Cause
This, such as those of ordinary skill in the art is complete with institute under technological thought without departing from disclosed spirit
Into all equivalent modifications or change, should by the present invention claim be covered.
Claims (2)
1. a kind of tripartite's interface exception monitoring apparatus, it is characterised in that include:
Abnormity detecting module, for keeping carrying out exception monitoring to an application interface;
Pretreatment module, enters for when it is abnormal to monitor the application interface, reading a preprocessor to the exception
Row is processed;
First pre-restore detection module, for after processing is completed, detecting whether the application interface is normal for the first time:If so,
Reading a default configuration information carries out gray scale issue, proceeds to one second pre-restore detection module and is processed;If it is not, proceeding to institute
State pretreatment module to be processed;
The second pre-restore detection module, for detecting whether the application interface is normal for the second time, if it is not, then returning first
Pre-restore detection module is processed, and if so, then recovers application.
2. tripartite's interface exception monitoring apparatus according to claim 1, it is characterised in that the abnormity detecting module bag
Include:
First computing unit, for calculating the number of times of the continuous mistake of the application interface;
Second computing unit, for calculating success rate of the application interface within a time period;
Abnormal deciding means, for determining whether the application interface is abnormal according to the number of times and success rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611255487.3A CN106649045A (en) | 2016-12-30 | 2016-12-30 | Third-party interface exception monitoring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611255487.3A CN106649045A (en) | 2016-12-30 | 2016-12-30 | Third-party interface exception monitoring device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106649045A true CN106649045A (en) | 2017-05-10 |
Family
ID=58837773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611255487.3A Pending CN106649045A (en) | 2016-12-30 | 2016-12-30 | Third-party interface exception monitoring device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106649045A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948744A (en) * | 2017-12-13 | 2018-04-20 | 深圳市雷鸟信息科技有限公司 | Interface detection method, interface detection device and computer-readable recording medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7941438B2 (en) * | 2000-04-04 | 2011-05-10 | Sosy, Inc. | Method and apparatus for automatic generation of information system user interfaces |
CN103164202A (en) * | 2011-12-15 | 2013-06-19 | 深圳市腾讯计算机系统有限公司 | Release method and device of gray level |
CN103176790A (en) * | 2011-12-26 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Application releasing method and application releasing system |
CN103379138A (en) * | 2012-04-17 | 2013-10-30 | 深圳市腾讯计算机系统有限公司 | Method and system for realizing load balance, and method and apparatus for gray scale publication |
CN105677466A (en) * | 2015-12-31 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for degrading handling of third-party application interface |
-
2016
- 2016-12-30 CN CN201611255487.3A patent/CN106649045A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7941438B2 (en) * | 2000-04-04 | 2011-05-10 | Sosy, Inc. | Method and apparatus for automatic generation of information system user interfaces |
CN103164202A (en) * | 2011-12-15 | 2013-06-19 | 深圳市腾讯计算机系统有限公司 | Release method and device of gray level |
CN103176790A (en) * | 2011-12-26 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Application releasing method and application releasing system |
CN103379138A (en) * | 2012-04-17 | 2013-10-30 | 深圳市腾讯计算机系统有限公司 | Method and system for realizing load balance, and method and apparatus for gray scale publication |
CN105677466A (en) * | 2015-12-31 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for degrading handling of third-party application interface |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948744A (en) * | 2017-12-13 | 2018-04-20 | 深圳市雷鸟信息科技有限公司 | Interface detection method, interface detection device and computer-readable recording medium |
CN107948744B (en) * | 2017-12-13 | 2021-11-09 | 深圳市雷鸟网络传媒有限公司 | Interface detection method, interface detection device, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108197658B (en) | Image annotation information processing method, device, server and system | |
CN105740121A (en) | Log text monitoring and early-warning method and apparatus | |
KR20190021560A (en) | Failure prediction system using big data and failure prediction method | |
CN108170581A (en) | A kind of fault early warning method, device and electronic equipment | |
CN113449703B (en) | Quality control method and device for environment online monitoring data, storage medium and equipment | |
CN107566830B (en) | A kind of method, system and the relevant apparatus of the detection of splicing device signal fault | |
CN107679683A (en) | Software development progress method for early warning and device | |
CN106533812A (en) | Application server | |
CN104133688A (en) | Medical service inspection and investigation system and method | |
TW201911180A (en) | Method and device for evaluating goods | |
CN106844146A (en) | A kind of tripartite's interface abnormality monitoring method | |
CN106649045A (en) | Third-party interface exception monitoring device | |
CN111654405B (en) | Method, device, equipment and storage medium for fault node of communication link | |
CN117707112A (en) | Fault diagnosis method, system, equipment and storage medium | |
CN108509796B (en) | Method for detecting risk and server | |
CN110751055B (en) | Intelligent manufacturing system | |
CN107995023A (en) | Electronic device, wechat alarm method and computer-readable recording medium | |
CN111914793A (en) | Early warning method, device and equipment based on regional population | |
CN114971223B (en) | Exponential lifetime type sequential test method, system, equipment, medium and terminal | |
CN105912417A (en) | Detection method of virtual system, related software running method and related device | |
CN109919543A (en) | A kind of method and apparatus of monitoring waste processing | |
JP5613570B2 (en) | Batch job delay warning automatic alert system, automatic alert method, and program therefor | |
CN106776169A (en) | A kind of method and device of the PSU of testing service device | |
Gupta et al. | Automatic Car Insurance using Image Analysis | |
CN109409127A (en) | Generation method, device and the storage medium of network data security strategy |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |