CN113810340A - Data reporting method, device, equipment and computer readable storage medium - Google Patents

Data reporting method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113810340A
CN113810340A CN202010535303.9A CN202010535303A CN113810340A CN 113810340 A CN113810340 A CN 113810340A CN 202010535303 A CN202010535303 A CN 202010535303A CN 113810340 A CN113810340 A CN 113810340A
Authority
CN
China
Prior art keywords
protocol
data
reporting
reported
configurable
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.)
Granted
Application number
CN202010535303.9A
Other languages
Chinese (zh)
Other versions
CN113810340B (en
Inventor
刘骏健
梁健权
赵博霖
黄东庆
郭润增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010535303.9A priority Critical patent/CN113810340B/en
Publication of CN113810340A publication Critical patent/CN113810340A/en
Application granted granted Critical
Publication of CN113810340B publication Critical patent/CN113810340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a data reporting method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol; acquiring a configurable protocol corresponding to the identifier from a configurable protocol library; sending the configurable protocol to a second terminal, and receiving configuration information corresponding to the configurable protocol returned by the second terminal; configuring the configurable protocol through the configuration information to obtain a configured protocol; and reporting the data to be reported by adopting the configured protocol. According to the method and the device, the personalized protocol obtained through configuration is adopted to perform personalized reporting on the data to be reported, the reporting protocol does not need to be developed additionally, and the development efficiency of data reporting is greatly improved.

Description

Data reporting method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of internet, and relates to but is not limited to a data reporting method, a data reporting device, data reporting equipment and a computer readable storage medium.
Background
Data reporting is a time-consuming and labor-consuming work, and comprises a plurality of repeated works, and at present, the following schemes are often adopted for reporting different types of data by a terminal: according to the reporting requirement, the reporting logic, interface and storage are developed item by item (case by case), or the reported data is reported according to a fixed protocol, and in the reporting process, no personalized data exists or all the data is put in an extended field.
However, the scheme of developing the data reporting logic and the interface item by item is time-consuming and labor-consuming; the method of reporting according to the fixed protocol cannot well meet the requirement of reporting personalized data, and putting all data in one extension field is not beneficial to subsequent data consumption and use, for example, is not beneficial to subsequent statistical analysis.
Disclosure of Invention
The embodiment of the application provides a data reporting method, a data reporting device, a data reporting apparatus and a computer readable storage medium, the configurable protocol is configured according to configuration information sent by a terminal by acquiring the configurable protocol, so that data to be reported is reported by adopting the configured protocol, and thus, the configurable protocol is configured by the configuration information, so that a personalized protocol suitable for the data to be reported is obtained, the data to be reported is reported in a personalized manner, and the reporting protocol does not need to be developed additionally, thereby greatly improving the development efficiency of data reporting.
The technical scheme of the embodiment of the application is realized as follows:
an embodiment of the present application provides a data reporting method, including:
receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol;
acquiring a configurable protocol corresponding to the identifier from a configurable protocol library;
sending the configurable protocol to a second terminal, and receiving configuration information corresponding to the configurable protocol returned by the second terminal;
configuring the configurable protocol through the configuration information to obtain a configured protocol;
and reporting the data to be reported by adopting the configured protocol.
The embodiment of the application provides a data reporting method, which is applied to a second terminal and comprises the following steps:
after receiving a data reporting request sent by a first terminal, a server receives a configurable protocol which is returned by the server and corresponds to an identifier of a reporting protocol in the data reporting request;
obtaining a configuration operation for the configurable protocol;
analyzing the configuration operation to obtain configuration information corresponding to the configurable protocol;
configuring the configurable protocol through the configuration information to obtain a configured protocol;
and sending the configured protocol to the server so that the server reports the data to be reported in the data reporting request by adopting the configured protocol.
An embodiment of the present application provides a data reporting apparatus, including:
the first receiving module is used for receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol;
the first acquisition module is used for acquiring the configurable protocol corresponding to the identifier from a configurable protocol library;
the first sending module is used for sending the configurable protocol to a second terminal and receiving configuration information which is returned by the second terminal and corresponds to the configurable protocol;
the first configuration module is used for configuring the configurable protocol through the configuration information to obtain a configured protocol;
and the data reporting module is used for reporting the data to be reported by adopting the configured protocol.
In some embodiments, the configurable protocol includes at least one configuration option; the configuration information comprises at least one option configuration information;
the first sending module is further configured to: and sending the at least one configuration option in the configurable protocol to the second terminal, and receiving option configuration information corresponding to each configuration option returned by the second terminal.
In some embodiments, the first configuration module is further to: updating the corresponding configuration options through each option configuration information; and configuring the updated configuration options as protocol constraint conditions in the configurable protocol to form the configured protocol.
In some embodiments, the apparatus further comprises: the third receiving module is used for receiving at least one piece of custom configuration information returned by the second terminal after the configurable protocol is sent to the second terminal; the determining module is used for determining a newly added configuration option corresponding to the custom configuration information; and the adding module is used for adding the newly added configuration option into the configured protocol.
In some embodiments, the configurable protocol library includes at least one type of configurable protocol, and the identifier includes a type of the reporting protocol; the first obtaining module is further configured to: and acquiring the configurable protocol corresponding to the type in the configurable protocol library.
In some embodiments, the data reporting module is further configured to: when the data to be reported comprises at least two fields, sequencing the at least two fields according to the configured protocol to form a field sequence; sequentially acquiring the corresponding data content of each field in the data to be reported according to the arrangement sequence of each field in the field sequence; splicing the acquired data contents to form a message to be reported; and reporting the message to be reported.
In some embodiments, the data reporting request further includes a platform identifier, and the data reporting module is further configured to: determining a target data acquisition platform according to the platform identification; mapping the data to be reported into a message to be reported by adopting the configured protocol; and reporting the message to be reported to the target data acquisition platform.
In some embodiments, the data reporting module is further configured to: determining the data type of the data to be reported, or determining the protocol type of the configurable protocol; determining a target data acquisition platform according to the data type or the protocol type; mapping the data to be reported into a message to be reported by adopting the configured protocol; and reporting the message to be reported to the target data acquisition platform.
In some embodiments, the configurable protocol includes a data check rule and an identity check rule, and the apparatus further includes: the verification module is used for correspondingly verifying the identity of the first terminal and verifying the data of the data to be reported by adopting the identity verification rule and the data verification rule in sequence;
the data reporting module is further configured to: and when the identity check and the data check both pass, reporting the data to be reported by adopting the configured protocol.
An embodiment of the present application provides a data reporting apparatus, including:
the second receiving module is used for receiving a configurable protocol which is returned by the server and corresponds to the identifier of the reporting protocol in the data reporting request after the server receives the data reporting request sent by the first terminal;
a second obtaining module, configured to obtain a configuration operation for the configurable protocol;
the analysis module is used for analyzing the configuration operation to obtain configuration information corresponding to the configurable protocol;
the second configuration module is used for configuring the configurable protocol through the configuration information to obtain a configured protocol;
and the second sending module is configured to send the configured protocol to the server, so that the server reports the data to be reported in the data reporting request by using the configured protocol.
An embodiment of the present application provides a data reporting apparatus, including:
a memory for storing executable instructions; and the processor is used for realizing the method when executing the executable instructions stored in the memory.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions for causing a processor to implement the above-mentioned method when executed.
The embodiment of the application has the following beneficial effects: the configurable protocol corresponding to the identifier in the data reporting request is acquired in the configurable protocol library, and the configurable protocol is configured according to the configuration information sent by the second terminal, so that the configured protocol is adopted to report the data to be reported.
Drawings
Fig. 1 is a schematic diagram of an alternative architecture of a data reporting system 10 according to an embodiment of the present application;
fig. 2A is an alternative structural diagram of the data reporting system 10 applied to the block chain system according to the embodiment of the present application;
FIG. 2B is an alternative block diagram according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a server 300 provided in an embodiment of the present application;
fig. 4 is an alternative flowchart of a data reporting method according to an embodiment of the present application;
fig. 5A is an alternative flowchart of a data reporting method according to an embodiment of the present application;
fig. 5B is an optional flowchart of the data reporting method according to the embodiment of the present application;
fig. 6 is an alternative flowchart of a data reporting method according to an embodiment of the present application;
fig. 7A is an alternative flowchart of a data reporting method according to an embodiment of the present application;
FIG. 7B is an interface diagram of a configuration information input interface 70 provided by an embodiment of the present application;
fig. 7C is an interface diagram of the configuration information input interface 71 provided in the embodiment of the present application;
fig. 8 is an alternative flowchart of a data reporting method according to an embodiment of the present application;
fig. 9 is a schematic interface diagram of a data reporting protocol configuration list according to an embodiment of the present application;
fig. 10 is a schematic diagram of a personalized service data reporting configuration interface according to an embodiment of the present application;
fig. 11 is an architecture diagram of a data reporting system according to an embodiment of the present application;
FIG. 12 is a schematic diagram of an authorization verification process provided by an embodiment of the present application;
fig. 13 is a schematic diagram of a data verification process provided in an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the embodiments of the present application belong. The terminology used in the embodiments of the present application is for the purpose of describing the embodiments of the present application only and is not intended to be limiting of the present application.
The embodiment of the application provides a data reporting method, and the reported data protocol is automatically mapped and the reported message is assembled through a data model by a model-driven method, so that the data reporting protocol does not need to be developed additionally, and the development efficiency of data reporting is greatly improved. Firstly, receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol; then, acquiring a configurable protocol corresponding to the identifier from a configurable protocol library; sending the configurable protocol to the second terminal, and receiving configuration information corresponding to the configurable protocol returned by the second terminal; finally, the configurable protocol is configured through the configuration information to obtain a configured protocol; and reporting the data to be reported by adopting a configured protocol. Therefore, the configurable protocol is configured through the configuration information, the personalized protocol suitable for the data to be reported is obtained, the personalized protocol is adopted to perform personalized reporting on the data to be reported, the reporting protocol does not need to be developed additionally, and the development efficiency of data reporting is greatly improved.
An exemplary application of the data reporting device provided in the embodiment of the present application is described below, and the data reporting device provided in the embodiment of the present application may be implemented as any terminal having data interaction, such as a notebook computer, a tablet computer, a desktop computer, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device), an intelligent robot, an e-book reader, and the like, or may be implemented as a server. In the following, an exemplary application when the data reporting apparatus is implemented as a server will be described.
Referring to fig. 1, fig. 1 is a schematic diagram of an alternative architecture of a data reporting system 10 according to an embodiment of the present disclosure. In order to support any data reporting application (e.g., shopping APP), the data reporting system 10 includes a first terminal 100, a network 200, a server 300, a data collection platform 400, and a second terminal 500. The first terminal 100 displays the commodity information by operating the shopping APP, the user can browse the displayed commodity information on the shopping APP and purchase the commodity, when the user purchases the first terminal, the user needs to report purchase data (namely, data to be reported), and then the first terminal 100 sends a data reporting request to the server 300 through the network 200, where the data reporting request includes the data to be reported and an identifier of a reporting protocol. The server 300 acquires a configurable protocol corresponding to the identifier from a configurable protocol library; the configurable protocol is sent to the second terminal 500 through the network 200, the second terminal 500 is a management end for performing protocol configuration operation, the second terminal 500 obtains the configuration operation of a user (which may be a developer), and generates configuration information corresponding to the configuration operation to the server 300; the server 300 configures the configurable protocol through the configuration information to obtain a configured protocol; and reports the data to be reported to the data acquisition platform 400 by adopting a configured protocol. In some embodiments, the second terminal 500 may display the received configurable protocol on the current interface 100-1, and, after the user performs the configuration operation on the second terminal 500, the second terminal 500 may further receive the configured protocol transmitted by the server 300 and display the configured protocol on the current interface 100-1 of the second terminal 500.
The data reporting system 10 related To this embodiment of the present application may also be a distributed system 201 of a blockchain system, see fig. 2A, where fig. 2A is an optional structural schematic diagram of the data reporting system 10 provided in this embodiment of the present application applied To the blockchain system, where the distributed system 201 may be a distributed node formed by a plurality of nodes 202 (any form of computing devices in an access network, such as a server and a user terminal) and a client 203, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and a P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
It should be noted that, in the distributed system 201, each node 202 corresponds to a first terminal 100, and on the first terminal 100, configured protocols when data to be reported of the first terminal 100 and finally data to be reported are collected, that is, the data to be reported and the data reporting protocol are collected, or configurable protocols in a configurable protocol library are also collected.
In the embodiment of the application, by collecting the data and the protocols and storing the data and the protocols in uplink, it can be ensured that the stored configurable protocol or the configured protocol can be directly acquired from the block chain system in the subsequent data reporting process, and a basic configurable protocol is provided for the subsequent protocol configuration process according to the stored configurable protocol or a configured protocol is directly provided for the subsequent data reporting process, so that the reporting of the data to be reported can be directly completed according to the configured protocol acquired from the block chain.
In the embodiment of the present application, in the blockchain system, data and a protocol of each first terminal are recorded and may not be changed, and new data to be reported and a new configured protocol are generated along with further operations of a user on the first terminal 100, so that there may be updates of the data and the protocol, and then, the data stored in the blockchain may also be updated. Therefore, the block chain system in the embodiment of the application can update the configurable protocol in time, so that the configurable protocol more suitable for the type of the current data to be reported can be provided during subsequent protocol configuration, and the configured protocol which is more accurate and personalized can be obtained according to the configurable protocol configuration, thereby realizing accurate and personalized reporting of the data to be reported.
Referring to the functions of each node in the blockchain system shown in fig. 2A, the functions related to each node in the blockchain system will be described in detail as follows:
1) routing, a basic function that a node has, is used to support communication between nodes. Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully. For example, the services implemented by the application include: 2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the electronic money remaining in the electronic money address. And 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations. 2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
4) Consensus (Consensus), a process in a blockchain network, is used to agree on transactions in a block among a plurality of nodes involved, the agreed block is to be appended to the end of the blockchain, and the mechanisms for achieving Consensus include Proof of workload (PoW, Proof of Work), Proof of rights and interests (PoS, Pr oof of stamp), Proof of equity authority (DPoS, released Proof of-of-stamp), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
Referring to fig. 2B, fig. 2B is an optional schematic diagram of a Block Structure (Block Structure) provided in this embodiment, each Block includes a hash value of a transaction record (hash value of the Block) stored in the Block and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a server 300 according to an embodiment of the present application, where the server 300 shown in fig. 3 includes: at least one processor 310, memory 350, at least one network interface 320, and a user interface 330. The various components in server 300 are coupled together by a bus system 340. It will be appreciated that the bus system 340 is used to enable communications among the components connected. The bus system 340 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 340 in fig. 3.
The Processor 310 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 330 includes one or more output devices 331, including one or more speakers and/or one or more visual display screens, that enable presentation of media content. The user interface 330 also includes one or more input devices 332, including user interface components to facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 350 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 350 optionally includes one or more storage devices physically located remote from processor 310. The memory 350 may include either volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 350 described in embodiments herein is intended to comprise any suitable type of memory. In some embodiments, memory 350 is capable of storing data, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below, to support various operations.
An operating system 351 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a network communication module 352 for communicating to other computing devices via one or more (wired or wireless) network interfaces 320, exemplary network interfaces 320 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
an input processing module 353 for detecting one or more user inputs or interactions from one of the one or more input devices 332 and translating the detected inputs or interactions.
In some embodiments, the apparatus provided in this embodiment of the present application may be implemented in software, and fig. 3 illustrates a data reporting apparatus 354 stored in the memory 350, where the data reporting apparatus 354 may be a data reporting apparatus in the server 300, and may be software in the form of programs and plug-ins, and includes the following software modules: the first receiving module 3541, the first obtaining module 3542, the first sending module 3543, the first configuring module 3544 and the data reporting module 3545 are logical modules, and thus may be arbitrarily combined or further separated according to the implemented functions. The functions of the respective modules will be explained below.
In other embodiments, the data reporting method provided in this embodiment may also be implemented by using a second terminal, where the second terminal (not shown in the figure) may also include: at least one processor, terminal memory, at least one network interface, and a user interface. The data reporting device stored in the memory of the second terminal may be a data reporting device in the second terminal, and the data reporting device may also be implemented in a software manner, and the data reporting device may be a data reporting device in the second terminal, which may be software in the form of programs, plug-ins, and the like, and includes the following software modules: the second sending module, the second receiving module, the parsing module, the second configuration module and the third sending module are also logical, and therefore any combination or further splitting can be performed according to the implemented functions.
In still other embodiments, the apparatus provided in this embodiment of the present Application may be implemented in hardware, and for example, the apparatus provided in this embodiment of the present Application may be a processor in the form of a hardware decoding processor, which is programmed to execute the data reporting method provided in this embodiment of the present Application, for example, the processor in the form of the hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The data reporting method provided in the embodiment of the present application will be described below with reference to an exemplary application and implementation of the server 300 provided in the embodiment of the present application. Referring to fig. 4, fig. 4 is an optional flowchart of a data reporting method provided in the embodiment of the present application, and the steps shown in fig. 4 will be described.
Step S401, a data reporting request sent by a first terminal is received, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol.
Here, the first terminal is a user terminal, and any application is run on the first terminal. The data to be reported may be any type of data, for example, the data may be operation data of the user on the first terminal, browsing data of the user on a shopping APP, purchasing data, chatting data of the user on an instant messaging APP, and the like. And after the user carries out interactive operation on the first terminal to generate data to be reported, sending a data reporting request to the server, wherein the data reporting request is used for requesting the data to be reported, and reporting the data to be reported to a target data acquisition platform.
The identifier of the reporting protocol may be any one of a name of the reporting protocol, a type of the reporting protocol, a size of the reporting protocol, and the like.
Step S402, a configurable protocol corresponding to the identification is obtained in a configurable protocol library.
Here, at least one configurable protocol is stored in the configurable protocol library, and different configurable protocols may correspond to different data to be reported, or correspond to different data reporting types, or correspond to different data acquisition platforms. Each configurable protocol has a protocol identification for uniquely identifying one of the configurable protocols in the configurable protocol library.
In the embodiment of the application, the server matches a corresponding configurable protocol in the configurable protocol library according to the identifier of the reported protocol, the configurable protocol includes at least one configurable option, and the configurable option is an option that can be configured by a user in a user-defined manner. In some embodiments, the configurable protocol may further include at least one configured option, where the configured option is an already configured option in the protocol, and the user may not configure the configured option by himself. The configurable options available are different for different types of configurable protocols.
Step S403, sending the configurable protocol to the second terminal, and receiving configuration information corresponding to the configurable protocol returned by the second terminal.
Here, the second terminal is a management terminal for configuring the configurable protocol, the server sends the configurable protocol to the second terminal, and the second terminal may display the configurable protocol on a current interface, where the configurable options in the configurable protocol may be displayed in a form of selection boxes, that is, for each configurable option, at least one option is provided as configuration information, and a user (which may be a developer) may select the configuration information corresponding to the configurable option from the at least one option according to a data reporting requirement of the user, or the configurable options in the configurable protocol may be displayed in a form of input boxes, that is, for each configurable option, an input box is provided, and the user may input the configuration information corresponding to the configuration option in the input box according to a data reporting requirement of the user. In some embodiments, the configuration information is input by the user in the input box, and the configuration information may be input by the user using any one of a physical keyboard, a virtual keyboard, or handwriting input, or the configuration information may be input by a voice input method, or the configuration information may be input by a gesture input method.
In some embodiments, after the second terminal receives the configurable protocol, only configurable options that require the user to configure may be displayed, or all configurable options and all configured options in the configurable protocol may be displayed.
And after the user inputs or selects the configuration information through the second terminal, the second terminal sends the configuration information to the server, so that the server can configure the configurable protocol according to the configuration information customized by the user.
In some embodiments, the first terminal and the second terminal may be the same terminal or different terminals.
And S404, configuring the configurable protocol through the configuration information to obtain the configured protocol.
Here, configuring the configurable protocol may be to update configuration information input or selected by a user into each configurable option in the configurable protocol, form a constraint condition corresponding to each configurable option through the configuration information, obtain the configured protocol, and implement constraint on a data reporting process.
And step S405, reporting the data to be reported by adopting a configured protocol.
And assembling fields in the data to be reported according to the constraint conditions of the configured protocol to form a report message, and reporting the report message to a target data acquisition platform.
The data reporting method provided by the embodiment of the application can be applied to the following scenes: the user runs a certain shopping APP on the first terminal, and the shopping APP contains various types of data to be reported, such as click reporting data, purchase reporting data, commodity information update reporting data, shopping cart reporting data, settlement reporting data and the like. For different data to be reported, due to different types of data and different data contents contained in the data, target data acquisition platforms for reporting the data may be different, and therefore, when the data is reported, reporting strategies are different. In addition, for a certain type of personalized data, for example, the data to be reported cannot be reported by using the common data reporting protocol or the new type of data to be reported, and it is obvious that the data reporting methods in the related technologies cannot realize the reporting of the data to be reported quickly and efficiently.
The method of the embodiment of the application provides the configurable protocol for each data to be reported, and developers can perform custom configuration on the configurable protocol according to the reporting requirement of the actual data to be reported, so that the server can report the data to be reported according to the protocol configured by the user in a custom manner.
According to the data reporting method provided by the embodiment of the application, the configurable protocol corresponding to the identifier in the data reporting request is acquired in the configurable protocol library, the configurable protocol is configured according to the configuration information sent by the second terminal, and therefore the configured protocol is adopted to report the data to be reported.
In some embodiments, the data reporting system at least includes a first terminal as a user side, a second terminal as a management side, and a server, where any application that needs to perform data reporting, such as a shopping APP, runs on the first terminal, where there exists any data to be reported, such as click reporting data, purchase reporting data, and commodity information update reporting data, in the shopping APP, and each data to be reported adopts a different reporting protocol when performing data reporting, or different reported data acquisition platforms, or different reported data interfaces, reported logic, and different reported storage modes. Then, the method of the embodiment of the present application may be adopted to report the data to be reported of any application.
Fig. 5A is a schematic view of an optional process of a data reporting method provided in the embodiment of the present application, where a shopping APP is run on a terminal as an example to describe the data reporting method in the embodiment of the present application, and as shown in fig. 5A, the method includes the following steps:
step S501, the first terminal runs a shopping APP, and displays a client interface of the shopping APP on a current interface.
Step S502, the first terminal receives user operation of a user on a client interface in the process of running the shopping APP.
Here, the user operation of the user on the client interface of the first terminal may be any user operation that can be performed on the client interface, such as a click operation, a browse operation, a purchase operation, a shopping cart adding operation, and an information update operation.
Step S503, the first terminal obtains data corresponding to the user operation, and determines the data as data to be reported.
Here, the data corresponding to the user operation is determined as the data to be reported, for example, the commodity information clicked by the user may be used as the data to be reported, or an article browsed by the user may be used as the data to be reported, or the frequency clicked by the user may be used as the data to be reported. The embodiment of the application does not limit the type of the data to be reported.
Step S504, the first terminal forms a data reporting request according to the data to be reported. The data reporting request comprises the data to be reported and the identification of the reporting protocol.
Here, after the data to be reported is determined, the identifier of the reporting protocol corresponding to the data to be reported is obtained. In the embodiment of the application, the target data acquisition platforms can be determined according to the types of the data to be reported, wherein each data acquisition platform corresponds to one type of reporting protocol, that is, a mapping relationship exists between the data acquisition platform and the identifier of the reporting protocol, so that the identifier of the target reporting protocol can be determined after the target data acquisition platform is determined.
In the embodiment of the application, after the identifier of the reporting protocol for reporting the data to be reported is determined, the data to be reported and the identifier of the reporting protocol are added to the data reporting request.
Step S505, the first terminal sends a data reporting request to the server.
Step S506, the server obtains the configurable protocol corresponding to the identifier in the data reporting request from the configurable protocol library.
Here, the configurable protocol library includes at least one configurable protocol, each configurable protocol having a protocol identification. After receiving the data reporting request, the server analyzes the data reporting request to obtain an identifier of a reporting protocol, matches the identifier of the reporting protocol with a protocol identifier of each configurable protocol in a configurable protocol library, and determines the corresponding configurable protocol as the configurable protocol corresponding to the identifier in the data reporting request when matching is successful.
Step S507, the server sends the configurable protocol to the second terminal.
Here, the configurable protocol includes at least one configurable option, and the server may send the entire configurable protocol to the second terminal, or send the configurable option in the configurable protocol to the second terminal.
And step S508, the second terminal displays the configurable protocol on the current interface.
Here, the second terminal may display the complete configurable protocol on the current interface, or may display only the configurable options. The second terminal may display each configurable option in the configurable protocol in a list on the current interface.
In step S509, the second terminal receives a configuration operation of the user during the process of displaying the configurable protocol.
Here, the configuration operation is a click operation, a selection operation, an input operation, and the like of a pointer for each configurable option, and the user may select or input for each configurable option on the current interface of the second terminal.
Step S510, the second terminal determines configuration information corresponding to the configuration operation of the user.
Here, after receiving the configuration operation by the user, it is determined that information selected or input by each configuration operation is configuration information. For example, the data to be reported includes a plurality of fields, and the user can input the sequence of each field in the configurable option, so that the sequence of each field is the configuration information.
Step S511, the second terminal sends the configuration information to the server.
And step S512, the server configures the configurable protocol through the configuration information to obtain the configured protocol.
Here, the server updates configuration information input or selected by the user to each configurable option in the configurable protocol, and forms a constraint condition corresponding to each configurable option through the configuration information, thereby obtaining the configured protocol and implementing constraint on the data reporting process.
And step S513, the server reports the data to be reported by adopting the configured protocol.
The configurable options of the configurable protocol are displayed on the interface of the second terminal, a user can directly operate on the interface of the second terminal to input or select the configuration information, so that the server can configure the configurable protocol according to the configuration information input or selected by the user, and thus, the user can more intuitively configure the configurable protocol on the current interface of the second terminal, the user-defined user configuration of the configurable protocol is realized, the configured protocol can be configured according to the user requirements, and the accurate report of the data to be reported is completed.
In other embodiments, the protocol configuration process and the data reporting process may be two independent processes, that is, the user may configure the data reporting protocol on the second terminal in advance, and then, when the first terminal needs to report the data to be reported, the configured data reporting protocol may be directly acquired, and the data is reported according to the acquired data reporting protocol.
Fig. 5B is a schematic view of an optional process of a data reporting method provided in the embodiment of the present application, and as shown in fig. 5B, in a protocol configuration process, the method includes the following steps:
in step S521, the server obtains the configurable protocol from the configurable protocol library.
In step S522, the server sends the configurable protocol to the second terminal.
Step S523, the second terminal displays the configurable protocol on the current interface.
Step S524, the second terminal receives the configuration operation of the user during the process of displaying the configurable protocol.
In step S525, the second terminal determines configuration information corresponding to the configuration operation of the user.
In step S526, the second terminal sends the configuration information to the server.
Step S527, the server configures the configurable protocol according to the configuration information, so as to obtain the configured protocol.
In step S528, the server stores the configured protocol in the configuration protocol library. The configuration protocol library stores at least one configured protocol, and each configured protocol has a protocol identifier.
In some embodiments, the description continues by taking an example of running a shopping APP on the first terminal for triggering data reporting. In the process of reporting data, the method comprises the following steps:
step S529, the first terminal runs a shopping APP, and displays a client interface of the shopping APP on a current interface.
Step S530, the first terminal receives user operation of a user on the client interface in the process of running the shopping APP.
Step S531, the first terminal obtains data corresponding to the user operation and determines the data as data to be reported.
Step S532, the first terminal forms a data reporting request according to the data to be reported. The data reporting request comprises the data to be reported and the identification of the reporting protocol.
Step S533, the first terminal sends a data reporting request to the server.
Step S534, the server obtains the configured protocol corresponding to the identifier of the reporting protocol from the configuration protocol library according to the identifier of the reporting protocol in the data reporting request.
Step S535, the server reports the data to be reported by using the configured protocol.
In other embodiments, the configurable protocol may also be configured by the second terminal, as shown in fig. 6, which is an optional flowchart of the data reporting method provided in this embodiment of the present application, and after step S509, the method includes the following steps:
step S601, parsing the configuration operation for the configurable protocol acquired by the second terminal to obtain configuration information corresponding to the configurable protocol.
Step S602, the second terminal configures the configurable protocol through the configuration information to obtain the configured protocol.
Step S603, the second terminal sends the configured protocol to the server.
Step S604, the server reports the data to be reported by adopting the configured protocol.
In the embodiment of the application, after the second terminal acquires the configuration information selected or input by the user, the configuration information is not sent to the server, but the second terminal configures the configurable protocol by itself, so that the configuration process of the protocol is distributed to the second terminals, and the server is not used for uniformly configuring the protocol.
In some embodiments, the second terminal configures the configurable protocol to obtain the configured protocol, or after the server configures the configurable protocol to obtain the configured protocol, the server obtains the configured protocol and stores the configured protocol in the block chain system. In the subsequent data reporting process, if the data completely identical to the current data to be reported exists, the configured protocol can be directly acquired from the block chain system for data reporting; or, in other embodiments, if there is new data to be reported that is similar to the current data to be reported, the configured protocol may also be acquired from the block chain system, the acquired configured protocol is used as a new configurable protocol, and the protocol configuration process of the embodiment of the present application is adopted to further configure the new configurable protocol. Therefore, as the new configurable protocol is a configured protocol, only a small part of configurable options are configured in the protocol configuration process, that is, only the configurable options corresponding to the difference part between the new data to be reported and the current data to be reported need to be configured, so that the protocol configuration efficiency is improved.
Fig. 7A is an optional flowchart of a data reporting method provided in the embodiment of the present application, and as shown in fig. 7A, the method includes the following steps:
step S701, the first terminal obtains data to be reported and forms a data reporting request according to the data to be reported. The data reporting request comprises the data to be reported and the identification of the reporting protocol.
Here, the identifier of the reporting protocol includes a type of the reporting protocol, for example, the identifier of the reporting protocol may be a purchase reporting protocol, a click reporting protocol, a shopping cart reporting protocol, or the like.
Step S702, the first terminal sends a data reporting request to the server.
Step S703, the server obtains a configurable protocol corresponding to the type from the configurable protocol library.
Here, the configurable protocol library includes at least one type of configurable protocol. And when the server receives the data reporting request and analyzes the type of the reporting protocol corresponding to the reporting protocol, screening the configurable protocol of the type from the configurable protocol library.
In some embodiments, when the configurable protocol of the type is screened out to be multiple, one of the multiple configurable protocols may be selected as the final determined configurable protocol. For example, a configurable protocol corresponding to the type of the data to be reported may be matched out of the plurality of configurable protocols according to the type of the data to be reported; or determining one configurable protocol with the development and creation time closest to the current time as a final configurable protocol; or the identifications of the plurality of configurable protocols are all sent to the user, and the user selects one of the plurality of configurable protocols as the final configurable protocol.
Step S704, the server sends at least one configuration option in the configurable protocol to the second terminal.
Here, after determining the final configurable protocol, the server obtains at least one configuration option in the configurable protocol, where the configuration option includes a configurable option and a configured option. And the server sends the configurable options to the second terminal, or sends both the configurable options and the configured options to the second terminal.
Step S705, the second terminal obtains option configuration information corresponding to each configuration option.
The option configuration information is information selected or input by a user for each configuration option, the option configuration information and the configuration options have a mapping relation, and each configuration option corresponds to one option configuration information.
Step S706, the second terminal sends the option configuration information corresponding to each configuration option to the server.
In step S707, the server updates the corresponding configuration option through each option configuration information.
Here, each option configuration information is updated to the corresponding configuration option according to the mapping relationship between the option configuration information and the configuration options.
In step S708, the server configures the updated configuration options as protocol constraints in the configurable protocol to form a configured protocol.
With continued reference to fig. 7A, in some embodiments, the method further includes the steps of:
step S709, after sending the configurable protocol to the second terminal, the server receives at least one piece of custom configuration information returned by the second terminal.
Here, the custom configuration information is additional configuration information input by a user, and the custom configuration information has no corresponding configuration option in the configurable protocol, or all the custom configuration information corresponds to one custom configuration option in the configurable protocol.
For the case that the custom configuration information has no corresponding configuration option in the configurable protocol: for example, a plurality of configuration options a1, a2, B1 and B2 are included in the configurable protocol, wherein configuration options a1 and a2 are configurable options, and configuration options B1 and B2 are configured options. As shown in fig. 7B, which is an interface diagram of the configuration information input interface 70 provided in the embodiment of the present application, only the configuration options a1 and a2 may be sent to the second terminal, and then the second terminal displays the option names of the configuration options a1 and a2 in the current configuration information input interface 70, and provides the input box 701 of the configuration option a1 and the selectable item 702 of the configuration option a2, and the user may input option configuration information corresponding to the configuration option a1, or select option configuration information corresponding to the configuration option a 2. In addition, an input box 703 is provided on the display interface of the second terminal, which may display a reminding text "please input other custom configuration information", and if the user has other data reporting conditions or requirements, another custom configuration information may be input in the input box 703. Therefore, the information returned by the second terminal to the server includes: option configuration information corresponding to configuration options a1 and a2, and custom configuration information.
For the case that all the custom configuration information corresponds to one custom configuration option in the configurable protocol: for example, the configurable protocol includes a plurality of configuration options a1, a2, B1 and B2, and a custom configuration option C, wherein configuration options a1 and a2 are configurable options, and configuration options B1 and B2 are configured options. As shown in fig. 7C, which is an interface diagram of the configuration information input interface 71 provided in this embodiment of the present application, only the configuration options a1 and a2 and the custom configuration option C may be sent to the second terminal, then the second terminal displays the option names of the configuration options a1 and a2 and displays the option name of the custom configuration option C in the current configuration information input interface 71, and provides the input box 711 of the configuration option a1, the selectable item 712 of the configuration option a2 and the input box 713 of the custom configuration option C, and the user may input option configuration information corresponding to the configuration option a1, select option configuration information corresponding to the configuration option a2, and input one or more pieces of custom configuration information corresponding to the custom configuration option C. Therefore, the information returned by the second terminal to the server includes: option configuration information corresponding to configuration options a1 and a2, and custom configuration information.
In step S710, the server determines a new configuration option corresponding to the custom configuration information.
Here, the newly added configuration option corresponds to the above-mentioned custom configuration option, and is a new configuration option input by the user in a custom manner.
Step S711, the server adds the new configuration option to the configured protocol.
Step S712, the server reports the data to be reported by using the configured protocol.
According to the data reporting method provided by the embodiment of the application, in the process of configuring the configurable protocol by the user, a user-defined configuration option interface is provided, and the user can add new configuration options in a user-defined manner, so that the finally formed configured protocol not only includes the original configuration options of the configurable protocol, but also includes new configuration options defined by the user. Therefore, a protocol meeting the personalized requirements of the user can be configured according to the personalized data reporting requirements of the user, the personalized reporting of the data to be reported is completed, and the user data reporting experience is improved; and because the user-defined configuration option interface is provided, when a new data reporting protocol is formed, the development of the new data reporting protocol can be completed only by inputting user-defined configuration information into the user-defined configuration option interface, so that the data reporting interface and the protocol do not need to be re-developed, and the development efficiency of data reporting is further improved.
In some embodiments, the configurable protocol further includes a data check rule and an identity check rule, and based on fig. 4, as shown in fig. 8, the configurable protocol is an optional flow diagram of the data reporting method provided in the embodiment of the present application, and the method further includes the following steps:
step S801, sequentially using an identity verification rule and a data verification rule, correspondingly performing identity verification on the first terminal and performing data verification on the data to be reported.
Here, the identity verification of the first terminal may be that an account number input by the user on the first terminal is verified, and if the account number and the password input by the user match with a pre-stored account number and password, the identity verification is passed. The data verification refers to verifying the legality of the data to be reported, verifying the content of the data to be reported, and if the content of the data to be reported is legal, the data verification is passed.
Step S802, judging whether the identity check is passed. If the judgment result is yes, executing step S803; if the judgment result is negative, the flow is ended.
In step S803, it is determined whether the data check is passed. If the judgment result is yes, executing step S405; if the judgment result is negative, the flow is ended.
Referring to fig. 8, in some embodiments, step S405 may be implemented by:
step S804, when the data to be reported comprises at least two fields, the at least two fields are sequenced according to the configured protocol to form a field sequence.
Here, the configured protocol defines an arrangement order of each field, and after the configured protocol is configured, at least two fields of the data to be reported are sorted according to the arrangement order of each field defined in the configured protocol.
Step S805, sequentially obtaining data content of each field in the data to be reported according to the arrangement order of each field in the field sequence.
Step S806, concatenate the acquired data content to form a report to be reported.
Here, the obtained data contents are sequentially spliced according to the sequence of the fields in the field sequence, that is, the sequence of the data contents in the message to be reported is the same as the sequence of the fields in the corresponding field sequence.
Step S807, report the message to be reported.
In the embodiment of the application, the arrangement sequence of each field in the data to be reported is regulated through the configured protocol, and then the data content of the fields in the data to be reported is spliced to form the message to be reported, so that the messages to be reported with a certain sequence can be spliced according to the reporting requirements of users, and the accurate reporting of the data to be reported is realized.
In some embodiments, the data reporting request further includes a platform identifier, please continue referring to fig. 8, and step S405 may also be implemented by the following steps:
and step S808, determining a target data acquisition platform according to the platform identification.
And step S809, mapping the data to be reported into a message to be reported by adopting a configured protocol.
Here, the data to be reported is mapped according to the specification of the configured protocol, for example, the data to be reported is mapped according to the sequence of each field in the data to be reported specified by the configured protocol, so as to obtain the message to be reported.
And step S810, reporting the message to be reported to a target data acquisition platform.
In the embodiment of the application, when the first terminal sends the data reporting request, the target data acquisition platform for data reporting is specified, so that the target data acquisition platform can be determined according to the platform identifier included in the data reporting request, and the message to be reported obtained by mapping is reported to the determined target data acquisition platform.
Referring to fig. 8, in some embodiments, step S405 can be further implemented by:
step S811, determining a data type of the data to be reported, or determining a protocol type of the configurable protocol.
And step S812, determining a target data acquisition platform according to the data type or the protocol type.
Here, each data collection platform has a mapping relationship with one data type, or each data collection platform has a mapping relationship with one protocol type. And when the data type of the data to be reported is determined, determining a target data acquisition platform from the plurality of data acquisition platforms according to the mapping relation between the data acquisition platforms and the data type, or when the protocol type of the configurable protocol is determined, determining the target data acquisition platform from the plurality of data acquisition platforms according to the mapping relation between the data acquisition platforms and the protocol type.
Step S813, mapping the data to be reported into a message to be reported by using the configured protocol.
Step S814, reporting the message to be reported to the target data collection platform.
The data reporting method provided by the embodiment of the application determines a target data acquisition platform for reporting data to be reported, maps the data to be reported into a report message according to a configured protocol, and reports the report message to the target data acquisition platform, so that the configured protocol specifies a data mapping mode and can map the data to be reported into the report message meeting the requirements of the target data acquisition platform, and therefore the configured protocol can accurately report the data to be reported, and the protocol can be configured by a user in a user-defined manner, so that personalized reporting of the data to be reported can be realized, and development efficiency of data reporting is improved.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described.
The embodiment of the application provides a data reporting method, and the reported data reporting protocol is automatically mapped and the reported message is assembled through a data model by a model-driven method, so that additional protocol development is not needed, and the development efficiency of data reporting is greatly improved.
Fig. 9 is an interface schematic diagram of a data reporting protocol configuration list provided in the embodiment of the present application, and as shown in fig. 9, when data reporting is required, a data reporting protocol configuration list 90 is displayed on a current interface of a terminal (that is, the second terminal), and a user can view all configurations of data reporting protocols in a list form.
The data reporting protocol configuration list includes at least one data reporting protocol (i.e., configurable protocol) 901, and a row corresponding to each data reporting protocol includes a sequence number, a key value, a service name (i.e., an identifier of the configurable protocol), an updater, update time, and operation options, where the operation options at least include operation options such as editing, publishing, and going offline, and the data reporting protocol configuration list 90 further includes a newly added configuration option 901 for implementing the newly added data reporting protocol.
When a user clicks a selection editing option to modify any data reporting protocol, or when a user clicks a new configuration option 901 to add a new data reporting protocol, the method enters a personalized service data reporting configuration interface 1001, as shown in fig. 10, which is a schematic diagram of a personalized service data reporting configuration interface provided in the embodiment of the present application, and in the personalized service data reporting configuration interface 1001, a service name of the data reporting protocol selected by the user and data to be reported are displayed, and in some embodiments, the service name may be a fixed service name of the data reporting protocol selected by the user, or may also be an editable service name, which is used to input a service name of the new data reporting protocol. The personalized service data reporting configuration interface 1001 may further include at least: the method comprises the following configuration options of a secret key, a platform protocol ID, a platform protocol generation header file, a platform reported data list, a multidimensional protocol ID, a multidimensional reported data list and the like. And the user clicks and selects parameters in each configuration option to obtain configuration information. After the user has determined the configuration information for all configuration options, the configuration of the configurable protocol is completed by clicking on the confirm modify button 1002.
In some embodiments, taking data reporting in a platform of an instant messaging application as an example, the embodiments of the present application are described as follows: the user can add or modify the configuration of the reporting protocol to a Micro Message application (Micro Message APP), wherein the adding or modifying of the configuration of the reporting protocol by the user at least comprises: and (4) service name: the Chinese name or English name used for uniquely identifying the reporting protocol; reporting data in a JSON mode (JSON Schema): the data model of the data to be reported is used for checking the legality of the data to be reported; and (3) secret key: the system is used for data reporting authentication and judging whether a reporter has authority to report; protocol ID/data list of micro-trusted data (mmdata): the data mapping module is used for mapping the data to be reported to the report message; panorama monitoring protocol ID/data list: for mapping the data to be reported to the monitoring system (i.e. the data acquisition platform).
Fig. 11 is an architecture diagram of a data reporting system according to an embodiment of the present application, and as shown in fig. 11, the data reporting method may be implemented by a personalized data reporting service 1101 on a second terminal or a server. The second terminal may Interface with the personalized data reporting service 1101 in different access manners, for example, Interface with a public Gateway Interface (cgi) for data reporting with access manners such as hypertext Transfer Protocol over Secure Socket Layer 1102 and long connection 1103, or Interface with the personalized data reporting service 1101 in a small program cloud function 1104 and cloud data with access manners such as hypertext Transfer Protocol over Secure Socket Layer 1102 and long connection 1103.
In this embodiment, the personalized data reporting service 1101 performs authorization check 1106 on the authority of a reporter by using a key in a reporting protocol configuration 1105 (i.e. personalized service configuration); the personalized data reporting service 1101 performs data verification 1107 on the legality of the reported data through the reported data JSON Schema in the reporting protocol configuration 1105; the personalized data reporting service 1101 automatically maps the reported data into a reported message through the mapping configuration in the reporting protocol configuration 1105, and reports the reported message to a specific data acquisition platform, for example, reporting modes such as mmdata reporting 1108, multidimensional monitoring reporting 1109, PLOG reporting 1110 and the like in fig. 11, which respectively correspond to data acquisition platforms such as "mmdata reporting platform", "multidimensional monitoring reporting platform", and "PLOG reporting platform".
After the data reporting is completed, the data can be viewed on the data acquisition platform, for example, the logs viewing 1111, the multidimensional monitoring 1112 and the log query 1113 are respectively performed on the "mmdata reporting platform", "multidimensional monitoring reporting platform" and "PLOG reporting platform".
In some embodiments, the authorization check 1106 may be performed by comparing the signature of the presenter with the signature of the personalized reporting service to determine whether the presenter has permission to report. As shown in fig. 12, which is a schematic diagram of an authorization verification process provided in the embodiment of the present application, in step S121, a caller (which may be a data reporter) calculates a Hash-based Message Authentication Code (HMAC) signature associated with a key of the caller; then, in step S122, the report data and the HMAC signature are sent to the personalized data reporting service 1101; finally, in step S123, the key is decrypted and the HMAC signature is verified, thereby completing the unified encryption and decryption for the caller.
In some embodiments, in the data verification 1107 process, the reported data may be subjected to validity verification through JSON Schmea. As shown in fig. 13, which is a schematic view of a data verification process provided in this embodiment of the application, for different data to be reported 1 and data to be reported 2 … …, data validity verification may be performed by respectively using a data verification Schmea1 and a data verification Schmea2 … …, namely, a data verification Schmea N.
It should be noted that the data verification 1107 process in the embodiment of the present application may be data verification of a protocol dimension, that is, data verification of data to be reported is performed for one protocol.
In some embodiments, during the dynamic assembly of the reported message, the mmdata report may be assembled and reported by configuring the order of the reported fields. For example, in mmdata reporting, a report packet may include a common field and a custom field when assembled, where the common field has 44 bytes, and the custom field may be separated by "or" a space.
In the multidimensional monitoring report, the multidimensional monitoring message may be assembled and reported by configuring a field to be reported, for example, the multidimensional monitoring message may be assembled and reported in a key-value (key-value) form, and the following is a code for assembling and reporting the multidimensional monitoring message in the key-value form in the embodiment of the present application:
EyeReportItem item;
Item.Set(“field”,field_value);
Item.Report();
in PLOG reporting, the original data (i.e. the original data to be reported) can be directly reported, wherein the log printing is as follows: PLOG _ RUN (fmt, argv …).
In the embodiment of the application, a common reporting logic (namely a data reporting protocol) can be compiled by analyzing reporting protocols of different data acquisition platforms, and dynamic assembly of the reported message is realized by mapping a configuration rule.
In some embodiments, the mapping configuration rule of the data reporting protocol may be: configuring which field is the first one and which field is the second one, and concatenating the fields according to the sequence to form a report message, for example, in the mmdata report data list, the sequence of each field may be configured, then the contents of the fields may be automatically selected from the contents of the data to be reported according to the configured sequence, and finally, the contents of the fields may be concatenated according to the sequence of the fields to form the report message.
In some embodiments, the data to be reported may be reported to different data acquisition platforms, and the message format required by each data acquisition platform is different, so the data reporting protocol may further include conversion of the message format, and report the format of the reported message after converting the format of the reported message into the format required by the corresponding data acquisition platform. In the embodiment of the application, different data reporting protocols exist corresponding to different data acquisition platforms, but after the personalized data reporting service is accessed once, the data reporting of different data acquisition platforms can be completed by configuring different data reporting protocols, and different data reporting protocols do not need to be further developed.
In some embodiments, the personalized data reporting service connects each data collection platform in advance, and a configurable data reporting protocol is provided inside the personalized data reporting service, that is, a configurable option is provided, for example, for both click reporting and purchase reporting, a corresponding data reporting protocol may be configured in the personalized data reporting service. For example, what the order of each field is and the constraint rule of each field can be configured for a plurality of fields reported by clicking, so that a user can configure the order of each field and the constraint condition of each field in the personalized data reporting service, and can automatically splice the data in the messages reported by clicking according to the format of a target data acquisition platform and finish reporting. Further, after other different protocols are accessed, for example, after the protocol of returning goods and adding a shopping cart is added, any other interface is not developed at this time, and only the configuration of the protocol needs to be increased, that is, the protocol of the new configuration is added, and the content of the protocol of the new configuration is uploaded.
The personalized data reporting service in the embodiment of the application can realize self-definition of a protocol for data desired by a user, namely, the data reporting protocol can be self-defined through the personalized data reporting service, and can define self-defined rules such as reported contents and what reporting rules of the contents are.
The data reporting method provided by the embodiment of the application can realize the configuration reporting of the data to be reported through one access of the personalized data reporting service, namely, after the reporting interface is developed for the second terminal and the personalized reporting service is accessed, the reporting of different protocol data can be realized through configuration subsequently, and the reporting interface and the data reporting protocol do not need to be developed additionally, so that the data reporting development efficiency can be improved, and the reporting of the personalized data can be supported.
Continuing with the exemplary structure of the data reporting device 354 implemented as a software module provided in this embodiment, in some embodiments, as shown in fig. 3, the software module stored in the data reporting device 354 of the memory 350 may be a data reporting device in the server 300, and includes:
a first receiving module 3541, configured to receive a data reporting request sent by a first terminal, where the data reporting request includes data to be reported and an identifier of a reporting protocol; a first obtaining module 3542, configured to obtain a configurable protocol corresponding to the identifier in a configurable protocol library; a first sending module 3543, configured to send the configurable protocol to a second terminal, and receive configuration information corresponding to the configurable protocol returned by the second terminal; a first configuration module 3544, configured to configure the configurable protocol according to the configuration information, so as to obtain a configured protocol; a data reporting module 3545, configured to report the data to be reported by using the configured protocol.
In some embodiments, the configurable protocol includes at least one configuration option; the configuration information comprises at least one option configuration information; the first sending module is further configured to: and sending the at least one configuration option in the configurable protocol to the second terminal, and receiving option configuration information corresponding to each configuration option returned by the second terminal.
In some embodiments, the first configuration module is further to: updating the corresponding configuration options through each option configuration information; and configuring the updated configuration options as protocol constraint conditions in the configurable protocol to form the configured protocol.
In some embodiments, the apparatus further comprises: the third receiving module is used for receiving at least one piece of custom configuration information returned by the second terminal after the configurable protocol is sent to the second terminal; the determining module is used for determining a newly added configuration option corresponding to the custom configuration information; and the adding module is used for adding the newly added configuration option into the configured protocol.
In some embodiments, the configurable protocol library includes at least one type of configurable protocol, and the identifier includes a type of the reporting protocol; the first obtaining module is further configured to: and acquiring the configurable protocol corresponding to the type in the configurable protocol library.
In some embodiments, the data reporting module is further configured to: when the data to be reported comprises at least two fields, sequencing the at least two fields according to the configured protocol to form a field sequence; sequentially acquiring the corresponding data content of each field in the data to be reported according to the arrangement sequence of each field in the field sequence; splicing the acquired data contents to form a message to be reported; and reporting the message to be reported.
In some embodiments, the data reporting request further includes a platform identifier, and the data reporting module is further configured to: determining a target data acquisition platform according to the platform identification; mapping the data to be reported into a message to be reported by adopting the configured protocol; and reporting the message to be reported to the target data acquisition platform.
In some embodiments, the data reporting module is further configured to: determining the data type of the data to be reported, or determining the protocol type of the configurable protocol; determining a target data acquisition platform according to the data type or the protocol type; mapping the data to be reported into a message to be reported by adopting the configured protocol; and reporting the message to be reported to the target data acquisition platform.
In some embodiments, the configurable protocol includes a data check rule and an identity check rule, and the apparatus further includes: the verification module is used for correspondingly verifying the identity of the first terminal and verifying the data of the data to be reported by adopting the identity verification rule and the data verification rule in sequence; the data reporting module is further configured to: and when the identity check and the data check both pass, reporting the data to be reported by adopting the configured protocol.
In other embodiments, the software module stored in the data reporting device in the terminal memory may also be a data reporting device in the second terminal, including: the second receiving module is used for receiving a configurable protocol which is returned by the server and corresponds to the identifier of the reporting protocol in the data reporting request after the server receives the data reporting request sent by the first terminal; a second obtaining module, configured to obtain a configuration operation for the configurable protocol; the analysis module is used for analyzing the configuration operation to obtain configuration information corresponding to the configurable protocol; the second configuration module is used for configuring the configurable protocol through the configuration information to obtain a configured protocol; and the second sending module is configured to send the configured protocol to the server, so that the server reports the data to be reported in the data reporting request by using the configured protocol.
It should be noted that the description of the apparatus in the embodiment of the present application is similar to the description of the method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description is not repeated. For technical details not disclosed in the embodiments of the apparatus, reference is made to the description of the embodiments of the method of the present application for understanding.
Embodiments of the present application provide a storage medium having stored therein executable instructions, which when executed by a processor, will cause the processor to perform a method provided by embodiments of the present application, for example, the method as illustrated in fig. 4.
In some embodiments, the storage medium may be a computer-readable storage medium, such as a Ferroelectric Random Access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), a charged Erasable Programmable Read Only Memory (EEPROM), a flash Memory, a magnetic surface Memory, an optical disc, or a Compact disc Read Only Memory (CD-ROM), and the like; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (H TML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code). By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (14)

1. A data reporting method is characterized by comprising the following steps:
receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol;
acquiring a configurable protocol corresponding to the identifier from a configurable protocol library;
sending the configurable protocol to a second terminal, and receiving configuration information corresponding to the configurable protocol returned by the second terminal;
configuring the configurable protocol through the configuration information to obtain a configured protocol;
and reporting the data to be reported by adopting the configured protocol.
2. The method of claim 1, wherein the configurable protocol comprises at least one configuration option; the configuration information comprises at least one option configuration information;
the sending the configurable protocol to a second terminal and receiving configuration information corresponding to the configurable protocol returned by the second terminal includes:
and sending the at least one configuration option in the configurable protocol to the second terminal, and receiving option configuration information corresponding to each configuration option returned by the second terminal.
3. The method of claim 2, wherein the configuring the configurable protocol through the configuration information to obtain a configured protocol comprises:
updating the corresponding configuration options through each option configuration information;
and configuring the updated configuration options as protocol constraint conditions in the configurable protocol to form the configured protocol.
4. The method of claim 3, further comprising:
after the configurable protocol is sent to a second terminal, receiving at least one piece of custom configuration information returned by the second terminal;
determining a newly added configuration option corresponding to the user-defined configuration information;
and adding the newly added configuration option into the configured protocol.
5. The method of claim 1, wherein the configurable protocol library comprises at least one type of configurable protocol, and the identifier comprises a type of the reporting protocol;
the obtaining of the configurable protocol corresponding to the identifier in the configurable protocol library includes:
and acquiring the configurable protocol corresponding to the type in the configurable protocol library.
6. The method of claim 1, wherein reporting the data to be reported by using the configured protocol comprises:
when the data to be reported comprises at least two fields, sequencing the at least two fields according to the configured protocol to form a field sequence;
sequentially acquiring the corresponding data content of each field in the data to be reported according to the arrangement sequence of each field in the field sequence;
splicing the acquired data contents to form a message to be reported;
and reporting the message to be reported.
7. The method of claim 1, wherein the data reporting request further includes a platform identifier, and reporting the data to be reported by using the configured protocol includes:
determining a target data acquisition platform according to the platform identification;
mapping the data to be reported into a message to be reported by adopting the configured protocol;
and reporting the message to be reported to the target data acquisition platform.
8. The method of claim 1, wherein reporting the data to be reported by using the configured protocol comprises:
determining the data type of the data to be reported, or determining the protocol type of the configurable protocol;
determining a target data acquisition platform according to the data type or the protocol type;
mapping the data to be reported into a message to be reported by adopting the configured protocol;
and reporting the message to be reported to the target data acquisition platform.
9. The method according to any one of claims 1 to 8, wherein the configurable protocol includes a data check rule and an identity check rule, and the method further comprises:
sequentially adopting the identity verification rule and the data verification rule to correspondingly verify the identity of the first terminal and verify the data to be reported;
and when the identity check and the data check both pass, reporting the data to be reported by adopting the configured protocol.
10. A data reporting method is applied to a second terminal, and comprises the following steps:
after receiving a data reporting request sent by a first terminal, a server receives a configurable protocol which is returned by the server and corresponds to an identifier of a reporting protocol in the data reporting request;
obtaining a configuration operation for the configurable protocol;
analyzing the configuration operation to obtain configuration information corresponding to the configurable protocol;
configuring the configurable protocol through the configuration information to obtain a configured protocol;
and sending the configured protocol to the server so that the server reports the data to be reported in the data reporting request by adopting the configured protocol.
11. A data reporting apparatus, comprising:
the first receiving module is used for receiving a data reporting request sent by a first terminal, wherein the data reporting request comprises data to be reported and an identifier of a reporting protocol;
the first acquisition module is used for acquiring the configurable protocol corresponding to the identifier from a configurable protocol library;
the first sending module is used for sending the configurable protocol to a second terminal and receiving configuration information which is returned by the second terminal and corresponds to the configurable protocol;
the first configuration module is used for configuring the configurable protocol through the configuration information to obtain a configured protocol;
and the data reporting module is used for reporting the data to be reported by adopting the configured protocol.
12. A data reporting apparatus, comprising:
the second receiving module is used for receiving a configurable protocol which is returned by the server and corresponds to the identifier of the reporting protocol in the data reporting request after the server receives the data reporting request sent by the first terminal;
a second obtaining module, configured to obtain a configuration operation for the configurable protocol;
the analysis module is used for analyzing the configuration operation to obtain configuration information corresponding to the configurable protocol;
the second configuration module is used for configuring the configurable protocol through the configuration information to obtain a configured protocol;
and the second sending module is configured to send the configured protocol to the server, so that the server reports the data to be reported in the data reporting request by using the configured protocol.
13. A data reporting device, comprising:
a memory for storing executable instructions; a processor for implementing the method of any one of claims 1 to 9, or claim 10, when executing executable instructions stored in the memory.
14. A computer-readable storage medium having stored thereon executable instructions for causing a processor to perform the method of any one of claims 1 to 9, or claim 10, when executed.
CN202010535303.9A 2020-06-12 2020-06-12 Data reporting method, device, equipment and computer readable storage medium Active CN113810340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010535303.9A CN113810340B (en) 2020-06-12 2020-06-12 Data reporting method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010535303.9A CN113810340B (en) 2020-06-12 2020-06-12 Data reporting method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113810340A true CN113810340A (en) 2021-12-17
CN113810340B CN113810340B (en) 2024-04-09

Family

ID=78892096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010535303.9A Active CN113810340B (en) 2020-06-12 2020-06-12 Data reporting method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113810340B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277144A (en) * 2022-07-20 2022-11-01 南京南瑞信息通信科技有限公司 Link aggregation data transmission method, system, device and storage medium
CN116781744A (en) * 2023-07-11 2023-09-19 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150005901A1 (en) * 2013-06-27 2015-01-01 International Business Machines Corporation Iterative learning for reliable sensor sourcing systems
CN107544837A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Cloud service device performance data acquisition system, method and apparatus
CN108696381A (en) * 2017-04-12 2018-10-23 腾讯科技(深圳)有限公司 A kind of protocol configuration method and device
CN109218417A (en) * 2018-09-04 2019-01-15 浙江中控技术股份有限公司 A kind of data capture method and device
US20190094840A1 (en) * 2017-09-25 2019-03-28 Schlumberger Technology Corporation System and method for network integration of sensor devices
CN109547234A (en) * 2018-10-18 2019-03-29 广州市百果园信息技术有限公司 A kind of data processing, report method, device, equipment and storage medium
CN110061861A (en) * 2019-03-21 2019-07-26 广东瑞恩科技有限公司 Internet protocol configuration method, device, equipment and computer readable storage medium
CN110620674A (en) * 2018-06-20 2019-12-27 中兴通讯股份有限公司 Configuration method of monitoring system and computer equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150005901A1 (en) * 2013-06-27 2015-01-01 International Business Machines Corporation Iterative learning for reliable sensor sourcing systems
CN107544837A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Cloud service device performance data acquisition system, method and apparatus
CN108696381A (en) * 2017-04-12 2018-10-23 腾讯科技(深圳)有限公司 A kind of protocol configuration method and device
US20190094840A1 (en) * 2017-09-25 2019-03-28 Schlumberger Technology Corporation System and method for network integration of sensor devices
CN110620674A (en) * 2018-06-20 2019-12-27 中兴通讯股份有限公司 Configuration method of monitoring system and computer equipment
CN109218417A (en) * 2018-09-04 2019-01-15 浙江中控技术股份有限公司 A kind of data capture method and device
CN109547234A (en) * 2018-10-18 2019-03-29 广州市百果园信息技术有限公司 A kind of data processing, report method, device, equipment and storage medium
CN110061861A (en) * 2019-03-21 2019-07-26 广东瑞恩科技有限公司 Internet protocol configuration method, device, equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277144A (en) * 2022-07-20 2022-11-01 南京南瑞信息通信科技有限公司 Link aggregation data transmission method, system, device and storage medium
CN115277144B (en) * 2022-07-20 2024-02-20 南京南瑞信息通信科技有限公司 Link aggregation data transmission method, system, device and storage medium
CN116781744A (en) * 2023-07-11 2023-09-19 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal
CN116781744B (en) * 2023-07-11 2024-03-01 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal

Also Published As

Publication number Publication date
CN113810340B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN110428216B (en) Business process control method, device, computer equipment and storage medium
CN110495132B (en) System and method for generating, uploading and executing code blocks within distributed network nodes
Papadodimas et al. Implementation of smart contracts for blockchain based IoT applications
US8667383B2 (en) Unified electronic forms management system
EP3762882B1 (en) System and method for establishing common request processing
US9098314B2 (en) Systems and methods for web based application modeling and generation
US11580097B2 (en) Blockchain-based systems and methods for communicating, storing and processing data over a blockchain network
TW201439792A (en) System and method for accessing database
TWI729763B (en) System and method for collecting and validating web traffic data
US20180165180A1 (en) Batch File Creation Service
CN113810340B (en) Data reporting method, device, equipment and computer readable storage medium
KR102361227B1 (en) An apparatus for recognizing natural language of instant message and method thereof
CN110597908A (en) Credit investigation recording method, device and storage medium based on block chain
US20210124752A1 (en) System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface
JP2007272518A (en) Customer database management device and customer database management program
CN112995014B (en) Method and device for mass sending of messages
US20210326315A1 (en) Information Recommendation System and Method for Recommending Information
CN113342667A (en) Data processing method, data processing device, electronic equipment and computer readable storage medium
US10681014B2 (en) Regulate content playlists
KR101770352B1 (en) Electronic document service providing system
TWI590158B (en) Home system establishing method and server using the same
US11630946B2 (en) Documentation augmentation using role-based user annotations
KR20130058459A (en) The method and server for confirming installation of application
Phan Web Application Programming Interface Design for a Customer Portal
US20240004850A1 (en) Systems and methods for a stateless blockchain overlay layer

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