Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the schematic flow sheet of a kind of webpage abnormality eliminating method providing for the embodiment of the present invention, can comprise the following steps:
The web page access information that step 101, receiving terminal apparatus report; This web page access information comprises webpage load time information.
In the embodiment of the present invention, terminal device can comprise computing machine, smart mobile phone, panel computer etc., and the embodiment of the present invention is not specifically limited.
In the embodiment of the present invention, said method can be applied to service end, and this service end can be for hard-wired service end, and as server, the service end that also can realize for software, as service system.For convenience of description, the embodiment of the present invention be take data analytics server as example.But it should be noted that the embodiment of the present invention is not limited to be applied in data analytics server, everyly can implement the unit of the embodiment of the present invention or the scope that system all belongs to the required protection of the embodiment of the present invention.
In the embodiment of the present invention, when terminal device passes through browser access webpage, can record web page access information, and this web page access information is reported to data analytics server.
As a kind of optional embodiment, terminal device reports web page access information to comprise the following steps to data analytics server:
Step 11), terminal device sends webpage load request by browser, puts t0 writing time;
Step 12), webpage loaded, and puts t1 writing time;
By above-mentioned steps 11)~12), completed base page loading, webpage loads.
Step 13), terminal device to data analytics server, is analyzed by data analytics server above-mentioned webpage load time information reporting to this information.
In the embodiment of the present invention, terminal device can report webpage load time information to data analytics server in real time when webpage has loaded, and also can regularly to data analytics server, report webpage load time information.
It should be noted that, in the technical scheme that the embodiment of the present invention provides, when subscriber terminal equipment passes through browser access webpage, may be due to the reason such as the webpage load time is long, before having loaded, webpage closes webpage, now, terminal device can recording user be closed the time of webpage, and the time that this is closed to webpage reports data analytics server, whether the mistiming of the time that the initial time being loaded according to webpage by data analytics server and webpage are closed judges that webpage loads duration excessive, soon the webpage shut-in time loads the deadline as webpage, carry out the statistics of webpage loading duration.
Step 102, according to this web page access information, statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value.
In the embodiment of the present invention, when data analytics server receives the web page access information that terminal device reports, the webpage load time information that can comprise according to this web page access information determines that webpage loads duration.
For instance, suppose in web page access information that terminal device reports, the initial time t0 that webpage loads is 8:00:00, and it is 8:00:05 that webpage loads deadline t1, and data analytics server can determine that it is 5S that the webpage of this web page access of this terminal device loads duration.
In the embodiment of the present invention, the webpage that data analytics server gets terminal device while carrying out web page access loads after duration, can be greater than Preset Time threshold value (very first time threshold value by statistical web page loading duration, can set according to actual conditions, as 5S, 10S etc.) the ratio of terminal device.
Wherein, data analytics server periodically statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value, or regularly statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value.
For instance, with data analytics server, 0:00 every day starts, the ratio that is greater than the terminal device of very first time threshold value every webpage loading duration of a hour statistics is example, tentation data Analysis server at 7:00 to during 8:00, receive altogether the web page access information that 10000 terminal devices report, and in these 10000 terminal devices, webpage corresponding to web page access information that 300 terminal devices report loads duration and is greater than very first time threshold value (as 10S), data analytics server can determine that it is 3% that the interior webpage of this timing statistics section (7:00~8:00) loads the ratio that duration is greater than the terminal device of very first time threshold value.
Step 103, judge that this webpage loads the ratio that duration is greater than the terminal device of very first time threshold value and whether meets default alarm triggered condition; If be judged as YES, go to step 104, otherwise, finish current flow process.
As a kind of optional implementation method, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, webpage loads the difference of ratio that webpage loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than very first time threshold value is greater than the terminal device of very first time threshold value and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
Correspondingly, in above-mentioned steps 103, judge that this webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and whether the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of consecutive days duration is greater than very first time threshold value is greater than threshold value;
If be judged as YES, judge that this webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that this webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
For instance, suppose that it is 5% that (as 7:00~8:00 on January 2nd, 2014) webpage in current statistical time range loads the ratio that duration is greater than the terminal device of first threshold, the ratio that interior (7:00~8:00 on January 1st, 2014) webpage loading of a upper same statistical time range of consecutive days duration is greater than the terminal device of first threshold is 3.5%, threshold value is 1%, because loading the difference (being 5%-3.5%=1.5%) of ratio that webpage loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than first threshold is greater than the terminal device of first threshold, webpage in current statistical time range is greater than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, webpage loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of first threshold.
As the optional implementation method of another kind, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, webpage loads the difference of ratio that webpage loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than very first time threshold value is greater than the terminal device of very first time threshold value and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
For instance, the above-mentioned time cycle is can be one week, one month, 1 year etc., supposes that the time cycle is one week, and current statistical time range is 7:00~8:00 this Monday, and going up a same statistical time range of time cycle can be 7:00~8:00 last Monday; Suppose that the time cycle is one month, if current statistical time range is 7:00~8:00 on July 1, going up a same statistical time range of time cycle can be 6 months 1 day 7:00~8:00, if current statistical time range is 7:00~8:00 on July 31, going up a same statistical time range of time cycle can be 6 months 30 days 7:00~8:00; Suppose that the time cycle is 1 year, current statistical time range is 7:00~8:00 on January 1st, 2014, and going up a same statistical time range of time cycle can be 7:00~8:00 on January 1st, 2013.
Correspondingly, in above-mentioned steps 103, judge that this webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of time cycle duration is greater than very first time threshold value is more than or equal to predetermined threshold value;
If be judged as YES, judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
For instance, take the time cycle was example as one week, suppose that it is 5% that (7:00~8:00 this Monday) webpage in current statistical time range loads the ratio that duration is greater than the terminal device of first threshold, the ratio that interior (7:00~8:00 last Monday) webpage loading of a upper same statistical time range of time cycle duration is greater than the terminal device of first threshold is 4.5%, threshold value is 1%, because loading the difference (being 5%-4.5%=0.5%) of ratio that webpage loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than first threshold is greater than the terminal device of first threshold, webpage in current statistical time range is less than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, webpage loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of first threshold.
In above-mentioned flow process, by same day relatively statistical time range and upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle, can embody significantly webpage and load the variation of ratio that duration is greater than the terminal device of very first time threshold value, and then judge more accurately whether webpage to occur abnormal.
It should be noted that, in embodiments of the present invention, when data analytics server statistics obtains webpage and loads duration and be greater than the ratio of terminal device of very first time threshold value, also can first judge webpage in current statistical time range load ratio that duration is greater than the terminal device of very first time threshold value whether be greater than predetermined threshold value (can be according to actual conditions setting, as 5%, 10% etc.), when being judged as YES, can directly judge that webpage occurs abnormal, be that webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, carry out alarming processing.In this case, can no longer carry out lateral comparison (relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle); When being judged as NO, more further relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle.
Step 104, the alarming processing of carrying out.
In the embodiment of the present invention, when data analytics server judgement webpage loads ratio that duration is greater than the terminal device of very first time threshold value and meets default alarm triggered condition, can carry out alarming processing, if the mode by sending note, mail is to backstage maintainer's alarm, or the mode by dialing the default telephone number arranging is to backstage maintainer's alarm, background maintenance personnel receive after alarm, can take corresponding treatment measures according to actual conditions.
As shown in Figure 2, the schematic flow sheet of the another kind of webpage abnormality eliminating method providing for the embodiment of the present invention, can comprise the following steps:
The web page access information that step 201, receiving terminal apparatus report; This web page access information comprises webpage load time information, and content load time information.
In the embodiment of the present invention, when terminal device passes through browser access webpage, can record web page access information, and this web page access information is reported to data analytics server.
In the embodiment of the present invention, when terminal device comprises that by browser access webpage webpage loads (being that basic webpage loads) and content loads (being that data load), as for front end, exploitation adopts the form of ajax+html/css+restapi to complete the webpage that the page finally represents logic, the web page access information that terminal device reports to data analytics server, except comprising webpage load time information, can also comprise content load time information.
As a kind of optional embodiment, terminal device reports web page access information to comprise the following steps to data analytics server:
Step 21), terminal device sends webpage load request by browser, puts t0 writing time;
Step 22), webpage loaded, and puts t1 writing time;
By above-mentioned steps 21)~22), completed base page loading, webpage loads.
Step 23), terminal device sends content load request by browser, puts t2 writing time;
Step 24), content loaded, writing time t3;
By above-mentioned steps 23)~24), completed content loading, data load.
Step 25), terminal device is above-mentioned webpage load time information, and content load time information reporting is to data analytics server, by data analytics server, this information is analyzed.
In the embodiment of the present invention, terminal device can be after content have loaded, to data analytics server, report webpage load information and content load time information in real time, also can regularly to data analytics server, report webpage load time information, and content load time information.
It should be noted that, in the technical scheme that the embodiment of the present invention provides, when subscriber terminal equipment passes through browser access webpage, may be due to the reason such as the webpage load time is long, before having loaded, webpage closes webpage, or, after webpage has loaded, due to the reason such as the content load time is long, before having loaded, content closes webpage, now, terminal device can recording user be closed the time of webpage, and the time that this is closed to webpage reports data analytics server, whether the mistiming of the time that the initial time being loaded according to webpage by data analytics server and webpage are closed judges that webpage loads duration excessive, or the mistiming of the initial time loading according to content and webpage time of closing judge that whether content loading duration is excessive, soon the webpage shut-in time loads the deadline as webpage, carry out the statistics of webpage loading duration, or the webpage shut-in time is loaded to the deadline as content, carry out the statistics of content loading duration.
Step 202, according to this web page access information, statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value, and content loads the ratio that duration is greater than the terminal device of the second time threshold.
In the embodiment of the present invention, when data analytics server receives the web page access information that terminal device reports, the webpage load time information that can comprise according to this web page access information and content load time information determine that webpage loads duration, and content loads duration.
For instance, suppose in web page access information that terminal device reports, the initial time t0 that webpage loads is 8:00:00, it is 8:00:05 that webpage loads deadline t1, the initial time t2 that content loads is 8:00:06, it is 8:00:10 that content loads deadline t3, and data analytics server can determine that it is 5S that the webpage of this web page access of this terminal device loads duration, and the content load time is 4S.
In the embodiment of the present invention, the webpage that data analytics server gets terminal device while carrying out web page access loads after duration, can be greater than Preset Time threshold value (very first time threshold value by statistical web page loading duration, can set according to actual conditions, as 5S, 10S etc.) the ratio of terminal device, and content loading duration is greater than Preset Time threshold value (the second time threshold can be set according to actual conditions, as 5S, 10S etc.).
Wherein, data analytics server periodically statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value, and content loads the ratio that duration is greater than the terminal device of the second time threshold, or, regularly statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value, and content loads the ratio that duration is greater than the terminal device of the second time threshold.
For instance, with data analytics server, 0:00 every day starts, every webpage of a hour statistics, load the ratio that duration is greater than the terminal device of very first time threshold value, and content to load the ratio that duration is greater than the terminal device of the second time threshold be example, tentation data Analysis server at 7:00 to during 8:00, receive altogether the web page access information that 10000 terminal devices report, and in these 10000 terminal devices, webpage corresponding to web page access information that 300 terminal devices report loads duration and is greater than very first time threshold value (as 10S), content corresponding to content access information that 150 terminal devices report loads duration and is greater than the second time threshold, data analytics server can determine that it is 3% that the interior webpage of this timing statistics section (7:00~8:00) loads the ratio that duration is greater than the terminal device of very first time threshold value, the ratio that content loading duration is greater than the terminal device of the second time threshold is 1.5%.
Step 203, judge that webpage loads the ratio that duration is greater than the terminal device of very first time threshold value and whether meets default alarm conditions.If be judged as YES, go to step 205; Otherwise, go to step 204.
As a kind of optional implementation method, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, webpage loads the difference of ratio that webpage loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than very first time threshold value is greater than the terminal device of very first time threshold value and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
Correspondingly, in above-mentioned steps 203, judge that this webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and whether the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of consecutive days duration is greater than very first time threshold value is greater than threshold value;
If be judged as YES, judge that this webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that this webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
For instance, suppose that it is 5% that (as 7:00~8:00 on January 2nd, 2014) webpage in current statistical time range loads the ratio that duration is greater than the terminal device of first threshold, the ratio that interior (7:00~8:00 on January 1st, 2014) webpage loading of a upper same statistical time range of consecutive days duration is greater than the terminal device of first threshold is 3.5%, threshold value is 1%, because loading the difference (being 5%-3.5%=1.5%) of ratio that webpage loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than first threshold is greater than the terminal device of first threshold, webpage in current statistical time range is greater than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, webpage loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of first threshold.
As the optional implementation method of another kind, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, webpage loads the difference of ratio that webpage loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than very first time threshold value is greater than the terminal device of very first time threshold value and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
For instance, the above-mentioned time cycle is can be one week, one month, 1 year etc., supposes that the time cycle is one week, and current statistical time range is 7:00~8:00 this Monday, and going up a same statistical time range of time cycle can be 7:00~8:00 last Monday; Suppose that the time cycle is one month, if current statistical time range is 7:00~8:00 on July 1, going up a same statistical time range of time cycle can be 6 months 1 day 7:00~8:00, if current statistical time range is 7:00~8:00 on July 31, going up a same statistical time range of time cycle can be 6 months 30 days 7:00~8:00; Suppose that the time cycle is 1 year, current statistical time range is 7:00~8:00 on January 1st, 2014, and going up a same statistical time range of time cycle can be 7:00~8:00 on January 1st, 2013.
Correspondingly, in above-mentioned steps 203, judge that this webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of time cycle duration is greater than very first time threshold value is more than or equal to predetermined threshold value;
If be judged as YES, judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
For instance, take the time cycle was example as one week, suppose that it is 5% that (7:00~8:00 this Monday) webpage in current statistical time range loads the ratio that duration is greater than the terminal device of first threshold, the ratio that interior (7:00~8:00 last Monday) webpage loading of a upper same statistical time range of time cycle duration is greater than the terminal device of first threshold is 4.5%, threshold value is 1%, because loading the difference (being 5%-4.5%=0.5%) of ratio that webpage loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than first threshold is greater than the terminal device of first threshold, webpage in current statistical time range is less than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, webpage loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of first threshold.
In above-mentioned flow process, by same day relatively statistical time range and upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle, can embody significantly webpage and load the variation of ratio that duration is greater than the terminal device of very first time threshold value, and then judge more accurately whether webpage to occur abnormal.
It should be noted that, in embodiments of the present invention, when data analytics server statistics obtains webpage and loads duration and be greater than the ratio of terminal device of very first time threshold value, also can first judge webpage in current statistical time range load ratio that duration is greater than the terminal device of very first time threshold value whether be greater than predetermined threshold value (can be according to actual conditions setting, as 5%, 10% etc.), when being judged as YES, can directly judge that webpage occurs abnormal, be that webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, carry out alarming processing.In this case, can no longer carry out lateral comparison (relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle); When being judged as NO, more further relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle.
Step 204, judge that content loads the ratio that duration is greater than the terminal device of the second time threshold and whether meets default alarm triggered condition.If be judged as YES, go to step 205; Otherwise, finish current flow process.
In the embodiment of the present invention, when data analytics server judgement webpage loads ratio that duration is greater than the terminal device of very first time threshold value and do not meet default alarm triggered condition, can also further judge that content loading duration is greater than the whether satisfied alarm triggered condition of presetting of ratio of the terminal device of the second time threshold.
As a kind of optional implementation method, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, content loads the difference of ratio that content loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than the second time threshold is greater than the terminal device of the second time threshold and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
Correspondingly, in above-mentioned steps 204, judge that this content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold, can comprise:
Judge that the interior content loading of current statistical time range duration is greater than the ratio of terminal device of the second time threshold and whether the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of consecutive days duration is greater than the second time threshold is greater than threshold value;
If be judged as YES, judge that this content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judge that this content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
For instance, suppose that it is 5% that (as 7:00~8:00 on January 2nd, 2014) content in current statistical time range loads the ratio that duration is greater than the terminal device of Second Threshold, the ratio that interior (7:00~8:00 on January 1st, 2014) content loading of a upper same statistical time range of consecutive days duration is greater than the terminal device of Second Threshold is 3.5%, threshold value is 1%, because loading the difference (being 5%-3.5%=1.5%) of ratio that content loading duration in ratio and the upper consecutive days same statistical time range of terminal device that duration is greater than Second Threshold is greater than the terminal device of Second Threshold, content in current statistical time range is greater than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, content loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of Second Threshold.
As the optional implementation method of another kind, in the embodiment of the present invention, default alarm triggered condition can comprise: in current statistical time range, content loads the difference of ratio that content loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than the second time threshold is greater than the terminal device of the second time threshold and is greater than threshold value (can set according to actual conditions, as 1%, 2% etc.).
For instance, the above-mentioned time cycle is can be one week, one month, 1 year etc., supposes that the time cycle is one week, and current statistical time range is 7:00~8:00 this Monday, and going up a same statistical time range of time cycle can be 7:00~8:00 last Monday; Suppose that the time cycle is one month, if current statistical time range is 7:00~8:00 on July 1, going up a same statistical time range of time cycle can be 6 months 1 day 7:00~8:00, if current statistical time range is 7:00~8:00 on July 31, going up a same statistical time range of time cycle can be 6 months 30 days 7:00~8:00; Suppose that the time cycle is 1 year, current statistical time range is 7:00~8:00 on January 1st, 2014, and going up a same statistical time range of time cycle can be 7:00~8:00 on January 1st, 2013.
Correspondingly, in above-mentioned steps 204, judge that this content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold, can comprise:
Judge that the interior content loading of current statistical time range duration is greater than the ratio of terminal device of the second time threshold and the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of time cycle duration is greater than the second time threshold is more than or equal to predetermined threshold value;
If be judged as YES, judgement content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judgement content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
For instance, take the time cycle was example as one week, suppose that it is 5% that (7:00~8:00 this Monday) content in current statistical time range loads the ratio that duration is greater than the terminal device of Second Threshold, the ratio that interior (7:00~8:00 last Monday) content loading of a upper same statistical time range of time cycle duration is greater than the terminal device of Second Threshold is 4.5%, threshold value is 1%, because loading the difference (being 5%-4.5%=0.5%) of ratio that content loading duration in ratio and the upper same statistical time range of time cycle of terminal device that duration is greater than Second Threshold is greater than the terminal device of Second Threshold, content in current statistical time range is less than threshold value (1%), therefore, data analytics server can judge that in current statistical time range, content loads the satisfied default alarm conditions of ratio that duration is greater than the terminal device of Second Threshold.
In above-mentioned flow process, by same day relatively statistical time range and upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle, can embody significantly content and load the variation of ratio that duration is greater than the terminal device of the second time threshold, and then judge more accurately whether webpage to occur abnormal.
It should be noted that, in embodiments of the present invention, when data analytics server statistics obtains content and loads duration and be greater than the ratio of terminal device of the second time threshold, also can first judge content in current statistical time range load ratio that duration is greater than the terminal device of the second time threshold whether be greater than predetermined threshold value (can be according to actual conditions setting, as 5%, 10% etc.), when being judged as YES, can directly judge that webpage occurs abnormal, be that content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold, carry out alarming processing.In this case, can no longer carry out lateral comparison (relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle); When being judged as NO, more further relatively the same day statistical time range with upper one consecutive days same statistical time range data, or the data of comparison statistical time range on the same day and a upper same statistical time range of time cycle.
It is also to be noted that, between above-mentioned steps 203 and step 204, there is not inevitable sequential relationship, be that data analytics server statistics obtains the ratio that webpage loading duration is greater than the terminal device of very first time threshold value, and after content loads the ratio of terminal device that duration is greater than the second time threshold, can first perform step the decision operation in 203, the decision operation in rear execution step 204; Also can first perform step the decision operation in 204, the decision operation in rear execution step 203.When data server first performs step the decision operation in 203 or 204, and when judgement meets default trigger condition, step 204 after can carrying out again or the decision operation in step 203, and directly carry out alarm, but background maintenance personnel receive after alarm, still can check data relevant in the step of not carrying out decision operation.
Step 205, the alarming processing of carrying out.
In the embodiment of the present invention, when data analytics server judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, or judgement content is when loading ratio that duration is greater than the terminal device of the second time threshold and meeting default alarm triggered condition, can carry out alarming processing, as passed through, send note, the mode of mail is to backstage maintainer's alarm, or the mode by dialing the default telephone number arranging is to backstage maintainer's alarm, background maintenance personnel receive after alarm, can take corresponding treatment measures according to actual conditions.
For instance, background maintenance personnel receive after alarm, can load duration to webpage and be greater than very first time threshold value, or/and, content loads the web page access information that terminal device that duration is greater than the second time threshold reports and analyzes, determine and cause webpage to load duration, or/and content loads the reason of duration, when this former because reason relevant to webpage development, as loaded excessive picture in webpage, can notify corresponding webpage development personnel, thereby webpage development personnel are improved to webpage development, and then the experience that improves user's accessed web page, be that the technical scheme that the embodiment of the present invention provides can provide guidance for more effectively improving the experience of user's accessed web page.
As shown in Figure 3, the schematic flow sheet of the another kind of webpage abnormality eliminating method providing for the embodiment of the present invention, can comprise the following steps:
Step 301, terminal device report web page access information to data analytics server.
In the embodiment of the present invention, when terminal device passes through browser access webpage, can record web page access information, and this web page access information is reported to data analytics server.
Take that to adopt the form of ajax+html/css+rest api to complete the webpage that the page finally represents logic be example, terminal device reports page access information to comprise the following steps to data analytics server:
Step 31), terminal device sends webpage load request by browser, puts t0 writing time;
Step 32), html/css loaded, and puts t1 writing time;
Wherein, html/css is mainly used in base page and loads, by above-mentioned steps 31)~32), completed base page loading, webpage loads.
Step 33), terminal device sends ajax by browser and asks, writing time t2;
Wherein, ajax is mainly used in data and loads (being that content loads), and browser can send by ajax the request of obtaining API data to server.
Step 34), data have loaded, writing time t3;
By above-mentioned steps 32)~33), completed data loading, content loads.
Step 35), terminal device is above-mentioned webpage load time information, and content load time information reporting is to data analytics server, by data analytics server, this information is analyzed
In the embodiment of the present invention, terminal device can be after content have loaded, to data analytics server, report webpage load information and content load time information in real time, also can regularly to data analytics server, report webpage load time information, and content load time information.
It should be noted that, in the technical scheme that the embodiment of the present invention provides, when subscriber terminal equipment passes through browser access webpage, may be due to the reason such as the webpage load time is long, before having loaded, webpage closes webpage, or, after webpage has loaded, due to the reason such as the content load time is long, before having loaded, content closes webpage, now, terminal device can recording user be closed the time of webpage, and the time that this is closed to webpage reports data analytics server, whether the mistiming of the time that the initial time being loaded according to webpage by data analytics server and webpage are closed judges that webpage loads duration excessive, or the mistiming of the initial time loading according to content and webpage time of closing judge that whether content loading duration is excessive, soon the webpage shut-in time loads the deadline as webpage, carry out the statistics of webpage loading duration, or the webpage shut-in time is loaded to the deadline as content, carry out the statistics of content loading duration.
Step 302, data analytics server receive web page access information, and according to this web page access information, statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value, and content loads the ratio that duration is greater than the terminal device of the second time threshold.
Step 303, data analytics server judge that webpage loads the whether satisfied default alarm conditions of ratio that duration is greater than the terminal device of very first time threshold value.If be judged as YES, go to step 305; Otherwise, go to step 304.
Step 304, data analytics server judge that content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.If be judged as YES, go to step 305; Otherwise, finish current flow process.
In the embodiment of the present invention, the concrete treatment scheme of above-mentioned steps 302~304 can, with reference to the relevant treatment flow process in above-mentioned steps 202~204, not repeat them here.
Step 305, data analytics server are carried out alarming processing.
Step 306, data analytics server are reported to designated terminal equipment dispatching web page abnormal information.
In the embodiment of the present invention, when data analytics server judgement webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, or judgement content is when loading ratio that duration is greater than the terminal device of the second time threshold and meeting default alarm triggered condition, can carry out alarming processing, as passed through, send note, the mode of mail is to backstage maintainer's alarm, or the mode by dialing the default telephone number arranging is to backstage maintainer's alarm, background maintenance personnel receive after alarm, can take corresponding treatment measures according to actual conditions.
In the embodiment of the present invention, the geographical location information (can realize by IP address) that can also comprise terminal device in the web page access information that terminal device reports to data analytics server, network type is (as telecommunications, UNICOM, mobile etc.), OS Type is (as WIN7, WIN8, MAC OS etc.), browser type is (as cheetah browser, IE browser etc.), background maintenance personnel receive after alarm, the web page access information that can report according to the abnormal terminal device of generation webpage is analyzed current web page abnormal conditions, determine webpage abnormal cause, this webpage abnormal cause can include but not limited to specific region Network Abnormal, Network Abnormal, Loopholes of OS, browser is abnormal etc., and issue the webpage abnormal information report of carrying webpage abnormal cause to designated terminal equipment (as the abnormal terminal device of webpage occurs).
By above description, can find out, in the technical scheme providing in the embodiment of the present invention, the web page access information reporting by receiving terminal apparatus, according to web page access information statistical web page, load the ratio that duration is greater than the terminal device of very first time threshold value, and judge that webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, and then when being judged as YES, carry out alarming processing, thereby can find in time webpage abnormal conditions, improve webpage abnormality processing efficiency.
Based on the identical technical conceive of said method embodiment, the embodiment of the present invention also provides a kind of webpage abnormality processing equipment, can be applied in said method embodiment.
As shown in Figure 4, the structural representation of a kind of webpage abnormality processing equipment providing for the embodiment of the present invention, can comprise:
Receiver module 401, the web page access information reporting for receiving terminal apparatus, described web page access information comprises webpage load time information;
Statistical module 402, for according to described web page access information, statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value;
Judge module 403, for judging that described webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
Alarm module 404, for when described judge module is judged as YES, carries out alarming processing.
In optional embodiment, described judge module 403 can be specifically for, realizes in the following manner and judge that described webpage loads the ratio that duration is greater than the terminal device of very first time threshold value and whether meets the alarm triggered condition of presetting:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and whether the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of consecutive days duration is greater than very first time threshold value is greater than threshold value,
If be judged as YES, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
In optional embodiment, described judge module 403 can be specifically for, realizes in the following manner and judge that described webpage loads the ratio that duration is greater than the terminal device of very first time threshold value and whether meets the alarm triggered condition of presetting:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of time cycle duration is greater than very first time threshold value is more than or equal to predetermined threshold value;
If be judged as YES, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
In optional embodiment, described web page access information can also comprise: content load time information;
Correspondingly, described statistical module 402 can also be for, and according to described web page access information, statistical content loads the ratio that duration is greater than the terminal device of the second time threshold;
Described judge module 403 can also be for, judges that described content loads the ratio that duration is greater than the terminal device of the second time threshold and whether meets default alarm triggered condition;
Described alarm module 404 can also be for, when described judge module judges that described content loads ratio that duration is greater than the terminal device of the second time threshold and meets default alarm triggered condition, carries out alarming processing.
In optional embodiment, described judge module 403 can be specifically for, judges that in the following manner described content loads the ratio that duration is greater than the terminal device of the second time threshold and whether meets default alarm triggered condition:
Judge that in current statistical time range, content loading duration is greater than the ratio of terminal device of the second time threshold and the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of consecutive days duration is greater than the second time threshold;
If be judged as YES, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
In optional embodiment, described judge module 403 can be specifically for, judges that in the following manner described content loads the ratio that duration is greater than the terminal device of the second time threshold and whether meets default alarm triggered condition:
Judge that the interior content loading of current statistical time range duration is greater than the ratio of terminal device of the second time threshold and the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of time cycle duration is greater than the second time threshold is more than or equal to predetermined threshold value;
If be judged as YES, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
Fig. 5 is the structural representation of the another kind of webpage abnormality processing equipment that provides in the embodiment of the present invention.As shown in Figure 5, this webpage abnormality processing equipment comprises: at least one processor 501, CPU for example, at least one user interface 503, storer 504, at least one communication bus 502.Wherein, communication bus 502 is for realizing the connection communication between these assemblies.Wherein, user interface 503 can comprise display screen (Display), keyboard (Keyboard), and selectable user interface 503 can also comprise wireline interface, the wave point of standard.Storer 504 can be high-speed RAM storer, also can the unsettled storer of right and wrong (non-volatile memory), for example at least one magnetic disk memory.Storer 504 can also be optionally that at least one is positioned at the memory storage away from aforementioned processing device 501.Wherein in storer 504, store batch processing code, and processor 501 calls in storer 504 program code of storage, for carrying out following operation:
The web page access information that receiving terminal apparatus reports, described web page access information comprises webpage load time information;
According to described web page access information, statistical web page loads the ratio that duration is greater than the terminal device of very first time threshold value;
Judge that described webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as YES, carry out alarming processing.
In optional embodiment, the program code that processor 501 calls storage in storer 504 judges that described webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can specifically comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and whether the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of consecutive days duration is greater than very first time threshold value is greater than threshold value,
If be judged as YES, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
In optional embodiment, the program code that processor 501 calls storage in storer 504 judges that described webpage loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value, can specifically comprise:
Judge that the interior webpage loading of current statistical time range duration is greater than the ratio of terminal device of very first time threshold value and the difference of the ratio of the terminal device that the interior webpage loading of a upper same statistical time range of time cycle duration is greater than very first time threshold value is more than or equal to predetermined threshold value;
If be judged as YES, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value;
If be judged as NO, judge that described webpage loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of very first time threshold value.
In optional embodiment, described web page access information also comprises: content load time information;
Correspondingly, processor 501 calls the program code of storing in storer 504 and can also carry out following operation:
According to described web page access information, statistical content loads the ratio that duration is greater than the terminal device of the second time threshold;
Judge that described content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as YES, carry out alarming processing.
In optional embodiment, the program code that processor 501 calls storage in storer 504 judges that described content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold, comprising:
Judge that in current statistical time range, content loading duration is greater than the ratio of terminal device of the second time threshold and the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of consecutive days duration is greater than the second time threshold;
If be judged as YES, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
In optional embodiment, the program code that processor 501 calls storage in storer 504 judges that described content loads the whether satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold, comprising:
Judge that the interior content loading of current statistical time range duration is greater than the ratio of terminal device of the second time threshold and the difference of the ratio of the terminal device that the interior content loading of a upper same statistical time range of time cycle duration is greater than the second time threshold is more than or equal to predetermined threshold value;
If be judged as YES, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold;
If be judged as NO, judge that described content loads the satisfied default alarm triggered condition of ratio that duration is greater than the terminal device of the second time threshold.
The embodiment of the present invention also provides a kind of terminal, can comprise the arbitrary webpage abnormality processing equipment as shown in Fig. 4-5.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, the specific features of description, structure, material or feature can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as indication or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, at least one this feature can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " a plurality of " is at least two, for example two, and three etc., unless otherwise expressly limited specifically.
In process flow diagram or any process of otherwise describing at this or method describe and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of the step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to for realizing the sequencing list of the executable instruction of logic function, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), use, or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, storage, communication, propagation or transmission procedure be for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically of computer-readable medium (non-exhaustive list) comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in storer and by software or the firmware of suitable instruction execution system execution.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, this program, when carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module usings that the form of software function module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, modification, replacement and modification.