CN110311833A - The detection method and device of provider service - Google Patents

The detection method and device of provider service Download PDF

Info

Publication number
CN110311833A
CN110311833A CN201910568547.4A CN201910568547A CN110311833A CN 110311833 A CN110311833 A CN 110311833A CN 201910568547 A CN201910568547 A CN 201910568547A CN 110311833 A CN110311833 A CN 110311833A
Authority
CN
China
Prior art keywords
provider service
interface
detection
line standard
online
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.)
Granted
Application number
CN201910568547.4A
Other languages
Chinese (zh)
Other versions
CN110311833B (en
Inventor
王淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chuangxin Journey Network Technology Co Ltd
Original Assignee
Beijing Chuangxin Journey Network 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 Beijing Chuangxin Journey Network Technology Co Ltd filed Critical Beijing Chuangxin Journey Network Technology Co Ltd
Priority to CN201910568547.4A priority Critical patent/CN110311833B/en
Publication of CN110311833A publication Critical patent/CN110311833A/en
Application granted granted Critical
Publication of CN110311833B publication Critical patent/CN110311833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present embodiments relate to the detection methods of provider service, wherein this method comprises: obtaining detected rule, detected rule and provider service interface have corresponding relationship, and the upper line standard including provider service and lower line standard;Determine that provider service needs to be implemented the detection type of detection, detection type includes off-line test or online detection;If the detection type that provider service needs to be implemented detection is off-line test, offline processing is carried out to provider service according to the lower line standard in the achievement data of provider service interface and provider service interface detected rule;If the detection type that provider service needs to be implemented detection is online detection, online processing is carried out to provider service according to the upper line standard in the achievement data of provider service interface and provider service interface detected rule.Through the embodiment of the present invention, it realizes and automatic offline processing or automatic wire charging processing is carried out to provider service, saved maintenance cost.

Description

The detection method and device of provider service
Technical field
The embodiment of the present invention is generally related to Internet technical field, more particularly to a kind of detection of provider service Method and device.
Background technique
Currently, many business of Internet company need the provider service outside dependence, when provider service occurs sternly Weight network delay or other failures and it is unavailable when, the service application of Internet company continues to rely upon provider service will likely It will lead to service application and follow failure even machine delay machine.
Alarm can be usually issued when provider service breaks down, technical staff's follow-up problem is simultaneously contacted with supplier, When necessary using offline manually, when supplier notifies fault restoration and then manually provider service is online, due to supply The time uncertainty and the uncertainty the time required to reparation failure that quotient services failure, bring very more maintenances Cost.
Summary of the invention
In order to solve the above-mentioned problems in the prior art, the embodiment of the invention provides the detection sides of provider service Method and device.
In a first aspect, the embodiment of the present invention provides a kind of detection method of provider service, the detection of the provider service Method includes: acquisition detected rule, and the detected rule and provider service interface have corresponding relationship, and take including supplier The upper line standard and lower line standard of business;Determine that the provider service needs to be implemented the detection type of detection, the detection type Including off-line test or online detection;If the detection type that the provider service needs to be implemented detection is off-line test, root According to the lower line standard in the achievement data and provider service interface detected rule of the provider service interface to the confession It answers quotient to service and carries out offline processing;If the detection type that the provider service needs to be implemented detection is online detection, basis The achievement data of the provider service interface and upper line standard in provider service interface detected rule are to the supply Quotient, which services, carries out online processing.
In one embodiment, the achievement data in the upper line standard including the provider service interface meets online mark Quasi- upper line standard details, and meet the upper line standard details hit-count of the upper line standard, it is wrapped in the lower line standard The achievement data for including the provider service interface meets the lower line standard details of lower line standard, and meets under lower line standard Line standard details hit-count.
In one embodiment, the determination provider service needs to be implemented the detection type of detection, comprising: determination is The no online unique identification for being stored with the provider service, the online unique identification are carried out down to the provider service After line processing, online unique identification that the provider service is registered and stored;If not stored have online unique identification, Off-line test is executed to the provider service;If the online unique identification of the provider service is stored with, to the supply The online detection of quotient's service execution.
In one embodiment, the achievement data and provider service interface according to the provider service interface Lower line standard in detected rule carries out offline processing to the provider service, comprising: obtains the provider service and respectively connects The achievement data of mouth;If the achievement data of the provider service either interface meets the lower line standard details and meets institute Lower line standard details hit-count is stated, then offline processing is carried out to the provider service.
In one embodiment, the achievement data and provider service interface according to the provider service interface Upper line standard in detected rule carries out online processing to the provider service, comprising:
Obtain the achievement data of each interface of the provider service;If the finger of each interface of provider service Mark data are all satisfied the upper line standard details, and meet the upper line standard details hit-count, then to the supplier Service carries out online processing, and deletes the online unique identification of the provider service.
In one embodiment, if the achievement data of each interface of the provider service is unsatisfactory for the upper line standard details, And it is unsatisfactory for the upper line standard details hit-count of the upper line standard, the method also includes: the online request of simulation, request The interface of the provider service obtains the simulated metrics data of each interface of the provider service;The supply that will acquire Quotient services the simulated metrics data of each interface, the achievement data as each interface of the provider service.
In one embodiment, described if the achievement data of each interface of the provider service is unsatisfactory for the upper line standard Method further include: alert according to the preset time interval.
Second aspect, the embodiment of the present invention provide a kind of detection device of provider service, the detection of the provider service Device includes: acquiring unit, and for obtaining detected rule, the detected rule and provider service interface have corresponding relationship, And upper line standard and lower line standard including provider service;Determination unit, for determining that the provider service needs to be implemented The detection type of detection, the detection type include off-line test or online detection;Offline processing unit, if being used for the supply The detection type that quotient's service needs to be implemented detection is off-line test, then according to the achievement data of the provider service interface, with And the lower line standard in provider service interface detected rule carries out offline processing to the provider service;Online processing is single Member, if needing to be implemented the detection type of detection for the provider service is online detection, according to the provider service The achievement data of interface and the upper line standard in provider service interface detected rule carry out the provider service online Processing.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and electronic equipment includes: memory, refer to for storing It enables;And processor, the above-mentioned any method of instruction execution for calling memory to store.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, and computer readable storage medium is deposited Computer executable instructions are contained, when computer executable instructions are run on computers, execute above-mentioned any method.
The detection method and device of provider service provided in an embodiment of the present invention by obtaining detected rule, and determine Provider service needs to be implemented the detection type of detection, according to the achievement data and detected rule of provider service interface, realizes Automatic offline processing or automatic wire charging processing are carried out to provider service, saved maintenance cost.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other purposes, the feature of embodiment of the present invention It will become prone to understand with advantage.In the accompanying drawings, several implementations of the invention are shown by way of example rather than limitation Mode, in which:
Fig. 1 is the detection method implementation flow chart of provider service provided in an embodiment of the present invention;
Fig. 2 is another implementation flow chart of detection method of provider service provided in an embodiment of the present invention;
Fig. 3 is the detection device schematic diagram of provider service provided in an embodiment of the present invention;
Fig. 4 is another detection device schematic diagram of provider service provided in an embodiment of the present invention.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.
The detection method and device of provider service provided in an embodiment of the present invention can be applied to rely on external supplier Offer service, the application scenarios detected to external provider service are provided.Under the scene, the detection side of provider service The executing subject of method can be the detection device of provider service, and the detection device of the provider service can be computer, move The terminals such as dynamic terminal, the embodiment of the present invention is without limitation.
Fig. 1 is the detection method implementation flow chart of provider service provided in an embodiment of the present invention.As shown in Figure 1, the party Method includes:
S101: detected rule is obtained, detected rule and provider service interface have corresponding relationship, and take including supplier The upper line standard and lower line standard of business.
Detected rule in the embodiment of the present invention is corresponding with provider service interface, and it includes basic for including in detected rule Information, upper line standard and lower line standard.Wherein, essential information can be detected rule unique identification, and detected rule title is affiliated Using, provider service interface identifier, provider service unique identification, whether detected rule is enabled, and interface limits class name entirely, connects Mouth request path, the information such as required parameter.Lower line standard can be offline regular details, offline rule hit-count.Online mark Standard can be online regular details, and online rule hit-count simulates online request number of times, access interval (millisecond) etc..
In the embodiment of the present invention, for an interface of provider service, a detected rule can be configured or matched Set multiple detected rules.
S102: determining that provider service needs to be implemented the detection type of detection, and detection type includes off-line test or online Detection.
In the embodiment of the present invention, the detection type that provider service can execute includes online detection and off-line test, benefit It is identified with the provider service in the detected rule essential information of acquisition, it may be determined that go out the detection class that provider service needs to be implemented Type.
Further, it is identified according to provider service, inquires whether the provider service is stored with preset distinctive mark, Preset distinctive mark for example can be online unique identification, if the provider service for example store in memory it is default Distinctive mark, the detection type which needs to be implemented be online detection.If the provider service is in memory In not stored preset distinctive mark, the detection type which needs to be implemented be off-line test.
Wherein, which is after carrying out offline processing to provider service, to register to provider service And the online unique identification stored.The composition rule of online unique identification may is that Fixed CP+affiliated application+supplier's clothes Business unique identification.
Effective time is preset to online unique identification.In general, provider service goes wrong, the actual effect of processing can be very fast, And if the achievement data of each interface of provider service is unsatisfactory for always line standard, it is in non-operating state for a long time, then It needs the technical staff of provider service to intervene to handle.
Based on this, the effective time of online unique identification can be preset to provider service, when the provider service is more than pre- If the effective time of online unique identification, which still not satisfies line standard, then the provider service is online Unique identification failure, the provider service no longer need online unique identification to carry out online detection, no longer to the provider service It is detected using detected rule, but needs the technical staff of provider service to intervene and handle.Preset online unique mark The effective time of knowledge, such as can be 6 hours.
S103: it if the detection type that provider service needs to be implemented detection is off-line test, is connect according to provider service Lower line standard in the achievement data and provider service interface detected rule of mouth carries out offline processing to provider service.
S104: it if the detection type that provider service needs to be implemented detection is online detection, is connect according to provider service Upper line standard in the achievement data and provider service interface detected rule of mouth carries out online processing to provider service.
In the embodiment of the present invention, the achievement data of provider service interface, which can be, to be utilized and provider service interactive interfacing Obtained by the qualitative data generated in the process, which is for example saved in the search server based on Lucene In ElasticSearch, it may include: provider service unique identification in the qualitative data, request whether successful, request sound Answer code, response message, response time etc..For the qualitative data with generation during provider service interactive interfacing, can adopt All qualitative datas generated with one minute in timing acquiring for example per minute each each interface of provider service, in the matter of acquisition The partial data for the service quality that can wherein illustrate current provider service is extracted in amount data as achievement data, such as is asked The no success of Seeking Truth, response time etc., and can using minute as chronomere, provider service interface be dimension carry out statistics deposit Storage.
Achievement data in the embodiment of the present invention is for example as unit of minute, the master data that stores in every achievement data Information is for example including achievement data unique identification, supplier's unique identification, provider service interface identifier.The core data of storage Information is unsuccessfully measured for example including the total request amount of index, unsuccessfully amount and request amount ratio, and average time-consuming is maximum time-consuming, minimum consumption When, 1 second return quantity and the total request amount ratio of Zhan, 2 seconds return quantity and the total request amount ratio of Zhan, 5 seconds return quantity and Zhan are total Request amount ratio, 10 seconds return quantity and the total request amount ratio of Zhan, 15 seconds return quantity and the total request amount ratio of Zhan return for 20 seconds Quantity and the total request amount ratio of Zhan, 95 lines are time-consuming, 99 line time-consumings etc..
Detected rule in the embodiment of the present invention is formulated mainly for the core data in achievement data.
In the embodiment of the present invention, it is in the state of operation for provider service, offline inspection can be executed to provider service It surveys.
S1031: it if the detection type that provider service needs to be implemented detection is off-line test, is connect according to provider service Lower line standard in the achievement data and provider service interface detected rule of mouth carries out offline processing to provider service.
In the embodiment of the present invention, if the detection type that provider service needs to be implemented detection is off-line test, according to supply Quotient services the lower line standard in each interface detected rule, obtains the achievement data of each interface of provider service, what be will acquire respectively connects The achievement data of mouth and the detected rule of the interface are compared, if there is the index number an of interface in provider service interface According to the lower line standard met in detected rule, then the provider service meets lower line standard, carries out offline place to provider service Reason.
Achievement data in the lower line standard including provider service interface meets the lower line standard details of lower line standard, with And meet the lower line standard details hit-count of lower line standard.Wherein, how just achievement data is described in lower line standard details It is able to satisfy lower line standard, if the failure amount and request amount ratio of achievement data are greater than 0.9000, and the hit of lower line standard details is secondary Number describes all hits of nearest a few minutes achievement data, such as executes one-time detection rule per minute, hits 5 times and refers to currently Preceding 5 minutes achievement datas of time need all to meet offline regular details.
It is understood that different provider service interface detected rules can be directed in the embodiment of the present invention, investigate Other achievement datas of the provider service interface, such as the lower line standard of provider service some interface detected rule is 1 Second returns to the total request amount ratio of request amount Zhan less than 0.7, and lower line standard details hit-count is 4 times, then if executed per minute One-time detection rule, for the provider service interface at first 4 minutes of current time, each minute 1 second return request amount Zhan was total The achievement data of request amount ratio is respectively less than 0.7, illustrates that the provider service interface meets the lower line standard in detected rule.
In the embodiment of the present invention, carrying out offline processing to provider service can for example carry out in the following way:
Service application is sent by the notification message that the provider service meets lower line standard, then by service application according to logical Know that message executes offline processing to provider service.
It is understood that service application can do corresponding service processing strategy, example according to itself project business constraint Degrade different disposal strategy can also be such as taken the service of provider service.
In the embodiment of the present invention, it is in the state of inoperative for provider service, provider service can be executed online Detection.
S1032: it if the detection type that provider service needs to be implemented detection is online detection, is connect according to provider service Upper line standard in the achievement data and provider service interface detected rule of mouth carries out online processing to provider service.
In the embodiment of the present invention, if the detection type that provider service needs to be implemented detection is online detection, according to supply Quotient services the upper line standard in each interface detected rule, obtains the achievement data of each interface of provider service, what be will acquire respectively connects The achievement data of mouth and the detected rule of the interface are compared, if the achievement data of each interface of provider service interface is full Upper line standard in sufficient detected rule, then the provider service meets line standard, carries out online processing to provider service.
The upper line standard details of achievement data on this in line standard including provider service interface, and meet online mark Quasi- upper line standard details hit-count.Wherein, describe how achievement data is just able to satisfy online mark in upper line standard details Standard, if the failure amount and request amount ratio of achievement data are less than 0.2000, and upper line standard details hit-count describes most Nearly a few minutes achievement data is all hit, such as executes one-time detection rule per minute, first 5 points for hitting 5 finger current times The achievement data of clock needs all to meet online regular details.
It is understood that different provider service interface detected rules can be directed in the embodiment of the present invention, investigate Other achievement datas of the provider service interface, such as the upper line standard of provider service some interface detected rule is flat For time-consuming less than 1 second, upper line standard details hit-count was 4 times, then if executing one-time detection rule, the supplier per minute Service interface was at first 4 minutes of current time, and 1 second of each minute returns to average time-consuming achievement data and is respectively less than 1 second, explanation The provider service interface meets the upper line standard in detected rule.
In the embodiment of the present invention, carrying out online processing to the provider service can for example carry out in the following way:
Service application is sent by the notification message that provider service meets upper line standard, then by service application according to notice Message executes online processing to provider service.
The detection method of provider service provided in an embodiment of the present invention by obtaining detected rule, and determines supplier Service needs to be implemented the detection type of detection, according to the achievement data and detected rule of provider service interface, realizes to supply Quotient, which services, carries out automatic offline processing or automatic wire charging processing, has saved maintenance cost.
Fig. 2 is another implementation flow chart of the detection method of provider service provided in an embodiment of the present invention.Such as Fig. 2 institute Show, in the detection method of the provider service, including step S201 to step S204.Wherein, step S201, S202 and step S203 in Fig. 1 step S101, S102 and step S103 it is identical, details are not described herein.This method comprises:
S204: the online request of simulation requests the interface of provider service, obtains the simulated metrics of each interface of provider service Data, according to the upper line standard in the simulated metrics data of provider service interface and provider service interface detected rule Online processing is carried out to provider service.
In the embodiment of the present invention, if the achievement data of each interface of provider service is unsatisfactory for line standard, i.e. supplier is taken The be engaged in achievement data of each interface is unsatisfactory for line standard details, and is unsatisfactory for the upper line standard details hit time of line standard Number, analog are requested online, request the interface of provider service, obtain the simulated metrics data of each interface of provider service.
In the embodiment of the present invention, supplier's clothes can be obtained according to the provider service interface identifier in online detected rule The interface message of business gets the interface of provider service using the full restriction class name for example in registration center zookeeper The address ip and the port port, recycle the address ip got and the port port to be spliced into interface requests path, formed complete Interface requests address.According to the online detected rule of the provider service, at predetermined intervals, asked to assembled good interface It asks address to send simulation request, obtains the simulated metrics data of each interface of provider service.Wherein, it is simulated according in detected rule The time number limiting requested online sends the number of request.
In the embodiment of the present invention, at predetermined intervals according to the simulated metrics data of acquisition, to provider service after It is continuous to execute online detection, according to the upper line standard in each interface detected rule of provider service, obtain each interface of provider service Simulated metrics data, the simulated metrics data for each interface that will acquire and the detected rule of the interface be compared, if for The simulated metrics data of quotient's service total interface are answered to meet the upper line standard in corresponding interface detected rule, then the provider service Meet line standard, online processing is carried out to provider service.
If the simulated metrics data of each interface of provider service still not satisfy line standard, according to the preset time interval Alert.
In the embodiment of the present invention, when not meeting upper line standard persistently for provider service, alarm issuing, it is online every time Testing process testing result is when not meeting line standard, can alert according to the preset time interval.Or it will The remaining effective time of the online unique identification of the provider service stored in e.g. redis in memory is obtained, to divide Clock is unit, if residue effective time 10 denary logarithms are taken logarithm be 0 if, by issue alarm, also It is that will issue an alarm every 10 minutes if online testing process does not pass through always, and indicate that supplier's failure will not still have Restore, to understand provider service failure present case constantly.
Detection method provided in an embodiment of the present invention, by obtaining detected rule, which can be customized, this Sample can be more flexible the different provider services of reply quality difference, determine that provider service needs to be implemented the detection class of detection Type, according to the achievement data and detected rule of provider service interface, realize to provider service carry out automatic offline processing or Automatic wire charging processing.
Based on identical inventive concept, the embodiment of the invention also provides a kind of detection devices of provider service, such as Fig. 3 Shown, the detection device 300 of provider service provided in an embodiment of the present invention, which includes: acquiring unit 301, is used for Detected rule is obtained, detected rule and provider service interface have corresponding relationship, and the upper line standard including provider service With lower line standard;Determination unit 302, for determining that provider service needs to be implemented the detection type of detection, detection type includes Off-line test or online detection;Offline processing unit 303, if under the detection type for provider service to need to be implemented detection is Line detection, then according to the lower line standard in the achievement data of provider service interface and provider service interface detected rule Offline processing is carried out to provider service;Online processing unit 304, if needing to be implemented the detection class of detection for provider service Type is online detection, then according to upper in the achievement data of provider service interface and provider service interface detected rule Line standard carries out online processing to provider service.
In one embodiment, the achievement data in upper line standard including provider service interface meets the online of upper line standard Standard details, and meet the upper line standard details hit-count of upper line standard, it include provider service interface in lower line standard Achievement data meet the lower line standard details of lower line standard, and meet the lower line standard details hit-count of lower line standard.
In one embodiment, determination unit 302 determines that provider service needs to be implemented the detection of detection in the following way Type: determine whether that the online unique identification for being stored with provider service, online unique identification are carried out down to provider service After line processing, provider service is registered and is stored online unique identification;If not stored have online unique identification, to confession Answer quotient's service execution off-line test;If being stored with the online unique identification of provider service, online inspection is executed to provider service It surveys.
In one embodiment, offline processing unit 303 carries out offline processing to provider service in the following way: according to The achievement data of provider service interface and the lower line standard in provider service interface detected rule obtain supplier's clothes It is engaged in the achievement data of each interface;If the achievement data of provider service either interface meets lower line standard details and meets offline Standard details hit-count then carries out offline processing to provider service.
In one embodiment, online processing unit 304 carries out online processing to provider service in the following way: according to The achievement data of provider service interface and the upper line standard in provider service interface detected rule obtain supplier's clothes It is engaged in the achievement data of each interface;If the achievement data of each interface of provider service is all satisfied line standard details, and meets Line standard details hit-count then carries out online processing to provider service, and deletes the online unique identification of provider service.
In one embodiment, determination unit 302 is also used to: if the achievement data of each interface of provider service be unsatisfactory for it is online Standard details, and it is unsatisfactory for the upper line standard details hit-count of line standard, online request is simulated, provider service is requested Interface, obtain each interface of provider service simulated metrics data;The simulated metrics of each interface of the provider service that will acquire Data are determined as the achievement data of each interface of provider service.
In one embodiment, the detection device 300 of provider service further include: prewarning unit 305.As shown in figure 4, early warning Unit 305 issues according to the preset time interval if the achievement data for each interface of provider service is unsatisfactory for upper line standard Warning message.
The embodiment of the present invention also provides a kind of electronic equipment, and electronic equipment includes: memory, for storing instruction;And Processor, any method in the above-mentioned possible embodiment of instruction execution for calling memory to store.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has Computer executable instructions, the computer executable instructions when executed by the processor, execute above-mentioned possible embodiment In any method.
It is understood that the statements such as " first " although used herein, " second " describe embodiments of the present invention Disparate modules, step and data etc., still the statement such as " first ", " second " is merely in different modules, step sum number It is distinguished according between grade, and is not offered as specific sequence or significance level.In fact, " first ", " second " etc. are stated It may be used interchangeably completely.
Although it will be further understood that in the embodiment of the present invention in the accompanying drawings in a particular order description operation, It is that should not be construed as requiring particular order or serial order shown in execute these operations, or require to execute Operation is shown in whole to obtain desired result.In specific environment, multitask and parallel processing may be advantageous.
The present embodiments relate to method and apparatus can be completed using standard programming technology, utilization is rule-based Logic or other logics realize various method and steps.It should also be noted that herein and used in claims Word " device " and " module " are intended to include using the realization of a line or multirow software code and/or hardware realization and/or use In the equipment for receiving input.
One or more combined individually or with other equipment can be used in any step, operation or program described herein A hardware or software module are executed or are realized.In one embodiment, software module use includes comprising computer program The computer program product of the computer-readable medium of code is realized, can be executed by computer processor any for executing Or whole described step, operation or programs.
For the purpose of example and description, the preceding description that the present invention is implemented is had been presented for.Preceding description is not poor Also not the really wanting of act property limits the invention to exact form disclosed, according to the above instruction there is likely to be various modifications and Modification, or various changes and modifications may be obtained from the practice of the present invention.Select and describe these embodiments and be in order to Illustrate the principle of the present invention and its practical application, so that those skilled in the art can be to be suitable for the special-purpose conceived Come in a variety of embodiments with various modifications and utilize the present invention.

Claims (10)

1. a kind of detection method of provider service, wherein the described method includes:
Detected rule is obtained, the detected rule and provider service interface have corresponding relationship, and including provider service Upper line standard and lower line standard;
Determine that the provider service needs to be implemented the detection type of detection, the detection type includes off-line test or online inspection It surveys;
If the detection type that the provider service needs to be implemented detection is off-line test, according to the provider service interface Achievement data and provider service interface detected rule in lower line standard offline place is carried out to the provider service Reason;
If the detection type that the provider service needs to be implemented detection is online detection, according to the provider service interface Achievement data and provider service interface detected rule in upper line standard online place is carried out to the provider service Reason.
2. according to the method described in claim 1, wherein, in the upper line standard including the index of the provider service interface Data meet the upper line standard details of upper line standard, and meet the upper line standard details hit-count of the upper line standard, institute State the lower line standard details that the achievement data in lower line standard including the provider service interface meets lower line standard, Yi Jiman The lower line standard details hit-count of foot line standard.
3. according to the method described in claim 2, wherein, the determination provider service needs to be implemented the detection class of detection Type, comprising:
Determine whether that the online unique identification for being stored with the provider service, the online unique identification are to the supplier It services after carrying out offline processing, the online unique identification that the provider service is registered and stored;
If not stored have online unique identification, off-line test is executed to the provider service;
If being stored with the online unique identification of the provider service, online detection is executed to the provider service.
4. according to claim 2 or method as claimed in claim 3, wherein the finger according to the provider service interface The lower line standard marked in data and provider service interface detected rule carries out offline processing, packet to the provider service It includes:
Obtain the achievement data of each interface of the provider service;
If the achievement data of the provider service either interface meets the lower line standard details and meets the offline mark Quasi- details hit-count then carries out offline processing to the provider service.
5. according to the method described in claim 3, wherein, the achievement data according to the provider service interface, and Upper line standard in provider service interface detected rule carries out online processing to the provider service, comprising:
Obtain the achievement data of each interface of the provider service;
If the achievement data of each interface of provider service is all satisfied the upper line standard details, and meets on described Line standard details hit-count then carries out online processing to the provider service, and deletes the described of the provider service Online unique identification.
6. according to the method described in claim 5, wherein, if the achievement data of each interface of the provider service be unsatisfactory for it is described Upper line standard details, and it is unsatisfactory for the upper line standard details hit-count of the upper line standard, the method also includes:
The online request of simulation, requests the interface of the provider service, obtains the simulated metrics of each interface of the provider service Data;
The simulated metrics data for each interface of the provider service that will acquire, as each interface of the provider service Achievement data.
7. according to the method described in claim 6, wherein, if the achievement data of each interface of the provider service be unsatisfactory for it is described Upper line standard, the method also includes:
Alert according to the preset time interval.
8. a kind of detection device of provider service, wherein described device includes:
Acquiring unit, for obtaining detected rule, the detected rule and provider service interface with corresponding relationship, and including The upper line standard of provider service and lower line standard;
Determination unit, for determining that the provider service needs to be implemented the detection type of detection, under the detection type includes Line detection or online detection;
Offline processing unit, if being off-line test, basis for the detection type that the provider service needs to be implemented detection The achievement data of the provider service interface and lower line standard in provider service interface detected rule are to the supply Quotient, which services, carries out offline processing;
Online processing unit, if being online detection, basis for the detection type that the provider service needs to be implemented detection The achievement data of the provider service interface and upper line standard in provider service interface detected rule are to the supply Quotient, which services, carries out online processing.
9. a kind of electronic equipment, wherein the electronic equipment includes:
Memory, for storing instruction;And
Processor, for calling supplier's clothes described in instruction execution any one of claims 1 to 7 of the memory storage The detection method of business.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage has computer is executable to refer to It enables, when the computer executable instructions are run on computers, supplier described in any one of perform claim requirement 1 to 7 The detection method of service.
CN201910568547.4A 2019-06-27 2019-06-27 Method and device for detecting provider service, electronic equipment and storage medium Active CN110311833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910568547.4A CN110311833B (en) 2019-06-27 2019-06-27 Method and device for detecting provider service, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910568547.4A CN110311833B (en) 2019-06-27 2019-06-27 Method and device for detecting provider service, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110311833A true CN110311833A (en) 2019-10-08
CN110311833B CN110311833B (en) 2021-06-15

Family

ID=68076745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910568547.4A Active CN110311833B (en) 2019-06-27 2019-06-27 Method and device for detecting provider service, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110311833B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125299A (en) * 2014-08-08 2014-10-29 携程计算机技术(上海)有限公司 System and method for setting system applications of OTA (online travel agency) website
CN106020786A (en) * 2015-11-02 2016-10-12 广州市动景计算机科技有限公司 Method and device for dynamically restoring application program, and related system
US20190102361A1 (en) * 2017-09-29 2019-04-04 Linkedin Corporation Automatically detecting and managing anomalies in statistical models
CN109729156A (en) * 2018-12-18 2019-05-07 中信百信银行股份有限公司 The connection method of adjustment middleware is automated based on backend application service change

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125299A (en) * 2014-08-08 2014-10-29 携程计算机技术(上海)有限公司 System and method for setting system applications of OTA (online travel agency) website
CN106020786A (en) * 2015-11-02 2016-10-12 广州市动景计算机科技有限公司 Method and device for dynamically restoring application program, and related system
US20190102361A1 (en) * 2017-09-29 2019-04-04 Linkedin Corporation Automatically detecting and managing anomalies in statistical models
CN109729156A (en) * 2018-12-18 2019-05-07 中信百信银行股份有限公司 The connection method of adjustment middleware is automated based on backend application service change

Also Published As

Publication number Publication date
CN110311833B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
Weyuker et al. Using developer information as a factor for fault prediction
CN107967204B (en) Method and system for measuring line down pressure and terminal equipment
US20130282354A1 (en) Generating load scenarios based on real user behavior
CN112445699A (en) Strategy matching method and device, electronic equipment and storage medium
CN110262959A (en) Underlying services method for testing pressure, device, electronic equipment and storage medium
CN112583610B (en) System state prediction method, system state prediction device, server and storage medium
CN110380936A (en) Test method and device
US11165665B2 (en) Apparatus and method to improve precision of identifying a range of effects of a failure in a system providing a multilayer structure of services
US20120209584A1 (en) Advanced Metering Infrastructure Simulation
CN110083512A (en) The method and device of cluster monitoring
CN111400294B (en) Data anomaly monitoring method, device and system
CN112506802A (en) Test data management method and system
Rees et al. Managing the uncertainties of software testing: a Bayesian approach
CN112286790A (en) Full link test method, device, equipment and storage medium
CN110311833A (en) The detection method and device of provider service
CN104462116A (en) Data selecting method and device
CN113051526A (en) Quantization evaluation method and device
CN110716730A (en) Gray scale distribution method, device, equipment and computer readable storage medium
CN111967938B (en) Cloud resource recommendation method and device, computer equipment and readable storage medium
CN111679973B (en) Software test scheduling method, device, computer equipment and readable storage medium
CN110008098B (en) Method and device for evaluating operation condition of nodes in business process
CN114398267A (en) Automatic testing method and device, storage medium and electronic device
CN113297053A (en) Method and device for determining test coverage rate and storage medium
CN113821443A (en) Application program function detection method, device, equipment and storage medium
CN112905449A (en) Target test method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant