CN109255001A - Maintaining method and device, the electronic equipment in interface instance library - Google Patents

Maintaining method and device, the electronic equipment in interface instance library Download PDF

Info

Publication number
CN109255001A
CN109255001A CN201811012568.XA CN201811012568A CN109255001A CN 109255001 A CN109255001 A CN 109255001A CN 201811012568 A CN201811012568 A CN 201811012568A CN 109255001 A CN109255001 A CN 109255001A
Authority
CN
China
Prior art keywords
verified
interface
marked
library
interface instance
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
CN201811012568.XA
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811012568.XA priority Critical patent/CN109255001A/en
Publication of CN109255001A publication Critical patent/CN109255001A/en
Pending legal-status Critical Current

Links

Abstract

This specification one or more embodiment provides the maintaining method and device, electronic equipment in a kind of interface instance library, and this method may include: to obtain the corresponding example to be verified of interface;When in the corresponding interface instance library of the interface in the presence of matching with the example to be verified and being marked as the historical sample of normal condition, the current moment that goes out recently of the historical sample is updated;When there is no the historical sample to match with the example to be verified, the example to be verified is added in the interface instance library, and the example to be verified is marked as unknown state.

Description

Maintaining method and device, the electronic equipment in interface instance library
Technical field
This specification one or more embodiment is related to database technical field more particularly to a kind of dimension in interface instance library Maintaining method and device, electronic equipment.
Background technique
With the fast development of internet, the amount of access respectively applied in internet is increasing, and makes using breaking down It is also increasing therewith at the range of influence.Service is mutually provided between each application in internet, if there is exception in application, It will lead to serious consequence.For example, SOA (Service-Oriented Architecture, service-oriented frame in internet Structure) in environment, all applications are all a rings therein, and any application is that other application provides service, when application provides clothes When the interface of business occurs abnormal, exception will also occur in the service of other application, and service is caused to malfunction.
Summary of the invention
In view of this, this specification one or more embodiment provide a kind of interface instance library maintaining method and device, Electronic equipment.
To achieve the above object, it is as follows to provide technical solution for this specification one or more embodiment:
According to this specification one or more embodiment in a first aspect, proposing a kind of maintenance side in interface instance library Method, comprising:
Obtain the corresponding example to be verified of interface;
Match with the example to be verified and be marked as normally when existing in the corresponding interface instance library of the interface When the historical sample of state, the current moment that goes out recently of the historical sample is updated;
When there is no the historical sample to match with the example to be verified, the example to be verified is added to described In interface instance library, and the example to be verified is marked as unknown state.
According to the second aspect of this specification one or more embodiment, a kind of maintenance dress in interface instance library is proposed It sets, comprising:
Acquiring unit obtains the corresponding example to be verified of interface;
Updating unit matches and is marked with the example to be verified when existing in the corresponding interface instance library of the interface When being denoted as the historical sample of normal condition, the current moment that goes out recently of the historical sample is updated;
Marking unit, when there is no the historical sample to match with the example to be verified, by the example to be verified It is added in the interface instance library, and the example to be verified is marked as unknown state.
According to the third aspect of this specification one or more embodiment, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize the interface as described in above-mentioned any embodiment The maintaining method of case library.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of the maintenance system in interface instance library that an exemplary embodiment provides.
Fig. 2 is a kind of flow chart of the maintaining method in interface instance library that an exemplary embodiment provides.
Fig. 3 is the flow chart of the maintaining method in another interface instance library that an exemplary embodiment provides.
Fig. 4 is a kind of flow chart in update interface instance library that an exemplary embodiment provides.
Fig. 5 is a kind of flow chart for update example banked cache that an exemplary embodiment provides.
Fig. 6 is a kind of flow chart for modification example state that an exemplary embodiment provides.
Fig. 7 is the flow chart for another modification example state that an exemplary embodiment provides.
Fig. 8 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.
Fig. 9 is a kind of block diagram of the maintenance device in interface instance library that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
In one embodiment, the maintenance scheme in the interface instance library of this specification can be applied in server, the service Maintenance has interface instance library in device, and in the process of running, server can carry out state pipe to the example recorded in interface instance library Reason, to provide the data service on basis to monitor the exception of analysis interface in real time.
Fig. 1 is a kind of configuration diagram of the maintenance system in interface instance library that an exemplary embodiment provides.Such as Fig. 1 institute Show, which may include server 11, network 12, server 13 and several electronic equipments, such as PC14-15 etc..
Server 11 (or server 13) can be the physical server comprising a unique host or the server 11 (or server 13) can be the virtual server of mainframe cluster carrying.In the process of running, server 11 (or server 13) The program of the server side of a certain application can be run, to realize the server-side of the application.And in this specification one or more It, can be by server 11 (or server 13) by being matched with the client run on PC14-15 in the technical solution of embodiment It closes, to be safeguarded for the interface instance library on server-side 11 (or server 13).
PC14-15 is a type of electronic equipment that user can be used.In fact, user obviously can also use The electronic equipment of such as following types: tablet device, laptop, palm PC (PDAs, Personal Digital Assistants), wearable device (such as smart glasses, smart watches) etc., this specification one or more embodiment is not This is limited.In the process of running, which can run the program of the client-side of a certain application, be somebody's turn to do with realizing The client of application, and control server-side and interface instance library is safeguarded.
And the network 12 for being interacted between PC14-15 and server 11,13, it may include a plurality of types of wired Or wireless network.In one embodiment, which may include Public Switched Telephone Network (Public Switched Telephone Network, PSTN) and internet.Meanwhile between the electronic equipments such as PC14-15 and server 11 and service Device 13 can also carry out communication interaction by the network 12.
Fig. 2 is referred to, Fig. 2 is a kind of flow chart of the maintaining method in interface instance library that an exemplary embodiment provides. As shown in Fig. 2, this method is applied in server, may comprise steps of:
Step 202, the corresponding example to be verified of interface is obtained.
In the present embodiment, service is provided mutually by calling interface between, and can be then produced in calling interface Raw example, which may be the regular instance occurred in history calling process, it is also possible to emerging to be in unknown shape The example of state.For example, when business scenario changes, will cause to occur the new example of a batch (i.e. in unknown state, not by Labeled as the example of normal condition).Specifically, for example, when occur rule change, switch change etc. scene change when (user When having modified rule or switch in altering system), altering system modification result can be pushed to relevant transaction and payment saves Point, then then will appear some new examples when implementing related service.For another example, when a certain system calls down-stream system time-out When, it also leads to and some new examples occurs.Therefore, it when calling interface generates example, needs to carry out the example of generation Verifying with determine the example state, so as to monitor in real time analysis interface exception when as foundation.
Step 204, with the example to be verified match and marked when existing in the corresponding interface instance library of the interface When being denoted as the historical sample of normal condition, the current moment that goes out recently of the historical sample is updated.
In the present embodiment, the example that interface instance library is used to store calling interface generation, and it is marked with each example State (including normal condition, unknown state etc.) goes out current moment, the recently information such as modification moment recently.And work as interface instance library When middle presence matches with example to be verified and is marked as the historical sample of normal condition, illustrate that the example to be verified is history The example for once occurring in the process and being marked as normal condition, and occur same instance once more in active procedure (i.e. the example to be verified is the historical sample).So, by the historical sample in interface instance library recently go out current moment into Row updates.And when to current moment is updated out recently, it nearest current moment out will can be updated to execute update operation At the time of, it will can also go out recently current moment at the time of be updated to generate example to be verified;Certainly, this specification is one or more real It applies example and is limited not to this.
Step 206, when there is no the historical sample to match with the example to be verified, the example to be verified is added It adds in the interface instance library, and the example to be verified is marked as unknown state.
In the present embodiment, when the historical sample to match with example to be verified is not present in interface instance library, explanation The example to be verified is never to occur in historical process.So, which can be added in interface instance library, and And by the example markers to be verified be unknown state, so that follow-up process is further confirmed.
It in the present embodiment, can be for the exemplary configuration " aging mechanism " recorded in interface instance library, to interface instance Expired example in library is cleared up.For example, when the current moment that goes out recently of any historical sample in the interface instance library is having When imitating except the period, any historical sample is deleted.By the implementation of above-mentioned " aging mechanism ", so that interface instance library In only save not out of date example.
In the present embodiment, since the data volume of interface instance library storage is very big, if (i.e. above-mentioned verifying example to be verified The process of step 204-206) when to fish for data in interface instance library again real to search the history to match with example to be verified Example, then will cause huge inquiry pressure, and will lead in the presence of time-consuming obstruction risk.It, can be by configuring reality for above-mentioned hidden danger Example banked cache is to solve the above problems.It is all in the interface instance library to be marked as normal shape as an exemplary embodiment The historical sample of state is added into the example banked cache in case library cache initialization.In other words, slow in case library When depositing initialization, all historical samples for being marked as normal condition are inquired from interface instance library, and be added to case library In caching.So, it can be searched in example banked cache and match with example to be verified and be marked as the history of normal condition Example.As it can be seen that being delayed by above-mentioned " caching mechanism " to the historical sample for being marked as normal condition in interface instance library It deposits, the efficiency of above-mentioned verification process can be improved.
Further, incremental update and full dose can be used and update the mode that combines to guarantee all quilts in interface instance library It is added in example banked cache in time labeled as the historical sample of normal condition.As an exemplary embodiment, each The historical sample newly modified in the interface instance library in delta period is added into the example banked cache (hereinafter referred to as Incremental update), all historical samples for being marked as normal condition are updated according to the full dose period in the interface instance library To (hereinafter referred to as full dose update) in the example banked cache.Wherein, the duration in the full dose period is greater than the increment week The duration of phase.
For example, delta period can be set as to a minute rank, for example be 1 minute;It is hour by full dose cycle set Rank, for example be 1 hour.So, the delta period according to 1 minute will be modified within the current delta period in interface instance library The historical sample of (state is modified) is added in example banked cache;According to 1 hour full dose period by institute in interface instance library There is the historical sample for being marked as normal condition to be added in example banked cache.As it can be seen that passing through incrementally period and full dose week Phase updates example banked cache, it is ensured that the timeliness and validity of example banked cache institute storing data.
In the present embodiment, by above-mentioned " caching mechanism " to the history for being marked as normal condition in interface instance library When example is cached, Bloom filter storage example can be used, by the way that (advantage is space efficiency and inquiry by Bloom filter Time is all considerably beyond general algorithm) as the carrier for caching example, the utilization rate to memory space can be improved;Meanwhile When verifying to example to be verified, search efficiency can be improved.In addition, configuring " ageing machine for interface instance library based on above-mentioned System " and the mode that full dose update is carried out for example banked cache, clear up example expired in interface instance library On the basis of, if further implementing the operation for carrying out full dose update to example banked cache, need to delete the portion in example banked cache Point example (the expired example being cleaned).And in view of Bloom filter there is a problem of deleting difficulty, it can be by with lower section Formula has added data to avoid the problem that deleting in Bloom filter: when according to the full dose period update example banked cache When, all historical samples for being marked as normal condition are stored in newly created Bloom filter in the interface instance library. In other words, when needing to carry out full dose update to example banked cache, Bloom filter can be created newly to store example banked cache and need The example of record;Meanwhile can will before (i.e. to example banked cache carry out full dose update before) used by Bloom filter delete.
It in the present embodiment, is (the i.e. confirmation to be tested in above-mentioned steps 206 of the case where example newly occur for example to be verified Example the case where being marked as unknown state), when by user's artificial judgment, to go out the emerging example be regular instance, Yong Huke First state modification request is issued by user end to server to modify with the state to the emerging example.Alternatively, Server judges whether the emerging example is regular instance according to the performance of expected change for being directed to example corresponding to interface.Cause This, server can receive the first state modification request or the example to be verified for being directed to the example to be verified When related service meets performance of expected change, by the nearest modification time adjustment of the example to be verified be execute the modification operation when It carves, and the state of the example to be verified is revised as normal condition by unknown state.
It in the present embodiment, can be using the corresponding interface parameters of the example to be verified as rope after obtaining example to be verified Draw and stores into search engine.So, when example to be verified is newly example occur, and it is emerging by user's artificial judgment to go out this When example is regular instance, user can issue the request of the second status modifier to the emerging reality by user end to server The state of example is modified.Therefore, it when receiving the second status modifier request for the example to be verified, can be connect according to this Mouth parameter is searched corresponding example (finding the example to be verified) in a search engine, and is requested according to the second status modifier It modifies to the state of the example to be verified and (normal condition is revised as by unknown state).By it is above-mentioned using interface parameters as Index stores the efficiency that subsequent modification example state can be improved to the process of search engine.
In order to make it easy to understand, being carried out specifically to the maintenance scheme in the interface instance library of this specification with reference to the accompanying drawing It is bright.
Fig. 3 is referred to, Fig. 3 is the process of the maintaining method in another interface instance library that an exemplary embodiment provides Figure.As shown in figure 3, this method is applied in server, may comprise steps of:
Step 302, example to be verified is obtained.
In the present embodiment, server can obtain the example to be verified that calling interface generates according to predetermined period.Further , the corresponding interface parameters of example to be verified can be stored indexed by into search engine.Can be with card certificate to inquire user Example, the scene information (the key-value key-value pair of crucial interface parameters) of instance X is stored into search engine.Wherein, Key-value key-value pair includes: business identity-order1001, sells product code-mintrance, cash register that source systems-are wireless Platform.So, above-mentioned key-value pair can be stored indexed by into search engine, so that subsequent user is carrying out mark to instance X Shi Shixian fast search (is discussed in detail below).
Step 304, it is searched in example banked cache and matches with example to be verified and be marked as the history of normal condition Example.
In the present embodiment, example banked cache can configure all in record interface case library to be marked as normal condition (Normal) historical sample.It is described in detail below with reference to Fig. 4-5 pairs of interface instance libraries and example banked cache.
Fig. 4 is referred to, Fig. 4 is a kind of flow chart in update interface instance library that an exemplary embodiment provides.Such as Fig. 4 institute To show, this method is applied in server, it may comprise steps of:
In step 402, in query interface case library historical sample time window size.
In step 404, the effective period of time of historical sample is calculated.
In the present embodiment, it is real that history can be calculated according to the current time of system and the time window size of historical sample The effective period of time of example.Wherein, time window size can be regarded as effective time.
For example, it is assumed that the time window size of historical sample A is 5min, current time 12:00.So, history The effective period of time of example A is (12:00~12:05).
In a step 406, judge historical sample goes out current moment whether in effective period of time recently, if in effective time In section, then step 408 is transferred to;Otherwise, it is transferred to step 410.
In a step 408, retain the historical sample.
In step 410, the historical sample is deleted.
In the present embodiment, it is undertaken in the example above, in one case, it is assumed that historical sample A's goes out current moment recently For 12:03, then historical sample A is not out of date, i.e. historical sample A in reservation interface instance library.In another case, it is assumed that go through The current moment that goes out recently of historical facts example A is 12:07, then historical sample A is out of date, i.e., need to be by historical sample A from interface instance library It deletes.
Fig. 5 is referred to, Fig. 5 is a kind of flow chart for update example banked cache that an exemplary embodiment provides.Such as Fig. 5 institute To show, this method is applied in server, it may comprise steps of:
In step 502, judge whether example banked cache has initialized, if having initialized, be transferred to step 504;Otherwise, It is transferred to step 506.
In the present embodiment, since the data volume of interface instance library storage is very big, if existing again when verifying example to be verified Data are fished in interface instance library to search the historical sample to match with example to be verified, then huge inquiry will be caused to press Power, and will lead in the presence of time-consuming obstruction risk.Therefore, it can be inquired from interface instance library in case library cache initialization All historical samples for being marked as normal condition, and be added in example banked cache.So, it is tested to example to be verified When card, it can be searched directly in example banked cache and match with example to be verified and be marked as the historical sample of normal condition. Therefore, by caching to the historical sample for being marked as normal condition in interface instance library, embodiment illustrated in fig. 3 can be improved In efficiency that example to be verified is verified.
In step 504, judge whether current time is full dose renewable time, if full dose renewable time, is then transferred to step Rapid 506;Otherwise, it is transferred to step 508.
In the present embodiment, for example, it is assumed that delta period 1min, the full dose period is 1h, and sets each hour The 15th minute be full dose renewable time, i.e., in full dose renewable time execute full dose update operation.So, in a kind of situation Under, when current time is 13:10, execute the operation of incremental update;In another case, it is 13 when current time: When 15, the operation that full dose updates is executed.
In step 506, full dose update is carried out to example banked cache.
In the present embodiment, when determining to need to carry out full dose update to example banked cache, by institute in interface instance library There is the historical sample for being marked as normal condition to be added in example banked cache.And interface instance is updated according to above-mentioned Fig. 4 The embodiment in library is it is found that the example deleted when updating interface instance library, updates operation by executing full dose, can delete the institute The example removed synchronization removal from example banked cache.As it can be seen that updating example banked cache by above-mentioned full dose and updating interface instance The mode in library in example banked cache, it can be achieved that be marked as being marked as normal shape in the example and interface instance library of normal condition The example of state, which synchronizes, to be consistent.
In the present embodiment, Bloom filter can be used, and (advantage is space efficiency and query time all considerably beyond general Algorithm) memory carrier as example banked cache, the utilization rate to memory space on the one hand can be improved, on the other hand can be right Example to be verified improves search efficiency when being verified.In addition, based on it is above-mentioned for interface instance library configuration " aging mechanism " with And the mode of full dose update is carried out for example banked cache, on the basis for clearing up example expired in interface instance library On, if further implementing the operation for carrying out full dose update to example banked cache, the part for needing to delete in example banked cache is real Example (the expired example being cleaned).And in view of Bloom filter there is a problem of deleting difficulty, it can newly create the grand filtering of cloth Memory carrier (Bloom filter abandon before) of the device as example banked cache, so as to avoid the need for deleting Bloom filter In the problem of having added data.
For example, it is assumed that memory carrier of the Bloom filter A as example banked cache is used within the 1st full dose period Carry out all historical samples for being marked as normal condition in memory interface case library.When so, within the 2nd full dose period, newly Creation Bloom filter B stores all historical samples for being marked as normal condition in current interface case library, and can be with Delete Bloom filter A.
It should be noted that storage is example in the memory carrier using Bloom filter as example banked cache Structure MD5.Therefore, it in the embodiment shown in Fig. 3-7, is illustrated with the structure MD5 of example.
In step 508, incremental update is carried out to example banked cache.
In the present embodiment, by carrying out incremental update to example banked cache, it may make and increase in interface instance library currently The historical sample for being marked as normal condition increased newly in the amount period is added in time in example banked cache, to guarantee reality The timeliness and validity of example banked cache institute storing data.
Step 306, judge whether to search hit, if searching hit, be transferred to step 308;Otherwise, it is transferred to step 310.
Step 308, example to be verified is added to update queue.
In the present embodiment, match with example to be verified and be marked as normal condition when existing in example banked cache When historical sample, illustrate that the example to be verified is the example for once occurring in historical process and being marked as normal condition, and Occur same instance once more in active procedure (i.e. the example to be verified is the historical sample).It therefore, can be to be tested by this Confirm that example is added to update queue.Wherein, the example updated in queue is the example for being marked as normal condition.So, it takes The current moment that goes out recently of example corresponding in case library can be updated by business device according to the example recorded in queue is updated. And when to current moment is updated out recently, it, can also at the time of nearest current moment out being updated to execute update operation Nearest current moment out is updated to the generation moment of corresponding example;Certainly, this specification one or more embodiment is not right This is limited.
Step 310, example to be verified is added to insertion queue.
In the present embodiment, when the historical sample to match with example to be verified is not present in example banked cache, explanation The example to be verified is never to occur in historical process.Therefore, which can be added in insertion queue.Its In, insertion queue is for recording in current preset period (obtaining the predetermined period of example to be verified) emerging example (i.e. The example for being not labeled as normal condition).So, server can will be inserted into the example batch recorded in queue and be added to interface reality In example library, and it is labeled as unknown state (Unknown).
For the state of each historical sample in interface instance library, can by user by client issue status modifier request into Row mark, or judge whether example is in normal condition according to preset performance of expected change by server.With reference to the accompanying drawing 6-7 is described in detail.
Fig. 6 is referred to, Fig. 6 is a kind of flow chart for modification example state that an exemplary embodiment provides.Such as Fig. 6 institute To show, this method is applied in server, it may comprise steps of:
Step 602, reception state modification request.
Step 604, example is searched in search engine.
It in the present embodiment, whether can be regular instance by the emerging example of user's artificial judgment, user can pass through visitor Family end issues status modifier request (can be first state modification request, be also possible to the request of the second status modifier) to server To modify to the state of the emerging example.
For example, when server receives status modifier request, according to respective instance, (status modifier is asked The example for asking modification) scene information search the example in a search engine.The citing being undertaken in above-mentioned steps 302, can root It is quick in search engine according to " business identity-order1001 sells product code-mintrance, source systems-are wireless cashier " Find instance X.
Step 606, the nearest modification moment of the example found is modified.
Step 608, the state of the example found is modified.
In the present embodiment, be undertaken in the example above, by modify instance X the nearest modification moment, and by instance X by Unknown state is revised as normal condition, so that instance X can be added to reality in time when carrying out incremental update to example banked cache In example banked cache.
Fig. 7 is referred to, Fig. 7 is the flow chart for another modification example state that an exemplary embodiment provides.Such as Fig. 7 institute To show, this method is applied in server, it may comprise steps of:
Step 702, the example for being marked as unknown state is obtained.
Step 704, judge whether the example got meets performance of expected change, if meeting, be transferred to step 706;Otherwise, it returns Return step 702.
In the present embodiment, server can be predicted for the possible emerging example of interface, to configure expected change Change.So, it can judge that the example got (is marked as unknown shape according to the performance of expected change for being directed to example corresponding to interface State) it whether is regular instance.Therefore, when the example got meets performance of expected change, (business of scene corresponding to the example changes Meet performance of expected change) when, at the time of by the nearest modification time adjustment of the example got to execute modification operation, and will Its state is revised as normal condition by unknown state.
Step 706, the nearest modification moment of the example got is modified.
Step 708, the state of the example got is modified.
In the present embodiment, by the nearest modification moment of the example got in amendment step 702, and by the example Normal condition is revised as by unknown state, so that can in time add the example when carrying out incremental update to example banked cache Into example banked cache.
Fig. 8 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.Referring to FIG. 8, in hardware view, it should Equipment includes processor 802, internal bus 804, network interface 806, memory 808 and nonvolatile memory 810, is gone back certainly It may include hardware required for other business.Processor 802 reads corresponding computer journey from nonvolatile memory 810 Then sequence is run into memory 808, the maintenance device in interface instance library is formed on logic level.Certainly, in addition to software realization Except mode, other implementations, such as logical device or software and hardware is not precluded in this specification one or more embodiment In conjunction with mode etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, is also possible to Hardware or logical device.
Referring to FIG. 9, in Software Implementation, the maintenance device in the interface instance library may include:
Acquiring unit 901 obtains the corresponding example to be verified of interface;
Updating unit 902, when in the corresponding interface instance library of the interface exist match with the example to be verified and When being marked as the historical sample of normal condition, the current moment that goes out recently of the historical sample is updated;
Marking unit 903, when there is no the historical sample to match with the example to be verified, by the confirmation to be tested Example is added in the interface instance library, and the example to be verified is marked as unknown state.
Optionally, when the nearest current moment out of any historical sample in the interface instance library is except effective period of time When, any historical sample is deleted.
Optionally, in the interface instance library all historical samples for being marked as normal condition at the beginning of example banked cache It is added into when beginningization in the example banked cache;Described device further include:
Searching unit 904, lookup matches and is labeled with the example to be verified and is positive in the example banked cache The historical sample of normal state.
Optionally, the historical sample newly modified in the interface instance library in each delta period is added into the reality In example banked cache, all historical samples for being marked as normal condition are updated according to the full dose period in the interface instance library To in the example banked cache, the duration in the full dose period is greater than the duration of the delta period.
Optionally, the example banked cache stores example using Bloom filter;When according to full dose period update institute When stating example banked cache, all historical samples for being marked as normal condition are stored in newly created cloth in the interface instance library In grand filter.
Optionally, further includes:
First modification unit 905, receive for the example to be verified first state modification request or it is described It is to execute to be somebody's turn to do by the nearest modification time adjustment of the example to be verified when the related service of example to be verified meets performance of expected change At the time of modification operation, and the state of the example to be verified is revised as normal condition by unknown state.
Optionally, further includes:
The corresponding interface parameters of the example to be verified is stored indexed by into search engine by storage unit 906;
Second modification unit 907, when receiving the second status modifier request for the example to be verified, according to institute It states interface parameters and searches corresponding example in described search engine, and requested according to second status modifier to described to be tested Confirm that the state of example is modified.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (15)

1. a kind of maintaining method in interface instance library, comprising:
Obtain the corresponding example to be verified of interface;
Match with the example to be verified when existing in the corresponding interface instance library of the interface and be marked as normal condition Historical sample when, to the historical sample recently go out current moment be updated;
When there is no the historical sample to match with the example to be verified, the example to be verified is added to the interface In case library, and the example to be verified is marked as unknown state.
2. according to the method described in claim 1, when the current moment that goes out recently of any historical sample in the interface instance library exists When except effective period of time, any historical sample is deleted.
3. according to the method described in claim 1, all historical samples for being marked as normal condition in the interface instance library It is added into case library cache initialization in the example banked cache;The method also includes:
It is searched in the example banked cache and matches with the example to be verified and be marked as the historical sample of normal condition.
4. according to the method described in claim 3, the history newly modified in the interface instance library in each delta period is real Example is added into the example banked cache, all historical samples for being marked as normal condition quilt in the interface instance library It is updated in the example banked cache according to the full dose period, the duration in the full dose period is greater than the duration of the delta period.
5. according to the method described in claim 4, the example banked cache stores example using Bloom filter;When according to described When the full dose period updates the example banked cache, all historical samples for being marked as normal condition are deposited in the interface instance library It is stored in newly created Bloom filter.
6. according to the method described in claim 1, further include:
It is receiving for the first state modification request of the example to be verified or the related service of the example to be verified When meeting performance of expected change, at the time of by the nearest modification time adjustment of the example to be verified to execute modification operation, and will The state of the example to be verified is revised as normal condition by unknown state.
7. according to the method described in claim 1, further include:
The corresponding interface parameters of the example to be verified is stored indexed by into search engine;
When receiving the second status modifier request for the example to be verified, according to the interface parameters in described search Corresponding example is searched in engine, and the state of the example to be verified is repaired according to second status modifier request Change.
8. a kind of maintenance device in interface instance library, comprising:
Acquiring unit obtains the corresponding example to be verified of interface;
Updating unit matches and is marked as with the example to be verified when existing in the corresponding interface instance library of the interface When the historical sample of normal condition, the current moment that goes out recently of the historical sample is updated;
Marking unit adds the example to be verified when there is no the historical sample to match with the example to be verified Extremely in the interface instance library, and the example to be verified is marked as unknown state.
9. device according to claim 8 exists when the current moment that goes out recently of any historical sample in the interface instance library When except effective period of time, any historical sample is deleted.
10. device according to claim 8, all historical samples for being marked as normal condition in the interface instance library It is added into case library cache initialization in the example banked cache;Described device further include:
Searching unit searches in the example banked cache and matches with the example to be verified and be marked as normal condition Historical sample.
11. device according to claim 10, the history newly modified in the interface instance library in each delta period Example is added into the example banked cache, and all historical samples for being marked as normal condition are equal in the interface instance library Be updated in the example banked cache according to the full dose period, the duration in the full dose period be greater than the delta period when It is long.
12. device according to claim 11, the example banked cache stores example using Bloom filter;When according to institute When stating the full dose period update example banked cache, all historical samples for being marked as normal condition in the interface instance library It is stored in newly created Bloom filter.
13. device according to claim 8, further includes:
First modification unit, receive for the example to be verified first state modification request or it is described to be verified It is to execute modification behaviour by the nearest modification time adjustment of the example to be verified when the related service of example meets performance of expected change At the time of work, and the state of the example to be verified is revised as normal condition by unknown state.
14. device according to claim 8, further includes:
The corresponding interface parameters of the example to be verified is stored indexed by into search engine by storage unit;
Second modification unit, when receiving the second status modifier request for the example to be verified, according to the interface Parameter searches corresponding example in described search engine, and is requested according to second status modifier to the example to be verified State modify.
15. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize such as side of any of claims 1-7 Method.
CN201811012568.XA 2018-08-31 2018-08-31 Maintaining method and device, the electronic equipment in interface instance library Pending CN109255001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811012568.XA CN109255001A (en) 2018-08-31 2018-08-31 Maintaining method and device, the electronic equipment in interface instance library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811012568.XA CN109255001A (en) 2018-08-31 2018-08-31 Maintaining method and device, the electronic equipment in interface instance library

Publications (1)

Publication Number Publication Date
CN109255001A true CN109255001A (en) 2019-01-22

Family

ID=65049871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811012568.XA Pending CN109255001A (en) 2018-08-31 2018-08-31 Maintaining method and device, the electronic equipment in interface instance library

Country Status (1)

Country Link
CN (1) CN109255001A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828721A (en) * 2019-01-23 2019-05-31 平安科技(深圳)有限公司 Data-erasure method, device, computer equipment and storage medium
WO2022247422A1 (en) * 2021-05-27 2022-12-01 深圳市中兴微电子技术有限公司 Resource queue management interface verification method, electronic device, and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282241A (en) * 2008-05-04 2008-10-08 中国科学院计算技术研究所 System and method for real time processing network route topological in autonomy system
CN101764893A (en) * 2009-10-12 2010-06-30 南京联创科技集团股份有限公司 Communication traffic fluctuation monitoring method based on data intermediate layer
CN102223312A (en) * 2011-07-26 2011-10-19 杭州华三通信技术有限公司 Flow control method and equipment based on link status
CN103049353A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Data backup method and related device
CN104331492A (en) * 2014-11-14 2015-02-04 北京国双科技有限公司 Method and device for caching multi-instance data
CN105740445A (en) * 2016-02-02 2016-07-06 贵州大学 Database query method and device
CN105812171A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Virtualized network function VNF control method and device
CN106599005A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Data archiving method and device
US20170147430A1 (en) * 2015-11-20 2017-05-25 Texas Instruments Incorporated Methods and apparatus to detect and correct errors in destructive read non-volatile memory
CN106778259A (en) * 2016-12-28 2017-05-31 北京明朝万达科技股份有限公司 A kind of abnormal behaviour based on big data machine learning finds method and system
CN106843835A (en) * 2016-12-21 2017-06-13 中国电子科技网络信息安全有限公司 A kind of application systems software constructing system of meta data customizing, system constituting method
CN106850274A (en) * 2017-01-06 2017-06-13 千寻位置网络有限公司 A kind of intelligent packet method and apparatus for issuing Big Dipper ground strengthening system
CN107885587A (en) * 2017-11-17 2018-04-06 清华大学 A kind of executive plan generation method of big data analysis process
CN107888659A (en) * 2017-10-12 2018-04-06 北京京东尚科信息技术有限公司 The processing method and system of user's request
CN108228620A (en) * 2016-12-14 2018-06-29 北京搜狗科技发展有限公司 A kind of Word library updating method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282241A (en) * 2008-05-04 2008-10-08 中国科学院计算技术研究所 System and method for real time processing network route topological in autonomy system
CN101764893A (en) * 2009-10-12 2010-06-30 南京联创科技集团股份有限公司 Communication traffic fluctuation monitoring method based on data intermediate layer
CN102223312A (en) * 2011-07-26 2011-10-19 杭州华三通信技术有限公司 Flow control method and equipment based on link status
CN103049353A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Data backup method and related device
CN104331492A (en) * 2014-11-14 2015-02-04 北京国双科技有限公司 Method and device for caching multi-instance data
CN105812171A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Virtualized network function VNF control method and device
CN106599005A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Data archiving method and device
US20170147430A1 (en) * 2015-11-20 2017-05-25 Texas Instruments Incorporated Methods and apparatus to detect and correct errors in destructive read non-volatile memory
CN105740445A (en) * 2016-02-02 2016-07-06 贵州大学 Database query method and device
CN108228620A (en) * 2016-12-14 2018-06-29 北京搜狗科技发展有限公司 A kind of Word library updating method and device
CN106843835A (en) * 2016-12-21 2017-06-13 中国电子科技网络信息安全有限公司 A kind of application systems software constructing system of meta data customizing, system constituting method
CN106778259A (en) * 2016-12-28 2017-05-31 北京明朝万达科技股份有限公司 A kind of abnormal behaviour based on big data machine learning finds method and system
CN106850274A (en) * 2017-01-06 2017-06-13 千寻位置网络有限公司 A kind of intelligent packet method and apparatus for issuing Big Dipper ground strengthening system
CN107888659A (en) * 2017-10-12 2018-04-06 北京京东尚科信息技术有限公司 The processing method and system of user's request
CN107885587A (en) * 2017-11-17 2018-04-06 清华大学 A kind of executive plan generation method of big data analysis process

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828721A (en) * 2019-01-23 2019-05-31 平安科技(深圳)有限公司 Data-erasure method, device, computer equipment and storage medium
WO2020151332A1 (en) * 2019-01-23 2020-07-30 平安科技(深圳)有限公司 Data deletion method and apparatus, computer device, and storage medium
CN109828721B (en) * 2019-01-23 2022-06-28 平安科技(深圳)有限公司 Data deleting method and device, computer equipment and storage medium
WO2022247422A1 (en) * 2021-05-27 2022-12-01 深圳市中兴微电子技术有限公司 Resource queue management interface verification method, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN105718455B (en) A kind of data query method and device
US8498998B2 (en) Grouping identity records to generate candidate lists to use in an entity and relationship resolution process
CN106021267B (en) To the method and system for concurrently reading and being inserted into of data structure
Gu et al. Fluid: Dataset abstraction and elastic acceleration for cloud-native deep learning training jobs
CN107943718B (en) Method and device for cleaning cache file
US10067968B2 (en) Pre-caching of relational database management system based on data retrieval patterns
US10769114B2 (en) Database syncing
CN107092628B (en) Time series data processing method and device
CN109815425A (en) Caching data processing method, device, computer equipment and storage medium
CN110032598A (en) Method for updating field and device, electronic equipment
CN108319608A (en) The method, apparatus and system of access log storage inquiry
CN109284305A (en) A kind of update method of data, apparatus and system
Yin et al. Muse: A multi-tierd and sla-driven deduplication framework for cloud storage systems
Bermbach et al. A middleware guaranteeing client-centric consistency on top of eventually consistent datastores
CN109255001A (en) Maintaining method and device, the electronic equipment in interface instance library
US10579644B2 (en) Record property synchronization in a network computing system
CN109947729A (en) A kind of real-time data analysis method and device
CN109885535A (en) A kind of method and relevant apparatus of file storage
CN108897868A (en) Cache synchronization method and device, calculating equipment and storage medium based on trigger
CN108829497A (en) The bearing calibration of affairs causal ordering and device, electronic equipment
CN107220248B (en) Method and device for storing data
Yan et al. Hmfs: efficient support of small files processing over HDFS
US20170228449A1 (en) Frequency Dependent Partial Index
US10067849B2 (en) Determining dynamic statistics based on key value patterns
CN101635001A (en) Method and apparatus for extracting information from a database

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
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122

RJ01 Rejection of invention patent application after publication