Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Embodiment 1
According to the embodiment of the present invention, provide a kind of data monitoring method, as shown in Figure 1, the method comprises:
S102, obtains the played data of the multimedia file that client is play according to predetermined period;
S104, calculates the availability of the multimedia file that client is play according to played data, wherein, availability is for identifying the ratio of client success loading multimedia file;
S106, judges whether availability is less than or equal to predetermined threshold;
S108, if judge, availability is less than or equal to predetermined threshold, then send alarm signal.
Alternatively, in the present embodiment, above-mentioned data monitoring method can be, but not limited to be applied to and selects to carry out the link between client and the server at multimedia file place in the process of play multimedia file to monitor in the server safeguarded in client.That is, the played data of the multimedia file that the client got by basis is play, judge whether the availability of multimedia file is less than or equal to predetermined threshold, this predetermined threshold is less than or equal to if judge, then send alarm signal in time, to reach the object of real-time monitoring multimedia file whether normal load, and then judge whether that needs take measures to carry out Maintenance and Repair to corresponding link according to the load condition of multimedia file, thus realize processing the fault occurred in multimedia file playing process in time.
It should be noted that, above-mentioned predetermined period can be, but not limited to: the unit time being less than multimedia file playing duration, such as, and 1 minute.Specifically, by obtaining the played data of the multimedia file that client is play every 1 minute, thus the load condition of multimedia file added up according to waiting played data of duration, thus the data avoided due to the longer client of reproduction time are repeatedly calculated the inaccurate problem of the availability caused.
Alternatively, in the present embodiment, the played data of the multimedia file got in above-mentioned each predetermined period will be stored in a played data set, wherein, the played data that multiple client sends in this predetermined period can be included but not limited in above-mentioned played data set, further, above-mentioned played data can include but not limited to: for identifying the client identification of client, for identifying the available mark of the upstate of played data in this predetermined period, wherein, above-mentioned available mark can include but not limited to: loaded successful first mark for identification of multimedia file, or, successful second mark is not also loaded for identification of multimedia file.
Alternatively, in the present embodiment, the account form of above-mentioned availability can include but not limited to following one of at least:
1) quantity having loaded successful first mark in played data for identification of multimedia file is added up, using the first quantity identified as availability;
2) calculating has loaded successful first for identification of multimedia file and has been identified at ratio shared in all available mark got, using this ratio as availability.
Further, the played data that above-mentioned availability can be, but not limited to be sent by client in statistics predetermined amount of time gets.Wherein, add up after above-mentioned predetermined amount of time, when multimedia file does not load yet successfully after reaching predetermined amount of time, that is, load time-out.After availability in statistics predetermined amount of time, will judge whether to need to send alarm signal according to this availability.
Alternatively, in the present embodiment, the configuration mode of above-mentioned predetermined amount of time can comprise but be not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.Wherein, above-mentioned data available set can include but not limited to the number of times of success loading before the played data obtaining the multimedia file that client is play according to predetermined period and each successful duration loaded.That is, the duration of known successful loading is utilized to calculate the duration of predetermined amount of time required in this data monitoring process.
By the embodiment that the application provides, by calculating availability according to the played data obtaining the multimedia file that client is play according to predetermined period, and then judge whether according to this availability the mode needing transmission alarm signal, the data due to the longer client of reproduction time are avoided repeatedly to be calculated the inaccurate problem of the availability caused, thus reach the object of real-time monitoring multimedia file whether normal load, and then judge whether that needs take measures to carry out Maintenance and Repair to corresponding link according to the load condition of multimedia file, thus realize processing the fault occurred in multimedia file playing process in time.
As the optional scheme of one, before the availability calculating the multimedia file that client is play according to played data, also comprise:
S1, the played data set corresponding with predetermined period is set up respectively according to the played data that each predetermined period gets, wherein, played data set comprises the played data that multiple client sends in predetermined period, and played data at least comprises the client identification of client and the available mark of predetermined period inner multimedia file.
Alternatively, in the present embodiment, the predetermined period of above-mentioned played data set respectively from different is corresponding, such as, played data set A will be set up according to the played data in 0-1 minute that gets, played data set B will be set up according to the played data in 1-2 minute that gets.Wherein, in each played data set can but be not limited to comprise the played data that multiple client sends in this predetermined period, further, the client identification of the client that the played data in each played data set is corresponding is not identical.
Alternatively, in the present embodiment, above-mentioned available mark can include but not limited to: loaded successful first mark for identification of multimedia file, or, also do not load successful second mark for identification of multimedia file.
By the embodiment that the application provides, deposit in the different played data set of correspondence respectively by the played data that each client in corresponding predetermined period is sent, thus the data realizing each client only calculate once, avoid the data due to the longer client of reproduction time repeatedly to be calculated the inaccurate problem of the availability caused.
As the optional scheme of one, above-mentioned played data set at least comprises the set of history played data, the set of target played data, wherein, history played data is set up before being integrated into the set of target played data, and the played data got according to each predetermined period is set up the played data set corresponding with predetermined period respectively and comprised:
S1, when setting up the set of target played data, obtains the client identification of client and the broadcasting sequence number of played data in the played data in predetermined period corresponding to target played data set;
According to the broadcasting sequence number of played data, S2, judges whether played data is Article 1 played data;
S3, if judge, played data is Article 1 played data, then played data be saved in the set of target played data;
S4, if judge, played data is not Article 1 played data, then search in the history played data set of setting up before target played data whether preserve played data according to client identification; If find out played data in the set of history played data, then the available mark in the played data that more client identification is corresponding in the set of new historical played data, to upgrade played data; If do not find out played data in the set of history played data, then the played data that client sends is abandoned.
It should be noted that, in above-mentioned played data set, at least comprise the set of history played data, the set of target played data, wherein, can include but not limited to one or more in the set of history played data.Wherein, As time goes on, after new target played data set is set up, target played data set originally just becomes one of history played data set.The inaccurate problem of calculated availability is caused in order to avoid the played data owing to repeating to record same client, after the played data obtaining the multimedia file that client is play in present predetermined period, in order to set up the set of target played data, need the broadcasting sequence number first obtaining the played data that client sends, if judge as Article 1 played data, availability was not added up before the played data of this multimedia file that this client sends then is described, thus, be saved in newly-built target played data set.Further, if judge it is not Article 1 played data according to broadcasting sequence number, sent before the played data of this multimedia file is then described, then need to judge further whether client identification corresponding to this played data can find in the set of history played data, due in order to save memory space, the played data of having added up will be dropped, thus, if find corresponding client identification, then represent and also do not complete availability statistics, played data corresponding in the set of history played data need be upgraded, otherwise represent that this multimedia file was added up, then the played data got is abandoned.To ensure that the availability of the multimedia file that client sends can not be repeated statistics further by the way, and then improve the accuracy of availability.
Specifically be described in conjunction with following example, suppose only to obtain a played data in each predetermined period, if the data got further are Article 1 played data of this multimedia file, then this played data is saved in the set of target played data.If this played data is not the Article 1 played data of multimedia file, so just in the played data set of having set up before, search whether comprise client identification corresponding to this played data, if find this client identification, then played data corresponding for this client is updated to the played data just obtained, such as, the played data just received comprises: " client id-2 loads successfully "; And the played data got before comprises: " client id-2, in loading ", then upgrade this played data.Further, if this played data is not Article 1 played data, and do not find the client identification of its correspondence, then represent that the availability of the multimedia file that this played data is corresponding was added up, and be dropped after statistics, thus in order to avoid repeating statistics, then the data acquired are abandoned.
By the embodiment that the application provides, by judging whether played data to be put into the set of target played data according to the broadcasting sequence number of played data, judge whether played data was added up according to client identification further, if find corresponding client identification, then represent and also do not added up, the played data that client identification is corresponding need be upgraded, if find corresponding client identification, then represent and added up, in order to avoid owing to repeating to add up the inaccurate problem of Calculation of Availability that causes of played data, then the played data got is abandoned, ensure that by the way in data monitoring process the corresponding process of played data execution got, thus make the availability of Real-time Obtaining accurate, so that timely maintaining network link, guarantee that user can the above-mentioned multimedia file of normal play.
As the optional scheme of one, the availability calculating the multimedia file that client is play according to played data comprises:
S1, after predetermined amount of time is set up in the set of target played data, the available mark of played data in the set of statistics played data, wherein, available mark comprises: loaded successful first mark for identification of multimedia file, or, also do not load successful second mark for identification of multimedia file;
S2, calculates the availability of the multimedia file that client is play according to the first mark.
Alternatively, in the present embodiment, above-mentionedly calculate according to the first mark the availability of multimedia file that client plays and comprise:
S22, in the set of calculating target played data, first is identified at the ratio in available mark, using the availability of ratio as multimedia file.
Alternatively, in the present embodiment, the account form of above-mentioned availability can also but be not limited to utilize the quantity of the first mark to identify above-mentioned availability, the mode calculating availability can also comprise other modes, and the present embodiment is not limited to this.
Alternatively, in the present embodiment, the played data sent due to client may upgrade, thus by configuration predetermined amount of time, to make the availability of the multimedia file counted more accurate.Wherein, the configuration mode of above-mentioned predetermined amount of time can include but not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.
Specifically be described in conjunction with following example, suppose that client selects broadcasting one section of MV video, the played data sent at 0-1 point of clockwise server forms first played data set, the played data sent at 1-2 point of clockwise server forms second played data set, the played data sent at 2-3 point of clockwise server forms the 3rd played data set, the played data sent at 3-4 point of clockwise server forms the 4th played data set, the played data sent at 4-5 point of clockwise server forms the 5th played data set, wherein, predetermined amount of time is set to 3 minutes, for 0-1 minute, server is after the first played data set of setting up 0-1 minute correspondence, wait is started the available mark of adding up played data in the first played data set for 3 minutes again, such as, the first mark identifying success loading in available mark has 10, all available marks have 20, then can calculate availability is 50%.That is, the second played data set of setting up for 1-2 minute will after 3 minutes, namely starts statistics during 4-5 minute.
By the embodiment that the application provides, proportion shared in the available mark got is identified at by calculating in played data corresponding to predetermined period first after predetermined amount of time, to obtain multimedia part availability comparatively accurately, thus the real-time monitoring realized multimedia file loading, and then reach Timeliness coverage link failure and carry out the timely object processed.
As the optional scheme of one, before the played data obtaining the multimedia file that client is play according to predetermined period, also comprise:
S1, obtains the data available set of multimedia file, and wherein, data available set comprises the duration of the multimedia file number of times that success loads before the played data of the multimedia file play according to predetermined period acquisition client and each success loading;
S2, the duration of the duration configuration predetermined amount of time that the number of times loaded according to success and each success load.
Alternatively, in the present embodiment, the configuration mode of above-mentioned predetermined amount of time can comprise but be not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.Wherein, above-mentioned data available set can include but not limited to the number of times of success loading before the played data obtaining the multimedia file that client is play according to predetermined period and each successful duration loaded.That is, the duration of known successful loading is utilized to calculate the duration of predetermined amount of time required in this data monitoring process.
Specifically be described in conjunction with following example, suppose before this data monitoring of execution, the duration of number of times successfully loaded according to multimedia file and at every turn successfully loading adds up number of times corresponding to different duration, can be as shown in table 1.
Table 1
The duration that success loads |
The number of times that success loads |
10s |
100 |
20s |
50 |
30s |
30 |
40s |
20 |
It should be noted that, according to loading characteristic, the load time is longer, then the possibility of success loading is less, and thus, the statistics obtained is as shown in table 1, the increase of the duration loaded along with success, and the number of times that success loads successively decreases gradually.Further, can include but not limited in the mode of the duration calculating predetermined amount of time according to above-mentioned statistics: according to the ratio configuring the successful loading that will reach, select the duration of corresponding successful loading.
Specifically be described in conjunction with following example, as shown in table 1, the ratio that 10s successfully loads is 100/ (100+50+30+20)=50%, the ratio that 20s successfully loads is (100+50)/(100+50+30+20)=75%, the ratio that 30s successfully loads is (100+50+30)/(100+50+30+20)=90%, and the ratio that 40s successfully loads is (100+50+30+20)/(100+50+30+20)=100%.Suppose that the ratio needing configuration successful to record is 95%, then predetermined amount of time will be configured to 30s.
By the embodiment that the application provides, by the duration according to the number of times of success loading and the duration configuration predetermined amount of time of each success loading, thus realize ensureing that the duration of the predetermined amount of time configured is more reasonable further, more be conducive to counting availability accurately, so that make corresponding maintenance process to situation about monitoring in time.
As the optional scheme of one, send alarm signal and comprise:
S1, sends alarm signal to the server for storing multimedia.
By the embodiment that the application provides, whether the availability got by real-time judge meets predetermined condition (being namely less than or equal to predetermined threshold), to reach Timeliness coverage potential problem, and the object carrying out safeguarding of taking measures in time.Further, by the result according to monitor data, server in time to multimedia file place sends alarm signal, can judge whether because linking number completely causes to make this server, that linking number is full if judge, then control the connection that suitably release is unnecessary, thus ensure the normal play of multimedia file, avoid unnecessary potential safety hazard.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of data monitoring device for implementing above-mentioned data monitoring method, as shown in Figure 2, this device comprises:
1) the first acquiring unit 202, for obtaining the played data of the multimedia file that client is play according to predetermined period;
2) computing unit 204, for calculating the availability of the multimedia file that client is play according to played data, wherein, availability is for identifying the ratio of client success loading multimedia file;
3) the first judging unit 206, is applied to and judges whether availability is less than or equal to predetermined threshold;
4) transmitting element 208, for when judging that availability is less than or equal to predetermined threshold, sends alarm signal.
Alternatively, in the present embodiment, above-mentioned data monitoring device can be, but not limited to be applied to and selects to carry out the link between client and the server at multimedia file place in the process of play multimedia file to monitor in the server safeguarded in client.That is, the played data of the multimedia file that the client got by basis is play, judge whether the availability of multimedia file is less than or equal to predetermined threshold, this predetermined threshold is less than or equal to if judge, then send alarm signal in time, to reach the object of real-time monitoring multimedia file whether normal load, and then judge whether that needs take measures to carry out Maintenance and Repair to corresponding link according to the load condition of multimedia file, thus realize processing the fault occurred in multimedia file playing process in time.
It should be noted that, above-mentioned predetermined period can be, but not limited to: the unit time being less than multimedia file playing duration, such as, and 1 minute.Specifically, by obtaining the played data of the multimedia file that client is play every 1 minute, thus the load condition of multimedia file added up according to waiting played data of duration, thus the data avoided due to the longer client of reproduction time are repeatedly calculated the inaccurate problem of the availability caused.
Alternatively, in the present embodiment, the played data of the multimedia file got in above-mentioned each predetermined period will be stored in a played data set, wherein, the played data that multiple client sends in this predetermined period can be included but not limited in above-mentioned played data set, further, above-mentioned played data can include but not limited to: for identifying the client identification of client, for identifying the available mark of the upstate of played data in this predetermined period, wherein, above-mentioned available mark can include but not limited to: loaded successful first mark for identification of multimedia file, or, successful second mark is not also loaded for identification of multimedia file.
Alternatively, in the present embodiment, the account form of above-mentioned availability can include but not limited to following one of at least:
1) quantity having loaded successful first mark in played data for identification of multimedia file is added up, using the first quantity identified as availability;
2) calculating has loaded successful first for identification of multimedia file and has been identified at ratio shared in all available mark got, using this ratio as availability.
Further, the played data that above-mentioned availability can be, but not limited to be sent by client in statistics predetermined amount of time gets.Wherein, add up after above-mentioned predetermined amount of time, when multimedia file does not load yet successfully after reaching predetermined amount of time, that is, load time-out.After availability in statistics predetermined amount of time, will judge whether to need to send alarm signal according to this availability.
Alternatively, in the present embodiment, the configuration mode of above-mentioned predetermined amount of time can comprise but be not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.Wherein, above-mentioned data available set can include but not limited to the number of times of success loading before the played data obtaining the multimedia file that client is play according to predetermined period and each successful duration loaded.That is, the duration of known successful loading is utilized to calculate the duration of predetermined amount of time required in this data monitoring process.
By the embodiment that the application provides, by calculating availability according to the played data obtaining the multimedia file that client is play according to predetermined period, and then judge whether according to this availability the mode needing transmission alarm signal, the data avoided due to the longer client of reproduction time are repeatedly calculated the inaccurate problem of the availability caused, thus reach the object of real-time monitoring multimedia file whether normal load, and then judge whether that needs take measures to carry out Maintenance and Repair to corresponding link according to the load condition of multimedia file, thus realize processing the fault occurred in multimedia file playing process in time.
As the optional scheme of one, said apparatus also comprises:
1) unit is set up, for before the availability calculating the multimedia file that client is play according to played data, the played data set corresponding with predetermined period is set up respectively according to the played data that each predetermined period gets, wherein, played data set comprises the played data that multiple client sends in predetermined period, and played data at least comprises the client identification of client and the available mark of predetermined period inner multimedia file.
Alternatively, in the present embodiment, the predetermined period of above-mentioned played data set respectively from different is corresponding, such as, played data set A will be set up according to the played data in 0-1 minute that gets, played data set B will be set up according to the played data in 1-2 minute that gets.Wherein, in each played data set can but be not limited to comprise the played data that multiple client sends in this predetermined period, further, the client identification of the client that the played data in each played data set is corresponding is not identical.
Alternatively, in the present embodiment, above-mentioned available mark can include but not limited to: loaded successful first mark for identification of multimedia file, or, also do not load successful second mark for identification of multimedia file.
By the embodiment that the application provides, deposit in the different played data set of correspondence respectively by the played data that each client in corresponding predetermined period is sent, thus realize played data to be averaged division according to identical duration, avoid the data due to the longer client of reproduction time repeatedly to be calculated the inaccurate problem of the availability caused
As the optional scheme of one, above-mentioned played data set at least comprises the set of history played data, the set of target played data, and wherein, history played data is set up before being integrated into the set of target played data, sets up unit and comprises:
1) acquisition module, for when setting up the set of target played data, obtains the client identification of client and the broadcasting sequence number of played data in the played data in predetermined period corresponding to target played data set;
2) judge module, for judging according to the broadcasting sequence number of played data whether played data is Article 1 played data;
3) preserving module, for when judging that played data is Article 1 played data, played data being saved in the set of target played data;
4) searching module, for when judging that played data is not Article 1 played data, searching in the history played data set of setting up before target played data whether preserve played data according to client identification;
5) update module, during for finding out played data in the set of history played data, the available mark in the played data that more in the set of new historical played data, client identification is corresponding, to upgrade played data;
6) processing module, during for not finding out played data in the set of history played data, abandons the played data that client sends.
It should be noted that, in above-mentioned played data set, at least comprise the set of history played data, the set of target played data, wherein, can include but not limited to one or more in the set of history played data.Wherein, As time goes on, after new target played data set is set up, target played data set originally just becomes one of history played data set.The inaccurate problem of calculated availability is caused in order to avoid the played data owing to repeating to record same client, after the played data obtaining the multimedia file that client is play in present predetermined period, in order to set up the set of target played data, need the broadcasting sequence number first obtaining the played data that client sends, if judge as Article 1 played data, availability was not added up before the played data of this multimedia file that this client sends then is described, thus, be saved in newly-built target played data set.Further, if judge it is not Article 1 played data according to broadcasting sequence number, sent before the played data of this multimedia file is then described, then need to judge further whether client identification corresponding to this played data can find in the set of history played data, due in order to save memory space, the played data of having added up will be dropped, thus, if find corresponding client identification, then represent and also do not complete availability statistics, played data corresponding in the set of history played data need be upgraded, otherwise represent that this multimedia file was added up, then the played data got is abandoned.To ensure that the availability of the multimedia file that client sends can not be repeated statistics further by the way, and then improve the accuracy of availability.
Specifically be described in conjunction with following example, suppose only to obtain a played data in each predetermined period, if the data got further are Article 1 played data of this multimedia file, then this played data is saved in the set of target played data.If this played data is not the Article 1 played data of multimedia file, so just in the played data set of having set up before, search whether comprise client identification corresponding to this played data, if find this client identification, then played data corresponding for this client is updated to the played data just obtained, such as, the played data just received comprises: " client id-2 loads successfully "; And the played data got before comprises: " client id-2, in loading ", then upgrade this played data.Further, if this played data is not Article 1 played data, and do not find the client identification of its correspondence, then represent that the availability of the multimedia file that this played data is corresponding was added up, and be dropped after statistics, thus in order to avoid repeating statistics, then the data acquired are abandoned.
By the embodiment that the application provides, by judging whether played data to be put into the set of target played data according to the broadcasting sequence number of played data, judge whether played data was added up according to client identification further, if find corresponding client identification, then represent and also do not added up, the played data that client identification is corresponding need be upgraded, if find corresponding client identification, then represent and added up, in order to avoid owing to repeating to add up the inaccurate problem of Calculation of Availability that causes of played data, then the played data got is abandoned, ensure that by the way in data monitoring process the corresponding process of played data execution got, thus make the availability of Real-time Obtaining accurate, so that timely maintaining network link, guarantee that user can the above-mentioned multimedia file of normal play.
As the optional scheme of one, computing unit comprises:
1) statistical module, after setting up predetermined amount of time in the set of target played data, the available mark of played data in the set of statistics played data, wherein, available mark comprises: loaded successful first mark for identification of multimedia file, or, also do not load successful second mark for identification of multimedia file;
2) computing module, for calculating the availability of the multimedia file that client is play according to the first mark.
Alternatively, in the present embodiment, above-mentioned computing module comprises:
(1) calculating sub module, is identified at ratio in available mark, using the availability of ratio as multimedia file for calculating in the set of target played data first.
Alternatively, in the present embodiment, the account form of above-mentioned availability can also but be not limited to utilize the quantity of the first mark to identify above-mentioned availability, the mode calculating availability can also comprise other modes, and the present embodiment is not limited to this.
Alternatively, in the present embodiment, the played data sent due to client may upgrade, thus by configuration predetermined amount of time, to make the availability of the multimedia file counted more accurate.Wherein, the configuration mode of above-mentioned predetermined amount of time can include but not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.
Specifically be described in conjunction with following example, suppose that client selects broadcasting one section of MV video, the played data sent at 0-1 point of clockwise server forms first played data set, the played data sent at 1-2 point of clockwise server forms second played data set, the played data sent at 2-3 point of clockwise server forms the 3rd played data set, the played data sent at 3-4 point of clockwise server forms the 4th played data set, the played data sent at 4-5 point of clockwise server forms the 5th played data set, wherein, predetermined amount of time is set to 3 minutes, for 0-1 minute, server is after the first played data set of setting up 0-1 minute correspondence, wait is started the available mark of adding up played data in the first played data set for 3 minutes again, such as, the first mark identifying success loading in available mark has 10, all available marks have 20, then can calculate availability is 50%.That is, the second played data set of setting up for 1-2 minute will after 3 minutes, namely starts statistics during 4-5 minute.
By the embodiment that the application provides, proportion shared in the available mark got is identified at by calculating in played data corresponding to predetermined period first after predetermined amount of time, to obtain multimedia part availability comparatively accurately, thus the real-time monitoring realized multimedia file loading, and then reach Timeliness coverage link failure and carry out the timely object processed.
As the optional scheme of one, said apparatus also comprises:
1) the 3rd acquiring unit, for before the played data obtaining the multimedia file that client is play according to predetermined period, obtain the data available set of multimedia file, wherein, data available set comprises the multimedia file number of times that success loads before the played data obtaining the multimedia file that client is play according to predetermined period and each successful duration loaded;
2) dispensing unit, for the duration according to the number of times of success loading and the duration configuration predetermined amount of time of each success loading.
Alternatively, in the present embodiment, the configuration mode of above-mentioned predetermined amount of time can comprise but be not limited to following one of at least: in advance the above-mentioned predetermined amount of time of random arrangement, configure above-mentioned predetermined amount of time according to the data available set obtained by the historical data before this data monitoring.Wherein, above-mentioned data available set can include but not limited to the number of times of success loading before the played data obtaining the multimedia file that client is play according to predetermined period and each successful duration loaded.That is, the duration of known successful loading is utilized to calculate the duration of predetermined amount of time required in this data monitoring process.
Specifically be described in conjunction with following example, suppose before this data monitoring of execution, the duration of number of times successfully loaded according to multimedia file and at every turn successfully loading adds up number of times corresponding to different duration, can be as shown in table 2.
Table 2
The duration that success loads |
The number of times that success loads |
10s |
100 |
20s |
50 |
30s |
30 |
40s |
20 |
It should be noted that, according to loading characteristic, the load time is longer, then the possibility of success loading is less, and thus, the statistics obtained is as shown in table 2, the increase of the duration loaded along with success, and the number of times that success loads successively decreases gradually.Further, can include but not limited in the mode of the duration calculating predetermined amount of time according to above-mentioned statistics: according to the ratio configuring the successful loading that will reach, select the duration of corresponding successful loading.
Specifically be described in conjunction with following example, as shown in table 2, the ratio that 10s successfully loads is 100/ (100+50+30+20)=50%, the ratio that 20s successfully loads is (100+50)/(100+50+30+20)=75%, the ratio that 30s successfully loads is (100+50+30)/(100+50+30+20)=90%, and the ratio that 40s successfully loads is (100+50+30+20)/(100+50+30+20)=100%.Suppose that the ratio needing configuration successful to record is 95%, then predetermined amount of time will be configured to 30s.
By the embodiment that the application provides, by the duration according to the number of times of success loading and the duration configuration predetermined amount of time of each success loading, thus realize ensureing that the duration of the predetermined amount of time configured is more reasonable further, more be conducive to counting availability accurately, so that make corresponding maintenance process to situation about monitoring in time.
As the optional scheme of one, transmitting element comprises:
1) sending module, for sending alarm signal to the server for storing multimedia.
By the embodiment that the application provides, whether the availability got by real-time judge meets predetermined condition (being namely less than or equal to predetermined threshold), to reach Timeliness coverage potential problem, and the object carrying out safeguarding of taking measures in time.Further, by the result according to monitor data, server in time to multimedia file place sends alarm signal, can judge whether because linking number completely causes to make this server, that linking number is full if judge, then control the connection that suitably release is unnecessary, thus ensure the normal play of multimedia file, avoid unnecessary potential safety hazard.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.