CN109684156A - Monitoring method, device, terminal and storage medium based on mixed mode applications - Google Patents
Monitoring method, device, terminal and storage medium based on mixed mode applications Download PDFInfo
- Publication number
- CN109684156A CN109684156A CN201810991572.9A CN201810991572A CN109684156A CN 109684156 A CN109684156 A CN 109684156A CN 201810991572 A CN201810991572 A CN 201810991572A CN 109684156 A CN109684156 A CN 109684156A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- data
- information
- mixed mode
- code
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
The present invention relates to network monitoring fields, it discloses a kind of monitoring method based on mixed mode applications, device, terminal and storage mediums, the described method includes: obtaining the triggering information of current business system of the user based on mixed mode applications, the first monitoring programme and the second monitoring programme are started according to the triggering information;It is integrated described using data and the interaction data by preset rules;The selection instruction for receiving user, extracts the monitoring information to be presented chosen in instruction;Corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and the target information is shown.The present invention obtains the discrete data of current business system monitoring by monitoring programme, discrete data preservation is integrated in the database, and the data-interface of foundation correspondingly, realize the calling to data after integration, to realize the integration to discrete data, can comprehensive analysis current business system, improve data analysis accuracy.
Description
Technical field
The present invention relates to software supervision technical field more particularly to a kind of monitoring methods based on mixed mode applications, dress
It sets, terminal and storage medium.
Background technique
Currently, there are two types of entrances in mobile device, first is that application program is downloaded by application program store, the other is with
System browser removes access webpage.We are commonly referred to as native applications for the former, and the latter is exactly traditional webpage.The two is each
There is feature, develops a native applications, usually using the developing instrument and Development Framework provided, for original application, such as
Cocos frame is the running environment of the program of OS X and iOS operating system, and advantage is just available with all spies of system
Property, the characteristic of customization is made without losing any performance, and disadvantage is exactly that each application program offer new function must all weigh
It is new to be packaged application program, it submits to apple and is audited, by the way that restocking to application program store, end user rises again again later
Grade, averagely needs two weeks time.On the contrary, writing a webpage, then absolutely not this is limited, and server is primary upgrading, user
The shortcomings that being visited again by browser, be exactly latest edition, and writing webpage is then very restricted, and many system performances are
It can not access, and performance is not often high, so that being difficult to realize some very cruel effects.
It is each advantageous in view of native applications and webpage, so just having derived a kind of development scheme-to fall between
(hybrid App) is applied in mixing, its main feature is that a browser component is embedded in native applications, then by certain mode,
Allow primary code and webpage can both-way communication, therefore primary function can be used when needing primary function, and be suitble to
The part for being placed on page end is just put on the server, has used the advantage of the two in a way.Another advantage is exactly, by
In web technologies in iOS system as being on Android system, therefore, it can be achieved that cross-platform utilization.
As the system service requirement to hybrid App is higher and higher, met the tendency of for the monitoring system of hybrid App and
It is raw, but the monitoring system of hybrid App frequently results in data discrete.
Summary of the invention
It is a primary object of the present invention to propose a kind of monitoring method based on mixed mode applications, device, terminal and deposit
Storage media, it is intended to the technical issues of solving monitoring system data discrete based on hybrid App in the prior art.
To achieve the above object, the present invention provides a kind of monitoring method based on mixed mode applications, described based on mixing
Mode application monitoring method the following steps are included:
The triggering information for obtaining current business system of the user based on mixed mode applications starts according to the triggering information
First monitoring programme and the second monitoring programme, so that first monitoring programme monitors the Protozoic in the current business system
The use data of code, second monitoring programme monitor the interaction data of web page code in the current business system;
It is integrated described using data and the interaction data by preset rules;
The selection instruction for receiving user, extracts the monitoring information to be presented chosen in instruction;
Corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and will be described
Target information is shown.
Preferably, the triggering information for obtaining current business system of the user based on mixed mode applications, according to described
Before triggering information the first monitoring programme of starting and the second monitoring programme, the method also includes:
Write instruction is obtained, is instructed according to said write and determines primary code and the webpage described in current business system
Code;
The preset function in the primary code is extracted, first monitoring programme is written in the preset function, mentions
The port information in the web page code is taken, second monitoring programme is written in the port information.
Preferably, the acquisition write instruction instructs according to said write and determines Protozoic described in current business system
Code and the web page code, comprising:
Write instruction is obtained, the operation code in the current business system is extracted according to said write instruction, it will be described
Operation code is compared with general primary code is preset, and will preset the identical first object operation of general primary code with described
Code is determined as the primary code in the current business system, and the operation code and default generic web pages code are compared
Compared with the second object run code identical with the default generic web pages code is determined as the institute in the current business system
State web page code.
It is preferably, described to be integrated described using data and the interaction data by preset rules, comprising:
Preset keyword information is obtained, is carried out to described using data and interaction data according to the preset keyword information
Classification, and the use data for carrying the preset keyword information respectively and interaction data are carried out by relation mapping table whole
It closes;
It is described that corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and will
The target information is shown, comprising:
Using the monitoring information to be presented as the preset keyword information, closed according to the preset keyword information
It is to search corresponding target in mapping table using data and target interaction data, the target is handed over using data and the target
Mutual data are shown as the target information, and by the target information.
Preferably, the acquisition preset keyword information, according to the preset keyword information to it is described using data and
Interaction data is classified, and the use data for carrying the preset keyword information respectively and interaction data are passed through relationship
Before mapping table is integrated, the method also includes:
Historical keyword information is obtained, history is established according to the historical keyword information and uses data and history interaction number
According to relation mapping table.
Preferably, it is described by it is described integrated using data and the interaction data by preset rules after, it is described
Method further include:
By after integration use data and interaction data save in the database, and establish preset interface and call the data
Library;
Corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and will be described
Target information is shown, comprising:
Preset interface corresponding with the monitoring information to be presented is searched, is searched in the database according to the preset interface
Corresponding target information, and the target information is shown.
Preferably, lookup preset interface corresponding with the monitoring information to be presented, exists according to the preset interface
Corresponding target information is searched in database, and the target information is shown, comprising:
Preset interface corresponding with the monitoring information to be presented is searched, is searched in the database according to the preset interface
Corresponding target information extracts the weighted value in the target information, is opened up the target information according to the weighted value
Show.
In addition, to achieve the above object, the present invention also proposes a kind of monitoring device based on mixed mode applications, the base
Include: in the monitoring device of mixed mode applications
Module is obtained, for obtaining the triggering information of current business system of the user based on mixed mode applications, according to institute
It states triggering information and starts the first monitoring programme and the second monitoring programme, so that first monitoring programme monitors the current business
The use data of primary code in system, second monitoring programme monitor the friendship of web page code in the current business system
Mutual data;
Module is integrated, for integrating described using data and the interaction data by preset rules;
Extraction module, the selection for receiving user instruct, and extract the monitoring information to be presented chosen in instruction;
Searching module, for searching corresponding target from the monitoring data after integration according to the monitoring information to be presented
Information, and the target information is shown.
In addition, to achieve the above object, the present invention also proposes a kind of terminal, the terminal include: memory, processor and
It is stored in the monitoring programme based on mixed mode applications that can be run on the memory and on the processor, it is described to be based on
The monitoring programme of mixed mode applications is arranged for carrying out the step of monitoring method based on mixed mode applications as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, it is stored with and is based on the storage medium
The monitoring programme of mixed mode applications is realized when the monitoring programme based on mixed mode applications is executed by processor as above
The step of described monitoring method based on mixed mode applications.
Monitoring method proposed by the present invention based on mixed mode applications is equipped with monitoring Protozoic in current business system
The monitoring programme of code and the monitoring programme of web page monitored code obtain the discrete of current business system monitoring by monitoring programme
Discrete data preservation is integrated in the database, and establishes data-interface correspondingly by data, realizes to data after integration
Calling, to realize integration to discrete data, can comprehensive analysis current business system, improve the accurate of data analysis
Property.
Detailed description of the invention
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is that the present invention is based on the flow diagrams of the monitoring method first embodiment of mixed mode applications;
Fig. 3 is that the present invention is based on the flow diagrams of the monitoring method second embodiment of mixed mode applications;
Fig. 4 is that the present invention is based on the flow diagrams of the monitoring method 3rd embodiment of mixed mode applications;
Fig. 5 is that the present invention is based on the flow diagrams of the monitoring method fourth embodiment of mixed mode applications;
Fig. 6 is that the present invention is based on the functional block diagrams of the monitoring device first embodiment of mixed mode applications.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as key, and optional user interface 1003 can also wrap
Include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface
(such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile
), such as magnetic disk storage memory.Memory 1005 optionally can also be the storage dress independently of aforementioned processor 1001
It sets.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include operating system, network communication mould in a kind of memory 1005 of storage medium
Block, Subscriber Interface Module SIM and the monitoring programme based on mixed mode applications.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting outer net, carries out data with other network equipments
Communication;User interface 1003 is mainly used for connecting user terminal, carries out data communication with terminal;Terminal of the present invention passes through processor
The monitoring programme based on mixed mode applications stored in 1001 calling memories 1005, and execute provided in an embodiment of the present invention
The implementation method of monitoring based on mixed mode applications.
Based on above-mentioned hardware configuration, propose that the present invention is based on the monitoring method embodiments of mixed mode applications.
It is that the present invention is based on the flow diagrams of the monitoring method first embodiment of mixed mode applications referring to Fig. 2, Fig. 2.
In the first embodiment, the monitoring method based on mixed mode applications the following steps are included:
Step S10 obtains the triggering information of current business system of the user based on mixed mode applications, according to the triggering
Information starts the first monitoring programme and the second monitoring programme, so that first monitoring programme monitors in the current business system
Primary code use data, second monitoring programme monitors the interaction number of web page code in the current business system
According to.
It should be noted that the mixed mode applications are the application based on hybird app frame, that is, it include Protozoic
Application program (Application, APP) code of code, further includes page code two parts based on browser, passes through the first prison
Control the monitoring of program and the realization of the second monitoring programme to primary code and page code.
In the concrete realization, the primary code in current business system is identified with page code, by will be primary
Code is compared with general primary code is preset, so that it is determined that the primary code in current business system, by page code with
The page code of general browser is compared, so that it is determined that the page code in current business system, since primary code is
First monitoring programme is added in preset function, realizes by obtaining preset function for function composition based on APP frame
Monitoring to primary code, such as get function etc. can obtain making for user due to passing through get function generally in native program
With information, thus by the service condition of monitoring get function, so as to obtain the data processing state of current business system.
For web page code, due to the data monitoring for being related to interacting with server, by obtaining default interaction function, in master
The interaction function wanted stamps timestamp, can also be counted by the allocating time to all system functions, so that obtaining has
The monitoring data of effect is monitored for the network request packet in hybrid app, can be by stamping in the process to delegate
Timestamp, to count page request and load time, such as user is new by the browser browsing QQ in hybrid app
Wen Shi obtains the triggering command of user first, extracts the calling web function in triggering command, calls in function and carries calling
Opening time stamp obtains the deadline stamp for calling function, is stabbed according to the opening time and complete then when QQ news is shown
Page request and load time are determined at timestamp, to realize the monitoring to page code, are conducive to safeguard current business system
System.
Step S20 is integrated described using data and the interaction data by preset rules.
It should be noted that respectively primary code and the webpage that are acquired by the first monitoring programme and the second monitoring programme
The discrete data of code saves the discrete data of acquisition in the database to improve business processing efficiency, and by database
Classify, preset interface is arranged according to classification type and is called corresponding data, such as user passes through in platform interface
Insurance business is checked and accepted from database according to insurance business request to monitoring data relevant to insurance business accordingly, and will
Monitoring data is shown, and in data processing, data can be carried out classification preservation by type of service, such as insure,
Finance etc. is conducive to carry out monitoring data comprehensive comparison analysis, improves data to realize the integration to discrete data
The correctness of processing.
In the concrete realization, second monitoring programme is the monitoring programme of web page monitored code, can be to be located at and outside
Server interacts the default agent monitors small routine of port, and the data for presetting the monitoring of agent monitors small routine are specifically wrapped
The data information for including the browsings such as user's access browser, the monitoring data for the first monitoring programme monitoring primary code includes using
The parameter information that family sets APP, such as interface setting, personal settings, time, the original number of the general APP frame such as font
According to default agent monitors small routine mainly passes through the data of the interaction between port monitoring and server, the monitoring of primary code
Data are some parameter informations of local user's input, the interaction data being not related between server.
In order to realize the analysis to data after integration, can by preset interface extract integration after valid data, such as with
By the operational controls of display interface on monitor supervision platform, " response time " looks into from database so as to the time according to response at family
The response time data for looking for monitoring specifically includes the timestamp for calling function, to count the response time, wherein calling
Data include the data of primary code monitoring data and the monitoring of default agent monitors small routine, and the data of extraction are shown,
So as to which discrete data are carried out integration displaying.
Step S30 receives the selection instruction of user, extracts the monitoring information to be presented chosen in instruction.
It should be noted that the current business system provides user input interface, user is monitored number by interface
The response time is shown in information, such as the interface according to choosing, by clicking the response time, using the response time as institute
Monitoring information to be presented is stated, the monitoring information to be presented chosen according to user is searched from database corresponding by preset interface
Monitoring information to be presented is shown.
It is understood that the selection instruction of the user is that user is carried out a little based on the interface of current business system demonstration
Hit operation, can also be the operation for being shown interface by the interface that APP is shown, the present embodiment to this with no restriction.
Step S40 searches corresponding target information according to the monitoring information to be presented from the monitoring data after integration,
And the target information is shown.
In order to realize that better monitoring effect, such as user choose the response time by interface operation, pass through the response time
Can monitor UI response condition and corresponding parameter information, the parameter information of response time exception can also be warned, from
And can prompt developer that the signal at interface is reconstructed, to improve the performance of system operation.
The present embodiment through the above scheme, is equipped with the monitoring programme and prison of monitoring primary code in current business system
The monitoring programme for controlling web page code is obtained the discrete data of current business system monitoring by monitoring programme, discrete data is protected
It deposits and is integrated in the database, and establish data-interface correspondingly, realize the calling to data after integration, thus realization pair
The integration of discrete data, can comprehensive analysis current business system, improve data analysis accuracy
Further, as shown in figure 3, proposing that the present invention is based on the monitoring methods of mixed mode applications based on first embodiment
Second embodiment, in the present embodiment, before the step S10, the method also includes:
Step S101 obtains write instruction, is instructed according to said write and determines primary code described in current business system
With the web page code;
It should be noted that can be passed through by different monitoring programmes to realize the monitoring to current business system
First monitoring programme monitors primary code, by the second monitoring programme web page monitored code, to realize to mixed mode applications
Operation system monitoring.
Step S102 extracts the preset function in the primary code, and first prison is written in the preset function
Program is controlled, the port information in the web page code is extracted, second monitoring programme is written in the port information.
In the concrete realization, in order to realize the monitoring to primary code and web page code by monitoring programme, in this reality
It applies in example, the number by obtaining the identification realized to primary code and web page code, for primary code, in primary code
First monitoring programme is set according to obtaining in function, to realize the monitoring to primary code, is being related in web page code
The second monitoring function is set in the function interacted with server, to realize the monitoring to web page code.
It should be noted that in order to realize the monitoring to web page code, due to web page code relate generally to server it
Between interaction avoid loss of data to obtain complete data, by being set on the port interacted with external server
Second monitoring programme is set, to realize effective crawl to monitoring data, such as is 8080 for accessing the web page port,
By getting the interface function of port 8080, to realize the monitoring to port.
Further, the step S101, comprising:
Step S103 obtains write instruction, and the operation generation in the current business system is extracted according to said write instruction
Code, the operation code is compared with general primary code is preset, and will preset general primary code identical the with described
One object run code is determined as the primary code in the current business system, by the operation code and default generic web pages
Code is compared, and the second object run code identical with the default generic web pages code is determined as the current business
The web page code in system.
In the present embodiment, it by obtaining whole code informations of operation system, by whole code informations and presets logical
It is compared with primary code, according to the first comparison result so that it is determined that primary code in current business system, by will be complete
Portion's code information is compared with the page code of general browser, so that it is determined that the page code in current business system, from
And identify primary code and web page code in current business system, wherein first comparison result is to determine current business
The comparison result of primary code in system, second comparison result are the comparison knot for determining web page code in current business system
Fruit.
Scheme provided in this embodiment, by the way that the first monitoring programme and the second monitoring journey are written in current business system
Monitoring programme is located at corresponding position according to the difference of type of code by sequence, to realize the monitoring to mixed mode applications.
Further, as shown in figure 4, proposing that the present invention is based on mixed modes to answer based on the first embodiment or the second embodiment
Monitoring method 3rd embodiment is illustrated based on first embodiment in the present embodiment, the step S20, comprising:
Step S201 obtains preset keyword information, uses data and friendship to described according to the preset keyword information
Mutual data are classified, and the use data for carrying the preset keyword information respectively and interaction data are reflected by relationship
Firing table is integrated.
It should be noted that the preset keyword information can be believed for the monitoring to be presented inputted by current business interface
Breath by way of the keyword that can be shown input interface is clicked, can also be equipped with input dialogue frame for input interface, lead to
Cross input dialogue frame carry out keyword input, the present embodiment to this with no restriction.
In the concrete realization, the use data and interaction data of monitoring are classified according to preset keyword, such as obtained
It gets using the monitoring data for carrying premium content in data and interaction data, the monitoring data is integrated, and builds
Vertical relation mapping table saves keyword and the corresponding relationship using data and interaction data content, thus realize to use data and
Effective management of interaction data.
In order to realize the classification to monitoring data, whether contained by preset keyword judgement using data and interaction data
The preset keyword can will use data and interaction data to be divided into one kind containing the preset keyword, and according to key
Word establishes data-interface, realizes the calling to monitoring data.
In order to realize effective management to monitoring data, when not containing preset keyword using data and interaction data,
Other keywords can be searched to using data and interaction data to learn, realize effective data analysis, appoint not having
Use data of what connection and when interaction data, are deposited into default storage region and are saved, thus to monitoring data into
Row filtration treatment improves the treatment effeciency to monitoring data.
The step S40, comprising:
Step S401, using the monitoring information to be presented as the preset keyword information, according to the default key
Word information searches corresponding target using data and target interaction data in relation mapping table, by the target using data and
The target interaction data is shown as the target information, and by the target information.
It should be noted that the target information is the information that requires to look up of user, can user's input monitoring to be presented
Displaying of the information realization to valid data, such as user input response message by input interface, so as to from monitoring data
It searches monitoring data relevant to response message to be shown, and the displaying that visualization interface is monitored data is provided, improve
User experience.
Further, before the step S201, the method also includes:
Step S202 obtains historical keyword information, according to the historical keyword information establish history using data and
The relation mapping table of historical interaction data.
It should be noted that can be stored in default storage region default to be efficiently identified to the data of acquisition
Relation mapping table effectively divides the data for putting on label by relation mapping table, and user is chosen to be selected by interface
The label information for selecting information is searched monitoring data corresponding with label information in data by label information, and will monitor number
According to effectively being shown.
Scheme provided in this embodiment classifies the use data and interaction data of monitoring according to preset keyword,
And opening relationships mapping table saves keyword and the corresponding relationship using data and interaction data content, to realize to using number
According to effective management with interaction data.
Further, as shown in figure 5, proposing that the present invention is based on mixed modes to answer based on the first embodiment or the second embodiment
Monitoring method fourth embodiment is illustrated based on first embodiment in the present embodiment, the step S20 it
Afterwards, the method also includes:
Step S203, by after integration use data and interaction data save in the database, and establish preset interface tune
With the database.
It should be noted that in order to realize the integration to data and interaction data are used, by the first monitoring programme and second
The use data and interaction data of monitoring programme monitoring save in the database, to realize the integration to discrete data, and will
It is managed in database by preset interface, user can adjust the data in database by the preset interface in interface
With.
In the concrete realization, will effectively be divided when data are stored in database, by the data after division into
Row storage, will effectively be bridged between the data of division and the selection information at interface, so as to effectively mention from interface
Take the data in database.
The step S40, comprising:
Step S402 searches preset interface corresponding with the monitoring information to be presented, according to the preset interface in number
According to searching corresponding target information in library, and the target information is shown.
Further, the step S402, comprising:
Step S403 searches preset interface corresponding with the monitoring information to be presented, according to the preset interface in number
According to corresponding target information is searched in library, the weighted value in the target information is extracted, according to the weighted value by the target
Information is shown.
Monitoring data after integration, since influence of the data to system performance of acquisition be not identical, such as App
In, it is equally hypertext transfer protocol (HyperText Transfer Protocol, HTTP) request, it may be possible to come from web
The calling of service (receiving the request transmitted from the other systems on internet), it is also possible to from web view (for showing
Show the control of webpage) loading page, and the latter is the main implementation of Hybrid App, so as to by web view loaded page
The data in face set higher weight, to preferably improve the accuracy of hybrid app monitoring data analysis.
Scheme provided in this embodiment, the use data that the first monitoring programme and the second monitoring programme are monitored and interaction number
It according to saving in the database, to realize the integration to discrete data, and will be managed, used by preset interface in database
Family can be called the data in database by the preset interface in interface, to improve user experience.
The present invention further provides a kind of monitoring devices based on mixed mode applications.
It is that the present invention is based on the signals of the functional module of the monitoring device first embodiment of mixed mode applications referring to Fig. 6, Fig. 6
Figure.
The present invention is based in the monitoring device first embodiment of mixed mode applications, it is somebody's turn to do the monitoring based on mixed mode applications
Device includes:
Module 10 is obtained, for obtaining the triggering information of current business system of the user based on mixed mode applications, according to
The triggering information starts the first monitoring programme and the second monitoring programme, so that first monitoring programme monitors the current industry
The use data of primary code in business system, second monitoring programme monitor web page code in the current business system
Interaction data.
It should be noted that the mixed mode applications are the application based on hybird app frame, that is, it include Protozoic
Application program (Application, APP) code of code, further includes page code two parts based on browser, passes through the first prison
Control the monitoring of program and the realization of the second monitoring programme to primary code and page code.
In the concrete realization, the primary code in current business system is identified with page code, by will be primary
Code is compared with general primary code is preset, so that it is determined that the primary code in current business system, by page code with
The page code of general browser is compared, so that it is determined that the page code in current business system, since primary code is
First monitoring programme is added in preset function, realizes by obtaining preset function for function composition based on APP frame
Monitoring to primary code, such as get function etc. can obtain making for user due to passing through get function generally in native program
With information, thus by the service condition of monitoring get function, so as to obtain the data processing state of current business system.
For web page code, due to the data monitoring for being related to interacting with server, by obtaining default interaction function, in master
The interaction function wanted stamps timestamp, can also be counted by the allocating time to all system functions, so that obtaining has
The monitoring data of effect is monitored for the network request packet in hybrid app, can be by stamping in the process to delegate
Timestamp, to count page request and load time, such as user is new by the browser browsing QQ in hybrid app
Wen Shi obtains the triggering command of user first, extracts the calling web function in triggering command, calls in function and carries calling
Opening time stamp obtains the deadline stamp for calling function, is stabbed according to the opening time and complete then when QQ news is shown
Page request and load time are determined at timestamp, to realize the monitoring to page code, are conducive to safeguard current business system
System.
Module 20 is integrated, for integrating described using data and the interaction data by preset rules.
It should be noted that respectively primary code and the webpage that are acquired by the first monitoring programme and the second monitoring programme
The discrete data of code saves the discrete data of acquisition in the database to improve business processing efficiency, and by database
Classify, preset interface is arranged according to classification type and is called corresponding data, such as user passes through in platform interface
Insurance business is checked and accepted from database according to insurance business request to monitoring data relevant to insurance business accordingly, and will
Monitoring data is shown, and in data processing, data can be carried out classification preservation by type of service, such as insure,
Finance etc. is conducive to carry out monitoring data comprehensive comparison analysis, improves data to realize the integration to discrete data
The correctness of processing.
In the concrete realization, second monitoring programme is the monitoring programme of web page monitored code, can be to be located at and outside
Server interacts the default agent monitors small routine of port, and the data for presetting the monitoring of agent monitors small routine include using
The data information of the browsings such as family access browser, the monitoring data for the first monitoring programme monitoring primary code includes user couple
The parameter information of APP setting, such as interface setting, personal settings, the time, the initial data of the general APP frame such as font, in advance
If agent monitors small routine mainly passes through the data of the interaction between port monitoring and server, the monitoring data of primary code is
Some parameter informations of local user's input, the interaction data being not related between server.
In order to realize the analysis to data after integration, can by preset interface extract integration after valid data, such as with
By the operational controls of display interface on monitor supervision platform, " response time " looks into from database so as to the time according to response at family
The response time data for looking for monitoring, the timestamp including calling function, to count the response time, wherein the data of calling
Including the data that primary code monitoring data and default agent monitors small routine monitor, the data of extraction are shown, thus
Discrete data can be subjected to integration displaying.
Extraction module 30, the selection for receiving user instruct, and extract the monitoring information to be presented chosen in instruction.
It should be noted that the current business system provides user input interface, user is monitored number by interface
The response time is shown in information, such as the interface according to choosing, by clicking the response time, using the response time as institute
Monitoring information to be presented is stated, the monitoring information to be presented chosen according to user is searched from database corresponding by preset interface
Monitoring information to be presented is shown.
It is understood that the selection instruction of the user is that user is carried out a little based on the interface of current business system demonstration
Hit operation, can also be the operation for being shown interface by the interface that APP is shown, the present embodiment to this with no restriction.
Searching module 40, for searching corresponding mesh from the monitoring data after integration according to the monitoring information to be presented
Information is marked, and the target information is shown.
In order to realize that better monitoring effect, such as user choose the response time by interface operation, pass through the response time
Can monitor UI response condition and corresponding parameter information, the parameter information of response time exception can also be warned, from
And can prompt developer that the signal at interface is reconstructed, to improve the performance of system operation.
The present embodiment through the above scheme, is equipped with the monitoring programme and prison of monitoring primary code in current business system
The monitoring programme for controlling web page code is obtained the discrete data of current business system monitoring by monitoring programme, discrete data is protected
It deposits and is integrated in the database, and establish data-interface correspondingly, realize the calling to data after integration, thus realization pair
The integration of discrete data, can comprehensive analysis current business system, improve data analysis accuracy.
In addition, to achieve the above object, the present invention also proposes a kind of terminal, the terminal include: memory, processor and
It is stored in the monitoring programme based on mixed mode applications that can be run on the memory and on the processor, it is described to be based on
The monitoring programme of mixed mode applications is arranged for carrying out the step of monitoring method as described above based on mixed mode applications.
In addition, the embodiment of the present invention also proposes a kind of storage medium, it is stored on the storage medium based on mixed mode
The monitoring programme of application, the monitoring programme based on mixed mode applications are executed by processor as described above based on mixing
The step of monitoring method of mode application.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In computer readable storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that an intelligent terminal (can
To be mobile phone, computer, terminal device, air conditioner or the network equipment etc.) execute side described in each embodiment of the present invention
Method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of monitoring method based on mixed mode applications, which is characterized in that the monitoring side based on mixed mode applications
Method includes:
The triggering information for obtaining current business system of the user based on mixed mode applications, according to triggering information starting first
Monitoring programme and the second monitoring programme, so that first monitoring programme monitors the primary code in the current business system
Using data, second monitoring programme monitors the interaction data of web page code in the current business system;
It is integrated described using data and the interaction data by preset rules;
The selection instruction for receiving user, extracts the monitoring information to be presented chosen in instruction;
Corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and by the target
Information is shown.
2. as described in claim 1 based on the monitoring method of mixed mode applications, which is characterized in that the acquisition user is based on
The triggering information of the current business system of mixed mode applications starts the first monitoring programme and the second prison according to the triggering information
Before controlling program, the method also includes:
Write instruction is obtained, is instructed according to said write and determines primary code and the webpage generation described in current business system
Code;
The preset function in the primary code is extracted, first monitoring programme is written in the preset function, extracts institute
The port information in web page code is stated, second monitoring programme is written in the port information.
3. as claimed in claim 2 based on the monitoring method of mixed mode applications, which is characterized in that the acquisition write-in refers to
It enables, is instructed according to said write and determine primary code and the web page code described in current business system, comprising:
Write instruction is obtained, the operation code in the current business system is extracted according to said write instruction, by the operation
Code is compared with general primary code is preset, and will preset general primary code identical first object operation code with described
The operation code is compared by the primary code being determined as in the current business system with default generic web pages code,
Described in the second object run code identical with the default generic web pages code is determined as in the current business system
Web page code.
4. as claimed any one in claims 1 to 3 based on the monitoring method of mixed mode applications, which is characterized in that described
It is integrated described using data and the interaction data by preset rules, comprising:
Preset keyword information is obtained, is divided using data and interaction data according to the preset keyword information described
Class, and the use data for carrying the preset keyword information respectively and interaction data are carried out by relation mapping table whole
It closes;
It is described that corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and will be described
Target information is shown, comprising:
Using the monitoring information to be presented as the preset keyword information, reflected according to the preset keyword information in relationship
Corresponding target is searched in firing table using data and target interaction data, and the target is used into data and target interaction number
It is shown according to as the target information, and by the target information.
5. as claimed in claim 4 based on the monitoring method of mixed mode applications, which is characterized in that described to obtain default key
Word information is classified using data and interaction data to described according to the preset keyword information, and will carried respectively
Before the use data and interaction data of the preset keyword information are integrated by relation mapping table, the method is also wrapped
It includes:
Historical keyword information is obtained, history is established according to the historical keyword information and uses data and historical interaction data
Relation mapping table.
6. as claimed any one in claims 1 to 3 based on the monitoring method of mixed mode applications, which is characterized in that described
After the use data and the interaction data are integrated by preset rules, the method also includes:
By after integration use data and interaction data save in the database, and establish preset interface and call the database;
Corresponding target information is searched from the monitoring data after integration according to the monitoring information to be presented, and by the target
Information is shown, comprising:
Preset interface corresponding with the monitoring information to be presented is searched, correspondence is searched according to the preset interface in the database
Target information, and the target information is shown.
7. as claimed in claim 6 based on the monitoring method of mixed mode applications, which is characterized in that it is described lookup with it is described to
It shows the corresponding preset interface of monitoring information, corresponding target information is searched according to the preset interface in the database, and will
The target information is shown, comprising:
Preset interface corresponding with the monitoring information to be presented is searched, correspondence is searched according to the preset interface in the database
Target information, extract the weighted value in the target information, be shown the target information according to the weighted value.
8. a kind of monitoring device based on mixed mode applications, which is characterized in that the monitoring dress based on mixed mode applications
It sets and includes:
Module is obtained, for obtaining the triggering information of current business system of the user based on mixed mode applications, according to the touching
Photos and sending messages start the first monitoring programme and the second monitoring programme, so that first monitoring programme monitors the current business system
In primary code use data, second monitoring programme monitors the interaction number of web page code in the current business system
According to;
Module is integrated, for integrating described using data and the interaction data by preset rules;
Extraction module, the selection for receiving user instruct, and extract the monitoring information to be presented chosen in instruction;
Searching module is believed for searching corresponding target from the monitoring data after integration according to the monitoring information to be presented
Breath, and the target information is shown.
9. a kind of terminal, which is characterized in that the terminal includes: memory, processor and is stored on the memory and can
The monitoring programme based on mixed mode applications run on the processor, the monitoring programme based on mixed mode applications
The step of monitoring method based on mixed mode applications being arranged for carrying out as described in any one of claims 1 to 7.
10. a kind of storage medium, which is characterized in that be stored with the monitoring journey based on mixed mode applications on the storage medium
Sequence is realized as described in any one of claims 1 to 7 when the monitoring programme based on mixed mode applications is executed by processor
The monitoring method based on mixed mode applications the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991572.9A CN109684156B (en) | 2018-08-27 | 2018-08-27 | Monitoring method, device, terminal and storage medium based on mixed mode application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991572.9A CN109684156B (en) | 2018-08-27 | 2018-08-27 | Monitoring method, device, terminal and storage medium based on mixed mode application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109684156A true CN109684156A (en) | 2019-04-26 |
CN109684156B CN109684156B (en) | 2022-05-17 |
Family
ID=66185591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810991572.9A Active CN109684156B (en) | 2018-08-27 | 2018-08-27 | Monitoring method, device, terminal and storage medium based on mixed mode application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684156B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968492A (en) * | 2019-12-09 | 2020-04-07 | 北京小米移动软件有限公司 | Information processing method and device, and storage medium |
CN111339175A (en) * | 2020-02-28 | 2020-06-26 | 成都运力科技有限公司 | Data processing method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302015A (en) * | 2016-08-16 | 2017-01-04 | 华青融天(北京)技术股份有限公司 | A kind of service condition monitoring method, device and system |
CN106951233A (en) * | 2017-03-02 | 2017-07-14 | 广州天高软件科技有限公司 | Mixed mode smart mobile phone application development framework |
CN107102904A (en) * | 2017-03-29 | 2017-08-29 | 腾讯科技(深圳)有限公司 | Exchange method and device based on mixed application |
CN107122281A (en) * | 2017-03-17 | 2017-09-01 | 百度在线网络技术(北京)有限公司 | Mobile solution loads monitoring method and system |
CN107239389A (en) * | 2017-06-07 | 2017-10-10 | 网易(杭州)网络有限公司 | A kind of method and device that user operation records are determined in mixing APP |
-
2018
- 2018-08-27 CN CN201810991572.9A patent/CN109684156B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302015A (en) * | 2016-08-16 | 2017-01-04 | 华青融天(北京)技术股份有限公司 | A kind of service condition monitoring method, device and system |
CN106951233A (en) * | 2017-03-02 | 2017-07-14 | 广州天高软件科技有限公司 | Mixed mode smart mobile phone application development framework |
CN107122281A (en) * | 2017-03-17 | 2017-09-01 | 百度在线网络技术(北京)有限公司 | Mobile solution loads monitoring method and system |
CN107102904A (en) * | 2017-03-29 | 2017-08-29 | 腾讯科技(深圳)有限公司 | Exchange method and device based on mixed application |
CN107239389A (en) * | 2017-06-07 | 2017-10-10 | 网易(杭州)网络有限公司 | A kind of method and device that user operation records are determined in mixing APP |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968492A (en) * | 2019-12-09 | 2020-04-07 | 北京小米移动软件有限公司 | Information processing method and device, and storage medium |
CN110968492B (en) * | 2019-12-09 | 2023-04-25 | 北京小米移动软件有限公司 | Information processing method and device and storage medium |
CN111339175A (en) * | 2020-02-28 | 2020-06-26 | 成都运力科技有限公司 | Data processing method and device, electronic equipment and readable storage medium |
CN111339175B (en) * | 2020-02-28 | 2023-08-11 | 成都运力科技有限公司 | Data processing method, device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109684156B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106503134B (en) | Browser jumps to the method for data synchronization and device of application program | |
CN109684370A (en) | Daily record data processing method, system, equipment and storage medium | |
CN109032825B (en) | Fault injection method, device and equipment | |
CN109672580A (en) | Full link monitoring method, apparatus, terminal device and storage medium | |
CN106547578A (en) | The loading method and device of terminal applies APP | |
EP1661036A1 (en) | A method and system for improving presentation of html pages in web devices | |
CN109684573B (en) | Target picture display method and device, storage medium and electronic equipment | |
CN104216698B (en) | A kind of registration web page method and relevant apparatus | |
CN109313563A (en) | A kind of collecting method, apparatus and system | |
CN108549568A (en) | Using entrance processing method, apparatus, storage medium and electronic equipment | |
CN104219295A (en) | Server-side configuration based information display method and system for mobile equipment | |
CN108984632A (en) | A kind of webpage setting method and device | |
CN109684156A (en) | Monitoring method, device, terminal and storage medium based on mixed mode applications | |
CN110266555A (en) | Method for analyzing web site service request | |
CN109902030A (en) | A kind of method of application program of mobile phone automatic test step record and playback | |
CN110515514A (en) | A kind of data processing method, device and storage medium | |
CN112256377A (en) | Popup window data processing method and device | |
CN110825373B (en) | Mobile terminal dynamic method and device | |
CN112241373A (en) | Automatic test method, test device, processor and test system | |
CN106155498A (en) | Prevent list from sliding on a kind of Android platform and block the picture loading method timing | |
CN113726855B (en) | Service aggregation method, device, electronic equipment and computer-readable storage medium | |
CN111813566B (en) | Cross-process dragging method, device, equipment and computer readable storage medium | |
CN105631318B (en) | A kind of acquisition methods and device of registration table key assignments | |
CN114356330A (en) | Page configuration method and device, electronic equipment and storage medium | |
CN109683944B (en) | Application function switch management method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |