CN108093439A - User behavior data method for controlling reporting, terminal and computer readable storage medium - Google Patents

User behavior data method for controlling reporting, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108093439A
CN108093439A CN201711040008.0A CN201711040008A CN108093439A CN 108093439 A CN108093439 A CN 108093439A CN 201711040008 A CN201711040008 A CN 201711040008A CN 108093439 A CN108093439 A CN 108093439A
Authority
CN
China
Prior art keywords
data
real
user behavior
time report
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711040008.0A
Other languages
Chinese (zh)
Inventor
倪秉炬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711040008.0A priority Critical patent/CN108093439A/en
Publication of CN108093439A publication Critical patent/CN108093439A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of user behavior data report methods,Terminal and computer readable storage medium,This method obtains the user behavior data of application in use,Default data classifying rules is applied by be described,The data for needing real-time report are selected from the user behavior data of acquisition and are stored into data real-time report queue,Give the application corresponding application server the data real-time report in the data real-time report queue,It realizes in real-time report,There is what is be directed to report to the data that need real-time report according to data classifying rules,Ensure promptness and accuracy that data report,The invention also discloses a kind of terminal and computer readable storage mediums,By implementing said program,It solves in existing real-time report,The problem of resource utilization caused by reporting all data and influence power consumption of terminal.

Description

User behavior data method for controlling reporting, terminal and computer readable storage medium
Technical field
The present invention relates to field of communication technology, more specifically to a kind of user behavior data report method, terminal and Computer readable storage medium.
Background technology
In the mobile Internet epoch, with the promotion and popularization of the terminals such as smart mobile phone, tablet computer, various applications are met the tendency of And it gives birth to.Each application in operation when, corresponding data can be recorded and reported to server, by server to the number that reports According to analyzing and counting, so as to realize development plan, application migration efficiency for formulating the next version of application etc. according to result Effect.Therefore it is also more and more important for the big data statistics of user.Current big data statistics is all based on the behavior of user Data collection, the existing mode that data are reported to server is mainly by each application operation data by way of periodically reporting Uniformly reporting to server, i.e. user data is first accumulated in cell-phone customer terminal, is then uploaded onto the server by client timing, but For need in real time analysis user behavior data scene for, timing data report it is not prompt enough, in order to solve timing report The problem of, the prior art can also be used by the way of real-time report by the behavioral data real-time report of user to server The behavioral data of all users is all reported to server by the mode of real-time report, and the data amount of reporting is big and influences power consumption of terminal, The waste of resource is caused simultaneously, and it is not prompt enough to the statistics of user behavior data, accurate to cause.
The content of the invention
The technical problem to be solved in the present invention is the prior art in real-time report data, by all data all in real time on Report, data, which are not distinguished, causes the big influence power consumption of terminal of reported data amount, not enough and accurate so as to cause data statistics Problem for the technical problem, provides a kind of user behavior data report method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of user behavior data method for controlling reporting, user's row Include for data method for controlling reporting:
Obtain the user behavior data of application in use;
Default data classifying rules is applied by be described, being selected from the user behavior data of acquisition needs in real time The data of report are simultaneously stored into data real-time report queue;
Give the application corresponding application server the data real-time report in the data real-time report queue.
Optionally, described press applies default data classifying rules to be described, is selected from the user behavior data of acquisition Go out to need the data of real-time report and store to before the step in data real-time report queue, further include:
Data classifying rules is obtained from the corresponding data statistics server of the application, is included in the data classifying rules Need the identification information of the data of real-time report.
Optionally, it is described to include afterwards by for the step of application default data classifying rules:
For the data of real-time report are not required in the user behavior data of the acquisition, storage reports team to data timing Row;
The data timing is reported the data timing in queue be reported to the corresponding application server of the application.
Optionally, the data real-time report by the data real-time report queue gives the application corresponding application The step of server, includes:
Data in the data real-time report queue are encapsulated as a content of parameter;
The content of parameter is reported to the corresponding application server of the application by a preset interface.
Optionally, the preset interface is the business interface of the application or the preset interface is the application one Number is according to real-time report interface.
Optionally, after described the step of obtaining application user behavior data in use, by for the application Before the step of default data classifying rules selects the data for needing real-time report from the user behavior data of acquisition, also Including:
Whether the number for judging currently to run application in terminal is less than or equal to predetermined number threshold value, if so, by the acquisition User behavior data as need real-time report data carry out real-time report;
Or,
Judge whether current time belongs to default full real-time report time range, if so, the user behavior by the acquisition Data are as the data progress real-time report for needing real-time report.
Further, the present invention also provides a kind of data receiver method, the data receiver method includes:
Receive terminal by needs that user behavior data method for controlling reporting described in any one of the above embodiments reports it is real-time on The data of report;
By the data received be stored in preset buffer memory area for data statistics server according to data statistics rule from described Preset buffer memory is read in area.
Further, the present invention also provides a kind of terminal, the terminal includes first processor, first memory and the One communication bus;
First communication bus is used to implement the connection communication between first processor and first memory;
The first processor is used to perform one or more first program stored in first memory, in realization The step of stating any one of them user behavior data method for controlling reporting.
Further, the present invention also provides a kind of application server, the application server includes second processor, the Two memories and the second communication bus;
Second communication bus is used to implement the connection communication between second processor and second memory;
The second processor is used to perform one or more second program stored in second memory, in realization The step of data receiver method stated.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums There are one or multiple first programs, one or more of first programs are performed by one or more processor, with reality The step of existing user behavior data method for controlling reporting described in any one of the above embodiments;
Or,
There are one the computer-readable recording medium storages or multiple second programs, and one or more of second Program is performed by one or more processor, the step of to realize above-mentioned data receiver method.
Advantageous effect
The present invention provides a kind of user behavior data report method, terminal and computer readable storage medium, for existing In technology in real-time report data, by all data all real-time reports, data, which are not distinguished, causes reported data amount big Influence power consumption of terminal, so as to cause data statistics not enough and it is accurate the problem of, pass through and obtain application user in use Behavioral data applies default data classifying rules by be described, it is real-time that needs is selected from the user behavior data of acquisition The data that report simultaneously are stored into data real-time report queue, and by the data real-time report in the data real-time report queue Give the application corresponding application server, i.e. the user behavior data of the invention for acquisition is according to preset data classifying rules It makes choice, is stored the data for needing analysis user behavior in real time into data real-time report queue according to selection result, together When by data real-time report queue real-time report to application server, the present invention is that the data reported are distinguished, will The data real-time report of real-time report is needed to application server, targetedly partial data real-time report provided by the invention Mechanism, both can guarantee the data for needing real-time report reports promptness to require, while the specific aim and standard of real-time report data True property is more preferable, and occupied resource is also less, and power consumption is lower, is promoting the same of the standby time of resource utilization and terminal When, satisfaction of users can be promoted.
Description of the drawings
Below in conjunction with accompanying drawings and embodiments, the invention will be further described, in attached drawing:
The hardware architecture diagram of Fig. 1 each optional mobile terminals of embodiment one to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the hardware architecture diagram of each optional server of embodiment one of the present invention;
Fig. 4 is the user behavior data method for controlling reporting flow chart that first embodiment of the invention provides;
Fig. 5 is the number progress data classification method flow that the basis that first embodiment of the invention provides currently runs application Figure;
Fig. 6 carries out data classification method flow chart for what first embodiment of the invention provided according to current run time;
Fig. 7 is the data receiver method flow chart that first embodiment of the invention provides;
Fig. 8 is the user behavior data method for controlling reporting refined flow chart that second embodiment of the invention provides;
Fig. 9 is that the terminal structure that third embodiment of the invention provides illustrates map flow chart;
Figure 10 is that the application server that fourth embodiment of the invention provides illustrates map flow chart;
Figure 11 is that the user behavior data that fourth embodiment of the invention provides reports control and data method of reseptance schematic diagram Flow chart.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special For moving outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement include but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need It to be omitted in the scope of essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, by radio frequency unit 101 or WiFi module 102 it is receiving or The voice data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. One or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system It unites as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., it does not limit herein.
For the ease of understanding the embodiment of the present invention, the server of the present invention is described below.
As shown in figure 3, the structure diagram of each optional server of embodiment one to realize the present invention, the server It includes at least:Input and output (IO) bus 301, processor 302, memory 303, memory 304 and communicator 305.Wherein,
Input and output (IO) bus 303 respectively with itself belonging to server other components (processor 302, memory 303rd, memory 304 and communicator 305) connection, and provide transmission lines for other components.
Processor 302 usually controls the overall operation of the server belonging to itself.For example, processor 302 perform calculate and The operations such as confirmation.Wherein, processor 302 can be central processing unit (CPU).
Communicator 305, generally includes one or more assemblies, allows the server belonging to itself and wireless communication system Radio communication between system or network.
The software code that the storage processor of memory 303 is readable, processor can perform, it includes for control processor 302 perform the instruction (i.e. software perform function) of functions described herein.
Wherein, in application server provided by the invention, realize and receive reported data, reported data is stored in data system Meter cache region of server is storable in for the software code for the function that data statistics server is read out in memory 303, And it is performed after being performed or compiled by processor 302.
Hardware configuration and communications network system based on above-mentioned mobile terminal, application server propose the method for the present invention Each embodiment.
First embodiment
In order to solve the prior art in real-time report data, by all data real-time reports, the big influence of the data amount of reporting Power consumption of terminal, and occupy resource, so as to cause data statistics it is not prompt enough, accurate the problem of, the present embodiment is according to default number Classification is made choice to the user behavior data of acquisition according to classifying rules, it would be desirable to which it is real-time that the data of real-time report are stored in data Report real-time report to application server, the present embodiment in queue that the above method is described in detail.
For a better understanding, the present embodiment provides a kind of user behavior data method for controlling reporting, realized for terminal Reporting needs the process of analysis user behavior data in real time, can specifically participate in shown in Fig. 4, and Fig. 4 is provided in this embodiment one Kind user behavior data method for controlling reporting basic flow chart, the user's behavioral data method for controlling reporting include:
S401:Obtain the user behavior data of application in use.
Application in the present embodiment can be any application installed in terminal, for example, the application can be according to The download instruction that family issues downloads what is obtained by wireless communication from the server in network, such as " Alipay ", " wechat ", " microblogging " etc., certainly, the application can also be just installed in the terminal before dispatching from the factory in the memory of terminal, such as " noisy Clock ", " photograph ", " calculator " etc..
Here, user behavior data is illustrated.User behavior data in the present embodiment refer to user use should Used time applies associated data with this, such as user is in use content, use habit, caching record of the application etc..With Family behavioral data can apply the automatic data for recording, caching, such as during user's broadcasting music, " music " plays user Music data is cached;Can also be that user actively sets the data recorded, such as user to make a noise in setting according to self-demand Zhong Shi actively records alarm time.It should be appreciated that user can only use an application, it can also be simultaneously using multiple Using, such as user is when " reading ", opening " music " on backstage carries out music, while uses " reading ", " sound It is happy " application, therefore it can be the user behavior number for obtaining an application to obtain the user behavior data of application in use According to or obtain one application multiple user behavior datas, can also be the multiple user behaviors for obtaining multiple applications Data, it should be appreciated that data statistics server can flexibly select the user behavior of the application obtained according to statistical demand The number of data and the user behavior data for specifically obtaining which application.
It should be noted that in different living scenes, it can obtain certain time period to obtain user behavior data Application user behavior data or in real time obtain, can also be timing acquisition.For example, within certain day working time, User is not high using the frequency of application, can obtain the user behavior data of the application between 9 points to 12 points, can also be periodically 12 Point, 13 points of acquisition user behavior datas;Within the time of having a rest at certain day weekend, user frequently using application, can obtain use in real time Family behavioral data.For obtaining for the user behavior data in certain a period of time, acquisition 1 month, 2 months, 6 can also be Month, the user behavior data of a wide range of time interval such as 1 year;For timing acquisition user behavior data, this implementation Example set time, set time quarterly, set time per several years etc. of timing every month can also remove acquisition user's row For data.It should be appreciated that for obtaining the user behavior data of certain a period of time or timing acquisition user behavior data Mode, terminal can be adjusted flexibly the time according to environmental demand;For obtaining the mode of user behavior, terminal can also It, can be with user in real behavior at 9 points to 11 points according to real-time requirement flexible conversion, such as within the time of having a rest at certain day weekend Data, can be with per half an hour timing acquisition at 12 points to 14 points.
S402:Default data classifying rules is applied by be described, needs are selected from the user behavior data of acquisition The data of real-time report are simultaneously stored into data real-time report queue.
For the user behavior data of acquisition, classify according to using default data classifying rules to data, mainly It is divided into the data for needing real-time report and the data that other flexible reporting schemes report may be employed, it would be desirable to the number of real-time report According to storage into data real-time report queue.Wherein data classifying rules is to apply default data classifying rules by be described It before classifying to user behavior data, is acquired from described using corresponding data statistics server, data classification Rule can be demand data priority of the data statistics server according to the real-time requirement setting to user behavior data; It can be the demand data priority of user or application server according to the self-defined setting of self-demand, and be reported to data system Count server;It can also be and determine demand data with reference to the demand property of data statistics server and the demand property of user's setting themselves Priority, it should be appreciated that the demand data priority that User Defined is set is higher than the number that data statistics server is set According to demand classes.The data for needing real-time report are the data of demand data highest priority, except the number of real-time requirement According to remaining data is that the data that other flexible reporting schemes report may be employed.It should be noted that in data classifying rules Also include according to data priority set identification information, i.e., to need real-time report data and may be employed other it is flexible on The data that report mode reports are marked, wherein, the data markers of different demands are different, and data statistics server can basis The label information of data sorts data into message and informs terminal by push.
It should be appreciated that can be different data classifying rules for different applications, it can also same data point Rule-like.Such as payment class application " Alipay ", " wechat ", in data classifying rules, the number of user's payment amount data According to demand classes highest;For game class application " king's honor ", " Onmyoji ", " heroic alliance ", the game purchase of user Equip the demand data highest priority of data.
In order to make it easy to understand, the present embodiment applies default data classifying rules to pressing to be described, needs are splitted data into It the data of real-time report and the data that other flexible reporting schemes report may be employed illustrates, in the present embodiment, wherein Other flexible reporting schemes specifically by the demand data priority of data classifying rules depending on, it is complete for data statistics server The data of statistical analysis need not be carried out without reporting, i.e., data minimum to data demand classes do not report;For number Server is reported or is delayed using timing without the data of real-time statistic analysis and reported according to statistics, wherein the number reported using delay According to compared with higher using the demand data priority that reports of timing, compared with the demand data priority using real-time report compared with Low, i.e., the highest data of demand property are carried out real-time report by the user behavior data for acquisition by the way of real-time report, After the completion of real-time report, the high data of demand property time are reported into line delay using delay reporting schemes;It is relatively low for demand property Data, in order to avoid occupy resource, then using periodically report by the way of reported, for the user behavior number of the acquisition According to the data that middle timing reports, storage reports queue to data timing, the data timing is reported to the data timing in queue It is reported to the corresponding application server of the application.For example, the user for obtaining " news client " browses the data of world news, The data of national news are browsed, the data of social news is browsed, browses the data of entertainment news, by the data classifying rules of acquisition Classify to user behavior data, it is assumed that the demand data that data statistics server browses user now entertainment news is big It is more than data of the data more than browsing world news of browsing social news in the data of browsing national news, then terminal acquisition pushes away Message is sent, according to mark, it would be desirable to the data of the browsing entertainment news of real-time report be stored in data real-time report queue into Row real-time report;For browsing the data of national news, on the laggard line delay of data of the complete browsing entertainment news of real-time report Report;For browse social news data, since data statistics server is not badly in need of counting, then using periodically report by the way of on Report;For browsing the data of world news then without reporting.
It will be clear that only being listed in other flexible reporting schemes of above-mentioned example, timing reports, being delayed reports, no It reports, recited herein simply relatively common several, other flexible reporting schemes are not limited to these types of information Classification.
In some specific scenes of the present embodiment, in some period, if user completely without using it is any application or It is less to run the number of application, in order to ensure that real-time report data can reach data statistics server in time, can will obtain User behavior data directly as the data of real-time report is needed to be reported.Obtaining the user of application in use After behavioral data, further include before being classified by data classifying rules to user behavior data and applied according to current operation Number carry out data classification, as shown in figure 5, Fig. 5 is the flow chart that data classification is carried out according to the number of current operation application.
S501:Judge whether the number that application is currently run in terminal is less than or equal to predetermined number threshold value.
S502:It is if so, the user behavior data of the acquisition is real-time directly as the data progress of real-time report is needed It reports.
S503:If not, applying default data classifying rules by be described, classify to the user behavior data of acquisition Mark.
In order to make it easy to understand, the present embodiment to carrying out data classification according to the number of current operation application illustrate It is bright, it is interior at work, it detects and the number of application is currently run in terminal as 2, less than predetermined number threshold value 3, then need not Classify to the user behavior data of acquisition, directly using user behavior data as in the data progress in real time for needing real-time report Report;It within other certain time, detects and the number of application is currently run in terminal as 5, more than predetermined number threshold value 3, then Classified according to data classifying rules to the user behavior data of acquisition, it would be desirable to the data storage of real-time report to data it is real-time on It reports in queue.
It should be appreciated that predetermined number threshold value can be set by User Defined or data statistics server Unified setting, i.e., predetermined number threshold value can be adjusted flexibly according to demand.Such as daytime user currently run using more, number It is big according to the amount of reporting, user can self-defined or data statistics server uniformly set predetermined number threshold value more a little bit smaller, such as 5, The number of current operation application is more than threshold value, for the accuracy and promptness of data statistics, then according to data classifying rules pair The user behavior data classification of acquisition, it would be desirable to which the data of real-time report are stored into data real-time report queue;It is used at night Family is currently run using less, user can self-defined or data statistics server predetermined number threshold value larger one is uniformly set Point, such as 10, the number of current operation application is less than threshold value, since the data amount of reporting is less, then directly by user behavior data Real-time report is carried out as the data of real-time report are needed.
In another embodiment, if terminal current run time is later, the data volume of real-time report is small and in order to ensure The promptness of reported data, can also be according to current fortune before being classified to the user behavior of acquisition by default data The row time carries out data classification, as shown in fig. 6, Fig. 6 is the flow chart that data classification is carried out according to current run time.
S601:Judge whether current time belongs to default full real-time report time range.
S602:If so, using the user behavior data of the acquisition as the data progress real-time report for needing real-time report.
S603:If not, applying default data classifying rules by be described, classify to the user behavior data of acquisition Mark.
In order to make it easy to understand, the present embodiment is illustrated to carrying out data classification according to current run time, such as Current time is 3 points, belongs to default 1 point to 6 points of full real-time report time range, then directly using user behavior data as needs The data of real-time report carry out real-time report;If current run time is 9 points, it is not belonging to preset full real-time report time range 1 O'clock to 6 points, then classified according to data classifying rules to the user behavior data of acquisition.
It can be by User Defined setting or data statistics it should be appreciated that presetting full real-time report scope Server is unified to be set, that is, presetting full real-time report scope can be adjusted flexibly according to demand.It such as should in weekend terminal operating Continueed to the time longer such as 1 point, the data amount of reporting is big, user can self-defined or data statistics server it is unified set it is default More a little later, such as 2 points to 5 points, current run time is not belonging to preset full real-time report scope full real-time report scope, for number Accuracy and promptness according to statistics then classify to the user behavior data of acquisition according to data classifying rules, it would be desirable in real time The data reported are stored into data real-time report queue;On weekdays user currently run application time continue it is shorter such as 11 Point, user can unified set of self-defined or data statistics server preset full real-time report scope more earlier, such as 0 point to 7 Point, current run time belong to default full real-time report scope, and the data amount of reporting is less, then directly using user behavior data as The data of real-time report is needed to carry out real-time report.
S403:Give the application corresponding application service the data real-time report in the data real-time report queue Device.
For the data for needing real-time report being stored in data real-time report queue, in the present embodiment, Ke Yitong Terminal is crossed to be reported to using corresponding application server, it can also be by user's active reporting to application server.Data statistics takes Demand data is informed terminal by business device by PUSH message, and terminal can realize the work(of the middle control program of a data statistics Can, i.e., terminal is responsible for receiving the PUSH message from data statistics server, to the data that report is needed to be handled differently or Person user knows that the data actively reported after PUSH message to needs are handled differently.For needing the data of real-time report, Data real-time report in the data real-time report queue is specifically included to the corresponding application server of the application by institute It states the data in data real-time report queue and is encapsulated as a content of parameter, the content of parameter is passed through in a preset interface Offer the corresponding application server of the application.Wherein preset interface is the business interface of the application or is the application One number is according to real-time report interface.
In order to make it easy to understand, the present embodiment by the data in data real-time report queue to being encapsulated as a content of parameter simultaneously It is reported and illustrated by preset interface.In the user behavior data that real-time report obtains, when in data real-time report queue In the presence of the data that needs report, then data from queue are taken out, and the data in data real-time report queue are encapsulated as One content of parameter;It the data for needing real-time report can also be stored in data reports and be encapsulated data automatically while queue For a content of parameter, parameter name unified definition is data_real_time.Various applications in terminal can put content of parameter Enter with the business interface of corresponding Application Server information interaction or a number of application according to real-time report interface, terminal is to application Server transmission interface is asked, and interface is waited to call.It should be appreciated that in order to reduce the data of an interface real-time report Amount in the user behavior data that real-time report obtains, can also carry out the data for needing real-time report according to data type Classification, different types of data be put into the corresponding independent data real-time report interface of data type, using to application service Device transmission interface is asked, and interface is waited to call.
After data report, in order to complete data statistics in time, the present embodiment is by receiving above by user behavior number The data reported according to method for controlling reporting, will receive data deposit preset buffer memory area, and data statistics server is subsequently read Statistics in order to make it easy to understand, the present embodiment provides a kind of data receiver methods, is used to implement reception reported data, completes to read The process of statistics can be specifically participated in shown in Fig. 7, and Fig. 7 is a kind of data receiver method basic flow chart provided in this embodiment, The data receiver method includes:
S701:Receive the data for needing real-time report that terminal is reported by user behavior data method for controlling reporting.
S702:By the data received be stored in preset buffer memory area for data statistics server according to data statistics rule from It is read in the preset buffer memory area.
In the present embodiment, after application server receives interface requests, receive and control is reported by user behavior data Data parameters of real-time report that method reported need, and parse data_real_time parameters automatically, can will be in parameter Content and the user behavior data of acquisition are directly uploaded to data statistics server, and data statistics server is read out statistics, Application server can also come out the contents extraction in parameter, and write the preset buffer memory area of data statistics server, wherein Preset buffer memory area can be the specific position in buffer service, in DATA_REAL_TIME_MAP.In the present embodiment, data There are one automatic detection trigger mechanism in statistical server, once have in the DATA_REAL_TIME_MAP tables of detection buffer service Data write, then can notify data statistics server automatically immediately, and the data in buffer service are taken out and are read, and according to this The affiliated application of reported data and content are put into its perdurable data storehouse and carry out subsequent real-time statistics, i.e. data statistics takes Business device reads the data in buffer service and is classified according to the type of user behavior data, different according to user behavior data Affiliated application and content carry out respectively real-time statistics.
For reporting the real-time report data that interface reported by multiple independent data, application server is by connecing After mouth obtains real-time report data, notice data statistics server is counted, and data statistics server is according to different data Reported data interface carry out respectively real-time statistics, if but data report interface more or each data report interface reported data compared with More, application server then needs that data is frequently called to report interface, and data are reported interface counted also can more slowly.
For the present embodiment according to default data classifying rules is applied, being selected from the user behavior data of acquisition needs reality When the data that report and store and be encapsulated as a parameter into data real-time report queue, while by the data for needing real-time report Content, and pass through a preset interface and be reported to the corresponding application server of the application, pass through user's row provided by the invention For data method for controlling reporting, the data that real-time report can will be needed by only needing an interface carry out real-time report, realize pair For the data for needing real-time report, reliability and promptness that data report avoid the prior art and use multiple interfaces Reported data causes the waste of resource and interface that frequency is called to influence power consumption.
The present embodiment is stored in preset buffer memory area so that data are united also by receiving above-mentioned reported data, by the data received Meter server is read from the preset buffer memory area, i.e., reported data is put into buffer area avoids when the data amount of reporting is big, on Count off is according to frequent calling interface, the problem of reducing power consumption of terminal.
Second embodiment
In order to be better understood from the present invention, the present embodiment specifically shows with reference to a user behavior data method for controlling reporting Example illustrates, it is assumed that obtains use habit and customer transaction of the behavioral data of user for user using an application " Taobao " Exchange hand, refers to Fig. 8, and Fig. 8 is a kind of stream for user behavior data method for controlling reporting that second embodiment of the invention provides Cheng Tu, the user's behavioral data method for controlling reporting include:
S801:Obtain the user behavior data of application in use.
In this example, it is assumed that in the time of having a rest at weekend, when data statistics server needs to use " Taobao " to user Use habit counted, since user is frequently using this application, data statistics server needs user in real to use When custom and customer transaction exchange hand, wherein user's use habit use " Taobao " for user, this applies self registering data, Such as user often associates use when using " Taobao " with " Alipay ", " Taobao " record user-association uses other automatically The use habit of application.
S802:Judge whether current time belongs to default full real-time report time range, if so, 803 are gone to, if not, turning To 804.
S803:Using the user behavior data of the acquisition as the data progress real-time report for needing real-time report.
S804:Data classifying rules is obtained from the corresponding data statistics server of the application.
In the present embodiment, user uses the current time of " Taobao " as 10 points, and it is 1 to preset full real-time report time range O'clock to 5 points, i.e., current time is not belonging to preset full real-time report time range, then needs data statistics clothes corresponding from " Taobao " It is engaged in obtaining data classifying rules in device, in the present embodiment, data classifying rules is data statistics server according to user behavior The demand data priority that the real-time requirement of data is set.
In another embodiment, user uses the current time of " Taobao " to belong to default full real-time report time model for 2 points It encloses at 1 point to 5 points, since 2 points of the data amount of reporting of current time is smaller, then classifies without data, directly make the user of acquisition By the use of custom and customer transaction exchange hand as need real-time report data progress real-time report.
S805:Selected from the user behavior data of acquisition the data that need real-time report and store to data it is real-time on It reports in queue.
Data statistics server based on data classifying rules, user's use habit and customer transaction exchange hand to acquisition into Row classification, in the present embodiment, data statistics server are badly in need of carrying out user's use habit to optimize " Taobao " Statistics, i.e. the demand data priority of user's use habit are higher than customer transaction exchange hand, and data statistics server makes user Being divided into custom needs the data of real-time report and is marked, and customer transaction exchange hand is set to timing reported data, then Inform that " Taobao " user use habit data need real-time report by PUSH message, customer transaction exchange hand is only needed in timing Report." Taobao " receives the PUSH message from data statistics server, according to data markers from the user behavior data of acquisition Selecting needs the data of real-time report, and stores data in data real-time report queue.For real-time report is not required Data, that is, customer transaction exchange hand, then storage report queue to data timing, data timing are reported to the data timing in queue It is reported to " Taobao " corresponding application server.
S806:Data in the data real-time report queue are encapsulated as a content of parameter.
S807:The content of parameter is reported to the corresponding application server of the application by a preset interface.
In order to avoid multiple independent data is called to report interface, in the present embodiment, it is necessary to which the data of real-time report are led to It crosses a preset interface and is reported to " Taobao " corresponding application server.If existing in data real-time report queue needs in real time The data reported, then " Taobao " takes out data from queue, and encapsulates data as a content of parameter, and parameter definition is It is right to be reported to " Taobao " by data_real_time for the business interface that parameter is exchanged by one with " Taobao " progress business information The application server answered, " Taobao " send request to " Taobao " server, and interface is waited to call.
In another embodiment, in order to reduce the data volume of an interface real-time report, in real-time report user behavior During data, it would be desirable to the data of real-time report are classified according to data type, be divided into user's use habit and customer transaction into Friendship amount is called two independent data to report interface, user's use habit and customer transaction exchange hand is respectively put into corresponding Data report interface, and send request and interface is waited to call.
The present embodiment also provide a kind of data receiver method for receive the data that report, which includes: Receive the data for needing real-time report that terminal is reported by user behavior data method for controlling reporting.The data received are deposited Enter preset buffer memory area so that data statistics server is read according to data statistics rule from the preset buffer memory area.
In the present embodiment, after " Taobao " server receives interface call request, called into line interface and receive needs The data_real_time parameters of real-time report, " Taobao " server parse data_real_time content of parameter, will User's use habit and customer transaction exchange hand proposition processing, write the DATA_ in the buffer service of data statistics server In REAL_TIME_MAP, if notifying data statistics server immediately once there is data write-in in DATA_REAL_TIME_MAP It is read out and counts according to the affiliated application of reported data and content.
In another embodiment, " Taobao " server receives the call request that two independent data report interface, carries out Interface, which calls, obtains reported data, without carrying out follow-up classification of type to reported data, directly by user's use habit and user Trading volume is counted.
The present embodiment illustrates user behavior data method for controlling reporting by specific example, is applied by obtaining User behavior data in use applies default data classifying rules, by data real-time report queue by be described In data real-time report be encapsulated as a content of parameter, and pass through a preset interface and be reported to using corresponding application service Device, therefore, in the present embodiment, data statistics server can carry out data according to the real-time requirement of statistics real-time Statistics.The present embodiment also illustrates data method of reseptance by specific example, i.e., application server receives reported data And the buffer area that reported data is put into data statistics server is read out statistics, read the reported data of buffer area compared with The prior art is frequently read for the reported data of interface, and method reported data power consumption provided in this embodiment is lower, upper count off According to more reliable.
3rd embodiment
A kind of terminal is present embodiments provided, is used to implement user behavior data method for controlling reporting, it is shown in Figure 9, It includes first processor 901,902 and first communication bus 903 of first memory, wherein:
First communication bus 903 is used to implement the connection communication between first processor 901 and first memory 902;
First processor 901 is then for performing one or more first program stored in first memory 902, with reality Existing following steps:
Obtain the user behavior data of application in use;
Default data classifying rules is applied by be described, being selected from the user behavior data of acquisition needs in real time The data of report are simultaneously stored into data real-time report queue;
Data in the data real-time report queue are encapsulated as a content of parameter;
The content of parameter is reported to the corresponding application server of the application by a preset interface.
Application in the present embodiment is carried out so that the terminal is just installed in the memory of terminal " alarm clock " before dispatching from the factory as an example Illustrate, wherein user behavior data refers to user when using " alarm clock ", and associated data, such as user setting are applied with this The number and time interval of alarm clock, i.e. user behavior data in the present embodiment are that user actively sets record according to self-demand Data.In different living scenes, the custom of user setting " alarm clock " is different, such as on weekdays, user is set daily 3 alarm clocks, time are 8 points, 8 points 05 minute, 8 points 10 minutes;Day on holiday, 1 alarm clock of user setting, time are 9 points, therefore It is to obtain 7 points to 9 points of user behavior data of working day to obtain user behavior data, and the present embodiment is obtained with timing per 12 points of weekend User behavior data is taken in order to illustrate.
In the present embodiment first processor 901 realize it is described press as the default data classifying rules of application, to Before family behavioral data is classified, following steps can also be realized:
Data classifying rules is obtained from the corresponding data statistics server of the application, is included in the data classifying rules Need the identification information of the data of real-time report.
For the user behavior data of acquisition, data statistics server can will need the data counted to classify, data classification Rule carries out data classification for data statistics server according to the real-time requirement to user behavior data, in the present embodiment, The real-time requirement that data statistics server counts the time interval of user setting alarm clock is larger, and mark was set between the time of alarm clock It is to need the data of real-time report every data, then informs which the data of " alarm clock " real-time report are by PUSH message, it is " noisy Clock " receives the PUSH message from data statistics server, for the data of real-time report are not required, according to data classification gauge Then, the data for the number for setting alarm clock are set to the data for being delayed and reporting, after the data for needing real-time report are reported, The data of the number of user setting alarm clock are reported.
For the data of real-time report, the data of real-time report are stored into data real-time report queue, and by data Data in real-time report queue are encapsulated as a content of parameter, which is reported to " alarm clock " by a preset interface and corresponds to Application server, in the present embodiment, preset interface for " alarm clock " a number according to real-time report interface, " alarm clock " puts parameter Incoming interface simultaneously initiates interface call request to application server, waits for normally calling.
In other embodiments, first processor 901 is realizing that described press is the default data classifying rules of application, Before classifying to user behavior data, following steps can also be realized:
Whether the number for judging currently to run application in terminal is less than or equal to predetermined number threshold value, if so, by the acquisition User behavior data as need real-time report data carry out real-time report.
In a few cases, in some period, if the number that application is currently run in terminal is less than or equal to default In order to ensure that real-time report data can reach data statistics server in time, the user behavior data of acquisition is made for number threshold value For the data of real-time report is needed to carry out real-time report, it is assumed that in other embodiments, terminal is currently run using " noisy for 1 Clock " is less than predetermined number threshold value 3, directly using acquisition for setting the number of alarm clock and time interval data as real-time Count off is according to being reported.It, can be in other embodiment since one " alarm clock " application needs the data volume of real-time report less Directly invoke two independent data real-time report interfaces, the number data of user setting alarm clock it is corresponding a number factually when Reported data, the time interval of user setting alarm clock correspond to the data real-time report data of a same type, directly will be upper Count off is asked according to data real-time report interface is put into application server transmission interface, and interface is waited to call.
The present embodiment also provides a kind of computer readable storage medium, and there are one the computer-readable recording medium storages Or multiple programs, one or more of programs can be performed by one or more processor, to realize above-mentioned each implementation Each step of user behavior data method for controlling reporting described in example.
A kind of terminal and computer readable storage medium are present embodiments provided, is used to implement on above-mentioned user behavior data Control method is reported, and passes through specific example and illustrates, obtains the user behavior data of application in use, by for institute It states using default data classifying rules, being classified to user behavior data and passing through the queue of data real-time report carries out in real time It reports.It realizes in analysis user behavior data scene in real time is needed, real time data statistical accuracy and reliability.
Fourth embodiment
A kind of application server is present embodiments provided, for receiving above-mentioned reported data and above-mentioned data being write data Statistical server, it is shown in Figure 10, including second processor 1001,1002 and second communication bus of second memory 1003, wherein:
Second communication bus 1003 is used to implement the connection communication between second processor 1001 and second memory 1002;
Second processor 1001 is then used to perform one or more second program stored in second memory 1002, with Realize such as above-mentioned user behavior data report method and data method of reseptance.
The present embodiment also provides a kind of computer readable storage medium, and there are one the computer-readable recording medium storages Or multiple programs, one or more of programs can be performed by one or more processor, to realize above-mentioned each implementation Each step of data receiver method described in example.
Application server provided in this embodiment can also realize a kind of user behavior data method for controlling reporting and data Method of reseptance, in order to make it easy to understand, referring specifically to shown in Figure 11, the user's behavioral data reports control and data method of reseptance bag It includes:
S1101:Application server is to data statistics server reported data classifying rules.
In the present embodiment, data classifying rules can be application server according to the self-defined setting data of self-demand Then demand classes are reported to data statistics server, can also be the data classification gauge that user sets according to self-demand Then, application server is uploaded to, application server sorts data into rule and is uploaded to data statistics server again.
S1102:Classification results are informed terminal by data statistics server according to classifying rules.
The data for needing to count are classified and identified by data statistics server based on data demand classes, are disappeared by push Breath directly informs terminal, and which is the data for needing real-time report, which is the data that delay reports, which is that timing reports Data, in some embodiments, data statistics server can also inform terminal by application server.
S1103:Terminal obtains the user behavior data of PUSH message and application in use.
Terminal receives the PUSH message from data statistics server, and different acquisition modes are used according to demand data User behavior data is obtained, the data high to data demand classes obtain in real time, the data high to data demand classes time It is obtained when 1 is small, to 18 points of acquisitions of the minimum timing of data priority.
S1104:Terminal selects the data for needing real-time report according to PUSH message from the user behavior data of acquisition And it stores into data real-time report queue.
In the present embodiment, it is to need the data of real-time report since which data PUSH message has clearly stated, which The data of real-time report are not required a bit, it is real-time that the data for needing real-time report according to message content are directly stored in data by terminal It reports in queue, for the data of real-time report are not required, above-described embodiment is described, and this is no longer going to repeat them.
S1105:Data in the data real-time report queue are encapsulated as a content of parameter by terminal.
Data report the data for existing in queue and needing real-time report at present, and terminal takes out the data in queue, encapsulation For the content of a parameter, in some embodiments, terminal is directly encapsulated as one when data are stored in data real-time report queue A content of parameter.
S1106:The content of parameter is reported to the corresponding application service of the application by terminal by a business interface Device.
Packaged content of parameter is put into a business interface by terminal, and is called and asked to application server transmission interface It asks, application server is waited to be called, in other embodiments, content of parameter can also be put into a number according to real-time report In interface, without sending interface call request to application server.
S1107:Application server receives the needs that terminal is reported by above-mentioned user behavior data method for controlling reporting The data of real-time report.
After application server receiving interface call request or after detecting that interface has parameter read-in, receiving parameter simultaneously will ginseng Contents extraction in number comes out.
S1108:The data received are stored in the preset buffer memory area of data statistics server by application server.
In order to reduce application server to the number of data statistics server reported data, application server in the present embodiment Specific position in the buffer service of the data write-in data statistics server received;Certainly, application server can not also By the preset buffer memory area of data deposit data statistics server, application server directly reports.
S1109:Data statistics server reads statistics from the preset buffer memory area according to data statistics rule and receives number According to.
For the data in deposit preset buffer memory area, data statistics server once detects in buffer service have data to write Enter, the data in buffer service are taken out read immediately, and according to the affiliated application of the reported data and content, by real-time report Data, which are put into perdurable data storehouse, carries out subsequent real-time statistics;For the data directly reported, data statistics service can be with Statistics is directly read, but when the data amount of reporting is larger, directly reading statistics reduces the power consumption of server, influences statistical efficiency.
A kind of application server and computer readable storage medium are present embodiments provided, is used to implement above-mentioned user behavior Data report control and data method of reseptance, and pass through specific example and illustrate, it would be desirable to which the data of real-time report pass through One interface is reported to application server, and application server receives reported data and stores to data statistics server buffer service In, data statistics server is read out statistics, and realizing real-time report needs the data of real-time report, reported data amount compared with In the case of more, the frequency of digital independent is avoided by buffer service, the power consumption of terminal is influenced, ensure that data statistics Accurate reliability.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form, these are belonged within the protection of the present invention.

Claims (10)

  1. A kind of 1. user behavior data method for controlling reporting, which is characterized in that the user behavior data method for controlling reporting bag Include following steps:
    Obtain the user behavior data of application in use;
    Default data classifying rules is applied by be described, being selected from the user behavior data of acquisition needs real-time report Data are simultaneously stored into data real-time report queue;
    Give the application corresponding application server the data real-time report in the data real-time report queue.
  2. 2. user behavior data method for controlling reporting as described in claim 1, which is characterized in that described to press as the application in advance If data classifying rules, the data that need real-time report are selected from the user behavior data of acquisition and are stored real to data When report step in queue before, further include:
    Data classifying rules is obtained from the corresponding data statistics server of the application, needs are included in the data classifying rules The identification information of the data of real-time report.
  3. 3. user behavior data method for controlling reporting as described in claim 1, which is characterized in that described to press as the application in advance If data classifying rules the step of after include:
    For the data of real-time report are not required in the user behavior data of the acquisition, storage reports queue to data timing;
    The data timing is reported the data timing in queue be reported to the corresponding application server of the application.
  4. 4. such as claim 1-3 any one of them user behavior data method for controlling reporting, which is characterized in that described by described in Data real-time report in data real-time report queue includes to the step of application corresponding application server:
    Data in the data real-time report queue are encapsulated as a content of parameter;
    The content of parameter is reported to the corresponding application server of the application by a preset interface.
  5. 5. user behavior data method for controlling reporting as claimed in claim 4, which is characterized in that the preset interface is described The business interface of application or the preset interface for the application a number according to real-time report interface.
  6. 6. such as claim 1-3 any one of them user behavior data method for controlling reporting, which is characterized in that the acquisition should After the step of user behavior data in use, by for it is described using default data classifying rules from acquisition Before the step of data for needing real-time report are selected in user behavior data, further include:
    Judge whether the number that application is currently run in terminal is less than or equal to predetermined number threshold value, if so, the use by the acquisition Family behavioral data is as the data progress real-time report for needing real-time report;
    Or,
    Judge whether current time belongs to default full real-time report time range, if so, the user behavior data by the acquisition Real-time report is carried out as the data of real-time report are needed.
  7. A kind of 7. data receiver method, which is characterized in that the data receiver method comprises the following steps:
    Receive terminal needs reality by what such as claim 1-6 any one of them user behavior data method for controlling reporting reported When the data that report;
    The data received are stored in preset buffer memory area so that data statistics server is preset according to data statistics rule from described It is read in buffer area.
  8. 8. a kind of terminal, which is characterized in that the terminal includes first processor, first memory and the first communication bus;
    First communication bus is used to implement the connection communication between first processor and first memory;
    The first processor is used to perform one or more first program stored in first memory, to realize such as right It is required that the step of user behavior data method for controlling reporting any one of 1-6.
  9. 9. a kind of application server, which is characterized in that the application server includes second processor, second memory and second Communication bus;
    Second communication bus is used to implement the connection communication between second processor and second memory;
    The second processor is used to perform one or more second program stored in second memory, to realize such as right It is required that the step of data receiver method described in 7.
  10. 10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple first programs, one or more of first programs are performed by one or more processor, to realize that right such as will The step of seeking the user behavior data method for controlling reporting any one of 1-6;
    Or,
    There are one the computer-readable recording medium storages or multiple second programs, one or more of second programs It is performed by one or more processor, the step of to realize data receiver method as claimed in claim 7.
CN201711040008.0A 2017-10-30 2017-10-30 User behavior data method for controlling reporting, terminal and computer readable storage medium Pending CN108093439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711040008.0A CN108093439A (en) 2017-10-30 2017-10-30 User behavior data method for controlling reporting, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711040008.0A CN108093439A (en) 2017-10-30 2017-10-30 User behavior data method for controlling reporting, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108093439A true CN108093439A (en) 2018-05-29

Family

ID=62170393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711040008.0A Pending CN108093439A (en) 2017-10-30 2017-10-30 User behavior data method for controlling reporting, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108093439A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542592A (en) * 2018-11-22 2019-03-29 深圳墨世科技有限公司 Event-handling method and device
CN109618331A (en) * 2019-02-01 2019-04-12 深圳乐信软件技术有限公司 Data reporting method, device, equipment and storage medium
CN110049102A (en) * 2019-03-12 2019-07-23 平安城市建设科技(深圳)有限公司 User behavior data processing method, device, equipment and storage medium
CN110650185A (en) * 2019-09-04 2020-01-03 安徽省粮油信息中心(安徽粮食批发交易市场管委会) Method and system for asynchronous uploading and delayed integration of multi-type heterogeneous data
CN110716848A (en) * 2019-10-18 2020-01-21 广州华多网络科技有限公司 Data collection method and device, electronic equipment and storage medium
CN112783664A (en) * 2019-11-06 2021-05-11 北京沃东天骏信息技术有限公司 Method and device for determining data reporting strategy
CN113037846A (en) * 2021-03-17 2021-06-25 成都新希望金融信息有限公司 Data reporting method and device, electronic equipment and computer readable storage medium
CN113159201A (en) * 2021-04-28 2021-07-23 上海德衡数据科技有限公司 Method and device for computing intelligent fusion information based on cloud edge and cloud server
WO2024022100A1 (en) * 2022-07-25 2024-02-01 广东美的暖通设备有限公司 Data transmission method and apparatus, control device, heating and ventilation device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
CN104185138A (en) * 2014-09-15 2014-12-03 中国通信建设集团设计院有限公司 Data reporting, handling and storing method and device of machine type communication terminal
CN104899325A (en) * 2015-06-19 2015-09-09 上海卓悠网络科技有限公司 APP (application) acquired data collection method, terminal, server and system
CN104980304A (en) * 2015-06-15 2015-10-14 上海斐讯数据通信技术有限公司 Alarm control method and alarm control system applied to network system
US9565079B1 (en) * 2013-01-10 2017-02-07 F5 Networks, Inc. Holographic statistics reporting

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
US9565079B1 (en) * 2013-01-10 2017-02-07 F5 Networks, Inc. Holographic statistics reporting
CN104185138A (en) * 2014-09-15 2014-12-03 中国通信建设集团设计院有限公司 Data reporting, handling and storing method and device of machine type communication terminal
CN104980304A (en) * 2015-06-15 2015-10-14 上海斐讯数据通信技术有限公司 Alarm control method and alarm control system applied to network system
CN104899325A (en) * 2015-06-19 2015-09-09 上海卓悠网络科技有限公司 APP (application) acquired data collection method, terminal, server and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542592A (en) * 2018-11-22 2019-03-29 深圳墨世科技有限公司 Event-handling method and device
CN109618331A (en) * 2019-02-01 2019-04-12 深圳乐信软件技术有限公司 Data reporting method, device, equipment and storage medium
CN110049102A (en) * 2019-03-12 2019-07-23 平安城市建设科技(深圳)有限公司 User behavior data processing method, device, equipment and storage medium
CN110650185A (en) * 2019-09-04 2020-01-03 安徽省粮油信息中心(安徽粮食批发交易市场管委会) Method and system for asynchronous uploading and delayed integration of multi-type heterogeneous data
CN110716848A (en) * 2019-10-18 2020-01-21 广州华多网络科技有限公司 Data collection method and device, electronic equipment and storage medium
CN112783664A (en) * 2019-11-06 2021-05-11 北京沃东天骏信息技术有限公司 Method and device for determining data reporting strategy
CN113037846A (en) * 2021-03-17 2021-06-25 成都新希望金融信息有限公司 Data reporting method and device, electronic equipment and computer readable storage medium
CN113159201A (en) * 2021-04-28 2021-07-23 上海德衡数据科技有限公司 Method and device for computing intelligent fusion information based on cloud edge and cloud server
WO2024022100A1 (en) * 2022-07-25 2024-02-01 广东美的暖通设备有限公司 Data transmission method and apparatus, control device, heating and ventilation device, and storage medium

Similar Documents

Publication Publication Date Title
CN108093439A (en) User behavior data method for controlling reporting, terminal and computer readable storage medium
CN107145347A (en) One kind application gray scale dissemination method, equipment and storage medium
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN108509299A (en) Message treatment method, equipment and computer readable storage medium
CN108289174A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN107807767A (en) A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN107679176A (en) It is a kind of to improve using the method for opening speed, terminal, server, computer-readable recording medium
CN110460568A (en) A kind of automated reporting method, terminal and computer readable storage medium
CN107872575A (en) Terminal installation, intelligent prompt method and computer-readable storage medium
CN110032412A (en) A kind of key-press input control method, terminal and computer readable storage medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN108366303A (en) A kind of video broadcasting method, mobile terminal and computer readable storage medium
CN108306856A (en) A kind of interface merging method, client, server and computer readable storage medium
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN109753483A (en) file management application page display method and device, mobile terminal and storage medium
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN109976644A (en) Using the implementation method and device of prompt operation, mobile terminal and storage medium
CN110007817A (en) A kind of message treatment method and mobile terminal, computer readable storage medium
CN109683741A (en) Function triggering method, device and computer readable storage medium
CN108900696A (en) A kind of data processing method, terminal and computer readable storage medium
CN108566476A (en) A kind of information processing method, terminal and computer readable storage medium
CN109213398A (en) A kind of application quick start method, terminal and computer readable storage medium
CN108595261A (en) EMS memory management process, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529