CN105610915A - Data reporting method and system - Google Patents
Data reporting method and system Download PDFInfo
- Publication number
- CN105610915A CN105610915A CN201510974682.0A CN201510974682A CN105610915A CN 105610915 A CN105610915 A CN 105610915A CN 201510974682 A CN201510974682 A CN 201510974682A CN 105610915 A CN105610915 A CN 105610915A
- Authority
- CN
- China
- Prior art keywords
- event
- data
- time interval
- triggered
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a data reporting method and system. The method comprises following steps of after a client application program is started, collecting the user data in a preset polling time interval; detecting whether any event in monitoring events is triggered in the preset polling time in real time; if so, collecting the data generated by the triggered event in the monitoring events and reporting all collected data to a server after the second preset time interval of the triggering time of the triggered event; if not, reporting user data to the server after the preset polling time interval ends. According to the method and the system disclosed by the invention, the reporting mode of the data is controlled according to whether any event in the monitoring events is triggered in the preset polling time, the completeness and the accuracy of the reported data are ensured; moreover, the performance of the client application program is improved; and the pressure of the server is reduced.
Description
Technical field
The present invention relates to transfer of data communication field, particularly relate to a kind of data reporting method and system.
Background technology
Conventionally, client SDK (SoftwareDevelopmentKit, SDK) gathers numberAccording to after all can have a reporting policy to decide when these data to be reported. At present, the reported data of main flowMode has two kinds: a kind of for immediately reporting. Immediately report logic simple, generally do not have data and loseLose. But, owing to frequently reporting and can produce considerable influence to the performance of client application at short notice,Also can strengthen the pressure that service end receives data and deal with data simultaneously. Another kind is for timing reports. ExistIn fixed time interval, the data that collect are reported in the lump, this is to a certain extent to client applicationPerformance and service termination receive the pressure of deal with data and make moderate progress. But, in the process that waits the time to be reportedIn, close client application or other accidents if now there is user, so in the end oneThe data that collect in the time interval will be lost, thereby affect integrality and the accuracy of reported data.
Summary of the invention
Based on this, be necessary to report mode effectively improving the property of client application for traditional dataCan and when the pressure of server reception & disposal data, can not ensure integrality and the accuracy of reported dataProblem, a kind of data reporting method and system are provided.
A kind of data reporting method providing for realizing the object of the invention, comprises the steps:
After client application starts, gather the user data in default polling time interval;
Detect in described default polling time interval whether trigger any one event in monitoring event in real time;
If so, gather data that the event that is triggered in described monitoring event produces and in the described event that is triggeredThe second Preset Time interval in triggered time after report current collected total data to server;
Wherein, current collected total data comprises: described in be triggered event produce data and described inUser data; Described the second Preset Time interval is less than described default polling time interval;
If not, in the time that arriving, described default polling time interval report described user data to described server.
Therein in an embodiment, gather data that in described monitoring event, the event that is triggered produces and in instituteAfter stating the second Preset Time interval in triggered time of the event of being triggered, report current collected total dataTo server, comprise the steps:
Gather the data that in described monitoring event, the event that is triggered produces;
In described the second Preset Time interval, detect whether trigger described monitoring event in except trigger eventOther events;
If so, continue to gather the data that in described monitoring event, the event that is triggered produces;
If not, on being triggered the last time behind the described second Preset Time interval in triggered time of eventReport current collected total data to described server.
In an embodiment, before gathering the user data in default polling time interval, also comprise thereinFollowing steps:
Arrange and start described default polling time interval.
Therein in an embodiment, at the second Preset Time interval in triggered time of the described event that is triggeredAfter when reporting current collected total data to server, also comprise while stopping described default pollBetween the step at interval.
Therein in an embodiment, at the second Preset Time interval in triggered time of the described event that is triggeredAfter the current total data collecting is reported to server after, also comprise the steps:
Restart described default polling time interval, and every described in described default poll time collection onceDescribed user data in default polling time interval.
Therein in an embodiment, described the second Preset Time is spaced apart described default polling time interval1/4th.
In an embodiment, described client application is webpage client application, computer thereinClient application or cell-phone customer terminal application program.
Accordingly, based on same inventive concept, the present invention also provides a kind of data reporting system, described numberBe connected with server communication according to reporting system, comprise: in data acquisition module, event checking module, collectionReport module and directly reporting module; Wherein
Described data acquisition module, is configured to, after client application startup, gather the default poll timeUser data in interval;
Described event checking module, is configured to detect in the described default poll time whether trigger monitoring in real timeAny one event in event;
Described collection reporting module, is configured to described event checking module and the described default poll time detectedWhen any one event described in internal trigger in monitoring event, gather in described monitoring event that the event that is triggered producesData also report current collected complete behind the second Preset Time interval in triggered time of the event of being triggeredPortion's data are to server; Wherein, current collected total data comprises: described in be triggered event produceData and described user data; Described the second Preset Time interval is less than described default polling time interval;
Described direct reporting module, is configured to described event checking module and the described default poll time detectedWhile inside not triggering any one event in described monitoring event, in the time that arriving, described default polling time interval reportsDescribed user data is to described server.
In an embodiment, described event checking module comprises the first detecting unit, in described collection thereinReport module comprises that the first collecting unit and first reports unit;
Described the first collecting unit, is configured to gather the data that in described monitoring event, the event that is triggered produces;
Described the first detecting unit, is configured to detect and whether trigger institute in described the second Preset Time intervalState in monitoring event other events except trigger event; If so, return to described the first collecting unit,Continue to gather the data that in described monitoring event, the event that is triggered produces; If not, entering described first reportsUnit;
Described first reports unit, be configured to the event that is triggered the last time triggered time describedBehind two Preset Time intervals, report current collected total data to described server.
In an embodiment, also comprise set of time module therein;
Described set of time module, is configured to arrange and starts described default polling time interval.
In an embodiment, described collection reporting module, is also configured in the described event that is triggered thereinThe second Preset Time interval in triggered time after report same to server of current collected total dataTime, stop described default polling time interval.
Therein in an embodiment, described collection reporting module is also configured in the described event that is triggeredAfter the current total data collecting being reported to server behind the second Preset Time interval in triggered time,Return to described set of time module and described data acquisition module.
In an embodiment, described data reporting system is SDK therein, described collection reporting module and instituteState direct reporting module and be the API that described SDK reported data is used.
The beneficial effect of above-mentioned data reporting method:
It is by starting after client application, according to whether triggering monitoring event in the default poll timeIn any one event, control the mode that reports of data. Concrete: when supervising in default poll time internal triggerWhile listening any one event in event, gather the be triggered data of event generation the triggering in the event of being triggeredBehind the second Preset Time interval of time, report the current total data collecting to server. Thereby by dataThe time reporting foreshortens to the second Preset Time interval by presetting polling time interval, to avoid at default pollThe phenomenon of the loss of data producing in the time interval, has ensured integrality and the accuracy of reported data. AndIf any one event not triggering in monitoring event detected within the default poll time, in the time of default pollBetween interval arrive time again the user data collecting is reported to server, the frequency reporting to reduce data,Reduce the impact on client application performance and server generation, thereby improved client applicationPerformance, reduced the pressure of server. Finally efficiently solving traditional data reports mode effectively changingWhen the kind performance of client application and the pressure of server reception & disposal data, can not ensure to reportThe integrality of data and the problem of accuracy.
Brief description of the drawings
Fig. 1 is the flow chart of a specific embodiment of data reporting method of the present invention;
Fig. 2 is the flow chart of another specific embodiment of data reporting method of the present invention;
Fig. 3 is the structural representation of a specific embodiment of data reporting system of the present invention;
Fig. 4 is the structural representation of another specific embodiment of data reporting system of the present invention.
Detailed description of the invention
For making technical solution of the present invention clearer, below in conjunction with drawings and the specific embodiments to the present invention do intoOne step describes in detail.
First, it should be noted that the client of mentioning in the present invention refers to corresponding with server,For client provides the program of local service. Also can be described as user side. It is except some answering at local runtimeOutside program, be generally arranged in common client computer, as computer, mobile phone etc., need to be mutual with serverOperation matches.
SDK (SoftwareDevelopmentKit, SDK), refers to by software engineerBe used to specific software kit, software frame, hardware platform, operating system etc. to set up the exploitation of application softwareThe set of instrument.
Timer, refers in software development, at program run duration, in the time interval of appointment repeatedlyCarry out specific logic.
API (ApplicationProgrammingInterface, application programming interface): refer toPredefined function. Object is to provide application program and developer based on certain software or the proud access of hardwareThe ability of one group of routine, and without accessing source code or understanding the details of internal work mechanism. As bright especially in nothingReally part, the API in the present invention generally refers to the API that SDK reported data is used.
Monitoring event refers to after client application starts, and what user likely can carry out opens clientSome application windows interface in end application program, or click a certain icon set on a certain window interfaceDeng operation. It should be noted that, the event number in monitoring event is one or more.
Referring to Fig. 1, as a specific embodiment of data reporting method of the present invention, it comprises the steps:
Step S100, after client application starts, gathers the user data in default polling time interval.
When starting after client application, that is to say that client application transports on computer or mobile phoneAfter row, first gather the user data in default polling time interval.
And then execution step S200, detect in real time in the default poll time, whether to trigger arbitrary in monitoring eventEvent. Within the time of waiting for reported data, detect and now whether trigger any one event in monitoring event.It should be noted that, the triggering of any one event in monitoring event can be triggered by client user, also canBy triggerings such as other accidents.
If so, perform step S300, gather the data that in monitoring event, the event that is triggered produces, and at quiltBehind the second Preset Time interval in the triggered time of trigger event, the current total data collecting is reported to clothesBusiness device, with the loss of data of avoiding producing in default polling time interval. Wherein, it should be noted that, thisTime the total data that collects comprise the data that produce in the event procedure that is triggered and the use having collectedUser data. If not, perform step S400, in the time that default polling time interval arrives by collected useUser data reports to server.
That is to say, by detect the arbitrary thing whether triggering in monitoring event in default polling time intervalPart, realizes data and reports to the control of the time of server. When supervising in default polling time interval internal triggerWhile listening any one event in event, adopt the mode that data is reported to time shorten, will in data, call timeForeshorten to the second Preset Time interval in the triggered time of the event of being triggered, thereby make current collectedTotal data can report to server in time, has avoided the loss of data, has ensured the complete of reported dataProperty and accuracy. Meanwhile, if do not trigger any one event in monitoring event in default polling time interval,Adopt traditional timing to report mode, in the time that default polling time interval arrives again by the user who collectsData report to server, to avoid owing to reporting number of times too frequently to cause to increase server to receive dataPressure and affect the phenomenon of performance of client application. Thereby effectively improve client applicationPerformance, has reduced the pressure of server.
Wherein, it should be noted that the second Preset Time interval is less than default polling time interval. Meanwhile,As a specific embodiment of data reporting method of the present invention, the value at the second Preset Time interval is preferably/ 4th of a default polling time interval.
Referring to Fig. 2, as another specific embodiment of data reporting method of the present invention, step S300, adoptsData that in collection monitoring event, the event that is triggered produces second when default of triggered time of the event of being triggeredBetween report current collected total data to server behind interval, specifically can realize by following steps.
Step S310, gathers the data that in monitoring event, the event that is triggered produces, to avoid loss of data, fromAnd affect the integrality of reported data.
Step S320, in the second Preset Time interval, detection removes trigger event in whether triggering monitoring eventOther outer events. That is to say, in default polling time interval, detect and trigger appointing in monitoring eventOne event, and gather after the data of the event generation that is triggered, wait for reported data behind the second Preset Time intervalProcess in, but do not collect in time triggering for fear of the generation that has again trigger event in waiting processThe phenomenon of the data that event produces, by again detecting in real time in the second Preset Time interval whether trigger monitoringOther events in event, to guarantee to gather in time again the data that trigger event produces.
If so, return to execution step S310, continue to gather the data that in monitoring event, the event that is triggered produces.If not, perform step S330, between second Preset Time in the triggered time of the event that is triggered the last timeEvery after report current collected total data to server.
It is by setting steps S320, and in the second Preset Time interval, detection is touched in whether triggering monitoring eventSend out other events outside event, realize in the second Preset Time interval whether triggering its in monitoring eventThe iterative cycles of his event detects. If again triggered in monitoring event in the second Preset Time intervalOther events, continue to gather the data that the event that is triggered produces, to realize the timely collection of data. IfIn the second Preset Time interval, do not trigger any one event in monitoring event, be now triggered the last timeBehind the second Preset Time interval in the triggered time of event, all events that are triggered of collecting are before producedRaw data and user data report to server in the lump, and the timely collection that has both realized data reports, and keeps awayExempt from the loss of data, also effectively reduced the frequent degree that data report simultaneously, connect thereby reduced serverReceive the pressure of data, improved the performance of client application.
That is to say, when its data by the event generation that is triggered in collection, also between the second Preset TimeWhether trigger other events in monitoring event every interior detection, to realize, the repeatedly data in the short time are reportedMerge into the object once reporting, and time of reporting of data is while being the triggering of the event that is triggered for the last timeBetween the second Preset Time interval after, thereby further guarantee data integrity and when accuracy, alsoThe performance and the pressure that has reduced server reception data of client application are effectively improved.
It should be noted that referring to Fig. 2, as a specific embodiment of data reporting method of the present invention, visitorAfter the end application program launching of family, at execution step S100, gather the user data in default polling time intervalBefore, also comprise step S001, arrange and start and preset polling time interval. Wherein, the default poll timeThe master timer that can be based upon client application by initialization setting that arranges specifically at interval is realized.Can realize for default polling time interval by the timing that master timer is set, logic is simple, easilyIn realization.
Further, as the another specific embodiment of data reporting method of the present invention, it is in execution stepS330, reports current adopting behind the second Preset Time interval in the triggered time of the event that is triggered the last timeWhen collecting the total data arriving to server, also comprise the step that stops default polling time interval.
That is, at execution of step S310, gathered the data that the event that is triggered produces, and second when defaultBetween do not trigger again after any one event in monitoring event in interval, now need current collected wholeData report to server. The time reporting due to now set data is the event that is triggered for the last timeThe second Preset Time interval in triggered time, for fear of calling time in set before data (be thereforeWhen default polling time interval finishes) cause data with calling time in the data that now set likely to conflictRepeat the phenomenon that reports or frequently report, can be by temporarily stopping default polling time interval, to ensure dataWhat report carries out smoothly, and this has also just further ensured the accuracy of reported data.
Accordingly, pending complete step S330, between second Preset Time in triggered time of the event of being triggeredEvery after current collected total data is reported to after server, complete after this secondary data reports,Return to again execution step S001, restart default polling time interval, and perform step S100, every in advanceIf the user data in polling time interval is once preset in polling time interval collection, to carry out number next timeAccording to reporting process.
Further, it is pointed out that the client application of mentioning in the present invention both can be netPage client application can be also computer client application or cell-phone customer terminal application program.
Accordingly, for realizing above-mentioned any data reporting method, the present invention also provides a kind of data to reportSystem. In operation principle and data provided by the present invention due to data reporting system provided by the present inventionThe principle of reporting method is same or similar, therefore repeats part and repeats no more.
Referring to Fig. 3, as a specific embodiment of data reporting system 100 of the present invention, itself and server200 communication connections, specifically comprise: data acquisition module 110, event checking module 120, collection report mouldPiece 130 and directly reporting module 140.
Wherein, set of time module 150 data acquisition modules 110, are configured to client application and startAfter, gather the user data in default polling time interval. Event checking module 120, is configured to real-time inspectionSurvey in default polling time interval and whether trigger any one event in monitoring event. Gather reporting module 130, quiltBe configured to event checking module 120 and the arbitrary thing in default polling time interval internal trigger monitoring event detectedWhen part, gather data that in monitoring event, the event that is triggered produces and in triggered time of the event of being triggered theBehind two Preset Time intervals, report current collected total data to server 200. Wherein, current adoptingCollection to total data comprise: the event that is triggered produce data and user data; And second when defaultBetween interval be less than default polling time interval. Directly reporting module 140, is configured to event checking module 120Detect while not triggering any one event in monitoring event in default polling time interval, in the default poll timeWhen interval arrives, report of user data are to server 200.
It is preferred that set of time module 150 gathers the direct reporting module 140 of reporting module 130, referring to Fig. 4,Event checking module 120 comprises the first detecting unit 121, gathers reporting module 130 and comprises the first collecting unit131 and first report unit 132. Wherein, the first collecting unit 131, is configured to gather in monitoring eventThe data that the event that is triggered produces. The first detecting unit 121, is configured to examine in the second Preset Time intervalSurvey other events that whether trigger in monitoring event except trigger event; If so, return to the first collection listUnit 131, continues to gather the data that in monitoring event, the event that is triggered produces; If not, enter declaration form on firstUnit 132. First reports unit 132, be configured to the event that is triggered in other events triggered timeBehind two Preset Time intervals, report current collected total data to server 200.
It should be noted that the specific embodiment as data reporting system 100 of the present invention, it also wrapsDraw together set of time module 150. Wherein, set of time module 150, is configured to arrange and starts and preset pollThe time interval, to ensure that data acquisition module 110 gathers the number of users in default polling time interval smoothlyAccording to. Meanwhile, can the examination of the side of enforcement as one, set of time module 150 can be the master of client applicationTimer. Data reporting system 100 is SDK, gathers reporting module 130 equal with direct reporting module 140The API using for SDK reported data.
Further, gather reporting module 130, be also configured in second of triggered time of the event of being triggeredWhen reporting current collected total data to server 200 behind Preset Time interval, stop presettingPolling time interval.
Accordingly, gather reporting module 130 and be also configured to second pre-in triggered time of the event of being triggeredIf after the current total data collecting being reported to server 200 after the time interval, time of return settingModule 150 and data acquisition module 110.
For the technical scheme of clearer explanation data reporting system 100 of the present invention, below establish with the timePut the master timer that module 150 can be client application, data reporting system 100 is SDK, gathersReporting module 130 and directly reporting module 140 are the API that SDK reported data is used, and client is usedFamily is as the trigger source of the event of monitoring, and the value at the second Preset Time interval is to preset polling time interval1/4th is example, and the course of work of data reporting system 100 of the present invention is specifically described.
Need to illustrate in advance, for ease of describing and understand the technical scheme of data reporting system of the present invention,In following specific embodiment, default polling time interval adopts N millisecond to replace, the second Preset Time intervalAdopt N/4 millisecond to replace.
After client application starts, first initialized by SDK that to set up the master of client application fixedTime device, it is N millisecond that default polling time interval is set. , every N millisecond, when SDK gathers this intervalInterior user data. Then, SDK detects client user in default polling time interval and whether triggers SDKAny one event in monitoring event, as open a certain window in client application, or click a certain windowSet a certain button etc. on mouthful interface. If so, SDK calls corresponding API and processes this thing that is triggeredPart, gathers the related data producing in the event procedure that is triggered. If not, SDK is every N millisecond, in advanceIf polling time interval reports a user data to server 200 while arrival.
Wherein, call corresponding API at SDK and process this event that is triggered, gather and be triggered in event procedureProduce related data time, SDK detects client in N/4 millisecond (i.e. the second Preset Time interval) simultaneouslyWhether end subscriber has triggered other events in SDK monitoring event. If so, SDK continues to call correspondingAPI process the event that is triggered, gather the related data producing in the event procedure that is triggered. If not, SDKStop master timer temporarily, and after N/4 millisecond, the total data of the current collection of SDK is reported in the lumpServer 200. Meanwhile, after this secondary data reports, SDK restarts master timer.
It should be noted that, in above-mentioned data reporting system 100, can use JavaScript Implementation of pseudocodeThe logic that data report. Wherein, SDK can realize reporting of data by following several API is set:
// startup master timer
varmainTimer=newTimer(function(){
// reported data
},N*1000)
// interim controller, suspends interface temporarily and reports for controlling SDK
varcontrolTimer
DCAgent.onEvent=function(){
// time-out master timer
mainTimer.stop()
clearTimeout(controlTimer)
// delayed data reports
controlTimer=setTimeout(function(){
// restart master timer
mainTimer.run()
},N*1000/4)
// gather data
//...
}
Data reporting system 100 of the present invention, by arranging event checking module 120 and gathering reporting module130, while reporting the time of waiting pending data to report after API Calls in mode to be default poll traditional timerBetween interval, shorten to the second Preset Time interval, effectively reduced data and reported the stand-by period, thereby avoidedThe loss of data, ensured integrality and the accuracy of data. Meanwhile, also by the short time frequentlyAPI Calls is merged into once and is reported, and on call time as second of triggered time of the event that is triggered for the last timeBehind Preset Time interval, this also just effectively reduces the frequency that in the short time, data report, thereby has reduced clothesBusiness device 200 receives the pressure of data, has improved the performance of client application.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed,But can not therefore be interpreted as the restriction to the scope of the claims of the present invention. It should be pointed out that for this areaThose of ordinary skill, without departing from the inventive concept of the premise, can also make some distortion andImprove, these all belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be with appendedClaim is as the criterion.
Claims (13)
1. a data reporting method, is characterized in that, comprises the steps:
After client application starts, gather the user data in default polling time interval;
Detect in described default polling time interval whether trigger any one event in monitoring event in real time;
If so, gather data that the event that is triggered in described monitoring event produces and in the described event that is triggeredThe second Preset Time interval in triggered time after report current collected total data to server;
Wherein, current collected total data comprises: described in be triggered event produce data and described inUser data; Described the second Preset Time interval is less than described default polling time interval;
If not, in the time that arriving, described default polling time interval report described user data to described server.
2. method according to claim 1, is characterized in that, gathers in described monitoring event and is triggeredThe data that event produces also report and work as behind the second Preset Time interval in triggered time of the described event that is triggeredFront collected total data, to server, comprises the steps:
Gather the data that in described monitoring event, the event that is triggered produces;
In described the second Preset Time interval, detect whether trigger described monitoring event in except trigger eventOther events;
If so, continue to gather the data that in described monitoring event, the event that is triggered produces;
If not, at the described second Preset Time interval in triggered time of the described event that is triggered for the last timeAfter report current collected total data to described server.
3. method according to claim 1 and 2, is characterized in that, gathers default polling time intervalBefore interior user data, further comprising the steps of:
Arrange and start described default polling time interval.
4. method according to claim 3, is characterized in that, in the time of the triggering of the described event that is triggeredBetween the second Preset Time interval after when reporting current collected total data to server, also bagDraw together the step that stops described default polling time interval.
5. method according to claim 4, is characterized in that, in the time of the triggering of the described event that is triggeredBetween the second Preset Time interval after the current total data collecting is reported to server after, also compriseFollowing steps:
Restart described default polling time interval, and every described default polling time interval collection onceDescribed user data in described default polling time interval.
6. method according to claim 1, is characterized in that, described the second Preset Time is spaced apart instituteState 1/4th of default polling time interval.
7. method according to claim 1, is characterized in that, described client application is webpageClient application, computer client application or cell-phone customer terminal application program.
8. a data reporting system, is characterized in that, described data reporting system is connected with server communication,Comprise: data acquisition module, event checking module, collection reporting module and direct reporting module; Wherein
Described data acquisition module, is configured to, after client application startup, gather the default poll timeUser data in interval;
Described event checking module, is configured to detect in the described default poll time whether trigger monitoring in real timeAny one event in event;
Described collection reporting module, is configured to described event checking module and the described default poll time detectedWhen any one event described in internal trigger in monitoring event, gather in described monitoring event that the event that is triggered producesData also report current collected complete behind the second Preset Time interval in triggered time of the event of being triggeredPortion's data are to server; Wherein, current collected total data comprises: described in be triggered event produceData and described user data; Described the second Preset Time interval is less than described default polling time interval;
Described direct reporting module, is configured to described event checking module and the described default poll time detectedWhile inside not triggering any one event in described monitoring event, in the time that arriving, described default polling time interval reportsDescribed user data is to described server.
9. system according to claim 8, is characterized in that, described event checking module comprises firstDetecting unit, described collection reporting module comprises that the first collecting unit and first reports unit;
Described the first collecting unit, is configured to gather the data that in described monitoring event, the event that is triggered produces;
Described the first detecting unit, is configured to detect and whether trigger institute in described the second Preset Time intervalState in monitoring event other events except trigger event; If so, return to described the first collecting unit,Continue to gather the data that in described monitoring event, the event that is triggered produces; If not, entering described first reportsUnit;
Described first reports unit, be configured to the event that is triggered the last time triggered time describedBehind two Preset Time intervals, report current collected total data to described server.
10. system according to claim 8 or claim 9, is characterized in that, also comprises set of time module;
Described set of time module, is configured to arrange and starts described default polling time interval.
11. systems according to claim 10, is characterized in that, described collection reporting module, goes back quiltBe configured to report current collecting behind the second Preset Time interval in triggered time of the described event that is triggeredTotal data to server time, stop described default polling time interval.
12. systems according to claim 11, is characterized in that, described collection reporting module is also joinedBe set to behind the second Preset Time interval in triggered time of the described event that is triggered current collect wholeAfter data report to server, return to described set of time module and described data acquisition module.
13. systems according to claim 8, is characterized in that, described data reporting system is SDK,Described collection reporting module and described direct reporting module are the API that described SDK reported data is used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510974682.0A CN105610915A (en) | 2015-12-15 | 2015-12-22 | Data reporting method and system |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2015109394107 | 2015-12-15 | ||
CN201510939410 | 2015-12-15 | ||
CN201510974682.0A CN105610915A (en) | 2015-12-15 | 2015-12-22 | Data reporting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105610915A true CN105610915A (en) | 2016-05-25 |
Family
ID=55990449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510974682.0A Pending CN105610915A (en) | 2015-12-15 | 2015-12-22 | Data reporting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105610915A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106817278A (en) * | 2017-01-12 | 2017-06-09 | 烽火通信科技股份有限公司 | A kind of data acquisition reporting device and method for intelligent terminal |
CN107346498A (en) * | 2017-06-25 | 2017-11-14 | 深圳有麦科技有限公司 | The report method and its system of a kind of alive data |
CN107483532A (en) * | 2017-06-28 | 2017-12-15 | 武汉斗鱼网络科技有限公司 | A kind of method for uploading of behavioral data, Resource Server and storage medium |
CN108363658A (en) * | 2018-02-06 | 2018-08-03 | 四川虹美智能科技有限公司 | A kind of user behavior data acquisition method, intelligent terminal, server-side and system |
CN108809735A (en) * | 2018-07-19 | 2018-11-13 | 成都西加云杉科技有限公司 | Event reporting management method and device |
CN108805778A (en) * | 2018-04-28 | 2018-11-13 | 平安科技(深圳)有限公司 | Electronic device, the method and storage medium for acquiring collage-credit data |
CN112395173A (en) * | 2019-08-14 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method and device for reporting information stream data |
CN112783574A (en) * | 2021-02-02 | 2021-05-11 | 北京百度网讯科技有限公司 | Application program development method, device, equipment and storage medium |
CN115159284A (en) * | 2022-06-17 | 2022-10-11 | 杭州本系机电工程有限公司 | Short-circuit system and control method |
CN115242799A (en) * | 2022-07-21 | 2022-10-25 | 中国建设银行股份有限公司 | Data reporting method, device, equipment, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083566A (en) * | 2006-05-30 | 2007-12-05 | 中兴通讯股份有限公司 | Method and apparatus for performing data performance monitor in transmission network management |
CN103749002B (en) * | 2010-06-09 | 2012-02-08 | 北京理工大学 | Acquisition of information general-purpose system for internal network security monitoring |
CN103439927A (en) * | 2013-07-31 | 2013-12-11 | 杭州银江智慧城市技术集团有限公司 | Remote monitoring method for telegraph pole |
CN103906206A (en) * | 2014-01-26 | 2014-07-02 | 上海挚连科技有限公司 | Sensor network based on event bank triggering reporting |
-
2015
- 2015-12-22 CN CN201510974682.0A patent/CN105610915A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083566A (en) * | 2006-05-30 | 2007-12-05 | 中兴通讯股份有限公司 | Method and apparatus for performing data performance monitor in transmission network management |
CN103749002B (en) * | 2010-06-09 | 2012-02-08 | 北京理工大学 | Acquisition of information general-purpose system for internal network security monitoring |
CN103439927A (en) * | 2013-07-31 | 2013-12-11 | 杭州银江智慧城市技术集团有限公司 | Remote monitoring method for telegraph pole |
CN103906206A (en) * | 2014-01-26 | 2014-07-02 | 上海挚连科技有限公司 | Sensor network based on event bank triggering reporting |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106817278A (en) * | 2017-01-12 | 2017-06-09 | 烽火通信科技股份有限公司 | A kind of data acquisition reporting device and method for intelligent terminal |
CN106817278B (en) * | 2017-01-12 | 2019-08-13 | 烽火通信科技股份有限公司 | A kind of data acquisition reporting device and method for intelligent terminal |
CN107346498A (en) * | 2017-06-25 | 2017-11-14 | 深圳有麦科技有限公司 | The report method and its system of a kind of alive data |
WO2019000498A1 (en) * | 2017-06-25 | 2019-01-03 | 深圳有麦科技有限公司 | Active data reporting method and system thereof |
CN107483532A (en) * | 2017-06-28 | 2017-12-15 | 武汉斗鱼网络科技有限公司 | A kind of method for uploading of behavioral data, Resource Server and storage medium |
CN107483532B (en) * | 2017-06-28 | 2020-05-08 | 武汉斗鱼网络科技有限公司 | Behavior data uploading method, resource server and storage medium |
CN108363658B (en) * | 2018-02-06 | 2021-06-11 | 四川虹美智能科技有限公司 | User behavior data acquisition method, intelligent terminal, server and system |
CN108363658A (en) * | 2018-02-06 | 2018-08-03 | 四川虹美智能科技有限公司 | A kind of user behavior data acquisition method, intelligent terminal, server-side and system |
CN108805778A (en) * | 2018-04-28 | 2018-11-13 | 平安科技(深圳)有限公司 | Electronic device, the method and storage medium for acquiring collage-credit data |
CN108805778B (en) * | 2018-04-28 | 2023-11-24 | 平安科技(深圳)有限公司 | Electronic device, method for collecting credit investigation data and storage medium |
CN108809735A (en) * | 2018-07-19 | 2018-11-13 | 成都西加云杉科技有限公司 | Event reporting management method and device |
CN108809735B (en) * | 2018-07-19 | 2021-07-27 | 成都西加云杉科技有限公司 | Event reporting management method and device |
CN112395173B (en) * | 2019-08-14 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Method and device for reporting information flow data |
CN112395173A (en) * | 2019-08-14 | 2021-02-23 | 腾讯科技(深圳)有限公司 | Method and device for reporting information stream data |
CN112783574A (en) * | 2021-02-02 | 2021-05-11 | 北京百度网讯科技有限公司 | Application program development method, device, equipment and storage medium |
CN112783574B (en) * | 2021-02-02 | 2023-10-27 | 北京百度网讯科技有限公司 | Application development method, device, equipment and storage medium |
CN115159284A (en) * | 2022-06-17 | 2022-10-11 | 杭州本系机电工程有限公司 | Short-circuit system and control method |
CN115242799A (en) * | 2022-07-21 | 2022-10-25 | 中国建设银行股份有限公司 | Data reporting method, device, equipment, storage medium and program product |
CN115242799B (en) * | 2022-07-21 | 2024-04-26 | 中国建设银行股份有限公司 | Data reporting method, device, equipment, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105610915A (en) | Data reporting method and system | |
US9877283B2 (en) | Method and terminal for reporting sensor data and terminal | |
CN105550051B (en) | The asynchronous processing method and device of service request | |
CN109891392B (en) | System service timeout processing method and device | |
WO2018076945A1 (en) | Thread data processing method, device and terminal | |
JP7250066B2 (en) | Dialogue platform test method, device, electronic device and storage medium | |
US9871885B2 (en) | Socket processing method and device and web server | |
WO2020232871A1 (en) | Method and device for microservice dependency analysis | |
KR101624821B1 (en) | Method, apparatus, terminal, and server for synchronizing terminal mirror | |
WO2018000675A1 (en) | Background application management apparatus and terminal, and background application management method | |
CN110825304B (en) | Touch event processing method and device and terminal equipment | |
CN108197002B (en) | Mobile device non-buried point data statistical method, system, terminal and medium | |
CN103309668B (en) | Application program does not intercept and capture abnormal processing method and processing device | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN104346563A (en) | Information processing method and electronic equipment | |
CN110442310A (en) | Application data processing method, device, storage medium and terminal device | |
CN109189598A (en) | A kind of method, processor and terminal device interrupting positioning | |
CN111078441A (en) | System running state monitoring method and device and electronic equipment | |
CN103761096B (en) | The automated input methodology realized based on IBinder mechanism and device | |
CN106648205B (en) | Dormancy control method, device and terminal | |
CN109766028B (en) | Touch control sub-management system and method for infrared touch screen | |
CN106527907B (en) | Screen capture processing method and device for intelligent terminal | |
CN110413271B (en) | Intelligent message management method based on Unity3D life cycle | |
CN112673611B (en) | Mobile terminal control method, mobile terminal control device and mobile terminal | |
CN109196885A (en) | A kind of synchronous method and equipment of Email |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160525 |
|
RJ01 | Rejection of invention patent application after publication |