CN106790380A - Data reporting method and device - Google Patents
Data reporting method and device Download PDFInfo
- Publication number
- CN106790380A CN106790380A CN201611043310.7A CN201611043310A CN106790380A CN 106790380 A CN106790380 A CN 106790380A CN 201611043310 A CN201611043310 A CN 201611043310A CN 106790380 A CN106790380 A CN 106790380A
- Authority
- CN
- China
- Prior art keywords
- data
- client
- target data
- reported
- default mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a kind of data reporting method and device, and methods described is applied to data platform, and methods described includes:Receive the target data that different type client is reported when local HTTP interface is called;Wherein, the target data is the compatible universal data format of all types of clients;The target data carries default mark;The data difference that the default mark indicates different type client to report;The target data that the client is reported is parsed, the described default mark carried in the target data is obtained;The target data is stored into the database indicated by the default mark.The method that the data provided using the application are reported, can effectively improve the versatility that data are reported.
Description
Technical field
The application is related to computer communication field, more particularly to data reporting method and device.
Background technology
Data are reported, it is generally the case that referred to target data that client will be collected locally, reported corresponding data
Platform, so that data platform carries out corresponding Business Processing to the target data.
Conventional data reporting schemes are usually introducing message system, the mesh that client will need to report by message system
Mark data is activation to data platform.However, message system is not particularly suited for all of client, therefore, exploitation one kind is applied to
The data reporting method of all clients turns into problem demanding prompt solution.
The content of the invention
In view of this, the application provides data reporting method and device, is used to improve the versatility that data are reported.
Specifically, the application is achieved by the following technical solution:
According to the first aspect of the embodiment of the present application, there is provided a kind of data reporting method, methods described is applied to data and puts down
Platform, methods described includes:
Receive the target data that different type client is reported when local HTTP interface is called;Wherein, the number of targets
According to the universal data format for being all types of clients compatibility;The target data carries default mark;The default mark refers to
Show the data difference that different type client is reported;
The target data that the client is reported is parsed, the described default mark carried in the target data is obtained;
The target data is stored into the database indicated by the default mark.
According to the second aspect of the embodiment of the present application, there is provided a kind of data reporting device, described device is applied to data and puts down
Platform, described device includes:
Receiving unit, for receiving the target data that different type client is reported when local HTTP interface is called;Its
In, the target data is the compatible universal data format of all types of clients;The target data carries default mark;Institute
State the data difference that default mark indicates different type client to report;
Resolution unit, for parsing the target data that the client is reported, obtains what is carried in the target data
The default mark;
Storage element, for the target data to be stored the database indicated by the default mark.
The application provides a kind of method that data are reported, and data platform can provide one towards different types of client
HTTP interface reports interface as data, and different types of client can be organized data into all kinds of in reported data
The compatible universal data format of type client, and the data difference for indicating all types of clients to report is carried in data
Default mark, then unify to report to data platform by calling the HTTP interface, stored to pre- with described by data platform
Bidding knows corresponding database;
On the one hand, because the HTTP interface using the http protocol based on general standard, and target data are reported
Form uses the compatible universal data format of all types of clients so that all of client can be by calling number
Data are carried out according to the same HTTP interface of platform to report, such that it is able to need not respectively develop message for different types of client
System, helps to save development cost, the scalability of lifting system and flexibility.
On the other hand, because different types of client is when target data is reported, can be carried in target data and referred to
Show the default mark of data difference, so that data platform can be based on the default mark, the target reported to each client
Data difference alienation is stored in different databases, such that it is able to mask difference of the different type client on business scenario.
Brief description of the drawings
Fig. 1 is a kind of network architecture diagram of the data reporting method shown in the exemplary embodiment of the application one;
Fig. 2 is a kind of flow chart of the data reporting method shown in the exemplary embodiment of the application one;
Fig. 3 is a kind of hardware structure diagram of the data reporting device place equipment shown in the exemplary embodiment of the application one;
Fig. 4 is a kind of block diagram of the data reporting device shown in the exemplary embodiment of the application one.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Data are reported, it is generally the case that referred to target data that client will be collected locally, reported corresponding data
Platform, so that data platform carries out corresponding Business Processing to the target data.
In the related art, conventional data reporting schemes are typically the development language for being based on itself and being supported by client,
The corresponding message system of stand-alone development, is docked with data platform, the mesh that client will need to report by the message system
Mark data is activation to data platform.
However, in actual applications, may there is different types of client, the feelings docked with same data platform
Condition;Such as, PC (Personal Computer, personal computer) client, mobile client, Web client and same data
Platform is docked.In this case, due to different types of client, the development language supported may have differences each other,
Same message system may compatible different types of client simultaneously, therefore generally need for different types of client
Corresponding message system is developed respectively;
On the one hand, it is that different types of client develops message system respectively, the too high problem of development cost is not only existed,
And autgmentability difference underaction.
On the other hand, be that different types of client develops message system respectively so that different types of client with
When same data platform is docked, lack a more common data reporting schemes, it is impossible to shield different types of client and exist
Difference on business scenario.
In order to solve the above problems, the application provides a kind of method that data are reported, and data platform can be towards inhomogeneity
The client of type provides a HTTP interface and reports interface as data, and different types of client is in reported data, can
The universal data format compatible to organize data into all types of clients, and carried in data for indicating all types of visitors
The default mark of the data difference that family end reports, then unifies to report to data platform, by data by calling the HTTP interface
Platform store to the corresponding database of the default mark;
On the one hand, because the HTTP interface using the http protocol based on general standard, and target data are reported
Form uses the compatible universal data format of all types of clients so that all of client can be by calling number
Data are carried out according to the same HTTP interface of platform to report, such that it is able to need not respectively develop message for different types of client
System, helps to save development cost, the scalability of lifting system and flexibility.
On the other hand, because different types of client is when target data is reported, can be carried in target data and referred to
Show the default mark of data difference, so that data platform can be based on the default mark, the target reported to each client
Data difference alienation is stored in different databases, such that it is able to mask difference of the different type client on business scenario.
Referring to Fig. 1, Fig. 1 is a kind of network architecture diagram of the data reporting method shown in the exemplary embodiment of the application one.
In the network architecture reported on the data, comprising several different clients and data platform.
Above-mentioned client can include user oriented client software.The client software can gather user operation or
In person's business procession produce target data, such as user trigger the number of times of certain item, video traffic loading it is time-consuming when
The data such as long, it is possible to by calling the interface of data platform, report data platform, by data by what is gathered to target data
Platform carries out corresponding Business Processing based on the target data that client is reported.
Wherein, different client, the type for typically referring to client is different.For example client can for pc client,
Mobile client and Web client etc., in mobile client, can include being based on HTML (HyperText Markup again
Language, HTML) mobile phone A PP (Application, application program) client etc..
The hardware environment of above-mentioned client is carried, for example, it may be PC, mobile terminal etc..In the present embodiment, do not enter
Row is especially limited.
Above-mentioned data platform can include data server, it is also possible to including the distribution built by some data servers
Formula data platform, the distributed data platform can realize the target data that different clients are reported carry out distributed storage and
Distributed Business Processing etc..
Referring to Fig. 2, Fig. 2 is a kind of flow chart of the data reporting method shown in the exemplary embodiment of the application one;It is described
Method is applied to data platform, and methods described specifically includes step as described below:
Step 201:Receive the target data that different type client is reported when local HTTP interface is called;Wherein, institute
It is the compatible universal data format of all types of clients to state target data;The target data carries default mark;It is described pre-
Bidding knows the data difference for indicating different type client to report;
Step 202:The target data that the client is reported is parsed, carry in the target data described pre- is obtained
Bidding is known;
Step 203:The target data is stored into the database indicated by the default mark.
Above-mentioned default mark, is developer's identification information set in advance, the data for being used to indicate client to report it
Between difference.The default mark can be generally carried in the specific field of the target data that client is reported.
Herein, it is necessary to illustrate, the difference between the target data that the client indicated by the default mark is reported,
Can be difference of the target data that reports of client in type of service;I.e. developer can be directed to different service class
Type, sets different default marks respectively.
Certainly, in actual applications, the data difference indicated by above-mentioned default mark, it is also possible to be based on by developer real
Real needs in the application of border carry out self-defined, are no longer enumerated in application;For example, above-mentioned default mark can also
The target data that client is reported is indicated in stylistic difference, etc..
Wherein, the specific business for the treatment of of the above-mentioned type of service in practical application is defined, for example can be alarm business,
Inquiry business etc., herein, simply carries out exemplary explanation to type of service, it is not limited especially.
Below as a example by presetting the difference that mark is characterized in the type of service of the data that each client is reported, to illustrated above
Data report scheme specifically to be introduced.It should be noted that for other beyond default mark service class indication
The data difference of type, the implementation that its data is reported characterizes the difference in type of service with the default mark described below
When data reporting schemes it is identical, herein, repeat no more.
In the embodiment of the present application, general data form is used to data platform in order to complete different types of client
Unify reported data, it is necessary to be configured accordingly respectively for client and data platform in advance, below to configuration client
Process with data platform is described in detail.
First, developer can in advance develop a general standard HTTP interface on data platform, and by this
HTTP interface is docked with different types of client, and the client of variant type can perform mark for the HTTP interface
Accurate HTTP is called, to data platform reported data.
In this way, because http protocol is general standard agreement, thus general standard HTTP interface is used
Interface is reported as the data of different types of client, can no longer need the type distinguished between different clients poor
It is different, corresponding message system is developed respectively for different types of client, it is thus possible to compatible various types of clients, can
To effectively increase the versatility that data are reported.
Secondly, on the basis of interface is reported as data towards the unified HTTP interface of all types of client offers,
Data form that can also be further to all types of client reported datas is unified, by all types of client reported datas
Data form be configured to the compatible universal data format of all types of clients.
For example, in a kind of implementation method for showing, above-mentioned universal data format can be the data form based on JSON;
In this case, all types of clients can be based on JSON forms, and the form of the data reported to needs carries out group again
Knit, then by calling above-mentioned HTTP interface, report to data platform.
By the way that the data form of target data unified to be advantageous in that for JSON forms:
On the one hand, compared with other universal data formats, " volume " of the target data based on JSON forms is smaller, accounts for
With resources such as less passage, internal memories;
On the other hand, target set of data can be turned into JSON forms the form of " title value corresponding with the title ", be made
The target data that is reported to client of data platform carry out parsing become to be more prone to, it is convenient;The extension of JSON data forms
Property it is strong so that developer can be based on actual business demand and carry out flexible expansion to JSON data forms.
Certainly, in actual applications, above-mentioned universal data format in addition to it can be JSON forms, or other
The universal data format of type, such as XML format, are no longer enumerated in this example.
In this example, different types of client is by calling the HTTP interface of standard, and uses general data form
To data platform reported data, although the versatility that data are reported can be lifted at, but in actual applications, variant type
Client need the data reported to data platform, it will usually there is certain difference, and for data platform,
With the data that the client to variant type is reported, the demand of differentiation treatment is carried out.
In this example, in order to embody the difference in the data that all types of clients are reported, developer can be for each
Type clients need the different types of data for reporting, and different default marks are defined respectively, by the default mark for defining
Come indicate different types of client to report data on difference.
In a kind of implementation method for showing, due to the data that different types of client is reported, it will usually there is business
Difference in scene and type of service;Therefore, developer can be directed to the different service types under different business scenarios,
A corresponding default mark is defined respectively;
For example, characterizing the alarm business that the time-consuming duration of video loading exceedes predetermined threshold value to preset mark " ab ".Certainly, this
In simply to presetting a kind of exemplary illustration of mark and the corresponding relation of type of service, in actual applications, developer can
With self-defining.
After developer respectively defines the default mark for characterizing type of service for all types of clients, data
Platform can create the mapping relations between the default mark of developer's definition, and corresponding type of service, it is possible to by this
Mapping relations are issued to each can be to the client for locally reporting target data.
Above is the introduction to client and the configuration process of data platform, characterizes each client with above-mentioned default mark below
As a example by the difference in the type of service of target data that end reports, all types of clients are carried out with the process that data report is carried out in detail
Thin description.
In the embodiment of the present application, all types of clients can be based on when needing to data platform reported data
The target data for needing to report is organized into JSON forms the form of " title value corresponding with the title ", then reports to data
Platform.
However, because the corresponding business scenario of all types of clients there may be difference, causing all types of client needs
The type of service of the target data for reporting may be different from each other.Therefore, in order that obtaining service end can distinguish the target for reporting
Difference between data in type of service, client, can also be in the target for needing report when needing to report target data
A default mark for the type of service that can characterize target data is write in data so that data platform can be default based on this
Mark accurately but separates the data that all types of clients are reported, the difference in type of service.
In a kind of implementation for showing, the data for needing to report are being organized into JSON by client based on JSON forms
During form, it is possible to use the characteristics of autgmentability of JSON forms is stronger, on the basis of the original field of target data, expand
One extended field for corresponding to the default mark, then can be by the default mark with " title value corresponding with the title " shape
Formula is write in target data to be reported.
For example, representing the above-mentioned extended field for writing default mark with sign, the industry of target data is represented with " ab "
Service type is alarm business, then client can be based on the form that the default mark is organized as JSON forms " sign=ab ",
In the target data that write-in is reported, then reported.
All types of clients carrying out giving the correct time to target data, can by call on data platform with each client
The same HTTP interface of docking, data platform is sent to by target data to be reported.
Wherein, specifically call the method for HTTP interface to may be referred to prior art to be achieved, the application is no longer one by one
Repeat.
Data platform, can after the target data that different type client is reported when local HTTP interface is called is received
Parsed with to above-mentioned target data.
Wherein, when being parsed to above-mentioned target data, because above-mentioned target data is based on JSON forms, with " name
Claim value corresponding with the title " tissue, so data platform can be by reading title and the corresponding value of title, quickly
Parse the default mark carried in above-mentioned target data.
In the embodiment of the present application, for the ease of being managed to the data that client is reported, above-mentioned data platform can be with
Several databases for corresponding to different types of service respectively are marked off in advance.
After the default mark that above-mentioned target data is carried is parsed, data platform can search the default mark for having created
And the mapping relations with the corresponding type of service of default mark, acquisition and the corresponding type of service of default mark, then will
The target data for receiving is stored in database corresponding with the type of service.
In addition, being stored and being managed for the ease of the target data to same type of service, above-mentioned database can enter
One step marks off an initial data point table and a business datum point table.
Wherein, above-mentioned initial data point table is used to store the target data that undressed client is reported.And above-mentioned industry
After original target data is then carried out corresponding Business Processing by business data point table for storage, the result data for obtaining.
In a kind of optional implementation, can be stored in for the target data of reception by data platform acquiescence presets with this
Identify the initial data point table in corresponding database.
In the embodiment of the present application, data platform is except the above-mentioned target data that will can be received is used as initial data,
It is stored in the initial data point table of database corresponding with the default mark that the target data is carried, is also based on original number
According to the target data stored in point table, further Business Processing is performed.
For example, it is assumed that carrying default mark " ab " in the target data that reports of client, the default mark " ab " characterizes and regards
Frequency loads the alarm business that time-consuming duration exceedes predetermined threshold value.Data platform after the target data that client is reported is received,
Can be index with the default mark " ab ", search above-mentioned mapping relations, it is determined that type of service corresponding with the target data, and
The target data is stored the initial data point table into corresponding database;Then data platform can be loaded to above-mentioned video
The data of time-consuming duration carry out statistical analysis, then judge whether the time-consuming duration that video is loaded exceedes by statistic analysis result
Predetermined threshold value, if it is, send warning information.
Furthermore, it is necessary to explanation, data platform, can be in real time to target when Business Processing is carried out to target data
Data are processed, as long as that is, data platform receives the target data for reporting, with regard to being carried out correspondingly to the target data immediately
Business Processing;
For example, in actual applications, above-mentioned data platform can be one based on Stream Processing framework (such as storm framves
Structure) real-time calculating platform, when all types of clients in the general HTTP interface by calling data platform to provide by target
After data report to data platform, above-mentioned data platform can be based on the difference in type of service, the data point storehouse that will be received
Store to different databases, then the data for different service types perform calculating in real time respectively.
In the embodiment of the present application, target data of the data platform in for initial data point table has carried out corresponding industry
After business treatment, for the ease of carrying out unified management to service processing result, data platform further can will be directed to the mesh
Mark the business datum point table that the service processing result of data is stored into the database.
The application provides a kind of method that data are reported, and data platform can provide one towards different types of client
HTTP interface reports interface as data, and different types of client can be organized data into all kinds of in reported data
The compatible universal data format of type client, and the data difference for indicating all types of clients to report is carried in data
Default mark, then unify to report to data platform by calling the HTTP interface, stored to pre- with described by data platform
Bidding knows corresponding database;
On the one hand, because the HTTP interface using the http protocol based on general standard, and target data are reported
Form uses the compatible universal data format of all types of clients so that all of client can be by calling number
Data are carried out according to the same HTTP interface of platform to report, such that it is able to need not respectively develop message for different types of client
System, helps to save development cost, the scalability of lifting system and flexibility.
On the other hand, because different types of client is when target data is reported, can be carried in target data and referred to
Show the default mark of data difference, so that data platform can be based on the default mark, the target reported to each client
Data difference alienation is stored in different databases, such that it is able to mask difference of the different type client on business scenario.
In sum, the method that the data that the application is provided are reported, can both make all of client pass through data platform
On a HTTP interface complete target data report, again can by target data carry default mark, distinguish mesh
The mark data database the to be stored and Business Processing to be carried out, therefore, it can to effectively improve that data report is general
Property.
Below so that client is net cast client as an example, and scene with reference to net cast is reported to above-mentioned data
Method is described in detail.
Above-mentioned live client can be " YY LIVE ", as shown in figure 1, above-mentioned client can include " YY LIVE "
Web client, can also include mobile client, such as APP of " YY LIVE " on mobile phone etc..
The application is mainly and realizes different clients, as described above the Web client of " YY LIVE " and " YY LIVE "
The clients such as APP, in reported data, no longer can be carried out by the different message system developed respectively for each client
Data are reported, but a HTTP interface of unified call data platform, reporting for data is completed, therefore can effectively improve
The versatility that data are reported.
Given the correct time on data are realized, client can be acquired to locally generated target data.For example, client can
With the time-consuming duration data of the loading for gathering live video, the time-consuming duration data of audio loading etc..
The time-consuming duration data for being loaded for live video as " YY LIVE " with the target data of client collection below,
The time-consuming duration of default mark " ab " sign video loading exceedes as a example by the alarm business of predetermined threshold value, illustrates.
Different clients is carried out in " the YY LIVE " to collecting for the data of the time-consuming duration of live video loading
Before reporting, client first can be organized the time-consuming duration data that the live video is loaded with JSON forms, it is possible to be looked into
Default mark corresponding with the time-consuming duration data that the live video is loaded is ask, such as " ab ".Then client can write " ab "
Enter and be written in the data of the time-consuming duration that the video is loaded by JSON forms.
Client can carry the straight of default mark " ab " by calling the same HTTP interface of data platform by above-mentioned
The time-consuming duration data for broadcasting video loading report data platform.
Data platform is receiving what live video of the different clients by calling local HTTP interface to report was loaded
After time-consuming duration data, the time-consuming duration data of live video loading can be parsed, and obtain the live video and add
The default mark " ab " carried in the time-consuming duration data for carrying.
Data platform can be index with the default mark " ab ", search the time-consuming duration of video loading corresponding with " ab " is somebody's turn to do
More than the alarm business of predetermined threshold value.
After the corresponding type of service of time-consuming duration data for obtaining the loading of above-mentioned live video, data platform can will be upper
The time-consuming duration data storage for stating live video loading is exceeding the alarm business pair of predetermined threshold value with the time-consuming duration of video loading
In the initial data of the database answered point table, so that the inquiry of follow-up Business Processing and initial data is used.
Data platform can be based on the announcement more than predetermined threshold value of the corresponding time-consuming duration of video loading of default mark " ab "
The time-consuming duration data of video loading in above-mentioned initial data point table are performed corresponding Business Processing by alert business;Such as data
Platform can carry out statistical analysis to the data of the time-consuming duration of above-mentioned video loading, then judge video by statistic analysis result
Whether the time-consuming duration of loading has exceeded predetermined threshold value, if it is, sending warning information.
For the ease of carrying out unified management to service processing result, data platform can also be time-consuming by the loading of above-mentioned video
Duration data are stored to the business datum point table of above-mentioned data by the service processing result after Business Processing.
Embodiment with aforementioned data report method is corresponding, present invention also provides the embodiment of data reporting device.
The embodiment of the application data reporting device can be applied on data platform.Device embodiment can be by software
Realize, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, as on a logical meaning
Device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of data platform where it
Run what is formed in internal memory.From for hardware view, as shown in figure 3, the data platform where the application data reporting device
A kind of hardware structure diagram, in addition to the processor shown in Fig. 3, internal memory, network outgoing interface and nonvolatile memory,
The actual functional capability that data platform in embodiment where device is reported generally according to the data, can also include other hardware, right
This is repeated no more.
Fig. 4 is refer to, Fig. 4 is a kind of block diagram of the data reporting device shown in the exemplary embodiment of the application one.It is described
Device is applied to data platform, and described device includes:
Receiving unit 410, for receiving the target data that different type client is reported when local HTTP interface is called;
Wherein, the target data is the compatible universal data format of all types of clients;The target data carries default mark;
The data difference that the default mark indicates different type client to report;
Resolution unit 420, for parsing the target data that the client is reported, obtains carrying in the target data
Described default mark;
Storage element 430, for the target data to be stored the database indicated by the default mark.
In a kind of optional implementation, the target data is the data based on JSON forms.
In another optional implementation, the default mark characterizes the corresponding type of service of the target data;
The data platform corresponds to the database of different types of service comprising several respectively;Wherein, the database is comprising original
Data point table and business datum point table;
The storage element 430, specifically for searching the pre- bidding carried in the target data reported with the client
Know corresponding database;Wherein, each database corresponds to different default marks respectively;The target data is stored to finding
Initial data point table in the database.
In another optional implementation, described device also includes:
Execution unit 440, for based on the type of service that is characterized of default mark carried in the target data, for
The target data performs Business Processing corresponding with the type of service;
Searching unit 450, the default mark for searching with carried in the target data that the client is reported is corresponding
Database;
The storage element 430, is additionally operable to be stored to finding for the service processing result of the target data
Business datum point table in the database.
In another optional implementation, the client includes pc client, mobile client, Web client.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
Claims (10)
1. a kind of data reporting method, it is characterised in that methods described is applied to data platform, and methods described includes:
Receive the target data that different type client is reported when local HTTP interface is called;Wherein, the target data is
The compatible universal data format of all types of clients;The target data carries default mark;The default mark is indicated not
The data difference that same type client is reported;
The target data that the client is reported is parsed, the described default mark carried in the target data is obtained;
The target data is stored into the database indicated by the default mark.
2. method according to claim 1, it is characterised in that the target data is the data based on JSON forms.
3. method according to claim 2, it is characterised in that the default mark characterizes the corresponding industry of the target data
Service type;The data platform corresponds to the database of different types of service comprising several respectively;Wherein, the database bag
Containing initial data point table and business datum point table;
The database target data stored indicated by the default mark, including:
Search database corresponding with the default mark carried in the target data that the client is reported;Wherein, each database
Different default marks are corresponded to respectively;
The target data is stored the initial data point table into the database for finding.
4. method according to claim 3, it is characterised in that methods described also includes:
Based on the type of service that the default mark carried in the target data is characterized, perform and be somebody's turn to do for the target data
The corresponding Business Processing of type of service;
Search database corresponding with the default mark carried in the target data that the client is reported;
The business datum point table into the database for finding will be stored for the service processing result of the target data.
5. method according to claim 1, it is characterised in that the client includes pc client, mobile client,
Web client.
6. a kind of data reporting device, it is characterised in that described device is applied to data platform, and described device includes:
Receiving unit, for receiving the target data that different type client is reported when local HTTP interface is called;Wherein, institute
It is the compatible universal data format of all types of clients to state target data;The target data carries default mark;It is described pre-
Bidding knows the data difference for indicating different type client to report;
Resolution unit, for parsing the target data that the client is reported, obtains carry in the target data described
Default mark;
Storage element, for the target data to be stored the database indicated by the default mark.
7. device according to claim 6, it is characterised in that the target data is the data based on JSON forms.
8. device according to claim 7, it is characterised in that the default mark characterizes the corresponding industry of the target data
Service type;The data platform corresponds to the database of different types of service comprising several respectively;Wherein, the database bag
Containing initial data point table and business datum point table;
The storage element, the default mark specifically for searching with carried in the target data that the client is reported is corresponding
Database;Wherein, each database corresponds to different default marks respectively;The target data is stored to the data for finding
Initial data point table in storehouse.
9. device according to claim 8, it is characterised in that described device also includes:
Execution unit, for the type of service characterized based on the default mark carried in the target data, for the mesh
Mark data perform Business Processing corresponding with the type of service;
Searching unit, for searching database corresponding with the default mark of carrying in the target data that the client is reported;
The storage element, is additionally operable to be stored to the data for finding for the service processing result of the target data
Business datum point table in storehouse.
10. device according to claim 6, it is characterised in that the client includes pc client, mobile client,
Web client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611043310.7A CN106790380A (en) | 2016-11-21 | 2016-11-21 | Data reporting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611043310.7A CN106790380A (en) | 2016-11-21 | 2016-11-21 | Data reporting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106790380A true CN106790380A (en) | 2017-05-31 |
Family
ID=58974006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611043310.7A Pending CN106790380A (en) | 2016-11-21 | 2016-11-21 | Data reporting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790380A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483532A (en) * | 2017-06-28 | 2017-12-15 | 武汉斗鱼网络科技有限公司 | A kind of method for uploading of behavioral data, Resource Server and storage medium |
CN109618331A (en) * | 2019-02-01 | 2019-04-12 | 深圳乐信软件技术有限公司 | Data reporting method, device, equipment and storage medium |
CN110716848A (en) * | 2019-10-18 | 2020-01-21 | 广州华多网络科技有限公司 | Data collection method and device, electronic equipment and storage medium |
CN111385365A (en) * | 2020-03-23 | 2020-07-07 | 广州极晟网络技术有限公司 | Processing method and device for reported data, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102523580A (en) * | 2011-11-25 | 2012-06-27 | 北京握奇数据系统有限公司 | M2M (Machine-to-Machine/Man) service terminal data processing method and M2M service card as well as M2M terminal data processing card |
CN103577443A (en) * | 2012-07-30 | 2014-02-12 | 中国银联股份有限公司 | Log processing system |
CN103733629A (en) * | 2011-06-21 | 2014-04-16 | 尼尔森(美国)有限公司 | Methods and apparatus to measure exposure to streaming media |
CN106101169A (en) * | 2016-05-19 | 2016-11-09 | 努比亚技术有限公司 | A kind of terminal and data reporting method |
-
2016
- 2016-11-21 CN CN201611043310.7A patent/CN106790380A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103733629A (en) * | 2011-06-21 | 2014-04-16 | 尼尔森(美国)有限公司 | Methods and apparatus to measure exposure to streaming media |
CN102523580A (en) * | 2011-11-25 | 2012-06-27 | 北京握奇数据系统有限公司 | M2M (Machine-to-Machine/Man) service terminal data processing method and M2M service card as well as M2M terminal data processing card |
CN103577443A (en) * | 2012-07-30 | 2014-02-12 | 中国银联股份有限公司 | Log processing system |
CN106101169A (en) * | 2016-05-19 | 2016-11-09 | 努比亚技术有限公司 | A kind of terminal and data reporting method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483532A (en) * | 2017-06-28 | 2017-12-15 | 武汉斗鱼网络科技有限公司 | A kind of method for uploading of behavioral data, Resource Server and storage medium |
CN109618331A (en) * | 2019-02-01 | 2019-04-12 | 深圳乐信软件技术有限公司 | Data reporting method, device, equipment and storage medium |
CN110716848A (en) * | 2019-10-18 | 2020-01-21 | 广州华多网络科技有限公司 | Data collection method and device, electronic equipment and storage medium |
CN111385365A (en) * | 2020-03-23 | 2020-07-07 | 广州极晟网络技术有限公司 | Processing method and device for reported data, computer equipment and storage medium |
CN111385365B (en) * | 2020-03-23 | 2022-09-30 | 广州极晟网络技术有限公司 | Processing method and device for reported data, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7702959B2 (en) | Error management system and method of using the same | |
CN109388791B (en) | Dynamic diagram display method and device, computer equipment and storage medium | |
CN109726128A (en) | A kind of method for generating test case, device and server | |
CN110956269B (en) | Method, device, equipment and computer storage medium for generating data model | |
CN106790380A (en) | Data reporting method and device | |
CN109740129B (en) | Report generation method, device and equipment based on blockchain and readable storage medium | |
CN110348219A (en) | Version comparison method, system, computer equipment and readable storage medium storing program for executing | |
CN112241362A (en) | Test method, test device, server and storage medium | |
CN106301975A (en) | A kind of data detection method and device thereof | |
CN111046393B (en) | Vulnerability information uploading method and device, terminal equipment and storage medium | |
CN112671878A (en) | Block chain information subscription method, device, server and storage medium | |
CN114331167B (en) | Method, system, medium and equipment for managing champion challenger strategy | |
CN111880996B (en) | Bare metal data acquisition method, device, equipment and readable storage medium | |
CN114490402A (en) | Method and device for checking validity of message field | |
CN112527276A (en) | Data updating method and device in visual programming tool and terminal equipment | |
CN112749078A (en) | Buried point testing method and device | |
CN113055243B (en) | DPI interface data processing method and device | |
CN113723992B (en) | Advertisement request construction method, device, equipment and storage medium | |
CN115309612B (en) | Method and device for monitoring data | |
CN113051176B (en) | Automatic test data processing method and device, electronic equipment and storage medium | |
CN112162816B (en) | Method and device for checking container cluster resource object and storage medium | |
CN117573130A (en) | Code processing method, device, electronic equipment and storage medium | |
CN117131453A (en) | Abnormality diagnosis method and device, electronic equipment and storage medium | |
CN118802822A (en) | Message identification method, device, terminal equipment and computer program product | |
CN116414739A (en) | Method and device for sending target configuration message, storage medium and electronic device |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20170531 Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. Contract record no.: X2021440000030 Denomination of invention: Data reporting method and device License type: Common License Record date: 20210125 |
|
EE01 | Entry into force of recordation of patent licensing contract | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |
|
RJ01 | Rejection of invention patent application after publication |