CN105743730B - The method and its system of real time monitoring are provided for the web service of mobile terminal - Google Patents
The method and its system of real time monitoring are provided for the web service of mobile terminal Download PDFInfo
- Publication number
- CN105743730B CN105743730B CN201410770543.1A CN201410770543A CN105743730B CN 105743730 B CN105743730 B CN 105743730B CN 201410770543 A CN201410770543 A CN 201410770543A CN 105743730 B CN105743730 B CN 105743730B
- Authority
- CN
- China
- Prior art keywords
- url
- mobile terminal
- resource locator
- uniform resource
- real time
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to field of communication technology, discloses a kind of web service for mobile terminal and the method and system of real time monitoring are provided.The simulator of at least one mobile terminal operating system is installed, the method comprising the steps of in the present invention, in computer: running the simulator of at least one mobile terminal operating system in a computer;Mobile terminal operating system is run in simulator;Application program is run in mobile terminal operating system, and url is loaded by webview control;The page to be monitored is obtained by url, and service availability analysis is carried out to the page;If down state occurs in service, warning message is generated.In the present invention, since the simulator of mobile terminal operating system is installed and is run on computers, consumption any flow of user is not needed, it does not need exploitation addition error log in the corresponding back-end services of url or interface and buries information yet, the probability that the workload and mistake for reducing exploitation occur.
Description
Technical field
The present invention relates to fields of communication technology, in particular to provide the method for real time monitoring for the web service of mobile terminal
And its system.
Background technique
Service availability monitoring is always the problem of Internet enterprises must be taken into consideration, and traditional monitoring scheme can generally pass through
Log is added in the application and buries the information such as a little, when have it is abnormal will record log, then pass through another monitoring service not
What the crawl stopped was set buries a little, and monitoring system discovery error log can issue alarm when burying.It so, just must be
Code a little is buried in the log that unrelated business is embedded in, increases development cost and maintenance cost, requires to many methods
Addition log buries information and reaches monitoring effect.In addition, burying for this error log a little needs to report clothes by the network of user
Business end or monitoring center.Server-side perhaps monitoring center come analyze error log positioning abnormal problem occur interface or
Then service sends warning message to point man.Therefore this mode can consume the flow of user itself, for some non-WIFI
For user under environment, each byte can lead to the problem of the rate of operator, big major injury user experience.
On the other hand, for the monitoring of wireless Internet web service, a slightly a little bigger complete service item
Involved url can be very much, it is desirable to all url availabilities are monitored, if passing through the information of burying that error log is added
Mode realizes, then when the factors such as the content change of url, changes of function, the corresponding service of url be offline, requires to develop again
It buries a little.
Therefore, above-mentioned mentioned user experience problem and maintenance cost, which are asked, to be considered for the monitoring of service availability
Topic.
Summary of the invention
The method of real time monitoring is provided the purpose of the present invention is to provide a kind of web service for mobile terminal and its is
System does not need consumption any flow of user, does not need the addition error log in the corresponding back-end services of url or interface yet and buries
Point information, the probability that the workload and mistake for reducing exploitation occur.
In order to solve the above technical problems, embodiments of the present invention are disclosed and a kind of are provided for the web service of mobile terminal
The method of real time monitoring is equipped with the simulator of at least one mobile terminal operating system in computer, and this method includes following
Step:
The simulator of at least one mobile terminal operating system is run in a computer;
Mobile terminal operating system is run in the simulator of mobile terminal operating system;
Operation includes the application program of webview control in mobile terminal operating system, is loaded by webview control
Uniform resource locator url;
The page to be monitored is obtained by uniform resource locator url, and service availability is carried out to the acquired page
Analysis;
If down state occurs in service, warning message is generated.
Embodiments of the present invention also disclose a kind of web service for mobile terminal and provide the system of real time monitoring, count
The simulator of at least one mobile terminal operating system is installed, which includes: in calculation machine
The simulator of at least one mobile terminal operating system run in a computer, simulator are mobile whole for running
Operating system is held, for running the application program including webview control, which passes through mobile terminal operating system
Webview control loads uniform resource locator url;
Service availability analysis module, for obtaining the page to be monitored by uniform resource locator url, and to being obtained
The page taken carries out service availability analysis;
Alarm module generates warning message if there is down state for service.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
By realizing the application program including webview control in the simulator of mobile terminal operating system, by answering
Url is loaded with program and analyzes the service availability of the page, since the simulator of mobile terminal operating system is on computers
It installs and runs, do not need consumption any flow of user, also do not need to be added in the corresponding back-end services of url or interface
Error log buries information, the probability that the workload and mistake for reducing exploitation occur.
Further, after page load, by computer in the application program automatic trigger screen sliding at least once
Event is updated the acquired page, the page can have been prevented to be not loaded with.
Further, sub- url involved in a configured url is automatically grabbed by way of recursion resolution, and
The sub- url of sub- url, significantly reduces the cost of direct surveillance, substantially increases monitoring efficiency, and the content of url is occurred
The case where variation, can grab the content of newest url in real time, bury the information such as a little woth no need to remodify log.
Further, the url in the page corresponding to uniform resource locator url father node is extracted by regular expression
Child node, extraction efficiency is high, and can be avoided and omit url child node.
Further, when being stored to all uniform resource locator url parsed, after being handled by hash with
Hash value as index, when have service it is not available happen when, convenient for being indexed by hash value, quickly position url
Corresponding service interface is to send warning message.
Further, duplicate url is an identical task for monitoring, therefore to the unified resource parsed
Finger URL url child node carries out duplicate removal processing, efficiently avoids the duplicate service availability analysis for the same url.
It is possible to further dynamically monitor whether url content changes, the content of newest url is grabbed in real time.
Further, by detecting url type of error, and warning message is sent to by corresponding service according to type of error
Interface, can the quick corresponding service interface that should send of locating alarming information, accelerate processing speed and accuracy.
Detailed description of the invention
Fig. 1 is that a kind of web service for mobile terminal provides the method for real time monitoring in first embodiment of the invention
Flow diagram;
Fig. 2 is that a kind of web service for mobile terminal provides the method for real time monitoring in second embodiment of the invention
Flow diagram;
Fig. 3 is that a kind of web service for mobile terminal provides the method for real time monitoring in third embodiment of the invention
Overall execution flow chart;
Fig. 4 is the url rule configured from the background in third embodiment of the invention;
Fig. 5 is that a kind of web service for mobile terminal provides the system of real time monitoring in four embodiment of the invention
Structural schematic diagram.
Specific embodiment
In the following description, in order to make the reader understand this application better, many technical details are proposed.But this
The those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodiments
And modification, each claim of the application technical solution claimed can also be realized.
Term is explained:
Webpage url: being usually the hypertext link for the http agreement beginning or http agreement beginning opened by browser
It connects, a url represents a unique resource address or resource file on internet.
Multi-layer: by the configuration of a url, can analyze out all hyperlink url for including inside the url, and
Can recurrence obtain comprising the url inside hyperlink url, i.e. recurrence obtains all url in url.
Monitoring: judge whether current url can be used, if can normally provide service.
Service availability: the service availability hereinafter mentioned is logical to refer to that url can be accessed normally or can normally be provided
The property of service.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention
Mode is described in further detail.
First embodiment of the invention is related to a kind of web service for mobile terminal and provides the method for real time monitoring, Fig. 1
It is the flow diagram for the method that the web service for mobile terminal provides real time monitoring.
Specifically, the simulator of at least one mobile terminal operating system is equipped in computer, as shown in Figure 1, should
Method the following steps are included:
Step 101, the simulator of at least one mobile terminal operating system is run in a computer.
Mobile terminal operating system can be android or IOS operating system.
Step 102, mobile terminal operating system is run in the simulator of mobile terminal operating system.
Step 103, application program of the operation including webview control in mobile terminal operating system, passes through webview
Control loads uniform resource locator url.
Step 104, the page to be monitored is obtained by uniform resource locator url, and the acquired page is taken
Availability of being engaged in analysis.
Preferably, it after step 103, further comprises the steps of: and triggers screen sliding event at least once in the application, and root
The page acquired after webview control load uniform resource locator url is updated according to screen sliding event.
After page load, by computer automatic trigger screen sliding event at least once in the application, to acquired
Page the case where being updated, the page can having been prevented to be not loaded with.
Furthermore, it is to be understood that under normal circumstances, needing to trigger two to screen sliding event three times.
Screen sliding event can be upper cunning or downslide, when upper sliding, the page switching that will acquire to next page.Work as downslide
When, the page switching that will acquire to previous page.In other embodiments of the present invention, other screen sliding things can also be taken
Part, and it is not limited to this.
Then into step 105, if down state occurs in service, warning message is generated.
After generating warning message, warning message can be both sent to corresponding service interface, it can also be by warning message
It saves, is called when needed.In addition it is also possible to be determined the need for sending report according to the height of exception information grade
Alert information.
Furthermore, it is to be understood that existing monitoring scheme is wrong by being added inside the specific method of service logic mostly
Accidentally log is buried a little, and burying for this error log a little needs to report server-side or monitoring center by user network, passes through service
Perhaps monitoring center analyzes the interface or service that error log positioning abnormal problem occurs at end, and it is abnormal then to send alarm
Information is to point man.For this mode, the problems of liquid flow of user itself can be consumed, big major injury user experience.With with
Family ceaselessly uses, and may generate a large amount of journal file in user hand generator terminal, mobile phone EMS memory can be by these for users
Garbage files fill up, and user is needed to delete these journal files manually, and it is too poor to experience.
And present embodiment in the simulator of mobile terminal operating system by realizing the application including webview control
Program loads url by application program and analyzes the service availability of the page, since the simulator of mobile terminal operating system is
Install and run on computers, do not need consumption any flow of user, do not need in the corresponding back-end services of url yet or
Error log is added in interface and buries information, the probability that the workload and mistake for reducing exploitation occur.
Second embodiment of the invention is related to a kind of web service for mobile terminal and provides the method for real time monitoring, Fig. 2
It is the flow diagram for the method that the web service for mobile terminal provides real time monitoring.
Second embodiment is improved on the basis of first embodiment, is mainly theed improvement is that: by passing
Return the mode of parsing to automatically grab the sub- url of sub- url and sub- url involved in a configured url, significantly reduces
The cost of direct surveillance substantially increases monitoring efficiency, and the case where change for url content, can grab in real time most
The content of new url buries the information such as a little woth no need to remodify log;Uniform resource locator is extracted by regular expression
Url child node in the page corresponding to url father node, extraction efficiency is high, and can be avoided and omit url child node;To all solutions
When the uniform resource locator url of precipitation is stored, using hash value as index after being handled by hash, when there is the service can not
With the case where occur when, convenient for being indexed by hash value, position the corresponding service interface of url quickly to send alarm signal
Breath;Duplicate url is an identical task for monitoring, therefore to the uniform resource locator url section parsed
Point carries out duplicate removal processing, efficiently avoids the duplicate service availability analysis for the same url.Specifically:
As shown in Fig. 2, before step 101, it is further comprising the steps of:
Step 001, the uniform resource locator url father node and recursion resolution level that configuration needs to monitor;
Step 002, recursion resolution is carried out to uniform resource locator url father node according to recursion resolution level, is somebody's turn to do
Effective uniform resource locator url child node in the page corresponding to uniform resource locator url father node;
Step 003, all uniform resource locator url child nodes parsed are stored.
The son of sub- url and sub- url involved in a configured url is automatically grabbed by way of recursion resolution
The case where url significantly reduces the cost of direct surveillance, substantially increases monitoring efficiency, and changes for url content,
The content of newest url can be grabbed in real time, bury the information such as a little woth no need to remodify log.
Preferably, " recurrence is carried out to uniform resource locator url father node according to recursion resolution level in step 002
When parsing ", effective unified resource in the page corresponding to uniform resource locator url father node is extracted by regular expression
Finger URL url child node.
The url child node in the page corresponding to uniform resource locator url father node is extracted by regular expression, is mentioned
Take it is high-efficient, and can be avoided omit url child node.
Furthermore, it is to be understood that in other embodiments of the present invention, can also parse otherwise effectively
Uniform resource locator url child node, and be not limited to the mode mentioned in present embodiment.
Preferably, in step 003, including following sub-step:
Hash processing is done to uniform resource locator url child node;
All uniform resource locator url and corresponding hash value, parsing level, corresponding with service interface are unifiedly stored to
In database.
When being stored to all uniform resource locator url parsed, after being handled by hash using hash value as
Index, when having that service is not available to be happened, convenient for being indexed by hash value, the quickly corresponding service of positioning url
Interface is to send warning message.Cache the data structure of storage are as follows: hash value is stored as key, url as value.
Furthermore, it is to be understood that in addition to by uniform resource locator url and corresponding hash value, parsing level, corresponding with service
Interface is unifiedly stored to except database, while being saved in a identical data of caching.
After step 002, further comprise the steps of:
Duplicate removal processing is carried out to the uniform resource locator url child node parsed.
Duplicate url is an identical task for monitoring, therefore to the uniform resource locator url parsed
Child node carries out duplicate removal processing, efficiently avoids the duplicate service availability analysis for the same url.
Furthermore, it is to be understood that deduplication operation to url it is not necessary to the step of, in other embodiments of the present invention
In, it can also be without this step.
Third embodiment of the invention is related to a kind of web service for mobile terminal and provides the method for real time monitoring, third
Embodiment is improved on the basis of second embodiment, is mainly theed improvement is that: can dynamically monitor url content
Whether change, grabs the content of newest url in real time;By detecting url type of error, and according to type of error by alarm signal
Breath is sent to corresponding service interface, can the quick corresponding service interface that should send of locating alarming information, accelerate place
Manage speed and accuracy.Specifically:
Preferably, at step 104, further include following sub-step:
The md5 of the url content obtained from memory and current service availability are analyzed targeted url content to do pair
Than judging whether url content changes;
If changing, current url is parsed again.
It monitors whether url content changes by dynamic, the content of newest url can be grabbed in real time.
Furthermore, it is to be understood that in other embodiments of the present invention, monitoring the step of whether url content changes not
It is necessary.
Including following sub-step preferably, in step 105:
Error code is searched to detect url type of error, type of error includes javascript mistake, and server internal is wrong
Accidentally;
According to url type of error, warning message is sent to corresponding service interface.
By detecting url type of error, and warning message is sent to by corresponding service interface according to type of error, it can be with
The corresponding service interface that quick locating alarming information should be sent, accelerates processing speed and accuracy.
Furthermore, it is to be understood that in other embodiments of the present invention, wrong class can also be detected according to other way
Type, and it is not limited to this.
As the preference of present embodiment, it is illustrated in figure 3 overall execution flow chart, is mainly comprised the steps that
(1) start: configuring the rule of a url, number of levels and service interface comprising needing recursion resolution on backstage
People sees the url rule of backstage configuration as shown in Figure 4, wherein can be with configuration rule title, rule description, and similarity threshold
(picture similarity reaches the threshold value alarm), the level of the page url for needing to monitor and recursion resolution, the son for needing to parse
Block ID does not need the exclusion block parsed and alarm setting.
(2) read configuration: the url rule of backstage configuration is read on foreground, is parsed url by analytics engine and is pressed level demand
All effective url are precipitated in recursive solution.Referring to the analytics engine module in Fig. 3, the function of this block is exactly that can parse backstage to configure
The url url of configuration (Fig. 4 center intra block), according to all effective url in url recursion resolution page-out, and according to matching from the background
The level (number of levels of Fig. 4 frame intra block) that the needs set parse, parses how many layer, and then all recursion resolutions are come out
Url is saved in database.
(3) execute: by all url in reading database, the processing of task processing center judges that the service of url is available
Property.Task processing center as shown in Figure 3 can analyze whether the page in url can normally be opened, if having js extremely wrong
Accidentally etc..
In addition, can also monitor whether the content of pages in url changes by an oracle listener, all url after parsing
It will be stored as key into caching by hash value, and the md5 of url content is used to store as value.In task processing
While whether heart analysis url is good for use, the url of md5 and current the task processing of url content can be obtained from current cache
Content compares, and illustrates that url content does not change if identical, without parsing the sub- url of url again.If content compares
It is not identical, illustrate that the interior of current url has new variation, it is necessary to parse current url again.
(4) result: judged by the result of task center processing, if exception information occurs in some url, alarm can be passed through
Service sends warning message and gives service interface people, supports to send by the work number mode of employee, Wang Wang, short message or mail etc.
Various ways send warning message.
This preference is by a backstage configurator, level that configuration needs the url monitored and needs to monitor (such as 3
Layer).Then the monitored url relevant information of the needs being configured, parsing are read by a task engine (i.e. computer)
All url are distributed to task processing center to the level (3) of configuration by the sub- url of url, recursion resolution.Due to being related to url
Can be very much, distributed task scheduling processing mode can be used in task engine, greatly reduces the time of task execution, being capable of hair style as early as possible
Abnormal url (service is unavailable), and warning message is sent to point man by alarm center service.
Task engine processing includes the url simulation request to individually parsing, and simulation request is by the server
It is mounted with android simulator, needs to install the app that one developed in advance loads url by webview in simulator.
Current url is opened by app, it is a variety of improper to analyze server internal error of js mistake and current url in url etc.
Http status error code information etc..Once it was found that abnormal condition, which can send alarm by alert service center in time, arrives point man
Or developer.
Present embodiment it is a kind of automatically grab the sub- url being related to inside url by way of, and can recurrence grab
The sub- url for taking sub- url, reduces the cost of manual type, substantially increases monitoring efficiency.It changes for the content of url, energy
Enough contents for grabbing newest url in real time remodify log and bury the information such as a little woth no need to develop.Therefore, advantage is embodied in:
1. the sub- url technical solution in recursion resolution url
2. loading url by simulator and analyzing url service availability in real time, if down state, energy occurs in service
Current url type of error is enough analyzed, the type of error that present analysis goes out has but is not limited to: a) in js error message b) server
Portion's mistake.
Each method embodiment of the invention can be realized in a manner of software, hardware, firmware etc..Regardless of the present invention be with
Software, hardware or firmware mode realize that instruction code may be stored in any kind of computer-accessible memory
In (such as permanent perhaps revisable volatibility is perhaps non-volatile solid or non-solid, it is fixed or
The replaceable medium etc. of person).Equally, memory may, for example, be programmable logic array (Programmable Array
Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), it may be programmed read-only deposit
Reservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letter
Claim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as
" EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Four embodiment of the invention is related to a kind of web service for mobile terminal and provides the system of real time monitoring, Fig. 5
It is the structural schematic diagram for the system that the web service for mobile terminal provides real time monitoring.
At least one is equipped in the component computer of real time monitoring specifically, should provide for the web service of mobile terminal
The simulator of a mobile terminal operating system, as shown in figure 5, the system includes:
The simulator of at least one mobile terminal operating system run in a computer, simulator are mobile whole for running
Operating system is held, for running the application program including webview control, which passes through mobile terminal operating system
Webview control loads uniform resource locator url;
Service availability analysis module, for obtaining the page to be monitored by uniform resource locator url, and to being obtained
The page taken carries out service availability analysis;
Alarm module generates warning message if there is down state for service.
By realizing the application program including webview control in the simulator of mobile terminal operating system, by answering
Url is loaded with program and analyzes the service availability of the page, since the simulator of mobile terminal operating system is on computers
It installs and runs, do not need consumption any flow of user, also do not need exploitation in the corresponding back-end services of url or interface
Error log is added and buries information, the probability that the workload and mistake for reducing exploitation occur.
It preferably, further include screen sliding trigger module, for triggering screen sliding event at least once in the application, and according to
Screen sliding event is updated the page acquired after webview control load uniform resource locator url.The page loads it
Afterwards, by computer automatic trigger screen sliding event at least once in the application, the acquired page is updated, it can be with
The page has been prevented to be not loaded with.
First embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with first
Mode is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to
It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the first implementation
In mode.
Fifth embodiment of the invention is related to a kind of web service for mobile terminal and provides the system of real time monitoring, and the 5th
Embodiment is improved on the basis of four embodiments, is mainly theed improvement is that: by way of recursion resolution
The sub- url for automatically grabbing sub- url and sub- url involved in a configured url, significantly reduce direct surveillance at
This, the case where substantially increasing monitoring efficiency, and change for the content of url, can grab the interior of newest url in real time
Hold, buries the information such as a little woth no need to remodify log.Specifically:
The system further includes with lower module:
Configuration module, for configuring the uniform resource locator url father node for needing to monitor and recursion resolution level;
Analytics engine module, for carrying out recursive solution to uniform resource locator url father node according to recursion resolution level
Analysis, obtains effective uniform resource locator url child node in the page corresponding to uniform resource locator url father node;
Memory module, for being stored to all uniform resource locator url child nodes parsed.
Preferably, analytics engine module can extract uniform resource locator url father node institute by regular expression
Effective uniform resource locator url child node in corresponding page.Uniform resource locator url is extracted by regular expression
Url child node in the page corresponding to father node, extraction efficiency is high, and can be avoided and omit url child node.In its of the invention
In its embodiment, effective uniform resource locator url child node can also be parsed otherwise, and is not limited to
Mode mentioned in present embodiment.
Preferably, when memory module stores all uniform resource locator url child nodes parsed, Ke Yixian
Hash processing done to uniform resource locator url child node, then by all uniform resource locator url and corresponding hash value,
Parsing level, corresponding with service interface are unifiedly stored in database.All uniform resource locator url parsed are deposited
Chu Shi, after being handled by hash using hash value as index, when have service it is not available happen when, convenient for pass through hash value
It is indexed, positions the corresponding service interface of url quickly to send warning message.
It preferably, can also be to parsing after recursion resolution obtains effective uniform resource locator url child node
Url child node carries out duplicate removal processing, to be effectively prevented from the duplicate service availability analysis to the same url.
Second embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with second
Mode is worked in coordination implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, in order to
It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the second implementation
In mode.
Sixth embodiment of the invention is related to a kind of web service for mobile terminal and provides the system of real time monitoring, and the 6th
Embodiment is improved on the basis of four embodiments, is mainly theed improvement is that: can dynamically monitor url content
Whether change, grabs the content of newest url in real time;By detecting url type of error, and according to type of error by alarm signal
Breath is sent to corresponding service interface, can the quick corresponding service interface that should send of locating alarming information, accelerate place
Manage speed and accuracy.Specifically:
Further include following submodule in service availability analysis module:
Url content monitors submodule, the md5 and current service availability of the url content for will obtain from memory
It analyzes targeted url content to compare, judges whether url content changes;
If changing, analytics engine module parses current url again.
Including following submodule preferably, in the alarm module:
Type of error judging submodule, for searching error code to detect url type of error, type of error includes
Javascript mistake, server internal error;
Alarm sending submodule, for sending warning message to corresponding service interface according to url type of error.
Third embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with third
Mode is worked in coordination implementation.The relevant technical details mentioned in third embodiment are still effective in the present embodiment, in order to
It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in third implementation
In mode.
It should be noted that each module mentioned in each equipment embodiment of the present invention is all logic module, physically,
One logic module can be a physical module, be also possible to a part of a physical module, can also be with multiple physics
The combination of module realizes that the Physical realization of these logic modules itself is not most important, these logic modules institute reality
The combination of existing function is only the key for solving technical problem proposed by the invention.In addition, in order to protrude innovation of the invention
Part, there is no the technical problem relationship proposed by the invention with solution is less close for the above-mentioned each equipment embodiment of the present invention
Module introduce, this does not indicate above equipment embodiment and there is no other modules.
It should be noted that in the claim and specification of this patent, such as first and second or the like relationship
Term is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying
There are any actual relationship or orders between these entities or operation.Moreover, the terms "include", "comprise" or its
Any other variant is intended to non-exclusive inclusion so that include the process, methods of a series of elements, article or
Equipment not only includes those elements, but also including other elements that are not explicitly listed, or further include for this process,
Method, article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limited
Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
Although being shown and described to the present invention by referring to some of the preferred embodiment of the invention,
It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair
Bright spirit and scope.
Claims (13)
1. a kind of web service for mobile terminal provides the method for real time monitoring, which is characterized in that be equipped in computer to
The simulator of a few mobile terminal operating system, method includes the following steps:
The simulator of at least one mobile terminal operating system is run in a computer;
The mobile terminal operating system is run in the simulator of the mobile terminal operating system;
Operation includes the application program of webview control in the mobile terminal operating system, passes through the webview control
Load uniform resource locator url;
Screen sliding event at least once is triggered in the application program, and webview control is loaded according to the screen sliding event
The acquired page is updated after uniform resource locator url;
The page to be monitored is obtained by uniform resource locator url, and service availability analysis is carried out to the acquired page;
If down state occurs in service, warning message is generated.
2. the web service according to claim 1 for mobile terminal provides the method for real time monitoring, which is characterized in that
Screen sliding event twice or thrice is triggered in the application program.
3. the web service according to claim 1 for mobile terminal provides the method for real time monitoring, which is characterized in that
It further include following before the step of described " running the simulator of at least one mobile terminal operating system in a computer "
Step:
The uniform resource locator url father node and recursion resolution level that configuration needs to monitor;
Recursion resolution is carried out to the uniform resource locator url father node according to the recursion resolution level, obtains the unification
Effective uniform resource locator url child node in the page corresponding to Resource Locator url father node;
All uniform resource locator url child nodes parsed are stored.
4. the web service according to claim 3 for mobile terminal provides the method for real time monitoring, which is characterized in that
In the step of described " carrying out recursion resolution to the uniform resource locator url father node according to the recursion resolution level ",
Effective unified resource positioning in the page corresponding to the uniform resource locator url father node is extracted by regular expression
Accord with url child node.
5. the web service according to claim 3 for mobile terminal provides the method for real time monitoring, which is characterized in that
In the step of described " being stored to all uniform resource locator url child nodes parsed ", including following sub-step:
Hash processing is done to the uniform resource locator url child node;
All uniform resource locator url and corresponding hash value, parsing level, corresponding with service interface are unifiedly stored to data
In library.
6. the web service according to claim 3 for mobile terminal provides the method for real time monitoring, which is characterized in that
It is described " recursion resolution to be carried out to the uniform resource locator url father node according to the recursion resolution level, obtains the unification
After the step of effective uniform resource locator url child node in the page corresponding to Resource Locator url father node ", also wrap
Include step:
Duplicate removal processing is carried out to the uniform resource locator url child node parsed.
7. the web service according to claim 1 for mobile terminal provides the method for real time monitoring, which is characterized in that
It is described " to obtain the page to be monitored by uniform resource locator url, and service availability point is carried out to the acquired page
Further include following sub-step in the step of analysis ":
The md5 of the url content obtained from memory and current service availability are analyzed targeted url content to compare,
Judge whether url content changes;
If changing, current url is parsed again.
8. the web service according to any one of claim 1 to 7 for mobile terminal provides the method for real time monitoring,
Be characterized in that, described " if down state occurs in service, generating warning message " the step of in, including following sub-step
It is rapid:
Error code is searched to detect url type of error, the type of error includes javascript mistake, and server internal is wrong
Accidentally;
According to url type of error, warning message is sent to corresponding service interface.
9. a kind of web service for mobile terminal provides the system of real time monitoring, which is characterized in that be equipped in computer to
The simulator of a few mobile terminal operating system, the system include:
The simulator of at least one mobile terminal operating system run in a computer, the simulator are mobile whole for running
Operating system is held, for the mobile terminal operating system for running the application program including webview control, the application program is logical
Cross the webview control load uniform resource locator url;
Screen sliding trigger module, for triggering screen sliding event at least once in the application program, and according to the screen sliding event
The page acquired after webview control load uniform resource locator url is updated;
Service availability analysis module, for obtaining the page to be monitored by uniform resource locator url, and to acquired
The page carries out service availability analysis;
Alarm module generates warning message if there is down state for service.
10. the web service according to claim 9 for mobile terminal provides the system of real time monitoring, which is characterized in that
The screen sliding trigger module triggers screen sliding event twice or thrice in the application program.
11. the web service according to claim 9 for mobile terminal provides the system of real time monitoring, which is characterized in that
Further include with lower module:
Configuration module, for configuring the uniform resource locator url father node for needing to monitor and recursion resolution level;
Analytics engine module, for being passed according to the recursion resolution level the uniform resource locator url father node
Return parsing, obtains effective uniform resource locator url section in the page corresponding to uniform resource locator url father node
Point;
Memory module, for being stored to all uniform resource locator url child nodes parsed.
12. the web service according to claim 11 for mobile terminal provides the system of real time monitoring, which is characterized in that
Further include following submodule in the service availability analysis module:
Url content monitors submodule, md5 and current service the availability analysis of the url content for will obtain from memory
Targeted url content compares, and judges whether url content changes;
If changing, the analytics engine module parses current url again.
13. it is that the web service of mobile terminal provides the system of real time monitoring according to any one of claim 9 to 12,
It is characterized in that, in the alarm module, including following submodule:
Type of error judging submodule, for searching error code to detect url type of error, the type of error includes
Javascript mistake, server internal error;
Alarm sending submodule, for sending warning message to corresponding service interface according to url type of error.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410770543.1A CN105743730B (en) | 2014-12-12 | 2014-12-12 | The method and its system of real time monitoring are provided for the web service of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410770543.1A CN105743730B (en) | 2014-12-12 | 2014-12-12 | The method and its system of real time monitoring are provided for the web service of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105743730A CN105743730A (en) | 2016-07-06 |
CN105743730B true CN105743730B (en) | 2019-01-29 |
Family
ID=56241526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410770543.1A Active CN105743730B (en) | 2014-12-12 | 2014-12-12 | The method and its system of real time monitoring are provided for the web service of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105743730B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528805B (en) * | 2016-11-15 | 2019-06-28 | 广东华仝九方科技有限公司 | Mobile Internet rogue program URL intellectual analysis method for digging based on user |
CN107861852A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Webpage error handling method, system and readable storage medium storing program for executing |
CN107295088B (en) * | 2017-06-29 | 2020-04-10 | 广东神马搜索科技有限公司 | Dotting information monitoring method and device and client |
CN109240874A (en) * | 2017-07-05 | 2019-01-18 | 北京国双科技有限公司 | Website page method for detecting abnormality, apparatus and system |
CN109426499A (en) * | 2017-08-30 | 2019-03-05 | 武汉斗鱼网络科技有限公司 | A kind of web page extending method and device |
CN108170551B (en) * | 2018-01-03 | 2021-06-22 | 深圳壹账通智能科技有限公司 | Crawler system based front-end and back-end error processing method, server and storage medium |
CN110674016A (en) * | 2018-07-02 | 2020-01-10 | 阿里巴巴集团控股有限公司 | Method for processing log and positioning error information in mobile terminal, mobile terminal and monitoring device thereof and storage medium |
CN109101425B (en) * | 2018-08-14 | 2021-12-07 | 创新先进技术有限公司 | Index point burying method and device for dynamic page AB test |
CN111343220B (en) * | 2018-12-18 | 2024-02-09 | 北京京东尚科信息技术有限公司 | Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment |
CN110602043A (en) * | 2019-08-08 | 2019-12-20 | 中腾信金融信息服务(上海)有限公司 | API gateway implementation system and method for mobile application |
CN110782512A (en) * | 2019-10-10 | 2020-02-11 | 成都四方伟业软件股份有限公司 | 3D model redrawing method and system |
CN113377563B (en) * | 2021-06-01 | 2024-02-23 | 北京齐尔布莱特科技有限公司 | Webpage monitoring method and computing device |
CN115187153B (en) * | 2022-09-14 | 2022-12-09 | 杭银消费金融股份有限公司 | Data processing method and system applied to business risk tracing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323880A (en) * | 2011-06-30 | 2012-01-18 | 中兴通讯股份有限公司 | Mobile phone application interface development method and terminal based on browser parsing mode |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103532795A (en) * | 2013-10-30 | 2014-01-22 | 蓝盾信息安全技术股份有限公司 | Monitoring system and method for detecting availability of WEB business system |
CN103546518A (en) * | 2012-07-17 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | Adaption testing method and adaption testing system for mobile terminal |
CN104036194A (en) * | 2014-05-16 | 2014-09-10 | 北京金山安全软件有限公司 | Vulnerability detection method and device for revealing private data in application program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004097643A2 (en) * | 2003-04-29 | 2004-11-11 | University Of Strathclyde | Monitoring software |
-
2014
- 2014-12-12 CN CN201410770543.1A patent/CN105743730B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323880A (en) * | 2011-06-30 | 2012-01-18 | 中兴通讯股份有限公司 | Mobile phone application interface development method and terminal based on browser parsing mode |
CN102624570A (en) * | 2012-04-27 | 2012-08-01 | 杭州东信北邮信息技术有限公司 | Monitoring system and method for detecting availability of web server |
CN103546518A (en) * | 2012-07-17 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | Adaption testing method and adaption testing system for mobile terminal |
CN103532795A (en) * | 2013-10-30 | 2014-01-22 | 蓝盾信息安全技术股份有限公司 | Monitoring system and method for detecting availability of WEB business system |
CN104036194A (en) * | 2014-05-16 | 2014-09-10 | 北京金山安全软件有限公司 | Vulnerability detection method and device for revealing private data in application program |
Also Published As
Publication number | Publication date |
---|---|
CN105743730A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105743730B (en) | The method and its system of real time monitoring are provided for the web service of mobile terminal | |
US11586972B2 (en) | Tool-specific alerting rules based on abnormal and normal patterns obtained from history logs | |
US9489135B2 (en) | Systems and methods for highly scalable system log analysis, deduplication and management | |
US20180365085A1 (en) | Method and apparatus for monitoring client applications | |
CN110661659A (en) | Alarm method, device and system and electronic equipment | |
CN101923617B (en) | Cloud-based sample database dynamic maintaining method | |
CN110213207B (en) | Network security defense method and equipment based on log analysis | |
CN103530218A (en) | Monitoring triggering method based on behavior detection | |
US11449488B2 (en) | System and method for processing logs | |
US10929258B1 (en) | Method and system for model-based event-driven anomalous behavior detection | |
CN107544832A (en) | A kind of monitoring method, the device and system of virtual machine process | |
CN113760652B (en) | Method, system, device and storage medium for full link monitoring based on application | |
CN103401698A (en) | Monitoring system used for alarming server status in server cluster operation | |
CN114465741B (en) | Abnormality detection method, abnormality detection device, computer equipment and storage medium | |
Landauer et al. | Time series analysis: unsupervised anomaly detection beyond outlier detection | |
CN114528457A (en) | Web fingerprint detection method and related equipment | |
CN111131236A (en) | Web fingerprint detection device, method, equipment and medium | |
CN111212055A (en) | Non-invasive website remote detection system and detection method | |
US9910874B1 (en) | Scalable alerter for security information and event management | |
WO2024051017A1 (en) | Distributed website tampering detection system and method | |
CN109740386B (en) | Method and device for detecting static resource file | |
US9952773B2 (en) | Determining a cause for low disk space with respect to a logical disk | |
CN115098326A (en) | System anomaly detection method and device, storage medium and electronic equipment | |
CN113760856A (en) | Database management method and device, computer readable storage medium and electronic device | |
CN115906079B (en) | File detection method, file detection system and file detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |