CN109766265A - Intelligent O&M method, apparatus, computer equipment and storage medium - Google Patents

Intelligent O&M method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109766265A
CN109766265A CN201811537425.0A CN201811537425A CN109766265A CN 109766265 A CN109766265 A CN 109766265A CN 201811537425 A CN201811537425 A CN 201811537425A CN 109766265 A CN109766265 A CN 109766265A
Authority
CN
China
Prior art keywords
data
application program
functional module
operation data
risk
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
CN201811537425.0A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811537425.0A priority Critical patent/CN109766265A/en
Publication of CN109766265A publication Critical patent/CN109766265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of intelligent O&M method, apparatus, computer equipment and storage mediums, the described method includes: obtaining the operation data that each functional module of application program is output and input, and according to preset data exception rule, whether the operation data of detection function module output is abnormal;When the operation data exception of functional module output, the risk class of application program is assessed by preset risk rule according to the operation data of all functional modules exception in application program;Emergency processing is carried out to the application program according to the risk class of application program or/and early warning is carried out to preset O&M side.The present invention carries out intellectual analysis by the operation data generated in the process of running to application program, and then evaluate risk of the application program when there is data exception, to carry out emergency processing to the application program according to different risk classes, unnecessary loss is caused to avoid to user, enhances user experience.

Description

Intelligent O&M method, apparatus, computer equipment and storage medium
Technical field
The present invention relates to cloud monitoring fields more particularly to a kind of intelligent O&M method, apparatus, computer equipment and storage to be situated between Matter.
Background technique
Lead to line there are no can automatically detect the problem or defect in the software of on-line running in the industry now On software go wrong after, can not find at the first time and take effective counter-measure with reduce loss, and i.e. allow to It was found that software goes wrong, the position that the problem in software corresponds to defect also can not be accurately obtained, loss is frequently can lead to and expands, Therefore need a kind of method and apparatus that can be detected and prompt risk automatically and safeguard software on line, with reduce operation at This, and promote user experience.
Summary of the invention
Based on this, the present invention provides a kind of intelligent O&M method, apparatus, computer equipment and storage medium, for answering Assess the risk class of the application program when occurring abnormal with the operation data of program, and according to the risk class respectively into Row emergency processing causes unnecessary loss to avoid to user, enhances user experience.
A kind of intelligence O&M method, comprising:
Obtain the operation data that each functional module of application program is output and input;
All preset data exception rules are traversed, detecting whether there is and the function in each data exception rule The input data that the operation data of module input matches;Comprising at least one input in each described data exception rule Data and with the associated normal output data of the input data, the normal output data refer to the input data input described in After in functional module, the operation data that should export when which operates normally;
When the input data to match in the data exception rule in the presence of the operation data inputted with the functional module When, it detects associated described with the input data in the operation data and data exception rule of the functional module output Whether normal output data matches;
When with being mismatched in the data exception rule with the associated normal output data of the input data, confirmation The operation data of the functional module output is abnormal, and records the operation data of the functional module exception;
According to the operation data of all functional modules exception in the application program, institute is assessed by preset risk rule State the risk class of application program;
Emergency processing is carried out to the application program according to the risk class of the application program or/and to preset O&M side Carry out early warning.
A kind of intelligence O&M device, comprising:
Data acquisition module, the operation data output and input for obtaining each functional module of application program;
Detection module, for traversing all preset data exceptions rules, detect in each data exception rule whether The input data to match in the presence of the operation data inputted with the functional module;It is wrapped in each described data exception rule Containing at least one input data and with the associated normal output data of the input data, the normal output data refers to that this is defeated Enter after data input in the functional module, the operation data which should export when operating normally;
There is the operation data phase inputted with the functional module for working as in the data exception rule in matching module When the input data matched, detect in the operation data and data exception rule of functional module output with the input number Whether matched according to the associated normal output data;
Abnormal module, for when and the data exception it is regular in the associated normal output data of the input data When mismatch, confirm that the operation data of the functional module output is abnormal, and record the operation data of the functional module exception;
Evaluation module, for the operation data according to all functional modules exception in the application program, by preset Risk rule assesses the risk class of the application program;
Warning module is handled, for carrying out emergency processing to the application program according to the risk class of the application program Or/and early warning is carried out to preset O&M side.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize the step of above-mentioned intelligent O&M method when executing the computer program Suddenly.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes the step of above-mentioned intelligent O&M method when being executed by processor.
Above-mentioned intelligence O&M method, apparatus, computer equipment and storage medium, by application program in the process of running The operation data of generation carries out intellectual analysis, to judge it is different whether data that the application program generates in the process of running occur Often, when the operation data of the application program occurs abnormal, intelligence further is carried out to the abnormal case of the operation data Analysis, evaluates risk of the application program when there is data exception, to answer according to different risk classes described Emergency processing is carried out with program, unnecessary loss is caused to avoid to user, enhances user experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of intelligent O&M method in one embodiment of the invention;
Fig. 2 is the flow chart of intelligent O&M method in one embodiment of the invention;
Fig. 3 is the flow chart of the step S40 of intelligent O&M method in one embodiment of the invention;
Fig. 4 is the flow chart of the step S50 of intelligent O&M method in one embodiment of the invention;
Fig. 5 is the flow chart of intelligent O&M method in another embodiment of the present invention;
Fig. 6 is the flow chart of intelligent O&M method in another embodiment of the present invention;
Fig. 7 is the functional block diagram of intelligent O&M device in one embodiment of the invention;
Fig. 8 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Intelligence O&M method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein client (computer Equipment/terminal device) it is communicated by network with server (server-side).It obtains and is generated in application program operational process first Operation data, and analyze it, to determine whether it exception occurs, pass through further analysis assessment when occurring abnormal The risk class of the application program out, and emergency processing is carried out according to different risk classes respectively.Wherein, client (meter Calculate machine equipment/terminal device) it include but is not limited to various personal computers, laptop, smart phone, tablet computer and just Take formula wearable device.Server can be with the server cluster of the either multiple server compositions of independent server come real It is existing.
In one embodiment, as shown in Fig. 2, providing a kind of intelligent O&M method, the service in Fig. 1 is applied in this way It is illustrated, includes the following steps: for device
S10: the operation data that each functional module of application program is output and input is obtained.
The operation data refers to, application program in the process of running caused by data, for example, working as the application program When for browser, the operation data includes but is not limited to webpage title, webpage quantity, uniform resource locator, shows on webpage The advertisement text etc. shown in the number of links that is shown on time for showing, webpage, webpage;For another example, when the application program is branch When the system of paying, the operation data includes but is not limited to the payment amount of user's input, the payment system to the side's of being paid for branch Pay the amount of money, user data such as pre-stored amount of money in the payment system.Understandably, it is run described in each single item The functional module namely the operation data that data both correspond in the application program are by the application program The data that one of functional module generates in the process of running.For example, when the application program is payment system, user's input Payment amount (i.e. operation data) correspond to input functional module (the i.e. payment amount of user input of the payment system It is the data generated in the process of running by the input functional module of the payment system), the payment system is to the side's of being paid for branch The amount of money paid corresponds to the payment function module of the payment system.Specifically, the input in the functional module of each application program Operation data and the operation data of output be one of described operation data;The operation data is obtained, for inspection Survey whether the operation data exception occurs.
S20: all preset data exceptions rules of traversal, detect in each data exception rule with the presence or absence of with it is described The input data that the operation data of functional module input matches;Comprising at least one in each described data exception rule Input data and with the associated normal output data of the input data, the normal output data refer to the input data input After in the functional module, the operation data that should export when which operates normally.
Wherein, the data exception rule is preset according to demand, and is stored in the database of server;Each In data exception rule comprising at least one of input data (data type, specification including the input data etc.) and With the associated normal output data (data type, specification including the normal output data etc.) of the input data, described defeated When entering in some functional module that data input in the application program, the functional module can be made to be existed according to the input data The operation data exported under normal operating condition is normal output data.The normal output data is opening for the application program Originator is preset when developing the application program, in the functional module of the application program, if inputting the input number According to operating normally the operation data exported after the functional module according to the input data at this time is the normal output number According to;If the operation data of output is not the normal output data, it is abnormal to represent operation data at this time.The input data and institute Stating normal output data can be the set of multiple data, but an also determination and specific data.
For example, one data exception rules are as follows when application program is payment system: in the gold to be paid of user's input When volume (i.e. the type of input data) is 0-50000 first (i.e. the specification of input data), then the payment system (namely applies journey Sequence) payment amount (the i.e. class of the normal output data of operation data transferred accounts to the side of being paid for of payment module (functional module) Type) it is equal (specification of the i.e. described normal output data) with the amount of money to be paid of user's input;At this time the application program according to After the input data (amount of money to be paid) operates normally, the normal output data of the operation data (payment amount) exported is The payment amount equal with the amount of money to be paid, payment amount that the payment system is transferred accounts to the side of being paid for and it is described to When payment amount is unequal, illustrate that the operation data of the output is not normal output data, it is (corresponding to represent operation data at this time In the operation data of the output of the payment module) it is abnormal.For another example, when application program is browser, a data exception rules As follows: user instructs (i.e. the type of input data) by clicking the ad-request that preset advertisement button is sent, then the browsing Advertisement (type of the i.e. normal output data) quantity of advertisement display module (functional module) display of device (application program) is 10 Item (specification of i.e. normal output data), in this data exception rules, input data is ad-request instruction, the application After program is operated normally according to the input data, the normal output data of the operation data exported is 10 advertisements of display;? The number of ads of display be not 10 or/and display be not advertisement when, illustrate that the operation data of the output is not normally to export It is abnormal to represent operation data (operation data corresponding to the advertisement display module) at this time for data.
Understandably, the operation data and a data exception for referring to that the function mould inputs that match Input data matching in rule, while the data type of the two, specification etc. also match, for example, if the operation number of the input According to being 500 yuan of the amount of money to be paid, then to make the two match, the input data in the data exception rule also must be wait prop up Pay the amount of money, and the data exception rule in the amount of money to be paid must include 500 yuan, such as the data exception rule in Payment amount (input data) is 0-50000 member;That is, when the input data in the data exception rule is multiple data When set (such as above-mentioned 0-50000 member), as long as the operation data of the input belongs to the interval range of the set of the input data Interior (for example the operation data of the input is 500 yuan) represents the operation data and data exception rule of the input In input data matching.
Specifically, all preset data exceptions rules are traversed, detect in each data exception rule with the presence or absence of with The input data that the operation data of the functional module input matches, it is defeated for detecting the functional module in step s 30 Whether matched in operation data and data exception rule out with the associated normal output data of the input data.
S30: when the input to match in the data exception rule in the presence of the operation data inputted with the functional module When data, detect associated with the input data in the operation data and data exception rule of the functional module output Whether the normal output data matches.
When the input data to match in the data exception rule in the presence of the operation data inputted with the functional module When, the operation data for representing the input is normal data, namely does not occur exception, at this point, detecting the functional module output Operation data and the data exception rule in whether matched with the associated normal output data of the input data, with For judging whether the operation data of the functional module output exception occurs in step s 40.
S40: when with being mismatched in the data exception rule with the associated normal output data of the input data, Confirm that the operation data of the functional module output is abnormal, and records the operation data of the functional module exception.
When the functional module output operation data and the data exception rule in the associated institute of the input data When stating normal output data mismatch, the operation data for representing the functional module output is not the developer of the application program It is preset when developing the application program, in the functional module of the application program, if inputting the input data (i.e. The operation data of input) when the operation data exported after the functional module, Ye Jisuo operated normally according to the input data There is exception in the operation data for stating functional module output, at this point, confirming that the operation data of the functional module output is abnormal, and remember The operation data of the functional module exception is recorded, for by preset risk rule, assessing described using journey in step s 50 The risk class of sequence.
S50: it according to the operation data of all functional modules exception in the application program, is commented by preset risk rule Estimate the risk class of the application program.
Wherein, the risk rule is preset according to the demand of user, and is stored in the database of server.As It is preferred that the risk class of each application program includes warning level and high-risk rank.When the operation data exception, represent It generates the corresponding functional module of the operation data and exception occurs, i.e., can not normally realize that the developer of the application program sets in advance The function that the fixed corresponding functional module of the operation data must reach, at this point, according to the functional mould of institute in the application program The operation data of block exception, assesses the risk class of the application program, by preset risk rule so as in subsequent step The middle risk class according to the application program carries out emergency processing respectively or/and carries out early warning to preset O&M side.
S60: emergency processing is carried out to the application program according to the risk class of the application program or/and to preset fortune Dimension side carries out early warning.
The emergency processing refers to that the operation of the abnormal corresponding functional module of the operation data, delay occurs in pause The realization etc. of the abnormal corresponding functional module function of the operation data, for example, being payment system when the application program, When the operation data for abnormal operation data occur for payment function module, the time of delay in payment, i.e. user input branch After paying the amount of money and sending payment instruction, delay regular hour payment, until the abnormal cause of the operation data is transported by correlation Dimension personnel detect reason and repair.The O&M side refers to operation and the maintenance side of the application program, such as operation maintenance personnel on line Deng.Early warning is carried out to the O&M side, can be sent out by way of summarizing the abnormal operation data and compiling mail It send to the O&M side, it can also be by showing corresponding risk class on preset display interface, thus to the O&M Fang Jinhang early warning.
According to the different risk classes, different emergency processings is carried out respectively to the application program;Implement one In example, early warning only is carried out to the O&M side when the risk class is high-risk rank, it is in risk class and not up to high-risk When rank, only records exception and the corresponding functional module of the operation data of the operation data etc. and store to service In the database of device, transferring for operation maintenance personnel is waited.By the highest-ranking operation data of high-risk rank, that is, priority processing it is abnormal and The processing of O&M side described in Shi Tongzhi, the low operation data exception record of priority processing rank is got off and is stored to the number of server According in library, is checked so that O&M side has handled to transfer again after high priority processing rank, improve the efficiency of O&M, enhance user's body It tests.
The intelligent O&M method of the present embodiment carries out intelligence by the operation data generated in the process of running to application program It can analyze, to judge whether the data that the application program generates in the process of running exception occur, in the application program When operation data occurs abnormal, intellectual analysis further is carried out to the abnormal case of the operation data, evaluates the application Risk of the program when there is data exception, so that emergency processing is carried out to the application program according to different risk classes, Unnecessary loss is caused to avoid to user, enhances user experience.
In one embodiment, after the step S30, further includes:
When with matching in the data exception rule with the associated normal output data of the input data, institute is confirmed The operation data for stating functional module output is normal, and is back to and continues to obtain the fortune that each functional module of application program is output and input Row data.
Understandably, when the functional module output operation data and the data exception rule in the input number According to the associated normal output data matching, i.e., in the operation data and data exception rule that the described functional module exports It is matched with numerical value, data type, the specification etc. of the associated normal output data of the input data, that is, represents the operation Data do not occur exception, at this point, confirming that the operation data is without exception, and are back to and continue to obtain each functional module of application program The operation data output and input.
In one embodiment, as shown in figure 3, the step S50 the following steps are included:
S501 obtains the wind of all abnormal operation datas in same application according to preset risk rule Dangerous grade.
Wherein, natural number of the risk class between 0-9, each risk rule include a functional module, And risk class of the operation data of functional module when occurring abnormal.For example, when the application program is payment system, One risk rule is as follows: when the operation data of payment function module occurs abnormal, risk class 9.Specifically, one is detected The abnormal corresponding functional module of the operation data further traverses all risk rules, detects the fortune of the exception Whether the corresponding functional module of row data matches with the functional module in each risk rule, when the operation data pair of the exception When the functional module answered is matched with the functional module in the risk rule, the operation number of the functional module in the risk rule According to risk class when occurring abnormal, the as risk class of the operation data of the exception, at this point, obtaining the operation number of the exception According to risk class, and above-mentioned acquisition process is executed to next abnormal operation data, until all abnormal described The risk class of operation data is acquired, for detecting whether the sum of all described risk class are greater than in advance in step S502 If high-risk threshold value.
S502, detects whether the sum of all described risk class are greater than preset high-risk threshold value.
The high-risk threshold value can be preset according to the demand of user, preferably, the high-risk threshold value is 7.
Detect whether the sum of all described risk class are greater than the high-risk threshold value, when the sum of all described risk class are big When the high-risk threshold value, S503 is entered step, the risk class for assessing the application program is high-risk rank;When all described When the sum of risk class is less than or equal to the high-risk threshold value, assessing the application program is warning level.
S503 assesses the risk of the application program when the sum of all described risk class are greater than the high-risk threshold value Rank is high-risk rank.
When the sum of all described risk class are greater than the high-risk threshold value, represent and occur exception in the application program Operation data has significant impact to the realization of the major function of the application program, at this point, assessing the wind of the application program Dangerous rank is high-risk rank, for carrying out emergency processing to the application program according to the risk class in the next steps.
S504 assesses the application program when the sum of all described risk class are less than or equal to the high-risk threshold value Risk class be warning level.
When the sum of all described risk class are less than or equal to the high-risk threshold value, represent and occur in the application program Abnormal operation data is smaller on the realization of the major function of application program influence, at this point, assessing the application program Risk class is warning level, for being carried out at emergency according to the risk class to the application program in the next steps Reason.
The risk level assessment method of the present embodiment is by judging whether the sum of all described risk class are greater than the height Endanger threshold value, can the more acurrate assessment application program risk class, in order in the next steps according to the levels of risk Emergency processing is not carried out to the application program respectively.
In one embodiment, the risk class includes warning level and high-risk rank;The operation data is by described The functional module of application program generates in operation;As shown in figure 4, in the step S60, it is described according to the risk class into Row emergency processing, comprising the following steps:
S601, whether the risk class for detecting the application program is warning level;
It is corresponding to suspend the abnormal operation data when the risk class of the application program is warning level by S602 Functional module operation.
As above-mentioned, the operation data is to be generated in operation by the functional module of application program namely the operation journey Sequence belongs to certain functional module in the application program.When the risk class is warning level, that is, represents and exception occur The corresponding functional module of the operation data be not be that the main functional modules of application program (execute the main function of the application program Can), for example, there is the abnormal corresponding functional module of the operation data when the application program is music player software There is exception in the not main modulars such as music playing module, such as the operation data of lyrics display module module, at this point, because going out The functional module of existing operation data exception is not to influence the functional module of application program major function realization, therefore suspend the fortune The operation of the corresponding functional module of row data, the operation data and its risk class of records abnormal, and by record The operation data is sent to preset O&M side so that the O&M side is safeguarded, the function of operation data exception occurs in pause Energy module, it can reduce running memory, promote operating rate, can also prevent because of the (described of continuous service program error It is abnormal that program error refers to that operation data occurs) collapse of entire application program that may cause of functional module, and only suspend institute The functional module of program error is stated, the operation of the main functional modules of the application program is not influenced, so that user is applying journey It when the operation data of the non-principal functional module of sequence occurs abnormal, remains to continue to use, enhances user experience.
S603 suspends the operation of the application program when the risk class of the application program is high-risk rank.
When the risk class is high-risk rank, representing the abnormal corresponding functional module of the operation data of appearance is Main functional modules in application program, for example, when the application program is payment system, the operation number of payment function module It is abnormal according to occurring, at this point, being answered because abnormal operation data occur in the main functional modules of the application program if continuing to this With the operation of program, the collapse of entire application program may result in, and bring loss to user;Understandably, when the wind When dangerous rank is high-risk rank, also possible representative has and exception occurs in the operation data of only multiple non-principal functional modules, this When, there is exception simultaneously in the operation data of multiple non-principal functional modules, represents the application program and is likely to occur profound mistake Accidentally, or be not suitable for current running environment;Therefore, it when the risk class is high-risk rank, is both needed to suspend described using journey The operation of sequence, the operation data and its risk class of records abnormal, and by the abnormal operation data and its Risk class is sent to preset O&M side to be repaired and be safeguarded, until the O&M side completes after repairing and passes through click Preset button restarts the operation of the application program, avoids and causes unnecessary loss to user, enhances user experience.
In one embodiment, as shown in figure 5, being further comprised the steps of: after the step S40
S70 detects the abnormal corresponding functional module of the operation data, and obtains the program program generation of the functional module Code;
Understandably, when the operation data exception, the program program generation of the corresponding functional module of the operation data Code can also have a corresponding mistake, the mistake may be to be formed complete cycle circuit program code there is the circuit can not It recycles (a certain link i.e. in the circuit does not plan a successor, and can not completely be recycled), also or endless loop (institute occurs It states circuit to recycle always at runtime, and recycling can not obtain correct result or preset data into next step each time) Situations such as, at this point, the corresponding functional module of the operation data of detection exception further obtains the abnormal operation In the corresponding functional module of data, for the program code according to the operation data of input data output abnormality, for The program code is modified in subsequent step.
S80 is modified the program code of the functional module of acquisition.
Wherein, the makeover process is that the program code for the functional module that will acquire replaces with its alternate program generation Code, the alternate program code are edited in advance by the developer of the application program.Specifically, the functional module is obtained first The alternate program code of program code further executed using the alternate program code described in obtaining in step S70 Function performed by the program code of functional module, to eliminate the exception of the operation data of the functional module.
In one embodiment, as shown in fig. 6, being further comprised the steps of: before the step S10
S90 traverses the code of the application program, and whether the code for detecting the application program has syntax error.
Specifically, the code for traversing the application program detects whether the code has according to preset syntax rule Syntax error.The syntax rule is preset according to the demand of user, that is, includes the general syntax rule of industry, such as variable Whether it is defined, whether comprising required library function header file, various symbols (such as colon, branch, braces, round bracket) With whether specification etc. is met, also includes the rule of special grammar as defined in the application program, i.e., compiled in the application program The special grammar for needing to meet during journey is regular (syntax rule is only applicable in the application program).When in the application program Code have syntax error when, mark have syntax error code and its place sequence (such as #include of which row < Stdio.h >), and by with syntax error code and its place sequence show in current display interface, for preset fortune Dimension side can quick obtaining there is the code of syntax error and it be modified;When the code of the application program is not present When syntax error, S100 is entered step, runs the code of the application program, to detect whether the code has logic wrong Accidentally.
It in one embodiment, can be according to the grammer after the code for detecting the application program has syntax error Rule forms correct code (i.e. completion or amendment have the code after the code of syntax error), and replaces corresponding tool There is the code of syntax error, to realize detection and modified automation, promotes O&M efficiency.
S100, when the code of the application program does not have syntax error, the code of application program described in trial operation, with Whether the code for detecting the application program has logic error.
When the code of the application program does not have syntax error, the code of application program described in trial operation, by defeated Enter preset data, detects whether to export correct data that (the correct data refer to that the developer of application program is developing Preset when the application program, when inputting the input data, according to the input data, the application program must be defeated Data out), determine whether the code of the application program has logic error, i.e., before application program launching operation, Trial operation and dry run data are carried out to the application program, (met above-mentioned when the operation data of simulation is normal Data exception rule), that is, represent the application program code do not have logic error, at this point, confirming the application program Code do not have logic error;When the operation data exception of simulation namely the code of the application program have patrol When collecting mistake, breakpoint is arranged by the code to the application program, debugging examination is carried out sentence by sentence to the code of the application program Operation detects the code of the application program with logic error and its sequence at place, is marked, and shows In current display interface, for preset O&M side can quick obtaining logic error code and it is modified, promoted The efficiency of O&M.
S110 runs the code of the application program when the code of the application program does not have logic error, generates The operation data of the application program.
When the code of the application program does not have logic error, the code for supporting the application program to run is being represented just Normal inerrancy, at this point, the application program is run, in the next steps according to the operation generated in application program operation Data detect the application program with the presence or absence of risk.
The present invention carries out intellectual analysis by the operation data generated in the process of running to application program, described in judgement Whether the data that application program generates in the process of running there is exception, occur in the operation data of the application program abnormal When, intellectual analysis further is carried out to the abnormal case of the operation data, evaluates the application program data occur different Risk when often causes to carry out emergency processing to the application program according to different risk classes to avoid to user Unnecessary loss, and the functional completeness and just of the application program can not only be detected before the application program on-line running True property, moreover it is possible to which intelligent measurement causes the operation data abnormal code occur in the application program operational process, and right It carries out emergency processing, enhances user experience.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of intelligent O&M device is provided, which intelligently transports with above-described embodiment Dimension method corresponds.As shown in fig. 7, the intelligence O&M device includes data acquisition module 11, detection module 12, matching module 13, abnormal module 14, evaluation module 15, processing warning module 16.Detailed description are as follows for each functional module:
The data acquisition module 11, the operation data output and input for obtaining each functional module of application program;
The detection module 12 detects each data exception rule for traversing all preset data exception rules In the input data that matches with the presence or absence of the operation data that is inputted with the functional module;Each described data exception rule In comprising at least one of input data and with the associated normal output data of the input data, the normal output data is After referring to that the input data inputs in the functional module, operation data which should export when operating normally;
There is the operation number inputted with the functional module for working as in the data exception rule in the matching module 13 When according to the input data to match, detects in the operation data and data exception rule of the functional module output and be somebody's turn to do Whether the associated normal output data of input data matches;
The abnormal module 14, for when and the data exception rule in the input data it is associated it is described normally it is defeated When data mismatch out, confirm that the operation data of the functional module output is abnormal, and record the fortune of the functional module exception Row data;
The evaluation module 15 passes through for the operation data according to all functional modules exception in the application program Preset risk rule assesses the risk class of the application program;
Warning module 16 is handled, for carrying out emergency processing to the application program according to the risk class of the application program Or/and early warning is carried out to preset O&M side.
In one embodiment, the evaluation module 15 includes:
Acquiring unit, for obtaining all abnormal operations in same application according to preset risk rule The risk class of data;
Risk supervision unit, for detecting whether the sum of all described risk class are greater than preset high-risk threshold value;
First assessment unit, for being answered described in assessment when the sum of all described risk class are greater than the high-risk threshold value It is high-risk rank with the risk class of program;
Second assessment unit, for assessing when the sum of all described risk class are less than or equal to the high-risk threshold value The risk class of the application program is warning level.
In one embodiment, the processing warning module 16 includes:
Detection unit, for detecting the risk class of the application program;
Warning unit, for suspending the abnormal operation when the risk class of the application program is warning level The operation of the corresponding functional module of data;
High-risk unit, for suspending the application program when the risk class of the application program is high-risk rank Operation.
In one embodiment, the intelligent O&M device further include:
Module is obtained, for detecting the abnormal corresponding functional module of the operation data, and obtains the functional module Program code;
Correction module, the program code for the functional module to acquisition are modified.
In one embodiment, the intelligent O&M device further include:
Grammer detection module, for traversing the code of the application program, whether the code for detecting the application program has There is syntax error;
Commissioned module, for applying journey described in trial operation when the code of the application program does not have syntax error The code of sequence, to detect whether the code of the application program has logic error;
Generation module, for running the application program when the code of the application program does not have logic error, with Generate the operation data of the application program.
In one embodiment, the intelligent O&M device further include:
Confirmation module, for when and the data exception it is regular in the associated normal output data of the input data When matching, confirm that the operation data of the functional module output is normal, and be back to and continue to obtain each functional module of application program The operation data output and input.
Specific about intelligent O&M device limits the restriction that may refer to above for intelligent O&M method, herein not It repeats again.Modules in above-mentioned intelligence O&M device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 8.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of intelligent O&M method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Obtain the operation data that each functional module of application program is output and input;
All preset data exception rules are traversed, detecting whether there is and the function in each data exception rule The input data that the operation data of module input matches;Comprising at least one input in each described data exception rule Data and with the associated normal output data of the input data, the normal output data refer to the input data input described in After in functional module, the operation data that should export when which operates normally;
When the input data to match in the data exception rule in the presence of the operation data inputted with the functional module When, it detects associated described with the input data in the operation data and data exception rule of the functional module output Whether normal output data matches;
When with being mismatched in the data exception rule with the associated normal output data of the input data, confirmation The operation data of the functional module output is abnormal, and records the operation data of the functional module exception;
According to the operation data of all functional modules exception in the application program, institute is assessed by preset risk rule State the risk class of application program;
Emergency processing is carried out to the application program according to the risk class of the application program or/and to preset O&M side Carry out early warning.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain the operation data that each functional module of application program is output and input;
All preset data exception rules are traversed, detecting whether there is and the function in each data exception rule The input data that the operation data of module input matches;Comprising at least one input in each described data exception rule Data and with the associated normal output data of the input data, the normal output data refer to the input data input described in After in functional module, the operation data that should export when which operates normally;
When the input data to match in the data exception rule in the presence of the operation data inputted with the functional module When, it detects associated described with the input data in the operation data and data exception rule of the functional module output Whether normal output data matches;
When with being mismatched in the data exception rule with the associated normal output data of the input data, confirmation The operation data of the functional module output is abnormal, and records the operation data of the functional module exception;
According to the operation data of all functional modules exception in the application program, institute is assessed by preset risk rule State the risk class of application program;
Emergency processing is carried out to the application program according to the risk class of the application program or/and to preset O&M side Carry out early warning.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of intelligence O&M method characterized by comprising
Obtain the operation data that each functional module of application program is output and input;
All preset data exception rules are traversed, detecting whether there is and the functional module in each data exception rule The input data that the operation data of input matches;Comprising at least one input data in each described data exception rule And with the associated normal output data of the input data, the normal output data refers to that the input data inputs the function After in module, the operation data that should export when which operates normally;
When there is the input data that the operation data inputted with the functional module matches in the data exception rule, inspection It surveys associated described normal defeated with the input data in the operation data and data exception rule of the functional module output Whether data match out;
When with being mismatched in the data exception rule with the associated normal output data of the input data, described in confirmation The operation data of functional module output is abnormal, and records the operation data of the functional module exception;
According to the operation data of all functional modules exception in the application program, by being answered described in the assessment of preset risk rule With the risk class of program;
Emergency processing is carried out to the application program according to the risk class of the application program or/and preset O&M side is carried out Early warning.
2. intelligence O&M method as described in claim 1, which is characterized in that described functional according to institute in the application program The operation data of module exception, the risk class of the application program is assessed by preset risk rule, comprising:
According to preset risk rule, the risk class of all abnormal operation datas in same application is obtained;
Detect whether the sum of all described risk class are greater than preset high-risk threshold value;
When the sum of all described risk class are greater than the high-risk threshold value, it is high-risk for assessing the risk class of the application program Rank;
When the sum of all described risk class are less than or equal to the high-risk threshold value, the risk class of the application program is assessed For warning level.
3. intelligence O&M method as described in claim 1, which is characterized in that the risk class according to the application program Emergency processing is carried out to the application program, comprising:
Detect the risk class of the application program;
When the risk class of the application program is warning level, suspend the abnormal corresponding functional module of the operation data Operation;
When the risk class of the application program is high-risk rank, suspend the operation of the application program.
4. intelligence O&M method as described in claim 1, which is characterized in that it is described when and data exception rule in be somebody's turn to do When the associated normal output data of input data mismatches, confirm that the operation data of the functional module output is abnormal, and After the operation data for recording the functional module exception, further includes:
The abnormal corresponding functional module of the operation data is detected, and obtains the program code of the functional module;
The program code of the functional module of acquisition is modified.
5. intelligence O&M method as described in claim 1, which is characterized in that each functional module input of acquisition application program Before the operation data of output, further includes:
Whether the code for traversing the application program, the code for detecting the application program have syntax error;
When the code of the application program does not have syntax error, the code of application program described in trial operation, described in detection Whether the code of application program has logic error;
When the code of the application program does not have logic error, the application program is run, to generate the application program Operation data.
6. intelligence O&M method as described in claim 1, which is characterized in that it is described when exist in the data exception rule with When the input data that the operation data of the functional module input matches, the operation data of the functional module output is detected, After whether being matched in the data exception rule with the associated normal output data of the input data, further includes:
When with matching in the data exception rule with the associated normal output data of the input data, the function is confirmed The operation data of energy module output is normal, and is back to and continues to obtain the operation number that each functional module of application program is output and input According to.
7. a kind of intelligence O&M device characterized by comprising
Data acquisition module, the operation data output and input for obtaining each functional module of application program;
Detection module, for traversing all preset data exception rules, detecting whether there is in each data exception rule The input data to match with the operation data of functional module input;Comprising extremely in each described data exception rule One item missing input data and with the associated normal output data of the input data, the normal output data refers to the input number After inputting in the functional module, operation data which should export when operating normally;
Matching module has what the operation data inputted with the functional module matched for working as in the data exception rule When input data, detects and closed in the operation data and data exception rule of the functional module output with the input data Whether the normal output data of connection matches;
Abnormal module, for when and the data exception it is regular in the associated normal output data of the input data not Timing confirms that the operation data of the functional module output is abnormal, and records the operation data of the functional module exception;
Evaluation module passes through preset risk for the operation data according to all functional modules exception in the application program The risk class of application program described in rule evaluation;
Handle warning module, for according to the risk class of the application program to the application program carry out emergency processing or/and Early warning is carried out to preset O&M side.
8. intelligence O&M device as claimed in claim 7, which is characterized in that the processing warning module includes:
Detection unit, for detecting the risk class of the application program;
Warning unit, for suspending the abnormal operation data when the risk class of the application program is warning level The operation of corresponding functional module;
High-risk unit, for suspending the operation of the application program when the risk class of the application program is high-risk rank.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of any one of 6 intelligent O&M method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the step of realization intelligent O&M method as described in any one of claim 1 to 6 when the computer program is executed by processor Suddenly.
CN201811537425.0A 2018-12-15 2018-12-15 Intelligent O&M method, apparatus, computer equipment and storage medium Pending CN109766265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811537425.0A CN109766265A (en) 2018-12-15 2018-12-15 Intelligent O&M method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811537425.0A CN109766265A (en) 2018-12-15 2018-12-15 Intelligent O&M method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109766265A true CN109766265A (en) 2019-05-17

Family

ID=66450683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811537425.0A Pending CN109766265A (en) 2018-12-15 2018-12-15 Intelligent O&M method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109766265A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880990A (en) * 2020-07-20 2020-11-03 北京三快在线科技有限公司 Exception handling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071147A1 (en) * 2015-10-30 2017-05-04 宇龙计算机通信科技(深圳)有限公司 Mobile payment monitoring method and system, and intelligent terminal
CN108062629A (en) * 2017-12-26 2018-05-22 平安科技(深圳)有限公司 Processing method, terminal device and the medium of transaction event
CN108491320A (en) * 2018-03-05 2018-09-04 平安普惠企业管理有限公司 Exception analysis method, device, computer equipment and the storage medium of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071147A1 (en) * 2015-10-30 2017-05-04 宇龙计算机通信科技(深圳)有限公司 Mobile payment monitoring method and system, and intelligent terminal
CN108062629A (en) * 2017-12-26 2018-05-22 平安科技(深圳)有限公司 Processing method, terminal device and the medium of transaction event
CN108491320A (en) * 2018-03-05 2018-09-04 平安普惠企业管理有限公司 Exception analysis method, device, computer equipment and the storage medium of application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王杰;: "基于Android智能手机入侵风险评估模块的设计与实现", 现代电子技术, no. 16, 31 August 2016 (2016-08-31), pages 44 - 47 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880990A (en) * 2020-07-20 2020-11-03 北京三快在线科技有限公司 Exception handling method and device
CN111880990B (en) * 2020-07-20 2023-10-27 北京三快在线科技有限公司 Exception handling method and device

Similar Documents

Publication Publication Date Title
Hovorushchenko Methodology of evaluating the sufficiency of information for software quality assessment according to ISO 25010
CN109871319A (en) Item code scan method, device, computer equipment and storage medium
Yin et al. On representing resilience requirements of microservice architecture systems
Ulewicz et al. Increasing system test coverage in production automation systems
CN109783387A (en) Thread test method, device, computer equipment and storage medium
CN111125697B (en) Intelligent contract defect triggerability detection method and system based on defect abstract
CN107480048A (en) Testing tool generation method, device, storage medium and computer equipment
Mijatov et al. Testing functional requirements in UML activity diagrams
CN109766265A (en) Intelligent O&amp;M method, apparatus, computer equipment and storage medium
Wang et al. Boosting Static Resource Leak Detection via LLM-based Resource-Oriented Intention Inference
Vaddadi et al. Shift left testing paradigm process implementation for quality of software based on fuzzy
CN111858377A (en) Quality evaluation method and device for test script, electronic device and storage medium
CN109189672A (en) Automatic test approach, server and the computer readable storage medium of micro services
CN109684205A (en) System detection method, device, electronic equipment and storage medium
CN112748950B (en) Software code examination method and device
Lal et al. Intelligent Testing in Software Industry
Henderson et al. Evaluating automatic fault localization using markov processes
Kumar et al. An empirical study of bad smell in code on maintenance effort
Aho et al. IVVES (Industrial-Grade Verification and Validation of Evolving Systems).
Ganji et al. Code coverage criteria for asynchronous programs
Devasena et al. Meta heuristic search technique for dynamic test case generation
Duarte et al. Extraction of probabilistic behaviour models based on contexts
Paiva et al. Supporting the Automated Generation of Acceptance Tests of Process-Aware Information Systems.
WO2022196219A1 (en) Program analysis device, program analysis method, and tracing process addition device
US20240232898A1 (en) Automatically creating recurring transactions

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