[summary of the invention]
Technical problem to be solved by this invention provides a kind of state monitoring apparatus and method of online application, so that the application platform server can accurately monitor the running status that the third party uses.
The present invention for the technical scheme that the technical solution problem adopts is: the state monitoring method that a kind of online application is provided, comprise: a. adds up browser respectively and uses the number of times of the page from the number of times of application platform server load application platform canvas page and from third party's application server loading third-party, and wherein the third party uses the page and embeds in the application platform canvas page; B. the loading number of times of using the page according to the loading number of times and the third party of application platform canvas page determines to produce the running status that third party that the third party uses the page uses.
According to one preferred embodiment of the present invention, step a comprises: receive first request that the application platform canvas page is sent through browser, the reception number of times of statistics first request is as the loading number of times of application platform canvas page.
According to one preferred embodiment of the present invention, step a comprises: receive the third party and use second request that the page sends through browser, the reception number of times of statistics second request is used the loading number of times of the page as the third party.
According to one preferred embodiment of the present invention, first request is dynamic requests with second request.
According to one preferred embodiment of the present invention, second request is produced by the embedded program that is embedded in third party's application.
According to one preferred embodiment of the present invention, in step b,, think that then the third party uses operation exception if the third party uses the ratio of loading number of times of the loading number of times of the page and application platform canvas page less than threshold value.
According to one preferred embodiment of the present invention, threshold value is the statistical threshold that obtains according to statistics.
According to one preferred embodiment of the present invention, threshold value is for being 0.85 * X, and wherein X uses the average ratio of the loading number of times of the loading number of times of the page and application platform canvas page for third party under the normal condition of gained by statistics.
According to one preferred embodiment of the present invention, state monitoring method further comprises: when c. uses operation exception the third party, send warning message to the manager of application platform server and third party's application server.
The present invention for the technical scheme that the technical solution problem adopts is: the state monitoring apparatus that a kind of online application is provided, comprise: the log statistic module, add up browser respectively and use the number of times of the page from the number of times of application platform server load application platform canvas page and from third party's application server loading third-party, wherein the third party uses the page and embeds in the application platform canvas page; Log analysis module, the loading number of times of using the page according to the loading number of times and the third party of application platform canvas page determine to produce the running status that third party that the third party uses the page uses.
According to one preferred embodiment of the present invention, the log statistic module receives first request that the application platform canvas page is sent through browser, and the reception number of times of statistics first request is as the loading number of times of application platform canvas page.
According to one preferred embodiment of the present invention, the log statistic module receives the third party and uses second request that the page sends through browser, and the reception number of times of statistics second request is used the loading number of times of the page as the third party.
According to one preferred embodiment of the present invention, first request is dynamic requests with second request.
According to one preferred embodiment of the present invention, second request is produced by the embedded program that is embedded in third party's application.
According to one preferred embodiment of the present invention, log analysis module judgement third party uses the ratio of the loading number of times of the page and the loading number of times that the log analysis module is judged the application platform canvas page less than threshold value, thinks that then the third party uses operation exception.
According to one preferred embodiment of the present invention, threshold value is the statistical threshold that obtains according to statistics.
According to one preferred embodiment of the present invention, threshold value is for being 0.85 * X, and wherein X uses the average ratio of the loading number of times of the loading number of times of the page and application platform canvas page for third party under the normal condition of gained by statistics.
According to one preferred embodiment of the present invention, state monitoring apparatus further comprises alarm module, when alarm module is used operation exception the third party, sends warning message to the manager of application platform server and third party's application server.
By the way, the state monitoring method of online application provided by the invention and device can accurately be judged the operating state that the third party uses, make the application platform server very first time to know the operating state message that the third party uses and to make corresponding remedial measure, guarantee that the user can preferably experience the third party and use.
[embodiment]
The present invention is described in detail below in conjunction with drawings and Examples.
As shown in Figure 1, Fig. 1 is the schematic block diagram of online application system of the present invention.In the present invention, online application system comprises application platform server and third party's application server.The application platform server comprises search engine module 101, application runtime environment module 102, personalized application customize services module 103, data storage service module 104 and open platform infrastructure service module 105.Below in conjunction with Fig. 2 the function of each part of online application system is described.
As shown in Figure 2, Fig. 2 is the flow chart of the implementation method of online application system of the present invention.
In step 201, receive user's query requests from browser.
In step 202, carry out match search according to query requests, the online application that acquisition and query requests are complementary, and form result of page searching.In a preferred embodiment, can come online application is sorted by the personalized application customize services that the user customized.For example, the user has collected certain online application in the personalized application customize services, then will this online application in sequencer procedure comes the prostatitis of result of page searching.
In step 203, send application platform canvas page code to browser, so that browser load application platform canvas page.In the present embodiment, the application platform canvas page is embedded in the result of page searching.
In step 204, send application request to third party's application server by the application platform canvas page through browser, and by the online browser that is applied to of third party's application server transmission, so that the browser loading third-party is used the page, and the third party is used the page be embedded in the application platform canvas page, and then present to the user.
In the present embodiment, step 201 and step 202 can be realized by search engine module 101, and step 203 can be realized by application runtime environment module 102.Step 204 can be realized by existing iframe technology.
In the present invention, the implementation method of online application system can further comprise by application platform canvas page or third party's applications pages and sends request of data towards third party's application server, to obtain the content that the third party uses.For example, for game on line, content can be the recreation progress, and for the online reading device, content can be e-book or the reading progress that needs reading.
Content can be stored in third party's application server, and is sent to browser by third party's application server.Perhaps, content also can be stored in the application platform server.In online application system shown in Figure 1, content stores is in data storage service module 104.At this moment, this content sends to third party's application server from the application platform server, is sent to browser by third party's application server again.In online application system shown in Figure 1, content sends to third party's application server through open platform infrastructure service module 105.
As shown in Figure 3, Fig. 3 is the schematic block diagram of the state monitoring apparatus of online application of the present invention.In the present invention, state monitoring apparatus 32 can be arranged at application platform server or application platform server other positions in addition.State monitoring apparatus 32 of the present invention comprises log statistic module 321, log analysis module 322 and alarm module 323.Concrete function below in conjunction with each module of Fig. 4-5 pair state monitoring apparatus 32 is described.
See also Fig. 4, Fig. 4 is the flow chart of the state monitoring method of online application of the present invention.
As shown in Figure 4, in step 401, log statistic module 321 is added up browser 31 respectively from the number of times of application platform server load application platform canvas page and the number of times of using the page from third party's application server loading third-party.
In step 402, the loading number of times that log analysis module 322 is used the page according to the loading number of times and the third party of application platform canvas page determines to produce the running status that third party that the third party uses the page uses.
See also Fig. 5, Fig. 5 be online application shown in Figure 4 state monitoring method a specific embodiment flow chart.
As shown in Figure 5, in step 501, log statistic module 321 receives the application platform canvas page through first dynamic requests that browser 31 sends, and adds up the loading times N of the reception number of times of first dynamic requests as the application platform canvas page.In the present embodiment, first dynamic requests is to be produced by the embedded program that is embedded in the application platform canvas page code.When the each load application platform canvas page of browser 31, all can trigger this embedded program and produce first dynamic requests.Certainly, because application platform server and state monitoring apparatus 32 can be set together, so those skilled in the art can expect that fully other modes come the loading number of times of statistics application platform canvas page.For example, the transmission number of times of direct statistics application platform canvas page code.
In step 502, log statistic module 321 receives the third party and uses the page through second dynamic requests that browser 31 sends, and the reception number of times of adding up second dynamic requests is used the loading number of times M of the page as the third party.In the present embodiment, second dynamic requests is produced by the embedded program that is embedded in third party's application, all can trigger this embedded program and send second dynamic requests when browser 31 each loading third-parties are used the page.
It should be noted that the purpose that first dynamic requests and second dynamic requests are set is to get (cache) or caching process soon for fear of viewed device 31, thereby guaranteed monitoring accuracy.And the reception number of times statistics of first dynamic requests should be carried out in the time period of same predetermined length with the reception number of times statistics of second dynamic requests.Yet, can solve by other modes under the situation of browser rs cache, also can utilize static requests to realize above-mentioned purpose.
In step 503, log analysis module 322 judges that whether the ratio M/N of reception number of times of the reception number of times of second dynamic requests and first dynamic requests is less than a threshold value, if judged result is a "No", then can skip to step 504, think that the third party uses operation normally.If judged result is a "Yes", then can skip to step 505, think that the third party uses operation exception.
In step 506,, send warning message to the manager of application platform server and third party's application server by alarm module 323 judging that the third party uses under the situation of operation exception.
It should be noted that under normal circumstances, when browser 31 after application platform server load application platform canvas page, browser 31 is used the page from third party's application server loading third-party, and it can be embedded in the application platform canvas page.After the third party used page embedding application platform canvas page, browser 31 can constantly load new third party from third party's application server according to user's operation use the page, and the application platform canvas page then need not to repeat to load.Therefore, under normal condition, the third party use the page loading number of times M will inevitably greater than or equal the loading times N of application platform canvas page at least, promptly, M/N is more than or equal to 1, so the threshold value in can step 503 is set to equal the statistical threshold X that obtains according to statistics, wherein X is the average ratio that the third party uses the loading number of times of the loading number of times of the page and application platform canvas page under the normal condition of gained by statistics.But under special circumstances and since the user in the loading procedure of browser 31 return or shut-down operation and network speed are slow or other reasons, cause the third party to use the page and have certain losing.Therefore, in step 503, threshold value is set to 0.85 * X, to allow the third party to use the page 15% lose is arranged.
In addition, in the present invention, step 501-506 can realize by other modules of one or more different definition, so the functional module mentioned of step 501-506 should not be construed as the qualification to this method step.
In other embodiments of the invention, the mode that the loading number of times of application platform canvas page and the third party loading number of times of using the page can journal file is sent to log statistic module 321.Under the situation of conditions permit, more can in the state monitoring apparatus 32 of online application, write down the loading number of times of application platform canvas page and the loading number of times that the third party uses the page by the usage log database, with convenient backup or for manager's reference.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.