CN110061860A - Example generation method, device, equipment and the storage medium of monitored object - Google Patents
Example generation method, device, equipment and the storage medium of monitored object Download PDFInfo
- Publication number
- CN110061860A CN110061860A CN201910217263.0A CN201910217263A CN110061860A CN 110061860 A CN110061860 A CN 110061860A CN 201910217263 A CN201910217263 A CN 201910217263A CN 110061860 A CN110061860 A CN 110061860A
- Authority
- CN
- China
- Prior art keywords
- template
- monitored object
- parameter
- configuration
- configuration interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of example generation methods of monitored object, comprising: after receiving monitored object configuration-direct, indicating template configuration interface;It receives user and is based on input variable parameter on template configuration interface, and generate the configuration template of monitored object based on the variable parameter received;It shows the parameter configuration interface of the configuration template generated, and receives the monitored object monitor parameter that user is inputted based on parameter configuration interface;The example for generating monitored object according to the configuration template of the monitoring parameter of input and monitored object.The invention also discloses example generating means, equipment and the storage mediums of a kind of monitored object.Present invention reduces the difficulty for the example for generating monitored object, reduce development cost.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of internet be monitored object example generation method,
Device, equipment and storage medium.
Background technique
With the continuous development of Internet technology, the monitored object for accessing and managing is needed also constantly to increase in internet
Add.It accesses and manages in monitored Object Process in internet, user needs the access and management of each monitored object
Process be written as code, to realize access and management to monitored object, meanwhile, when the demand of monitored object changes
When, for example, just having to the code that modification has write originally, this will be big when the access protocol change of monitored object
Maintenance difficulties, development time and development cost are increased greatly, monitored object is accessed and managed in internet to reduce
Project fltting speed, therefore monitored object currently accessed and managed in internet by way of code development have
Limitation.
Summary of the invention
The main purpose of the present invention is to provide the example generation methods and device of a kind of monitored object in internet, it is intended to
Solve the problems, such as that currently accessing and manage monitored object in internet by way of code development has limitation.
To achieve the above object, the example generation method of a kind of monitored object provided by the invention, described monitored pair
The example generation method of elephant includes:
After receiving monitored object configuration-direct, indicating template configuration interface;
It receives user and is based on input variable parameter on the template configuration interface, and based on the variable parameter received
Generate the configuration template of the monitored object;
It shows the parameter configuration interface of the configuration template generated, and receives user configuration interface is defeated based on the parameter
The monitored object monitor parameter entered;
The monitored object is generated according to the configuration template of the monitoring parameter of input and the monitored object
Example.
Preferably, the reception user be based on the template configuration interface on input variable parameter the step of include:
After receiving the variable addition instruction that user is sent based on the template configuration interface, the variable addition is shown
Instruct the parameter configuration interface of corresponding variable;
Receive the variable parameter that user inputs on configuration interface based on the parameter.
Preferably, the step of configuration template that the monitored object is generated based on the variable parameter received
Include:
The script information section for obtaining the corresponding variable of each variable parameter, according to the script information section and the variable
Parameter generates the script information of the configuration template;
Wherein, described that the quilt is generated according to the monitoring parameter of input and the configuration template of the monitored object
The step of example of monitored object includes:
The example for generating the monitored object according to the script information of the monitoring parameter of input and configuration template.
Preferably, the step of display monitored object template configuration interface includes:
Call the script information prestored;
Unserializing operation is carried out to generate the template configuration interface to the script information of calling, and described in display
Template configuration interface, wherein the script information generate after serializing operates by the template configuration interface.
Preferably, the script information of described pair of calling carries out unserializing operation to generate the step at template configuration interface
Suddenly it specifically includes:
Data deciphering is carried out to the script information of calling;
Unserializing is carried out to the script information after decryption to operate to generate template configuration interface.
In addition, to achieve the above object, it is described to be supervised the present invention also provides a kind of example generating means of monitored object
Control object example generating means include:
Display module, for after receiving monitored object configuration-direct, indicating template configuration interface;
First generation module is based on input variable parameter on the template configuration interface for receiving user, and is based on connecing
The variable parameter received generates the configuration template of the monitored object;
Receiving module for showing the parameter configuration interface of the configuration template generated, and receives user based on described
The monitored object monitor parameter of parameter configuration interface input;
Second generation module, for raw according to the monitoring parameter of input and the configuration template of the monitored object
At the example of the monitored object.
Preferably, first generation module includes:
Display unit, for showing after receiving the variable addition instruction that user is sent based on the template configuration interface
Show that the variable addition instructs the parameter configuration interface of corresponding variable;
Receiving unit, the variable parameter inputted on configuration interface based on the parameter for receiving user.
Preferably, first generation module further include:
Generation unit, for obtaining the script information section of the corresponding variable of each variable parameter, according to the script information
Section and the variable parameter generate the script information of the configuration template;
Wherein, second generation module is also used to:
The example for generating the monitored object according to the script information of the monitoring parameter of input and configuration template.
Preferably, the display module includes:
Call unit, for calling the script information prestored;
Display unit carries out unserializing for the script information to calling and operates to generate template configuration circle
Face, and show the template configuration interface, wherein the script information is carried out after serializing operates by the template configuration interface
It generates.
Preferably, the display unit is also used to:
Data deciphering is carried out to the script information of calling;
Unserializing is carried out to the script information after decryption to operate to generate template configuration interface.
In addition, to achieve the above object, the present invention also provides a kind of example generating device of monitored object, the examples
Generating device includes that the example that can run on the memory and on the processor of memory, processor and being stored in generates
Program, the example generate the step of realizing example discussed above generation method when program is executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with example on the storage medium
Program is generated, the example generates the step of realizing example generation method as described above when program is executed by processor.
The present invention is by the way that after receiving monitored object configuration-direct, indicating template configuration interface is receiving user's base
After input variable parameter on template configuration interface, the configuration template of monitored object is generated based on the variable parameter received,
After the parameter configuration interface for the configuration template that display generates, the monitored object that user is inputted based on parameter configuration interface is received
Monitoring parameter, and the example that monitored object is generated according to the configuration template of the monitoring parameter of input and monitored object.By
It is input monitoring parameter by receiving the parameter configuration interface that user edit in the example of monitored object and is monitored pair
The configuration template of elephant and generate, therefore when needing to generate the example of monitored object in system, editing parameter is only needed to configure boundary
The input monitoring parameter in face and the configuration template of monitored object, so that it may the example for generating the monitored object, to drop
The difficulty of the low example for generating monitored object, reduces hair and is split into this.
Detailed description of the invention
Fig. 1 is the flow diagram of the first embodiment of the example generation method of the monitored object of the present invention;
Fig. 2 is the flow diagram of the refinement step of step S20 in first embodiment shown in Fig. 1 of the present invention;
Fig. 3 is the flow diagram of another refinement step of step S20 in first embodiment shown in Fig. 1 of the present invention;
Fig. 4 is the flow diagram that the present invention is the refinement step of step S10 in first embodiment shown in Fig. 1;
Fig. 5 is the flow diagram of the refinement step of the step S12 of the example generation method of the monitored object of the present invention;
Fig. 6 is the functional block diagram of the first embodiment of the example generating means of the monitored object of the present invention;
Fig. 7 is the refinement function of the first generation module in the second embodiment of the example generating means of the monitored object of the present invention
It can module diagram;
Fig. 8 is the refinement function mould of display module in the 3rd embodiment of the example generating means of the monitored object of the present invention
Block schematic diagram;
Fig. 9 is the hardware structure schematic diagram of the example generating device of the monitored object of the present invention.
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.
Based on the above issues, the present invention provides a kind of example generation method of monitored object.
Referring to Fig.1, Fig. 1 is the flow diagram of the first embodiment of the example generation method of the monitored object of the present invention.
In the present embodiment, the example generation method of the monitored object includes:
Step S10, after receiving monitored object configuration-direct, indicating template configuration interface;
In the present embodiment, the example generation method of the monitored object of this programme can be applied in internet system be monitored
The example of object generates.When user wants to add the example of monitored object in internet system, first clicks on and installed
Indicating template configuration software, send monitored object configuration-direct.After receiving the monitored object configuration-direct, open
Template configuration interface, and show the template configuration interface.
Step S20 receives user and is based on input variable parameter on template configuration interface, and based on the variable parameter received
Generate the configuration template of monitored object;
After showing the template configuration interface, user operates the template configuration interface, at the template configuration interface
Upper input variable parameter generates monitored pair after receiving the user based on the variable parameter inputted on template configuration interface
The configuration template of elephant.Wherein, which includes the configuration template title of monitored object and the configuration of the monitored object
Template ID, what the configuration template ID of the monitored object can be automatically generated, it is also possible to user configuration;This monitored pair
The configuration template of elephant is the empty template after name, which is general.
For example, user creates an empty template on template configuration interface, the template name and the sky of the empty template are specified
The template ID of template, the title and ID are input on the empty template, if clicking the determination key on the empty template, generate one
The configuration template of monitored object generates the configuration template failure of monitored object if clicking the cancel key on the empty template.
Step S30, shows the parameter configuration interface of the configuration template of generation, and it is defeated based on parameter configuration interface to receive user
The monitored object monitor parameter entered;
After user adds the configuration template of monitored object on template configuration interface, need in the object that is monitored
The monitoring parameter of monitored object is added on configuration template.Parameter configuration interface is generated on the template configuration interface, in user
After the monitored object monitor parameter shown on the parameter configuration interface is added on the configuration template of the monitored object, connect
Receive the monitored object monitor parameter that user is inputted based on parameter configuration interface.
Step S40 generates the reality of monitored object according to the configuration template of the monitoring parameter of input and monitored object
Example.
After receiving user on the configuration template of the object that is monitored and adding the monitoring parameter of monitored object, receive
User is by the associated monitored point of the configuration template of the monitoring parameter of the monitored object of the input and monitored object, thus raw
At the example of monitored object.Wherein, which can be understood as the configuration of the monitoring parameter and monitored object of the input
The purposes of template, if the monitoring parameter of the input and the configuration template of monitored object are associated with the APP for airconditioning control, then
The APP is the purposes of the monitoring parameter of the input and the configuration template of monitored object.
The present embodiment is by the way that after receiving monitored object configuration-direct, indicating template configuration interface is receiving user
After input variable parameter on template configuration interface, the configuration mould of monitored object is generated based on the variable parameter received
Plate is received user and is monitored based on what parameter configuration interface inputted after the parameter configuration interface for the configuration template that display generates
Object monitor parameter, and according to the reality of the monitored object of the configuration template of the monitoring parameter of input and monitored object generation
Example.Since the example for the object that is monitored is the input monitoring parameter for the parameter configuration interface edited by reception user and is supervised
It controls the configuration template of object and generates, therefore when needing to generate the example of monitored object in system, only editing parameter is needed to match
Set the input monitoring parameter at interface and the configuration template of monitored object, so that it may the example for generating the monitored object, from
And the difficulty for generating the example of monitored object is reduced, reduce hair and is split into this.
It further, should referring to Fig. 2, being the flow diagram of the refinement step of step S20 in first embodiment of the invention
The refinement step of step S20 includes:
Step S21, after receiving the variable addition instruction that user is sent based on template configuration interface, display variable addition
Instruct the parameter configuration interface of corresponding variable;
In the present embodiment, after showing the template configuration interface, user operates the template configuration interface, is based on
The template configuration interface sends variable addition instruction.It is instructed receiving user based on the variable addition that template configuration interface is sent
Afterwards, pop-up parameter configuration interface corresponding with variable addition instruction.
Step S22 receives user based on the variable parameter inputted on parameter configuration interface.
User according to the wish of oneself after the parameter configuration interface input variable parameter, receive user be based on the variable
The variable parameter of parameter configuration interface input, after receiving the determination key that user is clicked based on the parameter configuration interface, the input
Variable parameter be added on the configuration template of monitored object, taken receiving user based on what the parameter configuration interface was clicked
Disappear after key, variable parameter failure is added on the configuration template of the object that is monitored.Wherein, which includes variable parameter
Type, the associated volume of variable parameter and data type, the variable parameter is either one or more, and multiple
There are certain incidence relations between variable parameter, for example, the data type includes floating-point, shaping, enumerates and character string;The change
The type of amount parameter includes collection capacity, control amount, configuration amount and alarm amount again, and the incidence relation between variable parameter includes accusing
Alert source relationship and control measurement relationship, if the collection capacity is temperature and alarm amount is the excessively high association of temperature, collection capacity " temperature "
It is the alarm source of alarm amount " temperature is excessively high ", therefore the relationship between collection capacity and the alarm amount is alarm source relationship, if the control
Amount processed is that running state of air conditioner is associated with to turn on the aircondition with the collection capacity, then the control amount and the relationship of the collection capacity are exactly that control is surveyed
Magnitude relation.
It is postponed it should be noted that configuration amount refers to match, the amount that cannot be changed.
This implementation is by the way that after receiving the variable addition instruction that user is sent based on template configuration interface, display variable adds
Add the parameter configuration interface for instructing corresponding variable, receives user based on the variable parameter inputted on parameter configuration interface, so that
Access and management simpler convenience of the user to the example of monitored object, to reduce the dimension of the example of monitored object
Protect the time.
Further, referring to Fig. 3, the process for another refinement step of step S20 in first embodiment of the invention is illustrated
Figure, another refinement step of step S20 further include:
Step S23 obtains the script information section of the corresponding variable of each variable parameter, according to script information section and variable
The script information of parameter generation configuration template;
Step S24, the example that monitored object is generated according to the script information of the monitoring parameter of input and configuration template.
In the present embodiment, each variable parameter corresponds to one section of script information section, in the change for receiving user's input
When measuring parameter, script information section corresponding with the variable parameter is obtained, and join according to the script information section and by the variable
Number generates the script information that the variable parameter generates the configuration template of the monitored object, is based on variable parameter receiving user
After the variable parameter for adding interface input, the script information according to the variable parameter and the configuration template of the monitored object is raw
At the example of monitored object.
This implementation passes through the script information section for obtaining the corresponding variable of each variable parameter, according to script information section and change
The script information that parameter generates configuration template is measured, is supervised according to the generation of the script information of the monitoring parameter of input and configuration template
The example for controlling object, so that the simpler convenience of generation of the example of monitored object reduces to reduce development difficulty
Development time.
It further, should referring to Fig. 4, being the flow diagram of the refinement step of step S10 in first embodiment of the invention
The refinement step of step S10 includes:
Step S11 calls the script information prestored;
Step S12 carries out unserializing to the script information of calling and operates to generate template configuration interface, and indicating template
Configuration interface, wherein script information generate after serializing operates by template configuration interface.
In the present embodiment, which is serialized the corresponding script information of generation in advance and is stored in storage sky
Between in, when receive based on user send monitored object configuration-direct when, call the script information prestored.It is pre- getting
When the script information deposited, which is generated into template configuration interface, and show template configuration circle
Face.
The present embodiment carries out unserializing to the script information of calling and operates to generate by calling the script information prestored
Template configuration interface, and indicating template configuration interface.It is automatically generated due to the script information, is compiled script information is counter
Just template configuration interface can be generated after translating, so that the example for generating monitored object is more convenient, to reduce
Development difficulty reduces the development time.
Further, referring to Fig. 5, being the flow diagram of the refinement step of step S12 of the present invention, step S12's
Refinement step includes:
Step S121 carries out data deciphering to the script information of calling;
Step S122 carries out unserializing to the script information after decryption and operates to generate template configuration interface.
After the template configuration interface to be serialized to the corresponding script information of generation in advance, which is pressed
Contracting and encryption, and information is carried out to the script information by Hash Encryption Algorithm (Secure Hash Algorithm, SHA) and is plucked
It wants, to protect the integrality and Version Control of script information, encrypted script information and the script for carrying out informative abstract is believed
Breath is stored in memory space.When receiving the monitored object configuration-direct based on user's transmission, the encryption prestored is called
Script information afterwards, and the encrypted script information is decrypted, the script information after the decryption is subjected to unserializing
Operation is to generate template configuration interface.
The present embodiment carries out data deciphering by the script information to calling, carries out antitone sequence to the script information after decryption
Change operation to generate template configuration interface, so that the script information storage after the coding obtained is safer, and by the foot
This information, which is compressed and encrypted, can reduce script information to the occupancy of memory space.
The present invention further provides a kind of example generating means of monitored object.
Referring to the functional module signal of the first embodiment for the example generating means that Fig. 6, Fig. 6 are the monitored object of the present invention
Figure.
In the present embodiment, described device includes: display module 10, the first generation module 20, receiving module 30 and second
Generation module 40.
The display module 10, for after receiving monitored object configuration-direct, indicating template configuration interface;
In the present embodiment, the example generation method of the monitored object of this programme can be applied in internet system be monitored
The example of object generates.When user wants to add the example of monitored object in internet system, first click on monitored
Mounted indicating template configuration software in the example generating means of object sends monitored object configuration-direct.Monitored pair
Display module 10 in the example generating means of elephant opens template configuration circle after receiving the monitored object configuration-direct
Face, and by the template configuration interface display in display module 10.
First generation module 20 is based on input variable parameter on template configuration interface for receiving user, and is based on
The variable parameter received generates the configuration template of monitored object;
After display module 10 shows the template configuration interface, user operates the template configuration interface, in the mould
Input variable parameter on plate configuration interface, when the first generation module 20 receives the user based on inputting on template configuration interface
After variable parameter, the configuration template of monitored object is generated.Wherein, which includes the configuration template name of monitored object
Claim and the configuration template ID of the monitored object, what configuration template ID of the monitored object can be automatically generated, it can also be with
It is user configuration;The configuration template of the monitored object is the empty template after name, which is general.
For example, user creates an empty template on template configuration interface, the template name and the sky of the empty template are specified
The template ID of template, the title and ID are input on the empty template, if clicking the determination key on the empty template, generate one
The configuration template of monitored object generates the configuration template failure of monitored object if clicking the cancel key on the empty template.
The receiving module 30, is used for, and shows the parameter configuration interface of the configuration template of generation, and receives user and be based on ginseng
The monitored object monitor parameter of number configuration interface input;
After user adds the configuration template of monitored object on template configuration interface, need in the object that is monitored
The monitoring parameter of monitored object is added on configuration template.Display module 10 is shown in the parameter generated on the template configuration interface
The monitored object monitor parameter shown on the parameter configuration interface is added to the monitored object in user by configuration interface
After on configuration template, receiving module 30 receives the monitored object monitor parameter that user is inputted based on parameter configuration interface.
Second generation module 40, for being generated according to the monitoring parameter of input and the configuration template of monitored object
The example of monitored object.
When receiving module 30 receives the monitoring that user adds monitored object on the configuration template of the object that is monitored
After parameter, the second generation module 40 receives user for the configuration of the monitoring parameter of the monitored object of the input and monitored object
The associated monitored point of template, thus the example for generating monitored object.Wherein, which can be understood as the prison of the input
The purposes for controlling the configuration template of parameter and monitored object, as the input monitoring parameter and monitored object configuration template with
APP for airconditioning control is associated with, then the APP is the purposes of the monitoring parameter of the input and the configuration template of monitored object.
First generation module 20 is also used to obtain the script information section of the corresponding variable of each variable parameter, according to
Script information section and variable parameter generate the script information of configuration template;
Second generation module 40 is also used to be generated according to the monitoring parameter of input and the script information of configuration template
The example of monitored object.
In the present embodiment, each variable parameter corresponds to one section of script information section, and the first generation module 20 is receiving
When the variable parameter inputted to user, corresponding with variable parameter script information section is obtained, and according to the script information section
And the script information that the variable parameter generates the configuration template of the monitored object is generated by the variable parameter, second generates mould
Block 40 receive user based on variable parameter addition interface input variable parameter after, according to the variable parameter and this supervised
Control the example that the script information of the configuration template of object generates monitored object.
The present embodiment passes through display module 10 after receiving monitored object configuration-direct, indicating template configuration interface,
First generation module 20 is after receiving user based on input variable parameter on template configuration interface, based on the variable parameter received
The configuration template of monitored object is generated, display module 10 receives after the parameter configuration interface for the configuration template that display generates
Module 30 receives the monitored object monitor parameter that user is inputted based on parameter configuration interface, and the second generation module 40 is according to input
Monitoring parameter and monitored object the configuration template example that generates monitored object.Since the example for the object that is monitored is
What the input monitoring parameter of parameter configuration interface and the configuration template of monitored object edited by reception user generated,
Therefore when needing to generate the example of monitored object in system, only need editing parameter configuration interface input monitoring parameter and by
The configuration template of monitored object, so that it may the example for generating the monitored object, to reduce the reality for generating monitored object
The difficulty of example reduces hair and is split into this.
Further, it is based on the first embodiment, proposes the second embodiment of the example generating means of monitored object,
In the present embodiment, referring to Fig. 7, first generation module 20 includes display unit 21, receiving unit 22.
The display unit 21, for after receiving the variable addition instruction that user sent based on template configuration interface,
Show that variable addition instructs the parameter configuration interface of corresponding variable;
In the present embodiment, display module 10 show the template configuration interface after, user to the template configuration interface into
Row operation sends variable addition instruction based on the template configuration interface.Display unit 21 in first generation module 20 is connecing
After receiving the variable addition instruction that user is sent based on template configuration interface, pop-up parameter corresponding with variable addition instruction is matched
Interface is set to become for the display module 10 display.
The receiving unit 22, for receiving user based on the variable parameter inputted on parameter configuration interface.
User according to the wish of oneself after the parameter configuration interface input variable parameter, receiving unit 22 receive user
Based on the variable parameter of variable parameter configuration interface input, in the determination key that reception user is clicked based on the parameter configuration interface
Afterwards, the variable parameter of the input is added on the configuration template of monitored object, is based on parameter addition circle receiving user
After the cancel key that millet cake is hit, variable parameter failure is added on the configuration template of the object that is monitored.Wherein, the variable parameter packet
Include the type of variable parameter, the associated volume of variable parameter and data type, the variable parameter can be one be also possible to it is more
It is a, and there are certain incidence relations between multiple variable parameter, for example, the data type include floating-point, shaping, enumerate and
Character string;The type of the variable parameter includes collection capacity, control amount, configuration amount and alarm amount, the pass between variable parameter again
Connection relationship includes alarm source relationship and control measurement relationship, if the collection capacity is temperature and alarm amount is the excessively high association of temperature,
Collection capacity " temperature " is the alarm source of alarm amount " temperature is excessively high ", therefore the relationship between collection capacity and the alarm amount is alarm source
Relationship, if the control amount is that running state of air conditioner is associated with to turn on the aircondition with the collection capacity, the pass of the control amount and the collection capacity
System is exactly to control measurement relationship.
It is postponed it should be noted that configuration amount refers to match, the amount that cannot be changed.
This implementation is by the way that after receiving the variable addition instruction that user is sent based on template configuration interface, display variable adds
Add the parameter configuration interface for instructing corresponding variable, receives user based on the variable parameter inputted on parameter configuration interface, so that
Access and management simpler convenience of the user to the example of monitored object, to reduce the dimension of the example of monitored object
Protect the time.
Further, it is based on the first embodiment, proposes the 3rd embodiment of the example generating means of monitored object,
In the present embodiment, referring to Fig. 8, the display module 10 includes call unit 11, display unit 12.
The call unit 11, for calling the script information prestored;
The display unit 12 carries out unserializing for the script information to calling and operates to generate template configuration circle
Face, and indicating template configuration interface, wherein script information generate after serializing operates by template configuration interface.
In the present embodiment, which is serialized the corresponding script information of generation in advance and is stored in storage sky
Between in, call unit 11 when receive based on user send monitored object configuration-direct when, call the script information prestored.
Display unit 12 generates template configuration circle when getting the script information prestored, by the script information unserializing prestored
Face, and show the template configuration interface.
The display unit 12 is also used to carry out data deciphering to the script information of calling;
The display unit 12 is also used to carry out unserializing to the script information after decryption to operate to generate template configuration
Interface.
After the template configuration interface to be serialized to the corresponding script information of generation in advance, which is pressed
Contracting and encryption, and information is carried out to the script information by Hash Encryption Algorithm (Secure Hash Algorithm, SHA) and is plucked
It wants, to protect the integrality and Version Control of script information, encrypted script information and the script for carrying out informative abstract is believed
Breath is stored in memory space.Call unit 11 is called when receiving the monitored object configuration-direct based on user's transmission
The encrypted script information prestored, and the encrypted script information is decrypted, by the script information after the decryption into
Row unserializing is operated to generate template configuration interface.
The present embodiment carries out unserializing to the script information of calling and operates to generate by calling the script information prestored
Template configuration interface, and indicating template configuration interface.It is automatically generated due to the script information, is compiled script information is counter
Just template configuration interface can be generated after translating, so that the example for generating monitored object is more convenient, to reduce
Development difficulty reduces the development time.
In addition, as shown in figure 9, Fig. 9 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in figure 9, the example generating device of the monitored object may include: processor 1001, such as CPU, network
Interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing these groups
Connection communication between part.User interface 1003 may include display screen (Display), input unit, such as keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional
May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory,
It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
Optionally, example generating device can also include camera, RF (Radio Frequency, radio frequency) circuit, sensing
Device, voicefrequency circuit, WiFi module etc..
It will be understood by those skilled in the art that the limit of the not structure paired terminal of example generating device structure shown in Fig. 9
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in figure 9, as may include operating system and reality in a kind of memory 1005 of computer storage medium
Example generates program.Wherein, operating system is to manage and control the program of example generating device hardware and software resource, supports example
Generate the operation of program and other softwares and/or program.
In example generating device shown in Fig. 9, network interface 1004 is mainly used for accessing network;User interface 1003 connects
User terminal is connect, and processor 1001 can be used for calling the question sentence recommended program stored in memory 1005, and execute institute above
The step of example generation method stated.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with example and generate program, the example generates when program is executed by processor and realizes example generation method as described above
Operation.
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 example generation method of monitored object, which is characterized in that the described method comprises the following steps:
After receiving monitored object configuration-direct, indicating template configuration interface;
It receives user and is based on input variable parameter on the template configuration interface, and generated based on the variable parameter received
The configuration template of the monitored object;
Show generate the configuration template parameter configuration interface, and receive user based on the parameter configuration interface input
The monitored object monitor parameter;
The reality of the monitored object is generated according to the configuration template of the monitoring parameter of input and the monitored object
Example.
2. the example generation method of monitored object as described in claim 1, which is characterized in that the reception user is based on institute
The step of stating input variable parameter on template configuration interface include:
After receiving the variable addition instruction that user is sent based on the template configuration interface, the variable addition instruction is shown
The parameter configuration interface of corresponding variable;
Receive the variable parameter that user inputs on configuration interface based on the parameter.
3. the example generation method of monitored object as described in claim 1, which is characterized in that described based on the institute received
Stating the step of variable parameter generates the configuration template of the monitored object includes:
The script information section for obtaining the corresponding variable of each variable parameter, according to the script information section and the variable parameter
Generate the script information of the configuration template;
Wherein, described that described be monitored is generated according to the monitoring parameter of input and the configuration template of the monitored object
The step of example of object includes:
The example for generating the monitored object according to the script information of the monitoring parameter of input and configuration template.
4. the example generation method of monitored object as described in claim 1, which is characterized in that the display is described monitored
The step of object template configuration interface includes:
Call the script information prestored;
Unserializing is carried out to the script information of calling to operate to generate the template configuration interface, and shows the template
Configuration interface, wherein the script information generate after serializing operates by the template configuration interface.
5. the example generation method of monitored object as claimed in claim 4, which is characterized in that the foot of described pair of calling
This information carries out unserializing operation and is specifically included the step of template configuration interface with generating:
Data deciphering is carried out to the script information of calling;
Unserializing is carried out to the script information after decryption to operate to generate template configuration interface.
6. a kind of example generating means of monitored object, which is characterized in that the example generating means packet of the monitored object
It includes:
Display module, for after receiving monitored object configuration-direct, indicating template configuration interface;
First generation module is based on input variable parameter on the template configuration interface for receiving user, and is based on receiving
The variable parameter generate the configuration template of the monitored object;
Receiving module for showing the parameter configuration interface of the configuration template generated, and receives user based on the parameter
The monitored object monitor parameter of configuration interface input;
Second generation module, for generating institute according to the monitoring parameter of input and the configuration template of the monitored object
The example for stating monitored object.
7. the example generating means of monitored object as claimed in claim 6, which is characterized in that the first generation module packet
It includes:
Display unit, for showing institute after receiving the variable addition instruction that user is sent based on the template configuration interface
State the parameter configuration interface that variable addition instructs corresponding variable;
Receiving unit, the variable parameter inputted on configuration interface based on the parameter for receiving user.
8. the example generating means of monitored object as claimed in claim 6, which is characterized in that first generation module is also
For:
The script information section for obtaining the corresponding variable of each variable parameter, according to the script information section and the variable parameter
Generate the script information of the configuration template;
Wherein, second generation module is also used to:
The example for generating the monitored object according to the script information of the monitoring parameter of input and configuration template.
9. a kind of example generating device of monitored object, which is characterized in that the example generating device includes memory, processing
Device generates program with the example that can be run on the memory and on the processor is stored in, and the example generates program quilt
The step of example generation method as described in any one of claims 1 to 5 is realized when the processor executes.
10. a kind of storage medium, which is characterized in that be stored with example on the storage medium and generate program, the example generates
The step of example generation method as described in any one of claims 1 to 5 is realized when program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910217263.0A CN110061860A (en) | 2019-03-21 | 2019-03-21 | Example generation method, device, equipment and the storage medium of monitored object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910217263.0A CN110061860A (en) | 2019-03-21 | 2019-03-21 | Example generation method, device, equipment and the storage medium of monitored object |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110061860A true CN110061860A (en) | 2019-07-26 |
Family
ID=67317249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910217263.0A Pending CN110061860A (en) | 2019-03-21 | 2019-03-21 | Example generation method, device, equipment and the storage medium of monitored object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110061860A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667124A (en) * | 2009-10-15 | 2010-03-10 | 上海宝信软件股份有限公司 | System and method for configuring monitoring device based on object model |
CN102486643A (en) * | 2010-12-03 | 2012-06-06 | 上海宝信软件股份有限公司 | Target model-based device monitoring system |
CN106020803A (en) * | 2016-05-11 | 2016-10-12 | 深圳市麦斯杰网络有限公司 | Method and device for dynamic definition of monitored object template |
US20190042215A1 (en) * | 2017-08-07 | 2019-02-07 | Sap Se | Template expressions for constraint-based systems |
-
2019
- 2019-03-21 CN CN201910217263.0A patent/CN110061860A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667124A (en) * | 2009-10-15 | 2010-03-10 | 上海宝信软件股份有限公司 | System and method for configuring monitoring device based on object model |
CN102486643A (en) * | 2010-12-03 | 2012-06-06 | 上海宝信软件股份有限公司 | Target model-based device monitoring system |
CN106020803A (en) * | 2016-05-11 | 2016-10-12 | 深圳市麦斯杰网络有限公司 | Method and device for dynamic definition of monitored object template |
US20190042215A1 (en) * | 2017-08-07 | 2019-02-07 | Sap Se | Template expressions for constraint-based systems |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3907631B1 (en) | Applet processing method and apparatus, device and storage medium | |
US20170303072A1 (en) | Companion application for activity cooperation | |
EP2735133B1 (en) | Method and apparatus for providing data entry content to a remote environment | |
CN109040182B (en) | Service access method and device, electronic equipment and storage medium | |
CN102306256A (en) | The file that obtains is carried out the prestige inspection | |
JP2014504387A (en) | Method and apparatus for obtaining feedback from a device | |
US20190349451A1 (en) | Objection blocking method, terminal, server, and storage medium | |
CN111316230B (en) | Method and equipment for generating patch package | |
CN108615158B (en) | Risk detection method and device, mobile terminal and storage medium | |
US9154539B2 (en) | Consolidating event data from different sources | |
WO2023273561A1 (en) | Test method and apparatus, electronic device, and storage medium | |
CN113018868A (en) | Cloud game login method, device and system | |
CN110489679B (en) | Browser kernel processing method and device and storage medium | |
WO2014113198A2 (en) | System and method for tailoring applications and application repositories for individual electrical devices | |
CN115756881A (en) | Data processing method, device, equipment and storage medium based on SDK | |
US9032541B2 (en) | Information processing system, information processing apparatus, and computer-readable storage medium | |
CN114020649A (en) | Quality inspection result verification method, system, test equipment and storage medium | |
US11256560B2 (en) | Scalable automated detection of functional behavior | |
CN106547682A (en) | The method and device of commissioning Mobile solution | |
CN110061860A (en) | Example generation method, device, equipment and the storage medium of monitored object | |
CN111026651A (en) | Test method, test device, storage medium and electronic equipment | |
CN112788640B (en) | Communication equipment testing method and device, storage medium and terminal | |
CN113824830A (en) | Application management method and device | |
CN106227829A (en) | A kind of method and apparatus generating wallpaper image | |
CN113760688A (en) | Remote debugging method, system, webpage server, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190726 |
|
RJ01 | Rejection of invention patent application after publication |