CN106572126B - Active equipment number calculation method and server - Google Patents
Active equipment number calculation method and server Download PDFInfo
- Publication number
- CN106572126B CN106572126B CN201510646068.1A CN201510646068A CN106572126B CN 106572126 B CN106572126 B CN 106572126B CN 201510646068 A CN201510646068 A CN 201510646068A CN 106572126 B CN106572126 B CN 106572126B
- Authority
- CN
- China
- Prior art keywords
- equipment
- active
- data
- identification code
- application program
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for calculating the number of active devices and a server, which are characterized in that user device interactive data are obtained from data source devices, and the obtained user device interactive data are filtered according to a preset filtering rule to obtain filtered interactive data; extracting log information of a preset type from the filtered interactive data; according to a preset APP detection rule, detecting the filtered interactive data to obtain a first equipment identification code corresponding to the currently active equipment of each APP; based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment where each APP is currently active to obtain first equipment reference data corresponding to the number of the active equipment of the APP after duplicate removal; calculating the real-time active equipment number of each APP based on the acquired first equipment reference data according to the APP ID in the log information; the method has the beneficial effect of conveniently counting the number of active devices in the APP dimension by utilizing big data analysis.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a method for calculating the number of active devices and a server.
Background
With the continuous development and progress of internet technology and the increasing promotion of the intellectualization of global terminal products, more and more intelligent electronic devices are used in daily work and life, such as smart phones, tablet computers (Pad), intelligent household appliances and the like. Meanwhile, the number and types of Applications (APPs) running on the terminal device are increasing, the development cycle is also shorter and shorter, and the use threshold is also lower and lower.
However, how to obtain the number of devices with active APPs from each terminal device to provide a certain data support for subsequent services does not provide an effective technical solution to the problem at present; meanwhile, the industry has not provided a method for accurately counting the number of active devices in other dimensions (such as different regions and different plug-ins) based on big data analysis.
Disclosure of Invention
In view of the foregoing, there is a need to provide a method and a server for calculating the number of active devices in the dimension of APP by using big data analysis.
The invention discloses a method for calculating the number of active devices, which comprises the following steps:
acquiring user equipment interaction data from data source equipment, and filtering the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
according to a preset application program inspection rule, inspecting the filtered interactive data to obtain a first equipment identification code corresponding to the active equipment currently active by each application program;
based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each application program currently active to obtain first equipment reference data corresponding to the number of the duplicate-removed active equipment of the application program;
and calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information.
Preferably, the extracted preset type of log information further includes: a plug-in identification code;
after the step of "extracting the preset type of log information from the filtered interactive data", the method for calculating the number of the active devices may further perform the following steps:
according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in;
based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal;
and calculating the real-time active equipment number of each plug-in based on the acquired reference data of the second equipment according to the plug-in identification code in the log information.
Preferably, the extracted preset type of log information further includes: latitude and longitude information;
the method for calculating the number of the active devices further comprises the following steps:
acquiring region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
and calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
Preferably, the acquiring user equipment interaction data from the data source device, and filtering the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data includes:
acquiring batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
presetting data identification to be filtered and a corresponding value thereof;
and retrieving the acquired user equipment interaction data item by item, and identifying whether the data exist: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
and filtering the identified data identifier to be filtered and the user equipment interaction data with the corresponding value to obtain filtered interaction data.
Preferably, the performing, based on the obtained first device identification code, a duplicate removal operation on the currently active device of each obtained application program to obtain first device reference data corresponding to the number of the active devices of the application program after the duplicate removal includes:
screening out a saved equipment identification code of the saved active equipment on the current day of analysis from the saved equipment identification code of the active equipment of each application program and an active date database;
matching the acquired first equipment identification code with the screened storage equipment identification code, and deleting the matched storage equipment identification code from the first equipment identification code;
and taking the remaining first device identification code after deletion as the first device reference data corresponding to the number of the active devices of the application program.
Corresponding to the method for calculating the number of the active devices, the invention also discloses a server for calculating the number of the active devices, which comprises the following steps:
the filtering module is used for acquiring user equipment interaction data from data source equipment, and filtering the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
the extraction module is used for extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
the inspection module is used for inspecting the filtered interactive data according to a preset application program inspection rule and acquiring a first equipment identification code corresponding to the active equipment currently activated by each application program;
the duplication removing module is used for carrying out duplication removing operation on the active equipment currently active by each acquired application program based on the acquired first equipment identification code to obtain first equipment reference data corresponding to the number of the active equipment of the application program after duplication removing;
and the calculating module is used for calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information.
Preferably, the preset type of log information extracted by the extraction module further includes: a plug-in identification code;
the verification module is further configured to: according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in;
the deduplication module is further to: based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal;
the calculation module is further to: and calculating the real-time active equipment number of each plug-in based on the acquired reference data of the second equipment according to the plug-in identification code in the log information.
Preferably, the preset type of log information extracted by the extraction module further includes: latitude and longitude information;
the calculation server of the active device number further comprises:
the region acquisition module is used for acquiring region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
the calculation module is further to: and calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
Preferably, the filtration module comprises:
the acquisition unit is used for acquiring batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
the setting unit is used for presetting the data identification to be filtered and the corresponding value thereof;
a retrieval unit, configured to perform item-by-item retrieval on the obtained user equipment interaction data, and identify whether: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
and the filtering unit is used for filtering the identified data identifier to be filtered and the user equipment interaction data of the corresponding value of the data identifier to be filtered to obtain filtered interaction data.
Preferably, the deduplication module comprises:
the screening unit is used for screening out the stored equipment identification codes of the stored active equipment on the current day of analysis from the stored equipment identification codes of the active equipment of each application program and the active date database;
the deleting unit is used for matching the acquired first equipment identification code with the screened storage equipment identification code and deleting the matched storage equipment identification code from the first equipment identification code;
and the counting unit is used for taking the first equipment identification codes left after deletion as the first equipment reference data corresponding to the number of the active equipment of the application program.
The method for calculating the number of the active devices and the server can achieve the following beneficial effects:
the method comprises the steps that user equipment interaction data are obtained from data source equipment, and the obtained user equipment interaction data are filtered according to a preset filtering rule, so that filtered interaction data are obtained; extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code; according to a preset application program inspection rule, inspecting the filtered interactive data to obtain a first equipment identification code corresponding to the active equipment currently active by each application program; based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each application program currently active to obtain first equipment reference data corresponding to the number of the duplicate-removed active equipment of the application program; calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information; the method has the advantages that the active equipment number in the dimension of APP is conveniently counted by utilizing big data analysis, and important basis is provided for further data analysis in the follow-up process; in addition, by extracting different types of information in the log information, the number of active devices in different dimensions can be acquired, and the universality, convenience and flexibility of active device number analysis are improved.
Drawings
FIG. 1 is a flow chart illustrating a method for calculating the number of active devices according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another embodiment of a method for calculating the number of active devices according to the present invention;
FIG. 3 is a flow chart illustrating a method for calculating the number of active devices according to another embodiment of the present invention;
fig. 4 is a schematic flow chart of an implementation manner of step S10 in the embodiment described in fig. 1, fig. 2, and fig. 3 in the method for calculating the number of active devices according to the present invention;
fig. 5 is a schematic flow chart of an implementation manner of step S13 in the embodiment shown in fig. 1 in the method for calculating the number of active devices according to the present invention;
FIG. 6 is a block diagram of one embodiment of a computing server for active device count of the present invention;
FIG. 7 is a block diagram of another embodiment of a computing server for active device count of the present invention;
FIG. 8 is a block diagram of one embodiment of a filter module 60 in the embodiment of FIGS. 6 and 7 in a computing server for active device count of the present invention;
FIG. 9 is a block diagram of one embodiment of a deduplication module 63 in the embodiment illustrated in FIG. 6 in a compute server for active device count of the present invention;
FIG. 10 is a block diagram of yet another embodiment of a computing server for active device count in accordance with the present invention.
The implementation, functional features and advantages of the objects of the embodiments of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the specific embodiments in the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The method and the server for calculating the number of the active devices can be applied to any application scene in which the number of the active devices of each dimensionality corresponding to the corresponding dimensionality information can be obtained through statistics, for example, the number of the active devices of each dimensionality can be obtained through analysis according to log information by obtaining the log information of preset types corresponding to different dimensionalities; in the following embodiments of the method for calculating the number of active devices and the server of the present invention, the following dimensions, APP, region, and plug-in, are used as examples to describe the gist of the method for calculating the number of active devices and the server of the present invention, but the method for calculating the number of active devices and the server of the present invention should not be construed as limiting the scope of protection of the method for calculating the number of active devices and the server of the present invention.
The invention provides a method for calculating the number of active devices, which is used for analyzing and counting the number of active devices in the dimension of APP by utilizing big data. As shown in FIG. 1, the method for calculating the number of active devices according to the present invention can be implemented as steps S10-S14 described in FIG. 1:
step S10, obtaining user equipment interaction data from data source equipment, and filtering the obtained user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
in the embodiment of the invention, a computing server acquires a large batch of user equipment interaction data from data source equipment; the acquisition mode comprises the following steps: and obtaining in real time or according to a preset obtaining period. The data source devices described include, but are not limited to: each APP application server, each service server, for example: insurance servers, security servers, bank servers, etc.
After acquiring batch user equipment interactive data, filtering the acquired user equipment interactive data by the computing server according to a preset filtering rule, namely a preset filtering rule, so as to obtain filtered interactive data; wherein, the preset filtering rules include but are not limited to: the data processing method comprises the steps of presetting user equipment interaction data of types, presetting data identifications and user equipment interaction data of corresponding values.
Step S11, extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
extracting preset types of log information from the filtered interactive data; for example, in the embodiment shown in fig. 1, the number of active devices is analyzed for the dimension of APP, and the extracted log information of the preset type includes: the APP ID (Identity) is the APP identification code required for this dimension of APP.
Step S12, according to a preset application program inspection rule, inspecting the filtered interactive data to acquire a first equipment identification code corresponding to the active equipment of each application program which is currently active;
and aiming at the filtered interactive data, detecting the filtered interactive data one by one according to a preset application program detection rule, namely a preset APP detection rule. In the embodiment of the present invention, the preset APP check rule includes: judging whether the operation type in each piece of filtered user equipment interaction data is the initialization frequency; if the operation type is the initialization frequency, indicating that the device corresponding to the filtered user device interaction data is not active in the APP; if the operation type is not the initialization frequency, it indicates that the device corresponding to the filtered user equipment interaction data is active in the APP. And acquiring a first equipment identification code corresponding to the currently active equipment of each APP, namely the active equipment ID of the APP, according to the APP check rule.
Step S13, based on the acquired first device identification code, performing duplicate removal operation on the acquired active devices of the application programs currently active to obtain first device reference data corresponding to the number of the active devices of the application programs after duplicate removal;
after the first equipment identification code, namely the APP active equipment ID, is obtained, in order to avoid repeated obtaining, the computing server performs duplicate removal operation on the obtained active equipment with the APP currently active; for example, matching the currently acquired APP active device ID with an active device ID that has been stored and has an active date that is the same as the currently acquired APP active device ID, and deleting the APP active device ID that is successfully matched from the acquired current APP active device ID, that is, obtaining the first device reference data that is left after deletion and corresponds to the number of the APP active devices after duplication removal, that is, APP active device reference data.
Step S14, calculating the number of real-time active devices of each application program based on the acquired first device reference data according to the application program identification code in the log information.
According to the APP ID which is the application program identification code in the log information extracted in the step S11, and according to the obtained APP active device reference data which is the first device reference data, the real-time active device number of each APP can be calculated and obtained.
Preferably, in an embodiment of the present invention, when the number of real-time active devices of each APP is obtained through calculation, the device ID and the corresponding active date of each APP active device are simultaneously saved, so that further data utilization and data analysis based on the data are facilitated subsequently.
The method for calculating the number of the active devices acquires user equipment interaction data from data source equipment, and filters the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data; extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code; according to a preset application program inspection rule, inspecting the filtered interactive data to obtain a first equipment identification code corresponding to the active equipment currently active by each application program; based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each application program currently active to obtain first equipment reference data corresponding to the number of the duplicate-removed active equipment of the application program; calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information; the method has the advantages that the active equipment number in the dimension of APP can be conveniently counted by utilizing big data analysis, and important basis is provided for follow-up further data analysis.
Based on the description of the embodiment shown in fig. 1, in the embodiment of the present invention, the number of active devices corresponding to the dimension of the plug-in may be obtained through the dimension of the plug-in the extracted log information. As shown in fig. 2, the method for calculating the number of active devices according to the present invention can be further implemented as steps S10-S23 described as follows:
step S10, obtaining user equipment interaction data from data source equipment, and filtering the obtained user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
in the embodiment of the invention, a computing server acquires a large batch of user equipment interaction data from data source equipment; the acquisition mode comprises the following steps: and obtaining in real time or according to a preset obtaining period. The data source devices described include, but are not limited to: each APP application server, each service server, for example: insurance servers, security servers, bank servers, etc.
After acquiring batch user equipment interactive data, filtering the acquired user equipment interactive data by the computing server according to a preset filtering rule, namely a preset filtering rule, so as to obtain filtered interactive data; wherein, the preset filtering rules include but are not limited to: the data processing method comprises the steps of presetting user equipment interaction data of types, presetting data identifications and user equipment interaction data of corresponding values.
Step S11, extracting log information of a preset type from the filtered interactive data; wherein the log information includes: a plug-in identification code;
extracting preset types of log information from the filtered interactive data; for example, in the embodiment shown in fig. 2, the number of active devices is analyzed for the dimension of the plug-in, and the extracted log information of the preset type includes: the plug-in identification code, i.e., plug-in ID (identity), required for this dimension of plug-in.
Step S21, according to a preset plug-in inspection rule, inspecting the filtered interactive data to acquire a second equipment identification code corresponding to the active equipment of each plug-in;
and aiming at the filtered interactive data, detecting the filtered interactive data one by one according to a preset plug-in detection rule. In the embodiment of the present invention, the preset plug-in inspection rule includes: judging whether the operation type in each piece of filtered user equipment interaction data is 'plug-in click'; if the operation type is plug-in click, it indicates that the device corresponding to the filtered user equipment interaction data is active in the plug-in; if the operation type is not the plug-in click, it indicates that the device corresponding to the filtered user equipment interaction data is not active in the plug-in. And acquiring a second equipment identification code corresponding to the currently active equipment of each plug-in, namely the ID of the currently active equipment of the plug-in according to the preset plug-in inspection rule.
Step S22, based on the obtained second equipment identification code, carrying out duplication elimination operation on the obtained active equipment of each plug-in currently active, and obtaining second equipment reference data corresponding to the number of the active equipment of the plug-in after duplication elimination;
after the second equipment identification code, namely the plug-in active equipment ID, is obtained, in order to avoid repeated obtaining, the computing server performs duplicate removal operation on the obtained active equipment of each plug-in currently active; for example, matching the currently acquired active device ID of the plug-in with an already stored active device ID having an active date that is the same as the currently acquired active device ID of the plug-in, and deleting the successfully matched active device ID of the plug-in from the acquired active device ID of the current plug-in, to obtain the remaining reference data of the second device, i.e. the reference data of the plug-in, corresponding to the number of the active devices of the plug-in after the deletion, i.e. the reference data of the plug-in device.
And step S23, calculating the real-time active equipment number of each plug-in according to the plug-in identification code in the log information and based on the acquired second equipment reference data.
The real-time active device count of each plug-in can be calculated and obtained based on the plug-in ID, which is the plug-in identification code in the log information extracted in step S11, and based on the plug-in device reference data, which is the second device reference data.
Preferably, in an embodiment of the present invention, when the number of real-time active devices of each plug-in is obtained through calculation, the device ID and the corresponding active date of each plug-in active device are simultaneously saved, so as to facilitate further data utilization and data analysis based on the data.
The method for calculating the number of the active devices acquires user equipment interaction data from data source equipment, and filters the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data; extracting log information of a preset type from the filtered interactive data; wherein the log information includes: a plug-in identification code; according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in; based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal; according to the plug-in identification codes in the log information, calculating the real-time active equipment number of each plug-in based on the acquired second equipment reference data; the method has the advantages that the active equipment number in the dimension of the plug-in is conveniently counted by utilizing big data analysis, and important basis is provided for further data analysis in the follow-up process.
Based on the description of the embodiment shown in fig. 1 and fig. 2, in the embodiment of the present invention, the number of active devices corresponding to the APP in different regions may be obtained through the latitude and longitude information in the extracted log information. As shown in fig. 3, based on the embodiment shown in fig. 1, the method for calculating the number of active devices in accordance with the present invention further includes, after "step S14, calculating the number of real-time active devices of each application based on the acquired first device reference data according to the application identification code in the log information" in the embodiment shown in fig. 1, steps S31-S32:
step S31, obtaining region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
in this embodiment of the present invention, in the log information of the preset type extracted by the computing server from the filtered interactive data, because the extracted log information of the preset type is determined according to the dimension corresponding to the active device to be analyzed, in the embodiment of the present invention illustrated in fig. 3, the extracted log information of the preset type further includes: latitude and longitude information required for this dimension of the region.
Analyzing and searching a region corresponding to the longitude and latitude information according to the extracted longitude and latitude information in the log information; those skilled in the art can understand that, through the longitude and latitude information, the region corresponding to the longitude and latitude information can be identified; therefore, through the latitude and longitude information extracted from the log information, the region information corresponding to the filtered user equipment interaction data can be conveniently searched and acquired.
And step S32, calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
According to the obtained regional information, the number of APP active devices respectively corresponding to the APPs in different regions can be conveniently calculated.
The active equipment number calculating method provided by the invention has the beneficial effects that the active equipment number of the APP in the dimension of the region can be conveniently counted by utilizing big data analysis by extracting the longitude and latitude information in the preset type log information and calculating the active equipment number of the application program corresponding to each region of each application program according to the acquired longitude and latitude information, and an important basis is provided for subsequent further data analysis.
Based on the above description of the embodiments described in fig. 1, fig. 2, and fig. 3, when the computing server obtains the user equipment interaction data and filters the obtained user equipment interaction data, the computing server may be implemented by the technical means described in fig. 4; as shown in fig. 4, in the embodiment described in fig. 1, fig. 2, and fig. 3, "step S10 is to acquire user equipment interaction data from a data source device, and filter the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data" may be implemented as steps S101 to S104 described below:
step S101, acquiring batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
in the embodiment of the invention, a computing server acquires a large batch of user equipment interaction data from data source equipment; the acquisition mode comprises the following steps: and obtaining in real time or according to a preset obtaining period. The data source devices described include, but are not limited to: each APP application server, each service server, for example: insurance servers, security servers, bank servers, etc.
Step S102, presetting data identification to be filtered and corresponding values thereof;
step S103, retrieving the acquired user equipment interaction data item by item, and identifying whether: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
and step S104, filtering the identified data identification to be filtered and the user equipment interactive data of the corresponding value to be filtered to obtain filtered interactive data.
After the batch of user equipment interaction data is obtained, the computing server filters the obtained user equipment interaction data according to a preset filtering rule, namely a preset filtering rule, so that the filtered interaction data is obtained.
In the embodiment of the invention, a computing server presets a data identifier to be filtered and a corresponding value thereof, and when filtering the acquired user equipment interactive data, a retrieval mode is adopted, namely, the acquired user equipment interactive data is retrieved item by item to identify whether the data identifier exists: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof; and if so, filtering the identified data identifier to be filtered and the user equipment interactive data of the corresponding value of the data identifier to be filtered to obtain filtered interactive data.
The embodiment of the invention filters the acquired user equipment interaction data by adopting the preset data identification and the corresponding value thereof, thereby improving the efficiency and the accuracy of data filtering.
Based on the descriptions of the embodiments shown in fig. 1, fig. 2, fig. 3, and fig. 4, in the method for calculating the number of active devices according to the present invention, in order to avoid repeatedly acquiring the number of active devices corresponding to each dimension, a deduplication operation needs to be performed on the number of active devices; in the embodiment of the present invention, as shown in fig. 5, the idea of deduplication operation is described by taking only the dimension of APP as an example; other dimensions, such as plug-in dimensions, can also be implemented by the main idea described in fig. 5, and in the embodiment of the present invention, description and exhaustion are not performed.
As shown in fig. 5, in the calculation method of the number of active devices according to the present invention, in the embodiment shown in fig. 1, "step S13, based on the acquired first device identification code, performs a deduplication operation on the currently active device of each acquired application program, and obtains first device reference data corresponding to the number of active devices of the application program after deduplication" may be implemented as steps S131 to S133 described below:
step S131, screening out a saved equipment identification code of the saved active equipment with the active date being the current analysis day from the saved equipment identification code of the active equipment of each application program and an active date database;
in the embodiment of the invention, because the corresponding active date is saved while the device ID of each APP active device is saved, the saved device ID of the saved active device with the active date as the analysis day can be screened out from the database of the device ID and the active date of each APP active device.
Step S132, matching the acquired first equipment identification code with the screened storage equipment identification code, and deleting the matched storage equipment identification code from the first equipment identification code;
step S133, using the remaining first device identification code after deletion as the first device reference data corresponding to the number of active devices of the application program.
The obtained first equipment identification code, namely the APP active equipment ID is matched with the selected storage equipment ID, and the storage equipment ID which is completely matched and consistent is deleted from the APP active equipment ID, so that the repeated calculation of the same APP active equipment ID is avoided. After the repeated APP active equipment IDs are deleted, the remaining first identification codes, namely the APP active equipment IDs, are first equipment datum data corresponding to the number of the APP active equipment, namely the APP active equipment datum data.
According to the embodiment of the invention, through carrying out duplicate removal operation on the IDs of the APP active devices, the repeated counting aiming at the same ID of the APP active devices is avoided, and the accuracy of calculating the number of the active devices is improved.
For the method for calculating the number of active devices described in the embodiments of fig. 1, fig. 2, fig. 3, fig. 4 and fig. 5, the invention also provides a server for calculating the number of active devices; as shown in fig. 6, a server for calculating the number of active devices according to the present invention includes: a filtering module 60, an extracting module 61, a checking module 62, a deduplication module 63, and a calculating module 64; wherein:
the filtering module 60 is configured to obtain user equipment interaction data from a data source device, and filter the obtained user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
the extraction module 61 is configured to extract log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
the checking module 62 is configured to check the filtered interactive data according to a preset application program checking rule, and obtain a first device identification code corresponding to an active device in which each application program is currently active;
the duplicate removal module 63 is configured to perform a duplicate removal operation on the active device currently active in each acquired application program based on the acquired first device identification code, so as to obtain first device reference data corresponding to the number of the active devices of the application program after the duplicate removal;
the calculating module 64 is configured to calculate, according to the application program identification code in the log information, the real-time active device count of each application program based on the acquired first device reference data.
Preferably, as shown in fig. 6, the preset type of log information extracted by the extracting module 61 further includes: a plug-in identification code;
the verification module 62 is further configured to: according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in;
the deduplication module 63 is further configured to: based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal;
the calculation module 64 is further configured to: and calculating the real-time active equipment number of each plug-in based on the acquired reference data of the second equipment according to the plug-in identification code in the log information.
Preferably, the preset type of log information extracted by the extracting module 61 further includes: latitude and longitude information;
as shown in fig. 7, the calculation server of the active device number further includes:
a region obtaining module 65, configured to obtain region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
the calculation module 64 is further configured to: and calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
Preferably, as shown in fig. 8, the filtering module 60 includes:
an obtaining unit 601, configured to obtain batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
a setting unit 602, configured to preset a data identifier to be filtered and a corresponding value thereof;
a retrieving unit 603, configured to perform a retrieval item by item on the obtained user equipment interaction data, and identify whether: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
the filtering unit 604 is configured to filter the identified to-be-filtered data identifier and the user equipment interaction data corresponding to the to-be-filtered data identifier, so as to obtain filtered interaction data.
Preferably, as shown in fig. 9, the deduplication module 63 includes:
the screening unit 631 is configured to screen out, from the device identification code of the active device of each application program and the active date database that have been stored, a stored device identification code of the active device that has been stored on the current day of analysis and has an active date;
a deleting unit 632, configured to match the acquired first device identifier with the screened storage device identifier, and delete the matched storage device identifier from the first device identifier;
the counting unit 633 is configured to use the remaining first device identification code after deletion as the first device reference data corresponding to the number of active devices of the application program.
Preferably, as shown in fig. 10, the calculation server of the number of active devices further includes:
the saving module 66 is used for saving the device identification code corresponding to each active device and the corresponding active date while the calculating module calculates the active device number of each application program and/or the active device number of each plug-in.
The method comprises the steps that a calculation server of the number of active devices obtains user equipment interaction data from data source devices, and filters the obtained user equipment interaction data according to a preset filtering rule to obtain filtered interaction data; extracting log information of a preset type from the filtered interactive data; according to a preset application program inspection rule, inspecting the filtered interactive data to obtain a first equipment identification code corresponding to the active equipment currently active by each application program; based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each application program currently active to obtain first equipment reference data corresponding to the number of the duplicate-removed active equipment of the application program; calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information; the method has the advantages that the active equipment number in the dimension of APP is conveniently counted by utilizing big data analysis, and important basis is provided for further data analysis in the follow-up process; in addition, by extracting different types of information in the log information, the number of active devices in different dimensions can be acquired, and the universality, convenience and flexibility of active device number analysis are improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.
Claims (6)
1. A method for calculating the number of active devices, comprising the steps of:
acquiring user equipment interaction data from data source equipment, and filtering the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
according to a preset application program inspection rule, inspecting the filtered interactive data to obtain a first equipment identification code corresponding to the active equipment currently active by each application program;
based on the acquired first equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each application program currently active to obtain first equipment reference data corresponding to the number of the duplicate-removed active equipment of the application program;
calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information;
the extracted preset type log information further comprises: a plug-in identification code;
after the step of "extracting the preset type of log information from the filtered interactive data", the method for calculating the number of the active devices may further perform the following steps:
according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in;
based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal;
according to the plug-in identification codes in the log information, calculating the real-time active equipment number of each plug-in based on the acquired second equipment reference data;
the extracted preset type log information further comprises: latitude and longitude information;
the method for calculating the number of the active devices further comprises the following steps:
acquiring region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
and calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
2. The computing method of claim 1, wherein the obtaining user equipment interaction data from a data source device and filtering the obtained user equipment interaction data according to a preset filtering rule to obtain filtered interaction data comprises:
acquiring batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
presetting data identification to be filtered and a corresponding value thereof;
and retrieving the acquired user equipment interaction data item by item, and identifying whether the data exist: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
and filtering the identified data identifier to be filtered and the user equipment interaction data with the corresponding value to obtain filtered interaction data.
3. The computing method according to claim 1, wherein the performing, based on the obtained first device identification code, a deduplication operation on active devices currently active for each obtained application program to obtain first device reference data corresponding to the number of active devices of the application program after deduplication, includes:
screening out a saved equipment identification code of the saved active equipment on the current day of analysis from the saved equipment identification code of the active equipment of each application program and an active date database;
matching the acquired first equipment identification code with the screened storage equipment identification code, and deleting the matched storage equipment identification code from the first equipment identification code;
and taking the remaining first device identification code after deletion as the first device reference data corresponding to the number of the active devices of the application program.
4. A server for calculating the number of active devices, comprising:
the filtering module is used for acquiring user equipment interaction data from data source equipment, and filtering the acquired user equipment interaction data according to a preset filtering rule to obtain filtered interaction data;
the extraction module is used for extracting log information of a preset type from the filtered interactive data; wherein the log information includes: an application identification code;
the inspection module is used for inspecting the filtered interactive data according to a preset application program inspection rule and acquiring a first equipment identification code corresponding to the active equipment currently activated by each application program;
the duplication removing module is used for carrying out duplication removing operation on the active equipment currently active by each acquired application program based on the acquired first equipment identification code to obtain first equipment reference data corresponding to the number of the active equipment of the application program after duplication removing;
the calculation module is used for calculating the real-time active equipment number of each application program based on the acquired first equipment reference data according to the application program identification code in the log information;
the preset type of log information extracted by the extraction module further comprises: a plug-in identification code;
the verification module is further configured to: according to a preset plug-in inspection rule, inspecting the filtered interactive data to obtain a second equipment identification code corresponding to the currently active equipment of each plug-in;
the deduplication module is further to: based on the acquired second equipment identification code, carrying out duplicate removal operation on the acquired active equipment of each plug-in currently active to obtain second equipment reference data corresponding to the number of the active equipment of the plug-in after duplicate removal;
the calculation module is further to: according to the plug-in identification codes in the log information, calculating the real-time active equipment number of each plug-in based on the acquired second equipment reference data;
the preset type of log information extracted by the extraction module further comprises: latitude and longitude information;
the calculation server of the active device number further comprises:
the region acquisition module is used for acquiring region information corresponding to the filtered interactive data according to the longitude and latitude information in the log information;
the calculation module is further to: and calculating the number of active devices of the application program corresponding to each region of each application program according to the acquired region information.
5. The computing server of claim 4, wherein the filtering module comprises:
the acquisition unit is used for acquiring batch user equipment interaction data from each service server or each application server of each application program in real time or according to a preset period;
the setting unit is used for presetting the data identification to be filtered and the corresponding value thereof;
a retrieval unit, configured to perform item-by-item retrieval on the obtained user equipment interaction data, and identify whether: the data identification to be filtered and the user equipment interaction data of the corresponding value thereof;
and the filtering unit is used for filtering the identified data identifier to be filtered and the user equipment interaction data of the corresponding value of the data identifier to be filtered to obtain filtered interaction data.
6. The computing server of claim 4, wherein the deduplication module comprises:
the screening unit is used for screening out the stored equipment identification codes of the stored active equipment on the current day of analysis from the stored equipment identification codes of the active equipment of each application program and the active date database;
the deleting unit is used for matching the acquired first equipment identification code with the screened storage equipment identification code and deleting the matched storage equipment identification code from the first equipment identification code;
and the counting unit is used for taking the first equipment identification codes left after deletion as the first equipment reference data corresponding to the number of the active equipment of the application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510646068.1A CN106572126B (en) | 2015-10-08 | 2015-10-08 | Active equipment number calculation method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510646068.1A CN106572126B (en) | 2015-10-08 | 2015-10-08 | Active equipment number calculation method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106572126A CN106572126A (en) | 2017-04-19 |
CN106572126B true CN106572126B (en) | 2020-06-30 |
Family
ID=58506541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510646068.1A Active CN106572126B (en) | 2015-10-08 | 2015-10-08 | Active equipment number calculation method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572126B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562815B (en) * | 2017-08-16 | 2022-05-27 | 深圳市合和舍科技有限公司 | Statistical method and device for client application platform |
CN115037489A (en) * | 2021-02-24 | 2022-09-09 | 北京国双千里科技有限公司 | Method and device for determining number of equipment identifications, storage medium and electronic equipment |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557304A (en) * | 2008-04-09 | 2009-10-14 | 北京闻言科技有限公司 | Method for counting online user number of distributed application servers |
CN101729571A (en) * | 2009-12-28 | 2010-06-09 | 广州游家信息技术有限公司 | Method, server and system for counting network on-line user number |
CN101753566A (en) * | 2009-12-25 | 2010-06-23 | 北京畅游天下网络技术有限公司 | Multi-application inter-system data application method and system |
CN102902775A (en) * | 2012-09-27 | 2013-01-30 | 新浪网技术(中国)有限公司 | Internet real-time computing method and internet real-time computing system |
CN103530796A (en) * | 2013-10-10 | 2014-01-22 | 北京智谷睿拓技术服务有限公司 | Active period detection method and active period detection system of application program |
CN103686821A (en) * | 2012-08-27 | 2014-03-26 | 上海亿动信息技术有限公司 | Control method for application program traffic statistics according to unique identification of mobile terminal |
CN103823665A (en) * | 2012-11-19 | 2014-05-28 | 中国移动通信集团公司 | SDK (software development kit) activeness analyzing method, network server and system |
CN103841172A (en) * | 2012-11-27 | 2014-06-04 | 上海亿动信息技术有限公司 | Application download operation statistic method and device based on user terminal identification comparison |
CN104239519A (en) * | 2014-09-17 | 2014-12-24 | 广州华多网络科技有限公司 | Information recommendation method and related equipment and system |
WO2015006617A1 (en) * | 2013-07-11 | 2015-01-15 | Al-Nasser Khalid | Smart watch |
CN104391968A (en) * | 2014-12-03 | 2015-03-04 | 北京奇虎科技有限公司 | Application characteristic parameter estimating method and device |
CN104462277A (en) * | 2014-11-25 | 2015-03-25 | 广州酷狗计算机科技有限公司 | Application program installation data statistical method, server and terminal |
CN104462500A (en) * | 2014-12-19 | 2015-03-25 | 北京奇虎科技有限公司 | Method for determining activeness of controls and control processing method and device |
CN104462177A (en) * | 2013-09-20 | 2015-03-25 | 纽昂斯通信有限公司 | Mobile application daily user engagement scores and user profiles |
CN104603753A (en) * | 2014-03-19 | 2015-05-06 | 华为技术有限公司 | Method, system and server for recommending application |
CN104699710A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | User structure judgment method and device as well as account state recording method and device |
CN104899325A (en) * | 2015-06-19 | 2015-09-09 | 上海卓悠网络科技有限公司 | APP (application) acquired data collection method, terminal, server and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8788356B2 (en) * | 2009-10-07 | 2014-07-22 | Sony Corporation | System and method for effectively providing software to client devices in an electronic network |
-
2015
- 2015-10-08 CN CN201510646068.1A patent/CN106572126B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557304A (en) * | 2008-04-09 | 2009-10-14 | 北京闻言科技有限公司 | Method for counting online user number of distributed application servers |
CN101753566A (en) * | 2009-12-25 | 2010-06-23 | 北京畅游天下网络技术有限公司 | Multi-application inter-system data application method and system |
CN101729571A (en) * | 2009-12-28 | 2010-06-09 | 广州游家信息技术有限公司 | Method, server and system for counting network on-line user number |
CN103686821A (en) * | 2012-08-27 | 2014-03-26 | 上海亿动信息技术有限公司 | Control method for application program traffic statistics according to unique identification of mobile terminal |
CN102902775A (en) * | 2012-09-27 | 2013-01-30 | 新浪网技术(中国)有限公司 | Internet real-time computing method and internet real-time computing system |
CN103823665A (en) * | 2012-11-19 | 2014-05-28 | 中国移动通信集团公司 | SDK (software development kit) activeness analyzing method, network server and system |
CN103841172A (en) * | 2012-11-27 | 2014-06-04 | 上海亿动信息技术有限公司 | Application download operation statistic method and device based on user terminal identification comparison |
WO2015006617A1 (en) * | 2013-07-11 | 2015-01-15 | Al-Nasser Khalid | Smart watch |
CN104462177A (en) * | 2013-09-20 | 2015-03-25 | 纽昂斯通信有限公司 | Mobile application daily user engagement scores and user profiles |
CN103530796A (en) * | 2013-10-10 | 2014-01-22 | 北京智谷睿拓技术服务有限公司 | Active period detection method and active period detection system of application program |
CN104699710A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | User structure judgment method and device as well as account state recording method and device |
CN104603753A (en) * | 2014-03-19 | 2015-05-06 | 华为技术有限公司 | Method, system and server for recommending application |
CN104239519A (en) * | 2014-09-17 | 2014-12-24 | 广州华多网络科技有限公司 | Information recommendation method and related equipment and system |
CN104462277A (en) * | 2014-11-25 | 2015-03-25 | 广州酷狗计算机科技有限公司 | Application program installation data statistical method, server and terminal |
CN104391968A (en) * | 2014-12-03 | 2015-03-04 | 北京奇虎科技有限公司 | Application characteristic parameter estimating method and device |
CN104462500A (en) * | 2014-12-19 | 2015-03-25 | 北京奇虎科技有限公司 | Method for determining activeness of controls and control processing method and device |
CN104899325A (en) * | 2015-06-19 | 2015-09-09 | 上海卓悠网络科技有限公司 | APP (application) acquired data collection method, terminal, server and system |
Non-Patent Citations (4)
Title |
---|
MobclickAgent——友盟用户分析工具;xiangzilv1987;《https://blog.csdn.net/xiangzilv1987/article/details/7840582》;20120807;第1-7页 * |
MobclickAgent友盟统计分析工具;yangxi_001;《https://blog.csdn.net/yangxi_pekin/article/details/8940578》;20130517;第1-3页 * |
关于友盟的用户行为分析笔记一;飞翔的熊猫;《https://cnblogs.com/hesiming/archive/2012/06/20/2556100.html》;20120620;第1-5页 * |
友盟:活跃用户详解;None;《https://www.guokr.com/blog/797754/》;20141216;第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106572126A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110198310B (en) | Network behavior anti-cheating method and device and storage medium | |
CN109284380B (en) | Illegal user identification method and device based on big data analysis and electronic equipment | |
CN106980573B (en) | Method, device and system for constructing test case request object | |
EP2693356B1 (en) | Detecting pirated applications | |
CN113382279B (en) | Live broadcast recommendation method, device, equipment, storage medium and computer program product | |
CN109962789B (en) | Method and device for constructing Internet of things application label system based on network data | |
CN106572126B (en) | Active equipment number calculation method and server | |
CN106301979B (en) | Method and system for detecting abnormal channel | |
CN109144831B (en) | Method and device for acquiring APP identification rule | |
CN107085603B (en) | Data processing method and device | |
WO2015074493A1 (en) | Method and apparatus for filtering out low-frequency click, computer program, and computer readable medium | |
CN107220262B (en) | Information processing method and device | |
CN113297583B (en) | Vulnerability risk analysis method, device, equipment and storage medium | |
CN106446687B (en) | Malicious sample detection method and device | |
CN112131215B (en) | Bottom-up database information acquisition method and device | |
CN108737203B (en) | Set extraction method and device | |
CN113722714A (en) | Network threat processing method and device | |
CN115794889B (en) | Personal relationship processing method and device, electronic equipment and computer readable storage medium | |
CN107045529B (en) | Network content acquisition method and device and service terminal | |
CN107948738B (en) | Method and device for calculating number of users for internet protocol television reuse | |
CN111104597A (en) | Screening method and screening device for resource delivery equipment and readable storage medium | |
CN111105263A (en) | User identification method and device, electronic equipment and storage medium | |
CN113691492B (en) | Method, system, device and readable storage medium for determining illegal application program | |
CN111105262B (en) | User identification method, device, electronic equipment and storage medium | |
CN112449062B (en) | Malicious fee deduction identification method and device, electronic equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |