CN110489597A - A kind of method and terminal device obtaining data - Google Patents

A kind of method and terminal device obtaining data Download PDF

Info

Publication number
CN110489597A
CN110489597A CN201810443356.0A CN201810443356A CN110489597A CN 110489597 A CN110489597 A CN 110489597A CN 201810443356 A CN201810443356 A CN 201810443356A CN 110489597 A CN110489597 A CN 110489597A
Authority
CN
China
Prior art keywords
parameter value
terminal device
server
configuration information
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810443356.0A
Other languages
Chinese (zh)
Inventor
赵金涛
陈霁辰
张政勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810443356.0A priority Critical patent/CN110489597A/en
Publication of CN110489597A publication Critical patent/CN110489597A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application provides a kind of method and terminal device for obtaining data, the method for the acquisition data includes: that terminal device obtains configuration information, and the configuration information is by first server generation when carrying out visualization and burying setting;When control event is triggered, which obtains the associated parameter value of the control event according to the configuration information, which includes page elements data and/or memory variable data;The terminal device sends the parameter value to second server.The application provides a kind of method and terminal device for obtaining data, can collect complicated business datum (including page elements data and/or memory variable data), help to improve the depth of the information of acquisition.

Description

A kind of method and terminal device obtaining data
Technical field
This application involves field of electronic devices, and more particularly, to the method for obtaining data in field of electronic device And terminal device.
Background technique
With the rapid development of mobile Internet, mobile application (Application, app) is more and more, and version publication is got over Come faster.With the fast development of big data, more and more enterprises use the business lean operation of big data technology humanized, from New insight is obtained in data, is created and is worth with data.Data acquisition is the source of big data, how conveniently to be acquired Data in app use process are a key technology points of big data.
It is that the code for collecting data is directly written in the place of needs that code, which buries a technology, when the user clicks some control or Person calls to the partial code collection for completing data when opening some page.It is with virtual interactive interface hand that a technology is buried in visualization Section replaces writing code, and core code and configuration, resource is separated.It is updated and is configured by network in app starting, app operation In the process according to configuration file dynamic collection user behavior, analyzed to obtain data.
Visualization bury a technology solve the problems, such as to a certain extent code bury a little bury that a cost is big, and configuration file can Dynamic updates.But to bury a technology covering function limited for visualization, not all control operation can all pass through visualization at present A customization is buried, such as pop-up box hides control, and the behaviors such as slip event cannot collect.Also, visualization buries what technology was collected Data are fairly simple, can only collect user behavior and default property, cannot be collected into specific data relevant to behavior, it is difficult to adopt Collect complicated business datum, information depth is shallow.
Summary of the invention
In view of this, the application provides a kind of method and terminal device for obtaining data, to bury a technology in visualization In, improve the depth of the information of acquisition.
In a first aspect, a kind of method for obtaining data is provided, this method comprises: terminal device obtains configuration information, it should Configuration information is by first server generation when carrying out visualization and burying setting;When control event is triggered, the terminal device According to the configuration information, the associated parameter value of the control event is obtained, which includes that page elements data and/or memory become Measure data;The terminal device sends the parameter value to second server.
In some possible implementations, which includes fixed existing page elements number on the page According to, and the page elements data inputted on the page.
In some possible implementations, which obtains configuration information, comprising: the terminal device is from the terminal The configuration information is obtained in the information that equipment saves.
In some possible implementations, which is to bury point server, which is acquisition clothes Business device.
In some possible implementations, this buries point server and the acquisition server is integrated in same server, Alternatively, this buries point server and the acquisition server is integrated in different servers.
The application provides a kind of method for obtaining data, buries in a technology in visualization, can be with by trigger control event Complicated business datum (including page elements data and/or memory variable data) is collected, the information of acquisition is helped to improve Depth.
With reference to first aspect, in certain possible implementations of first aspect, which includes the parameter value To acquisite approachs, the to acquisite approachs of the parameter value be used to indicate from trigger the control event to obtain the parameter value path, should Terminal device obtains the parameter value of the control event, comprising: the terminal device obtains the ginseng according to the to acquisite approachs of the parameter value Numerical value.
The method of the acquisition data of the embodiment of the present application, terminal device can be by the to acquisite approachss of parameter value, in control Corresponding page elements data and/or memory variable data are collected when event is triggered, and help to improve the information of acquisition Depth.
With reference to first aspect, in certain possible implementations of first aspect, which obtains configuration information, It include: the configuration information of terminal device reception from the first server.
In some possible implementations, which receives the configuration information that third server is sent.
In some possible implementations, which buries point server by this and is sent to the configuration server, should On startup, which requests the configuration information to the configuration server to terminal device;The terminal device receives the configuration Server sends the configuration information.
In some possible implementations, this buries point server, the acquisition server and the configuration server and is integrated in In same server, alternatively, being integrated in different servers.
With reference to first aspect, in certain possible implementations of first aspect, which is to bury a service Device, the second server are acquisition server, which buries point server with this and merge in same server.
With reference to first aspect, in certain possible implementations of first aspect, the terminal device is according to the parameter value To acquisite approachs, obtain the parameter value, comprising: the terminal device by the parameter value to acquisite approachs match predefined rule library, should Predefined rule library is used to parse the to acquisite approachs of the parameter value;The terminal device obtains the ginseng according to the predefined rule library Numerical value.
In some possible implementations, which includes father node rule base and/or child node rule Library, the father node rule base and/or the child node rule base are used to navigate to the position of the parameter value.
In some possible implementations, which includes method rule, and this method rule base is for obtaining Take the parameter value.
With reference to first aspect, in certain possible implementations of first aspect, which includes first Rule base and Second Rule library, the terminal device obtain the parameter value according to the predefined rule library, comprising: the terminal device By first rule base, the parameter value is navigated to;The terminal device obtains the parameter value by the Second Rule library.
With reference to first aspect, in certain possible implementations of first aspect, which includes page elements number According to the terminal device obtains the parameter value according to the to acquisite approachs of the parameter value, comprising: the terminal device is according to the parameter value To acquisite approachs, the method searched step by step using page tree structure ViewTree obtains the page elements data.
The method that the embodiment of the present application can be searched step by step using page elements tree structure ViewTree gets the page The content of element.Terminal device is using the corresponding ViewTree of each topology file, and each control is in ViewTree with leaf Joint form indicates, sets data path for the reachable path between two controls, so that it may look into step by step using ViewTree The method looked for obtains the value of other control elements on the page.
The method of the acquisition data of the embodiment of the present application can trigger visualization acquisition when user's trigger button control, this When also trigger the dynamic acquisitions of page elements data, searched upwards from level to level by the method that ViewTree is searched step by step, so that it may To navigate to the position of the page elements data, and obtain the page elements data.
With reference to first aspect, in certain possible implementations of first aspect, which includes memory variable number According to the terminal device obtains the parameter value according to the to acquisite approachs of the parameter value, comprising: the terminal device is according to the parameter value To acquisite approachs, the method reflected step by step using variable obtains the memory variable data.
In the embodiment of the present application, member variable or data structure intermediate value in class are obtained by configuring in parameter to acquisite approachs Path, can use reflection mechanism reflect step by step dynamic acquisition event occur when value, even if these values are not in the page It presents, can also be reported with control event.
The method of the acquisition data of the embodiment of the present application can trigger visualization acquisition when user's trigger button control, this When also trigger the dynamic acquisitions of memory variable data, memory variable data are got by the method reflected step by step.
Second aspect provides a kind of method for obtaining data, this method comprises:
First server determines configuration information, which includes the to acquisite approachs of parameter value, the acquisition of the parameter value Path is used to indicate from trigger control event to the path for obtaining the associated parameter value of the control event, which includes the page Element data and/or memory variable data;
The first server sends the configuration information to third server.
In some possible implementations, which is to bury point server, which is configuration clothes Business device.
In some possible implementations, this buries point server and the configuration server is integrated in same server, Alternatively, this buries point server and the configuration server is integrated in different servers.
In conjunction with second aspect, in certain possible implementations of second aspect, which passes through engineering The method of habit determines the configuration information.
In conjunction with second aspect, in certain possible implementations of second aspect, which, which determines, matches confidence Before breath, this method further include:
The first server and terminal device establish visualization connection;
The first server generates the configuration information when carrying out visualization and burying setting.
The third aspect provides a kind of terminal device, which includes transceiver module and processing module, in which: should Processing module is for obtaining configuration information, and the configuration information is by first server generation when carrying out visualization and burying setting;It should Processing module is used for when control event is triggered, and according to the configuration information, is controlled the transceiver module and is obtained control event pass The parameter value of connection, the parameter value include page elements data and/or memory variable data;The transceiver module is also used to the second clothes Business device sends the parameter value.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which includes the parameter value To acquisite approachs, the to acquisite approachs of the parameter value be used to indicate from trigger the control event to obtain the parameter value path, should Processing module is specifically used for: according to the to acquisite approachs of the parameter value, controlling the transceiver module and obtains the parameter value.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which, which is also used to receive, comes From in the configuration information of the first server.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which is to bury a service Device, the second server are acquisition server, which buries point server with this and merge in same server.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which is specifically used for: by this The to acquisite approachs of parameter value matches predefined rule library, which is used to parse the to acquisite approachs of the parameter value;Root According to the predefined rule library, controls the transceiver module and obtain the parameter value.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which includes first Rule base and Second Rule library, the processing module are specifically used for: by first rule base, navigating to the parameter value;By this Second Rule library controls the transceiver module and obtains the parameter value.
In conjunction with the third aspect, in certain possible implementations of the third aspect, which is specifically used for: according to The to acquisite approachs of the parameter value, the method searched step by step using page tree structure ViewTree control transceiver module acquisition The page elements data.
The transceiver module processing module is made in certain possible implementations of the third aspect in conjunction with the third aspect Be specifically used for: according to the to acquisite approachs of the parameter value, the method reflected step by step using variable obtains the memory variable data.
Fourth aspect provides a kind of server, which includes processing module and transceiver module, in which: the processing Module is for determining configuration information, which includes the to acquisite approachs of parameter value, and the to acquisite approachs of the parameter value is for referring to Show that the parameter value includes page elements data from trigger control event to the path for obtaining the associated parameter value of the control event And/or memory variable data;The transceiver module is used to send the configuration information to third server.
In some possible implementations, which is to bury point server, which is configuration server.
In some possible implementations, this buries point server and the configuration server is integrated in same server, Alternatively, this buries point server and the configuration server is integrated in different servers.
In conjunction with fourth aspect, in certain possible implementations of fourth aspect, which passes through machine learning Method determines the configuration information.
In conjunction with fourth aspect, in certain possible implementations of fourth aspect, which determines configuration information Before, which is also used to establish visualization connection with terminal device;When carrying out visualization and burying setting, generates this and match Confidence breath.
5th aspect, provides a kind of terminal device, which includes processor and transceiver, in which: the processing Device is for obtaining configuration information, and the configuration information is by first server generation when carrying out visualization and burying setting;The processor For according to the configuration information, controlling the transceiver and obtaining the associated parameter value of the control event when control event is triggered, The parameter value includes page elements data and/or memory variable data;The transceiver is also used to send the ginseng to second server Numerical value.
It should be understood that the transceiver is further referred to as " communication interface ".
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which includes the parameter value To acquisite approachs, the to acquisite approachs of the parameter value be used to indicate from trigger the control event to obtain the parameter value path, should Processor is specifically used for: according to the to acquisite approachs of the parameter value, controlling the transceiver and obtains the parameter value.
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which is also used to receive and come from In the configuration information of the first server.
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which is to bury a service Device, the second server are acquisition server, which buries point server with this and merge in same server.
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which is specifically used for: by the ginseng The to acquisite approachs of numerical value matches predefined rule library, which is used to parse the to acquisite approachs of the parameter value;According to The predefined rule library controls the transceiver and obtains the parameter value.
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which includes first Rule base and Second Rule library, the processor are specifically used for: by first rule base, navigating to the parameter value;By this Two rule bases control the transceiver and obtain the parameter value.
In conjunction with the 5th aspect, in certain possible implementations of the 5th aspect, which is specifically used for: according to this The to acquisite approachs of parameter value, the method searched step by step using page tree structure ViewTree are controlled the transceiver and obtain the page Surface element data.
The transceiver processing implement body is made in certain possible implementations of the 5th aspect in conjunction with the 5th aspect For: according to the to acquisite approachs of the parameter value, the method reflected step by step using variable obtains the memory variable data.
6th aspect, provides a kind of server, which includes processor and transceiver, in which: the processor is used In determining configuration information, which includes the to acquisite approachs of parameter value, and the to acquisite approachs of the parameter value is used to indicate from touching Control event is sent out to the path of the acquisition associated parameter value of the control event, which includes page elements data and/or interior Deposit variable data;The transceiver is used to send the configuration information to third server.
In some possible implementations, which is to bury point server, which is configuration server.
In some possible implementations, this buries point server and the configuration server is integrated in same server, Alternatively, this buries point server and the configuration server is integrated in different servers.
In conjunction with the 6th aspect, in certain possible implementations of the 6th aspect, which passes through machine learning Method determines the configuration information.
In conjunction with the 6th aspect, the 6th aspect certain possible implementations in, the processor determine configuration information it Before, which is also used to establish visualization connection with terminal device;When carrying out visualization and burying setting, confidence should be matched by generating Breath.
7th aspect provides a kind of computer readable storage medium, including instruction, when run on a computer, So that computer mechanism executes method described in above-mentioned first aspect and first aspect any one possible implementation.
Eighth aspect provides a kind of computer readable storage medium, including instruction, when run on a computer, So that computer mechanism executes method described in above-mentioned second aspect and second aspect any one possible implementation.
9th aspect, provides a kind of computer program product, when run on a computer, so that computer executes Method described in above-mentioned first aspect and first aspect any one possible implementation.
Tenth aspect, provides a kind of computer program product, when run on a computer, so that computer executes Method described in above-mentioned second aspect and second aspect any one possible implementation.
Detailed description of the invention
Fig. 1 is the schematic diagram of the mobile phone of the embodiment of the present application.
Fig. 2 is the schematic diagram of the application scenarios of the embodiment of the present application.
Fig. 3 is the schematic flow chart of the method for the acquisition data of the embodiment of the present application.
Fig. 4 is the interface schematic diagram of the mobile phone of the embodiment of the present application.
Fig. 5 is the interface signal of the to acquisite approachs that page elements data are arranged on burying point server of the embodiment of the present application Figure.
Fig. 6 is the interface schematic diagram that collection result is shown on burying point server of the embodiment of the present application.
Fig. 7 is another schematic flow chart of the method for the acquisition data of the embodiment of the present application.
Fig. 8 is another schematic flow chart of the method for the acquisition data of the embodiment of the present application.
Fig. 9 is another interface schematic diagram of the mobile phone of the embodiment of the present application.
Figure 10 is the schematic block diagram of the terminal device of the embodiment of the present application.
Specific embodiment
The technical solution of the embodiment of the present application can be applied to the various terminal devices with data acquisition function (also referred to as For user equipment), for example, mobile phone, bracelet, tablet computer, laptop, Ultra-Mobile PC (Ultra- Mobile Personal Computer, UMPC), personal digital assistant (PersonalDigitalAssistant, PDA) sets Handheld device standby, with wireless communication function calculates equipment or is connected to other processing equipments of radio modem, vehicle Equipment, wearable device etc. are carried, communication terminal is not limited solely to.
Firstly, the terminal device that the embodiment of the present application is applicable in is introduced by taking mobile phone 100 shown in FIG. 1 as an example.In In the embodiment of the present application, mobile phone 100 may include: radio frequency (Radio Frequency, RF) circuit 110, power supply 120, processor 130, memory 140, input unit 150, display unit 160, sensor 170, voicefrequency circuit 180 and Wireless Fidelity The components such as (Wireless Fidelity, WIFI) module 190.It will be understood by those skilled in the art that mobile phone shown in Fig. 1 Structure does not constitute the restriction to mobile phone, may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 1 to mobile phone 100:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 130;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in the wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 140 can be used for storing software program and module, and processor 130 is stored in memory 140 by operation Software program and module, thereby executing the various function application and data processing of mobile phone 100.Memory 140 can be main Including storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one function With program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone 100 Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 140 may include high-speed random access memory, It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited Memory device.
Input unit 150 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 100 And the related key signals input of function control.Specifically, input unit 150 may include touch panel 151 and other inputs Equipment 152.Touch panel 151, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 151 or near touch panel 151), and Corresponding attachment device is driven according to preset formula.Optionally, touch panel 151 may include touch detecting apparatus and touching Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 130, and order that processor 130 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 151.It is defeated in addition to touch panel 151 Entering unit 150 can also include other input equipments 152.Specifically, other input equipments 152 can include but is not limited to physics One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 160 can be used for showing information input by user or the information and mobile phone 100 that are supplied to user Various menus.Display unit 160 may include display panel 161, optionally, display can be configured using forms such as LCD, OLED Panel 161.Further, touch panel 151 can cover display panel 161, when touch panel 151 detect on it or near Touch operation after, send processor 130 to determine the type of touch event, be followed by subsequent processing device 130 according to touch event Type provides corresponding visual output on display panel 161.Although in Fig. 1, touch panel 151 is with display panel 151 The input and input function of mobile phone 100 are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 151 and display panel 161 are integrated and that realizes mobile phone 100 output and input function.In the embodiment of the present application, user can be with By clicking display unit 160, trigger control event, so that mobile phone 100 collects the control event, meanwhile, mobile phone 100 Parameter value (including page elements data and/or the memory variable number of the control event can also be collected by the control event According to).
Voicefrequency circuit 180, loudspeaker 181 can provide the audio interface between user and mobile phone 100.Voicefrequency circuit 180 can By the electric signal after the audio data received conversion, it is transferred to loudspeaker 181, it is defeated to be converted to voice signal by loudspeaker 181 Out;On the other hand, the voice signal of collection is converted to electric signal by microphone 182, is converted to sound after being received by voicefrequency circuit 180 Frequency evidence, then audio data exported to RF circuit 110 to be sent to such as another mobile phone, or audio data is exported to depositing Reservoir 140 is to be further processed.
Bluetooth module 182 be Bluetooth function printed circuit board (Printed Circuit Board Assembly, PCBA), it is used for short-distance wireless communication, is divided into blue-teeth data module and blue tooth voice module by function.
WIFI belongs to short range wireless transmission technology, and mobile phone 100 can help user's transceiver electronics by WIFI module 190 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 is shown WIFI module 190, but it is understood that, and it is not belonging to must be configured into for mobile phone 100, it can according to need completely Do not change in the range of the essence of the application and omits.In the embodiment of the present application, mobile phone 100 can also pass through WIFI module 190 It is connected to configuration server, buries a configuration information from configuration server acquisition, it can also be by the WIFI module 190 by acquisition Information reporting is to acquisition server.
Processor 130 is the control centre of mobile phone 100, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 140, and calls and be stored in memory 140 Interior data execute the various functions and processing data of mobile phone 100, to realize the multiple business based on mobile phone.Optionally, locate Managing device 130 may include one or more processing units;Preferably, processor 130 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 130.The application In embodiment, what the parsing of processor 130 configuration server issued buries a configuration information, and buries a configuration information according to this and obtain a page Surface element data and/or memory variable data.
Mobile phone 100 further includes the power supply 120 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 130 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system Etc. functions.
Although being not shown, mobile phone 100 can also be including camera etc., and details are not described herein.
It should be noted that mobile phone shown in Fig. 1 is only a kind of citing of terminal device, the embodiment of the present application is not limited especially Fixed, the embodiment of the present application can be applied to the electronic equipments such as mobile phone, tablet computer, and the embodiment of the present application does not limit this.
Before introducing the embodiment of the present application, several related notions for visualizing and burying in a technology are simply introduced first.
Bury point server: app/ software development kit (soft development kit, the sdk) progress with terminal device can A web server for operation is buried depending on changing.Can be with the page of the app of displaying terminal equipment on burying point server, and bury a little Operation.Burying point server can send in real time configuration information on the app buried a little;With the app meeting burying point server and connecting Point server is buried getting information ready and being sent to carry out visualization commissioning.After visualization is buried a little, burying point server will be visual Change acquisition configuration information and is sent to configuration server.
Configuration server: visualization acquisition configuration file is saved.The app/sdk of terminal device can be obtained from configuration server Visualize acquisition configuration file.Configuration server may be merged with point server is buried.
The app/sdk of terminal device: visualization acquisition is carried out, data report.Operation personnel using when with bury point server Visualization is established to connect and carry out visualization commissioning;Ordinary user obtains visualization acquisition configuration using Shi Huicong configuration server File parses configuration file, and data are acquired in app/sdk operational process and data are reported to acquisition server.
Acquisition server: the server of the app/sdk information of special acquisition terminal equipment.Acquisition server may with bury a little Server, configuration server are combined.
Application programming interface (Application Programming Interface, API) is some pre-defined Function, it is therefore an objective to provide application program (app) and developer based on certain software or hardware and be able to one group of routine of access Ability, and be not necessarily to access source code, or understand the details of internal work mechanism.
Software development kit: usually software engineer is specific software package, software frame, hardware platform, operating system Etc. the set of developing instrument when establishing application software.
The embodiment of the present application buries in visualization in existing system authority and increases event argument value in point server and adopt Collection setting increases the acquisition of event argument value on the app of terminal device.
Fig. 2 shows a kind of schematic block diagrams of system architecture of the technical solution of the embodiment of the present application.System shown in Fig. 2 System framework can be applied to the general visualization of industry and bury in a technology, and a management, publication pipe are buried in visualization as shown in Figure 2 It is all the general technology of industry that reason, configuration management, Command Line Parsing, visualization, which bury an acquisition, and acquisition reports etc., and the application is implemented In example on existing system framework, " service data acquisition setting " has been increased newly on burying point server, on the terminal device newly " service data acquisition " is increased.
Fig. 3 is according to the schematic flow chart of the method 200 of the acquisition data of the embodiment of the present application, as shown in Fig. 2, the party The executing subject of method 200 can be mobile phone 100, and this method 200 includes:
S210, terminal device obtain configuration information, which buries setting carrying out visualization by first server Shi Shengcheng.
Optionally, which is to bury point server.
It should be understood that the visualization in the embodiment of the present application buries and is a little different from code and buries a little, which is buried with visualization Interactive means replace writing code, and core code and configuration, resource is separated, in terminal device starting, can pass through network Equipment, which updates, to be configured, according to configuration information dynamic collection user's in terminal device (for example, App of terminal device) operational process Behavior is analyzed to obtain data.
Specifically, the terminal device can obtain the configuration information from server, it is also possible to before the terminal device Just preserve the configuration information.
It should be understood that the configuration information in the embodiment of the present application, which can be, buries point server when carrying out visualization and burying setting It generates.
It is as follows that a process is buried in the general visualization of industry at present:
(1) terminal device establishes visualization connection with point server is buried
Specifically, research staff opens the page that point server is buried in visualization, meanwhile, the application journey for the equipment that opens a terminal Sequence (app) will continuously rock repeatedly when app starting in the terminal device short time, and app can bury point server foundation with this Long connection is buried on point server and to be capable of the app page of the real-time exhibition terminal device at this.
(2) setting is buried in visualization
Specifically, the page of terminal device app can be shown on burying point server, for example, Fig. 4 shows a kind of end The app page of end equipment, this is buried can show the control that can carry out burying operation automatically on point server, such as in Fig. 4 " determination " button, at this point, research staff can bury to click on point server and bury a control at this, a configuration information is buried in setting.
It should be understood that the embodiment of the present application buries a configuration information and can be buried and set on point server at this by research staff It sets, and then this buries point server and generate this according to the setting of research staff and buries a configuration information, it is also possible that this buries point server According to the method for machine learning, generates this and bury a configuration information, the application is not limited in any way this.
(3) commissioning is visualized
Specifically, this, which buries point server, can bury this configuration during bury a configuration information setting Information is sent in real time bury on terminal device a little, and when user triggers the control event on the interface app, this is buried Point server, which will will bury a configuration information and be sent in real time, to be buried on point server, for carrying out commissioning.
(4) it buries a configuration information and is issued to configuration server
Specifically, after the completion of visualizing commissioning, buries point server and can will bury a configuration information and be published to configuration service On device.
S220, when control event is triggered, which it is associated to obtain the control event according to the configuration information Parameter value, the parameter value include page elements data and/or memory variable data;
S230, the terminal device send the parameter value to second server.Specifically, when control event is triggered, Monitor will be triggered and get the control event, and then monitor is available arrives the associated parameter value of the control event, The parameter value includes page elements data and/or memory variable data.
Optionally, which obtains configuration information, comprising: the terminal device is from the information that the terminal device saves Obtain the configuration information.
Optionally, which is to bury point server, which is acquisition server.
Optionally, this buries point server and the acquisition server is integrated in same server, alternatively, this buries point server It is integrated in the acquisition server in different servers.
Optionally, which includes fixed existing page elements data on the page, and on the page it is defeated The page elements data entered.
For example, Fig. 4 shows a kind of schematic diagram at the interface of mobile phone 100, after user opens " XX music ", need to carry out really Recognize user information, mobile phone 100 display unit 160 shows " please input user name: " and text box in letter to user data Breath, user can input the user name of oneself after seeing this interface, for example, user inputs " aaa ".Finally, user can click " confirmation " button, completes the input of user information.The interface schematic diagram of mobile phone 100 shown in Fig. 4, user press in click " determination " When button, page elements data (content inputted in " user name please be input: " and text box as shown in Figure 4) can be collected.
It should be understood that " please input user name: " and " aaa " may be considered page elements data, wherein " use please be input Name in an account book: " it is that fixed existing page elements data, " aaa " they are the page elements data that user inputs on the page on the page.
Existing visualization is buried in a technology, and the monitor of terminal device can only get simple user behavior, for example, User can only be got and click this user behavior information of " confirmation " button, but deeper information can not be obtained, for example, Element data on the page: " user name please be input: " and " aaa ".
Optionally, which includes the to acquisite approachs of the parameter value, the to acquisite approachs of the parameter value be used to indicate from The control event is triggered to the path for obtaining the parameter value, which obtains the parameter value of the control event, comprising:
The terminal device obtains the parameter value according to the to acquisite approachs of the parameter value, and the to acquisite approachs of the parameter value is used for It indicates from the control event is triggered to the path for obtaining the parameter value.
Specifically, the terminal device acquires page member according to the parameter value to acquisite approachs when control event is triggered Prime number evidence and/or memory variable data, the parameter value to acquisite approachs are used to indicate from the control event is triggered to the acquisition parameter The path of value.
It should be understood that the to acquisite approachs of the parameter value, which can be server, is allocated to the terminal device, it can be terminal and set Standby internal preservation.
For example, terminal device can request visualization to bury a configuration information before acquiring data to server, this is visual Change bury the to acquisite approachs that a configuration information includes the parameter value, terminal device after receiving the visualization and burying a configuration information, The parameter value to acquisite approachs in a configuration information is buried according to the visualization, is obtained from the control event is triggered to the acquisition parameter value Path, by the path, get page elements data and/or memory variable data when the control event is triggered.
In another example terminal device when acquiring data, according to the configuration information for being stored in the terminal device, obtains the parameter Value, the configuration information are stored in inside terminal device when can be the acquisition of last data, which includes the parameter The to acquisite approachs of value, terminal device are obtained according to the to acquisite approachs of the parameter value in the configuration information from the triggering control thing Part is to the path for obtaining the parameter value, when the control event is triggered, by the path, get page elements data and/ Or memory variable data.
In first time period, which is in cellular network or in the environment of connection WIFI, and mobile phone 100 can A configuration information is buried to obtain visualization from configuration server, which buries the acquisition road that a configuration information includes the parameter value Diameter, mobile phone 100 can obtain control event page elements number corresponding with the control event according to the to acquisite approachs of the parameter value According to and/or memory variable data.
Second time period after first time period, the mobile phone 100 close cellular network or also without connecting WIFI, When there is control event to be triggered, which can use in first time period and buries from the visualization that configuration server obtains Point configuration information obtains control event page elements data corresponding with the control event and/or memory variable data.
Optionally, which obtains configuration information, comprising:
The terminal device obtains the configuration information from the first server.
A configuration information is buried to terminal device acquisition page elements number from point server setting is buried below by citing introduction According to process.
Before acquiring page elements data, it can be arranged in burying point server event " search ", Fig. 5 is shown The interface schematic diagram that the to acquisite approachs of page elements data is set in point server is buried, as shown in figure 5, defining 2 event ginsengs The to acquisite approachs of numerical value and event argument value is respectively:
Page Title value: search_title:parent.childAt (0) .getText ()
Page Text value: search_text:parent.childAt (1) .getText ()
Wherein, parent triggers father node rule base, and childAt () triggers child node rule base, and getText () will be touched Forwarding method rule base.
Title member can be found by definition " determination " button to the path parent.childAt (0) between Title Element;
Page elements value in Title can be got by executing getText () method again at this time.
Similarly, by definition " determination " button to the path parent.childAt (1) between text box EditText i.e. Text box element EditText can be found;Page elements in text box can be got by executing getText () method again at this time Value.
Fig. 6, which is shown, shows the interface schematic diagram of collection result in server, as shown in fig. 6, when clicking " determination " button When will occur " search " event, the parameter carried at this time is " search_title " and " search_text ", collected ginseng Numerical value is " please input user name: " and " aaa ".
It should be understood that the application is implemented when the to acquisite approachs of setting acquisition page elements on point server is buried in visualization The method that example can be searched step by step using page elements tree structure ViewTree gets the content of page elements.Mobile phone 100 Using the corresponding ViewTree of each topology file, each control is indicated in the form of leaf node in ViewTree, by two Reachable path between control is set as data path, so that it may which the method searched step by step using ViewTree obtains on the page it The value of his control element.
In the embodiment of the present application, when app trigger button control, visualization acquisition can be triggered, also the triggering page is first at this time The acquisition of prime number evidence, the upward lookup element of the method searched step by step by ViewTree at this time from level to level, can find correspondence Element, and obtain the element value.
Fig. 7 shows the schematic flow chart of the method 300 of the acquisition data according to the embodiment of the present application, as shown in fig. 7, This method 300 includes:
S301, the app for burying point server and terminal device carry out visualization and link.
Specifically, the app of terminal device and server establish visualization connection, it at this time can be real on burying point server When show the end side page.
S302 buries point server and carries out event information setting.
Specifically, can show the end side page on burying point server, and display can carry out burying a control for operation automatically Part.It can click at this time and bury a control, a configuration information is buried in setting.
S303 buries point server and carries out the setting of event argument value information.
Specifically, the parameter value and the corresponding acquisition methods of parameter value of event can be carried out on burying point server simultaneously Setting;Parameter and parameter to acquisite approachs bury a part of an event information as visualization.
It should be understood that parameter value and the corresponding acquisition road of parameter value of event can be arranged in operation personnel on burying point server Diameter, it is also possible that burying the acquisition that point server carries out the parameter value and parameter value of event by the modes such as machine learning oneself The setting in path.
S304, the app for burying point server and terminal device carry out visualization commissioning.
Specifically, burying point server can send in real time configuration information to during bury setting Bury on app a little;The app trigger control of terminal device, which will will bury a configuration information and be sent in real time, buries point server On, for carrying out commissioning.
S305, buries point server a configuration information is buried in visualization and be published to configuration server.
Specifically, visualization commissioning after the completion of, bury point server by visualization bury a configuration information be published to configuration clothes It is engaged on device.
The app of S306, terminal device bury a configuration information to configuration server request visualization.
Specifically, the app of terminal device, which obtains visualization from configuration server on startup (or periodically), buries a configuration Information.
It should be understood that the bury point server and configuration server of the embodiment of the present application can integrate in a server.
S307, the app of terminal device obtain visualization from configuration server and bury a configuration information.
Specifically, configuration server is indicated according to the app of app, visualization is buried a configuration information and sent back by version number The app of terminal device.
The app of S308, terminal device carry out visual information acquisition.
Specifically, the app of terminal device parses the visual configuration information obtained from server, and it is loaded into memory In;It include event information and event attribute parameter setting information in visual configuration information.Visual configuration information is loaded into In monitor, monitor method can be triggered when control triggering, according to configuration acquisition control event letter in the method for monitor Breath, event attribute parameter information, and remain in caching.Event attribute parameter information i.e. business datum include page info Acquisition and memory information acquisition.
It should be understood that " parameter value of control event " in the embodiment of the present application is further referred to as business datum, the business Data include page elements data and/or memory variable data.
The app of S3081, terminal device carry out the acquisition of page elements data.
Specifically, if specifying the to acquisite approachs of page elements data in configuration information, then the app meeting of terminal device End side page elements information ViewTree is collected.
It should be understood that growing a ViewTree on each Window by taking android system as an example, and seen on screen To various controls can be understood as the node on this ViewTree.
In the embodiment of the present application, each control can be indicated in ViewTree in the form of leaf node, by two controls Between reachable path be set as data path, can use the method that ViewTree searches step by step and obtain other controls on the page The value of element.
The app of S3082, terminal device carry out the acquisition of memory variable data.
Specifically, if specifying the to acquisite approachs of memory variable data in configuration information, then the app meeting of terminal device Memory variable data when control is executed pass through the method reflected step by step and obtain.
In the embodiment of the present application, terminal device can reflect step by step according to the to acquisite approachs of memory variable gets the memory Variable data, and the memory variable data that will acquire are reported to acquisition server.
It should be understood that the to acquisite approachs of the memory variable can be data path (DataPath), DataPath Xiang Yaoshou One reference path of the target data of collection, the memory variable data may finally be got by parsing this path and reflecting step by step.
Collected data are reported to acquisition server by the app of S309, terminal device.
Specifically, the app of terminal device can be by the event information of acquisition, service dynamic information reporting to acquisition server In, to carry out big data analysis.
It should be understood that the bury point server, configuration server and acquisition server of the embodiment of the present application can integrate at one In server.
Optionally, which obtains the parameter value according to the to acquisite approachs of the parameter value, comprising:
The to acquisite approachs of the parameter value is matched predefined rule library by the terminal device, and the predefined rule library is for parsing The to acquisite approachs of the parameter value;
The terminal device obtains the parameter value according to the predefined rule library.
Below with reference to Fig. 8, visual information collection process is carried out to the app of the terminal device in Fig. 7 and is specifically described.
Fig. 8, which is shown, carries out the schematic of visualization acquisition method 400 according to the app of the terminal device of the embodiment of the present application Flow chart, as shown in figure 8, this method 400 includes:
S401 initializes rule base.
Specifically, the to acquisite approachs setting rule of parameter value is defined in the embodiment of the present application, such as: attribution rule library, Method rule base, father node rule base and child node rule base.Define how in these rule bases by searching step by step, by The method of grade reflection obtains the parameter value of event.
S402, configuration information parsing.
Specifically, the app of terminal device is after server acquisition configuration information, parsing event information is used for collection event Behavior, analytic parameter and parameter to acquisite approachs are used for capturing service dynamic data.
S403, configuration information save.
Specifically, the to acquisite approachs of event information, parameter value that parsing obtains is saved in the end by the app of terminal device In the monitor of end equipment.
S404, monitor triggering.
Specifically, monitor will be triggered and get control event when control event is triggered.
S405, collection event information.
Specifically, the app of terminal device is according to the event information in visual configuration, collection event information.
S406, event argument to acquisite approachs are decomposed.
Specifically, then carrying out parameter value acquisition, parameter value to acquisite approachs is decomposed, first path one by one is decomposed into (such as parent.childAt (0) .getId () will be decomposed into parent, childAt (0), getId ()).
Optionally, which includes the first rule base and Second Rule library, and the terminal device is predetermined according to this Adopted rule base obtains the parameter value, comprising:
The terminal device navigates to the parameter value by first rule base;
The terminal device obtains the parameter value by the Second Rule library.
S407, regular storehouse matching.
Specifically, each first path matching rule base is parsed if it can match using corresponding rule base, if nothing Method parsing, returns to null character string.
For example, if first path after resolution parameter value to acquisite approachs is parent, then father node rule base will be matched, this When can by obtain call control getParent () method navigate to father node.
In another example if first path after resolution parameter value to acquisite approachs is childAt (inti), then child node will be matched Rule base can call getChildAt (inti) method of control element to navigate to child node by reflection at this time.
For another example if first path after resolution parameter value to acquisite approachs is method, then by matching process rule base, at this time The method that object can be executed by reflection, obtains specified value.
S408, rule base response.
Specifically, after matching rule base corresponding value will be obtained using the rule base of response.Pass through father node rule Library, child node rule base can navigate to specified object;It can be obtained by the method for reflection by attribution rule library specified Attribute of an element;Specified object method can be executed by reflection by method rule base.
S409, page elements acquisition.
Specifically, page can be navigated to relative to the path of current control by being arranged for the element on the page Surface element can get the value of element by the methods of getText ()/getChecked () at this time.
S410, memory variable acquisition.
Specifically, control is triggered when executing, can be collected at this time by attribution rule library, method rule base method Memory variable when control is triggered.
It should be understood that actual successively suitable for the acquisition of page elements data and memory variable acquisition in S410 in S409 Sequence.
It should also be understood that the data obtained in the embodiment of the present application can also be memory variable data.Certain member variables are not It is presented in the page, but the app of terminal device needs to obtain the value of this class variable for big data analysis.It can adopt at this time With the method for memory variable data acquisition.
The path of member variable or data structure intermediate value in class is obtained by configuring in parameter to acquisite approachs, can use Reflection mechanism reflects value of the dynamic acquisition when event occurs step by step can also be with thing even if these values are not presented in the page Part information reporting.
For example, Fig. 9 shows another schematic diagram at the interface of terminal device, by burying point server setting control in visualization The to acquisite approachs of memory variable data when part event triggers, so that it may get memory variable data.A service is buried in visualization 2nd element trigger event is set in device, parameter is set at this time: " strData ", parameter to acquisite approachs is set " strData ", this Sample can get strData () value in memory when the 2nd element is clicked.
It should also be understood that certain member variables are not presented in the page, but the app of terminal device needs call method ability Value is got for big data analysis.It at this time can be using Dynamic Execution method come the value of dynamic acquisition to business.
By in parameter to acquisite approachs configure obtain class in method, can use reflection mechanism reflect step by step dynamically hold The specified method of row, is assigned to corresponding value for this method, also reports with event information.
For example, as shown in figure 5, Dynamic Execution getUserId () method, and this method when button is clicked Value setting arrive " in user_id ".
Above in association with Fig. 1 to Fig. 9, detailed the method for describing the acquisition data according to the embodiment of the present application is tied below Figure 10 is closed, the terminal device according to the embodiment of the present application is described in detail.
Figure 10 shows the schematic block diagram of the terminal device 500 according to the embodiment of the present application, as shown in Figure 10, the terminal Equipment 500 includes:
Transceiver module 510, for obtaining configuration information, which is being carried out visualizing to bury a little setting by first server Generation when setting;
Processing module 520, for according to the configuration information, controlling transceiver module acquisition when control event is triggered The associated parameter value of the control event, the parameter value include page elements data and/or memory variable data;
The transceiver module 510 is also used to send the parameter value to second server.
It should be understood that the transceiver module 510 can correspond to the WIFI module 190 for being configured at Fig. 1 mobile phone 100, RF circuit 110 or Bluetooth module 182, processing module 520 can correspond to the processor 130 for being configured at mobile phone 100.
Optionally, which includes the to acquisite approachs of the parameter value, the to acquisite approachs of the parameter value be used to indicate from The control event is triggered to the path for obtaining the parameter value, which is specifically used for: according to the acquisition road of the parameter value Diameter controls the transceiver module and obtains the parameter value.
Optionally, which is also used to receive the configuration information from the first server.
Optionally, which is to bury point server, which is acquisition server, the acquisition server Point server is buried with this to merge in same server.
Optionally, which is specifically used for: the to acquisite approachs of the parameter value is matched into predefined rule library, it should Predefined rule library is used to parse the to acquisite approachs of the parameter value;According to the predefined rule library, transceiver module acquisition is controlled The parameter value.
Optionally, which includes the first rule base and Second Rule library, which specifically uses In: by first rule base, navigate to the parameter value;By the Second Rule library, controls the transceiver module and obtain the parameter Value.
Optionally, which is specifically used for: according to the to acquisite approachs of the parameter value, using page tree structure The method that ViewTree is searched step by step controls the transceiver module 510 and obtains the page elements data.
Optionally, which is specifically used for: according to the to acquisite approachs of the parameter value, being reflected step by step using variable Method, control the transceiver module 510 obtain the memory variable data.
In the embodiment of the present application, it should be noted that the above-mentioned embodiment of the method for the embodiment of the present application can be applied to processor In, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.It was realizing Cheng Zhong, each step of above method embodiment can pass through the integrated logic circuit of the hardware in processor or software form Instruction is completed.Above-mentioned processor can be general processor, digital signal processor (Digital Signal Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing At programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.It may be implemented or execute the disclosed each side in the embodiment of the present application Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute completion, Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, dodge It deposits, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register are mature to deposit In storage media.The storage medium is located at memory, and processor reads the information in memory, completes the above method in conjunction with its hardware The step of.
It is appreciated that the memory in the embodiment of the present application can be volatile memory or nonvolatile memory, or It may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDR SDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DR RAM).It should be noted that the memory of system and method described herein be intended to include but be not limited to these and The memory of any other suitable type.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment A particular feature, structure, or characteristic includes in one or more embodiments of the application.Therefore, occur everywhere in the whole instruction " in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, Structure or characteristic can combine in any suitable manner in one or more embodiments.It should be understood that in the various realities of the application It applies in example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution sequence Ying Yiqi of each process Function and internal logic determine that the implementation process without coping with the embodiment of the present application constitutes any restriction.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/ Or ", only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can be with table Show: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent front and back Affiliated partner is a kind of relationship of "or".
It should be understood that in the embodiment of the present application, " B corresponding with A " indicates that B is associated with A, B can be determined according to A.But It should also be understood that determining that B is not meant to determine B only according to A according to A, B can also be determined according to A and/or other information.
In above-described embodiment, it can be realized wholly or partly by software, hardware, firmware or any combination thereof. When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program produces Product may include one or more computer instructions.When loading on computers and executing the computer program instructions, all Or it partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated Computer, computer network or other programmable devices.The computer instruction can store in computer-readable storage medium In matter, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the calculating Machine instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center Word user (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium (for example, floppy disk, hard disk, disk), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (18)

1. a kind of method for obtaining data characterized by comprising
Terminal device obtains configuration information, and the configuration information is by first server generation when carrying out visualization and burying setting;
When control event is triggered, the terminal device obtains the associated ginseng of the control event according to the configuration information Numerical value, the parameter value include page elements data and/or memory variable data;
The terminal device sends the parameter value to second server.
2. the method according to claim 1, wherein the configuration information includes the acquisition road of the parameter value Diameter, the to acquisite approachs of the parameter value is used to indicate from the control event is triggered to the path for obtaining the parameter value, described Terminal device obtains the parameter value of the control event, comprising:
The terminal device obtains the parameter value according to the to acquisite approachs of the parameter value.
3. method according to claim 1 or 2, which is characterized in that the terminal device obtains configuration information, comprising:
The terminal device receives the configuration information from the first server.
4. according to the method in claim 2 or 3, which is characterized in that the terminal device is according to the acquisition of the parameter value Path obtains the parameter value, comprising:
The to acquisite approachs of the parameter value is matched predefined rule library by the terminal device, and the predefined rule library is for solving Analyse the to acquisite approachs of the parameter value;
The terminal device obtains the parameter value according to the predefined rule library.
5. according to the method described in claim 4, it is characterized in that, the predefined rule library includes the first rule base and second Rule base, the terminal device obtain the parameter value according to the predefined rule library, comprising:
The terminal device navigates to the parameter value by first rule base;
The terminal device obtains the parameter value by the Second Rule library.
6. the method according to any one of claim 2 to 5, which is characterized in that the parameter value includes page elements number According to the terminal device obtains the parameter value according to the to acquisite approachs of the parameter value, comprising:
To acquisite approachs of the terminal device according to the parameter value, the side searched step by step using page tree structure ViewTree Method obtains the page elements data.
7. the method according to any one of claim 2 to 5, which is characterized in that the parameter value includes memory variable number According to the terminal device obtains the parameter value according to the to acquisite approachs of the parameter value, comprising:
For the terminal device according to the to acquisite approachs of the parameter value, the method reflected step by step using variable obtains the memory Variable data.
8. method according to any one of claim 1 to 7, which is characterized in that the first server is to bury a service Device, the second server are acquisition server, and the acquisition server and the point server that buries merge in same server In.
9. a kind of terminal device, which is characterized in that the terminal device includes transceiver module and processing module, in which:
For the transceiver module for obtaining configuration information, the configuration information buries a setting carrying out visualization by first server Shi Shengcheng;
The processing module is used for when control event is triggered, and according to the configuration information, is controlled the transceiver module and is obtained The associated parameter value of control event, the parameter value include page elements data and/or memory variable data;
The transceiver module is also used to send the parameter value to second server.
10. terminal device according to claim 9, which is characterized in that the configuration information includes obtaining for the parameter value Path is taken, the to acquisite approachs of the parameter value is used to indicate from the triggering control event to the path for obtaining the parameter value, The processing module is specifically used for:
According to the to acquisite approachs of the parameter value, controls the transceiver module and obtain the parameter value.
11. terminal device according to claim 9 or 10, which is characterized in that the transceiver module is also used to receive and come from In the configuration information of the first server.
12. terminal device described in 0 or 11 according to claim 1, which is characterized in that the processing module is specifically used for:
The to acquisite approachs of the parameter value is matched into predefined rule library, the predefined rule library is for parsing the parameter value To acquisite approachs;
According to the predefined rule library, controls the transceiver module and obtain the parameter value.
13. terminal device according to claim 12, which is characterized in that the predefined rule library includes the first rule base With Second Rule library, the processing module is specifically used for:
By first rule base, the parameter value is navigated to;
By the Second Rule library, controls the transceiver module and obtain the parameter value.
14. terminal device described in any one of 0 to 13 according to claim 1, which is characterized in that the processing module is specifically used In:
According to the to acquisite approachs of the parameter value, the method searched step by step using page tree structure ViewTree, described in control Transceiver module obtains the page elements data.
15. terminal device described in any one of 0 to 13 according to claim 1, which is characterized in that the processing module is specifically used In:
According to the to acquisite approachs of the parameter value, the method reflected step by step using variable is controlled described in the transceiver module acquisition Memory variable data.
16. terminal device according to any one of claims 9 to 15, which is characterized in that the first server is to bury Point server, the second server are acquisition server, and the acquisition server and the point server that buries merge same In server.
17. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes State method of any of claims 1-8.
18. a kind of computer program product, when run on a computer, so that computer executes the claims 1-8 Any one of described in method.
CN201810443356.0A 2018-05-10 2018-05-10 A kind of method and terminal device obtaining data Pending CN110489597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810443356.0A CN110489597A (en) 2018-05-10 2018-05-10 A kind of method and terminal device obtaining data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810443356.0A CN110489597A (en) 2018-05-10 2018-05-10 A kind of method and terminal device obtaining data

Publications (1)

Publication Number Publication Date
CN110489597A true CN110489597A (en) 2019-11-22

Family

ID=68543283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810443356.0A Pending CN110489597A (en) 2018-05-10 2018-05-10 A kind of method and terminal device obtaining data

Country Status (1)

Country Link
CN (1) CN110489597A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502415A (en) * 2019-08-27 2019-11-26 北京思维造物信息科技股份有限公司 One kind burying a setting method, device and equipment
CN110941461A (en) * 2019-11-26 2020-03-31 杭州皓智天诚信息科技有限公司 Parameter configuration terminal of service processing software
CN111026317A (en) * 2019-11-28 2020-04-17 爱钱进(北京)信息科技有限公司 Method, device and storage medium for determining user operation
CN112162740A (en) * 2020-09-25 2021-01-01 北京易观智库网络科技有限公司 Visual data acquisition method and system based on IOS-SDK
CN112182467A (en) * 2020-10-09 2021-01-05 广州河东科技有限公司 WEB construction system, generation method, device, electronic equipment and storage medium
CN112286501A (en) * 2020-10-13 2021-01-29 北京易观智库网络科技有限公司 Method and device for embedding point in page of terminal equipment and storage medium
CN112667481A (en) * 2020-12-31 2021-04-16 中国建设银行股份有限公司 Data collection kit, method and device
CN113127336A (en) * 2020-01-16 2021-07-16 北京沃东天骏信息技术有限公司 Data collection method and device
CN114003272A (en) * 2021-11-01 2022-02-01 焦点科技股份有限公司 Method for configuring embedded point parameters and trigger conditions

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156194A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and device forming user operation path
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client
CN106933472A (en) * 2017-05-20 2017-07-07 南京西桥科技有限公司 A kind of user behavior data acquisition system and its control method based on mobile phone A PP
WO2018024057A1 (en) * 2016-08-01 2018-02-08 华为技术有限公司 Method and apparatus for accessing service
CN107818163A (en) * 2017-11-01 2018-03-20 平安科技(深圳)有限公司 Page display method, device, computer equipment and storage medium
CN107832218A (en) * 2017-11-10 2018-03-23 平安科技(深圳)有限公司 A processing method, device and computer equipment are buried in dynamic page

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156194A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and device forming user operation path
WO2018024057A1 (en) * 2016-08-01 2018-02-08 华为技术有限公司 Method and apparatus for accessing service
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client
CN106933472A (en) * 2017-05-20 2017-07-07 南京西桥科技有限公司 A kind of user behavior data acquisition system and its control method based on mobile phone A PP
CN107818163A (en) * 2017-11-01 2018-03-20 平安科技(深圳)有限公司 Page display method, device, computer equipment and storage medium
CN107832218A (en) * 2017-11-10 2018-03-23 平安科技(深圳)有限公司 A processing method, device and computer equipment are buried in dynamic page

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陶菜菜: ""Android无埋点数据收集SDK关键技术"", 《HTTPS://WWW.JIANSHU.COM/P/B5FFE845FE2D》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502415A (en) * 2019-08-27 2019-11-26 北京思维造物信息科技股份有限公司 One kind burying a setting method, device and equipment
CN110502415B (en) * 2019-08-27 2023-11-28 北京思维造物信息科技股份有限公司 Buried point setting method, device and equipment
CN110941461A (en) * 2019-11-26 2020-03-31 杭州皓智天诚信息科技有限公司 Parameter configuration terminal of service processing software
CN110941461B (en) * 2019-11-26 2023-08-04 杭州皓智天诚信息科技有限公司 Parameter configuration terminal of business processing software
CN111026317A (en) * 2019-11-28 2020-04-17 爱钱进(北京)信息科技有限公司 Method, device and storage medium for determining user operation
CN113127336A (en) * 2020-01-16 2021-07-16 北京沃东天骏信息技术有限公司 Data collection method and device
CN112162740A (en) * 2020-09-25 2021-01-01 北京易观智库网络科技有限公司 Visual data acquisition method and system based on IOS-SDK
CN112182467A (en) * 2020-10-09 2021-01-05 广州河东科技有限公司 WEB construction system, generation method, device, electronic equipment and storage medium
CN112286501A (en) * 2020-10-13 2021-01-29 北京易观智库网络科技有限公司 Method and device for embedding point in page of terminal equipment and storage medium
CN112667481A (en) * 2020-12-31 2021-04-16 中国建设银行股份有限公司 Data collection kit, method and device
CN112667481B (en) * 2020-12-31 2024-05-10 中国建设银行股份有限公司 Data acquisition tool kit, method and equipment
CN114003272A (en) * 2021-11-01 2022-02-01 焦点科技股份有限公司 Method for configuring embedded point parameters and trigger conditions
CN114003272B (en) * 2021-11-01 2024-04-16 焦点科技股份有限公司 Buried point parameter and trigger condition collocation method

Similar Documents

Publication Publication Date Title
CN110489597A (en) A kind of method and terminal device obtaining data
CN108345543B (en) Data processing method, device, equipment and storage medium
CN106453053B (en) Group message display methods and device
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN107204964B (en) Authority management method, device and system
CN111125269B (en) Data management method, blood relationship display method and related device
CN106453692B (en) A kind of domain name analytic method, device and system
CN106708676A (en) Interface test method and apparatus
CN106973330A (en) A kind of screen live broadcasting method, device and system
CN107368298B (en) Text control simulation touch method, terminal and computer readable storage medium
CN110168566A (en) A kind of method and terminal identifying screenshot text
CN106021112A (en) Program testing system, method and device
CN106708554A (en) Program running method and device
WO2017219293A1 (en) Method and device for acquiring web content
CN108151716A (en) Flight instruments mapping operating area planing method, device and terminal
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN112749074B (en) Test case recommending method and device
CN106293486A (en) Exchange method between a kind of terminal and device
CN109246233A (en) Data processing method, device, equipment and storage medium based on on-line monitoring
EP3105912B1 (en) Application-based service providing method and system
WO2015096660A1 (en) Methods and devices for displaying a webpage
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN114840565A (en) Sampling query method, device, electronic equipment and computer readable storage medium
CN106020945A (en) Shortcut item adding method and device
CN114428721A (en) Test data processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination