CN116614398A - Method, device, equipment and storage medium for automatically filling task parameters - Google Patents
Method, device, equipment and storage medium for automatically filling task parameters Download PDFInfo
- Publication number
- CN116614398A CN116614398A CN202310702891.4A CN202310702891A CN116614398A CN 116614398 A CN116614398 A CN 116614398A CN 202310702891 A CN202310702891 A CN 202310702891A CN 116614398 A CN116614398 A CN 116614398A
- Authority
- CN
- China
- Prior art keywords
- data
- task
- soft probe
- task parameters
- online
- 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
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000000523 sample Substances 0.000 claims abstract description 78
- 238000012545 processing Methods 0.000 claims abstract description 37
- 230000000737 periodic effect Effects 0.000 claims abstract description 24
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000003993 interaction Effects 0.000 claims abstract description 11
- 238000012544 monitoring process Methods 0.000 claims description 29
- 238000004891 communication Methods 0.000 claims description 7
- 230000007246 mechanism Effects 0.000 claims description 5
- 238000011144 upstream manufacturing Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 7
- 238000012795 verification Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241000202252 Cerberus Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- 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/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- 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/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of computers, and discloses a method, a device, equipment and a storage medium for automatically filling task parameters, which are used for automatically filling the task parameters. The method for automatically filling the task parameters comprises the following steps: defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing an HTTP response interface according to a selected programming language, wherein the universal template is used for filling task parameters and pushing new tasks to the gateway soft probe; acquiring task types and requirements, and generating corresponding task parameters; and automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically filling task parameters.
Background
With the rapid development of network technology, gateway technology has become one of the infrastructures in the communication field today for realizing the interconnection and function integration between networks. To evaluate the various capabilities and stability of the gateway, developers typically need to conduct a series of tests that check the various functional interfaces of the gateway soft probe. Generally, the gateway probe monitoring platform is responsible for issuing task parameters for the gateway soft probe and receiving data reported by the soft probe. However, the prior art has some problems and needs improvement.
Firstly, the issuing mode of the gateway probe monitoring platform in the prior art on task parameters is complicated, and manual operation is needed. At each test or experiment, the developer must manually enter the task parameters on the platform. This makes the whole test process inefficient, puts great stress on the developer and may lead to human error or omission. In addition, the automatic filling of task parameters cannot be realized in the prior art, so that repeated work is more, and the testing efficiency is seriously affected.
Secondly, in the prior art, the mode of processing the data reported by the soft probe by the gateway probe monitoring platform is simpler. The platform is only used for receiving the data reported by the soft probe, and does not have the functions of automatically checking and correcting the reported field. In practical applications, the reported data may have errors or may not meet technical specification requirements. The lack of automatic checking of the reporting field may result in problems that cannot be found in time, thereby affecting the stability and accuracy of the overall system.
Therefore, how to provide a method to achieve automatic filling of task parameters is a technical problem to be solved.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for automatically filling task parameters, which are used for realizing the automatic filling of the task parameters.
The first aspect of the present invention provides a method for automatically filling task parameters, the method for automatically filling task parameters comprising:
defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing an HTTP response interface according to a selected programming language, wherein the universal template is used for filling task parameters and pushing new tasks to the gateway soft probe; acquiring task types and requirements, and generating corresponding task parameters; and automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe.
Optionally, in a first implementation manner of the first aspect of the present invention, the method further includes:
analyzing field types in the online JSON data reported by the gateway soft probe to obtain second analysis data;
according to the soft probe card specification, checking whether each field of the second analysis data meets the requirements, and marking and processing the fields which do not meet the requirements to obtain target monitoring data;
and reporting the target monitoring data to a monitoring center through an interface, so that the monitoring center monitors the online JSON data.
Optionally, in a second implementation manner of the first aspect of the present invention, analyzing a field type in the online JSON data reported by the gateway soft probe to obtain second analysis data includes:
reading upper line JSON data reported by a gateway soft probe, and checking the upper line JSON data to check whether the data accords with an expected format and structure, wherein the checking comprises checking whether a required field exists and whether the field type is correct;
analyzing the online JSON data conforming to the expected format and structure into first analysis data;
and extracting the needed useful information from the internal structure of the first analysis data, and processing the extracted useful information to obtain second analysis data.
Optionally, in a third implementation manner of the first aspect of the present invention, the checking whether each field of the second analysis data meets the requirement according to the soft probe card specification, and marking and processing the fields that do not meet the requirement to obtain the target monitoring data includes:
checking whether each field of the second parsed data meets requirements according to the soft probe card specification, including but not limited to the existence of the field, the data type and the value range;
and marking and processing the fields which do not meet the requirements of the soft probe card standard, and extracting target monitoring data from the second analysis data after marking and processing.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the method further includes:
based on a heartbeat mechanism, establishing communication connection between the plug-in and the monitoring center;
and monitoring whether the plug-in receives the heartbeat packet sent by the monitoring center, and restarting the plug-in if not.
A second aspect of the present invention provides an apparatus for automatically filling task parameters, the apparatus for automatically filling task parameters comprising:
the definition module is used for defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing the HTTP response interface according to the selected programming language;
the acquisition module is used for acquiring the task type and the requirement and generating corresponding task parameters;
and the pushing module is used for automatically filling the task parameters on an online, real-time and periodic interface based on the universal template and pushing new tasks to the gateway soft probe.
A third aspect of the present invention provides an apparatus for automatically filling task parameters, comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the device of the auto-fill task parameters to perform the method of auto-fill task parameters described above.
A fourth aspect of the invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of automatically populating task parameters described above.
In the technical scheme provided by the invention, the beneficial effects are as follows: the method, the device, the equipment and the storage medium for automatically filling the task parameters are characterized in that a general template for processing an HTTP response interface is written according to a selected programming language by defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, then the task type and the requirement are acquired, and corresponding task parameters are generated; and finally, automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe. The invention realizes the task of automatically switching the task issued by the gateway soft probe each time, does not need to manually input task parameters in the probe monitoring platform, and automatically checks the field reported by the gateway soft probe.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a method for automatically filling task parameters in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an embodiment of an apparatus for automatically filling task parameters according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for automatically filling task parameters, which are used for realizing the automatic filling of the task parameters. The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Before describing the specific flow of the embodiment of the invention, the general idea of the invention is briefly explained: further explaining how to automatically populate task parameters and push new tasks to the gateway soft probe using generic templates.
First, the task parameters need to be collected. This is achieved through online, real-time and periodic interfaces. These parameters are then filled into the generic template. This uses the relevant data structures and statements in the programming language, as well as the parameter fields defined in the templates.
After the parameters are filled, the tasks are sent to the gateway soft probe through the HTTP protocol. This uses information such as the web libraries and HTTP clients in the programming language, and the addresses and ports of the gateway soft probes. The generic template defines how the task is converted to the correct HTTP request format and sent to the gateway soft probe.
When the gateway soft probe returns a response, the HTTP response is parsed again, and necessary information such as task status and results are extracted. The general template comprises codes for analyzing response data and extracting needed information, and the information is returned to the application program for processing and recording.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, where an embodiment of a method for automatically filling task parameters in an embodiment of the present invention includes:
step 101, defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing an HTTP response interface according to a selected programming language, wherein the universal template is used for filling task parameters and pushing new tasks to a gateway soft probe;
specifically, first, the gateway soft probe card interactions on online, real-time, and periodic interfaces are defined. To achieve this, the following steps will be taken:
and the online interface performs handshake and plug-in registration when the plug-in is started and establishes connection with the target system. This may ensure that the plug-in has been properly deployed and may communicate with the system.
And the real-time interface is used for monitoring and collecting the data of the target system in real time. This involves real-time traffic monitoring and fast response to events occurring on the system.
Periodic interface the periodic interface supports the collection of data at predetermined time intervals. This helps to obtain a basic snapshot of data to evaluate system performance, discover and solve problems.
Next, a generic template is written to handle the HTTP response interface according to the selected programming language. The main function of this template is to push new tasks to the soft probe.
The structure and core functions of the universal template are as follows:
the introduction of the required libraries and dependencies enables the code to send and receive HTTP requests.
Loading and analyzing parameters of the task and filling the template.
GET and POST methods are defined for communicating with the gateway soft probe.
Exception handling is set so that the program can resume and continue execution when an error occurs.
An HTTP calling method is added, and different methods (GET/POST and the like) can be executed according to the requirements of tasks.
The HTTP response is processed, for example, by checking the HTTP status code to confirm whether the request was successful.
Data parsing and formatting functions are provided as needed to analyze the response data.
Effective communication logic between the plug-in and the gateway soft probe is written, including registration, task allocation, data collection and the like.
The present embodiment helps to improve the response speed and efficiency of the plug-in by using asynchronous programming techniques, in which the plug-in performs some task while waiting for the other task to complete. Asynchronous operations are used to handle network requests, file operations, as these operations may require long latency. When processing multiple requests, callback functions, promise or async/await methods are used to optimize code and improve execution efficiency.
In data transmission, the amount of data to be transmitted over a network is reduced by data compression, thereby improving transmission speed and reducing network delay. Before sending the data, a compression algorithm such as Gzip is applied to compress the original data into a smaller file. When receiving data, decompressing the compressed data.
The plug-in is provided with higher security by incorporating encryption and authentication measures during communication. Including data transfer using HTTPS rather than HTTP to ensure data security during the transfer. In addition, more complex encryption algorithms are implemented, such as using the TLS/SSL protocol. The introduction of authentication and authorization policies in the communication between the plug-in and the gateway, for example using oauth2.0 standard, will ensure that only legitimate and authorized clients can access the data.
When the plug-in needs to process a large number of requests, the system resources are ensured to be fully utilized by adopting a load balancing technology, so that good performance is maintained. Load balancing may assign tasks to different servers when they arrive, preventing overload of a single server. Algorithms such as polling, weight polling or minimal connection can be used to ensure a more balanced distribution of load among servers. Furthermore, in the face of performance bottlenecks, system crashes can be avoided by laterally expanding (i.e., increasing the number of servers) when needed.
Before step 101, the method further comprises the following steps: the selected flexible replaceable HTTP server software, such as an openresity or Apache server, is downloaded and installed on the Windows10 operating system.
Specifically, the openResty software (version 1.19.3.1) is downloaded and installed on the Windows10, and an HTTP server is built. After the server is built, the http:// localhost 80 is accessed through the local browser, and if the following information of page printing is seen as 'Welcome to OpenResty |', the HTTP server is indicated to be operated normally.
After the above steps, the method further comprises the following steps: and modifying the corresponding configuration file according to the selected HTTP server software to realize the setting and the customization of the server monitoring port.
Specifically, modify the openResity configuration file, nginx. Modifying snoop port to 8090 because openResty default snoop port is 80, conflicts with other programs are easily generated.
It is to be understood that the execution body of the present invention may be a device for automatically filling task parameters, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking the device for automatically filling the task parameters as an execution main body as an example.
102, acquiring task types and requirements, and generating corresponding task parameters;
specifically, a task parameter generator is implemented in the selected programming language, and is configured to automatically generate corresponding task parameters according to the input task type and requirements.
Step 103, based on the general template, automatically filling the task parameters on an online, real-time and periodic interface, and pushing a new task to a gateway soft probe.
Specifically, when the general template is used to automatically fill the task parameters and push new tasks to the gateway soft probe, some abnormal situations need to be processed in the code, such as the gateway soft probe cannot be accessed, network connection fails, and the like. Therefore, the problems of stability and reliability of codes are solved by an exception capturing and processing and retry mechanism method.
In addition, some processing, such as formatting, verification, of the acquired parameters is required to ensure the correctness and validity of the parameters before filling the task parameters. By using related libraries and functions in the programming language, as well as parameter formats and verification rules defined in the generic templates.
In the embodiment of the invention, the beneficial effects are as follows: through defining the online, real-time and periodic interfaces required by gateway soft probe plug-in interaction, writing and processing a universal template of an HTTP response interface according to a selected programming language, then obtaining task types and requirements, and generating corresponding task parameters; and finally, automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe. The embodiment of the invention realizes the task of automatically switching the task issued by the soft probe to the gateway every time, and does not need to manually input task parameters in the probe monitoring platform.
Another embodiment of the method for automatically filling task parameters in the embodiment of the invention comprises the following steps:
analyzing field types in the online JSON data reported by the gateway soft probe to obtain second analysis data;
according to the soft probe card specification, checking whether each field of the second analysis data meets the requirements, and marking and processing the fields which do not meet the requirements to obtain target monitoring data;
and reporting the target monitoring data to a monitoring center through an interface, so that the monitoring center monitors the online JSON data.
Specifically, first, the online JSON data reported by the gateway soft probe is analyzed, the field type is identified, and second analysis data is generated. The high-efficiency JSON analysis algorithm is utilized at this stage, so that the data is ensured to be accurate.
Second, the second parsed data fields are verified for compliance according to the soft probe card specification. And repairing the nonstandard field by adopting an automatic error correction and anomaly detection mechanism to form target monitoring data.
And finally, reporting the target monitoring data to a monitoring center through a high-performance API interface to realize real-time monitoring.
In the embodiment of the invention, the beneficial effects are as follows: obtaining second analysis data by analyzing field types in the online JSON data reported by the gateway soft probe; checking whether each field of the second analysis data meets the requirements according to the soft probe plug-in specifications, and marking and processing the fields which do not meet the requirements to obtain target monitoring data; and finally, reporting the target monitoring data to a monitoring center through an interface, so that the monitoring center monitors the online JSON data. The embodiment of the invention realizes automatic checking of the online JSON data reported by the gateway soft probe.
Another embodiment of the method for automatically filling task parameters in the embodiment of the invention comprises the following steps:
analyzing field types in the online JSON data reported by the gateway soft probe to obtain second analysis data, wherein the second analysis data comprises:
reading upper line JSON data reported by a gateway soft probe, and checking the upper line JSON data to check whether the data accords with an expected format and structure, wherein the checking comprises checking whether a required field exists and whether the field type is correct;
analyzing the online JSON data conforming to the expected format and structure into first analysis data;
and extracting the needed useful information from the internal structure of the first analysis data, and processing the extracted useful information to obtain second analysis data.
Specifically, first, the on-line JSON data is read and format and structure verification is performed. Specifically, this step includes checking whether the required field exists and whether the field type is correct. Such verification ensures data correctness, which can be achieved by using JSON mode verification.
And secondly, analyzing the check-free online JSON data into first analysis data. In this step, a high-efficiency JSON parsing library, such as RapidJSON or Jackson, can be used to accelerate data parsing and reduce memory usage.
And finally, extracting useful information from the internal structure of the first analysis data, and processing the information to obtain second analysis data.
Another embodiment of the method for automatically filling task parameters in the embodiment of the invention comprises the following steps:
according to the soft probe card specification, checking whether each field of the second analysis data meets the requirements, and marking and processing the fields which do not meet the requirements to obtain target monitoring data, including:
checking whether each field of the second parsed data meets requirements according to the soft probe card specification, including but not limited to the existence of the field, the data type and the value range;
and marking and processing the fields which do not meet the requirements of the soft probe card standard, and extracting target monitoring data from the second analysis data after marking and processing.
Specifically, whether each field in the second analysis data meets the requirements is checked according to the soft probe card specification so as to ensure the data quality and usability. This mainly includes checking of the presence of fields, data type and value range. The effectiveness of the verification is enhanced by applying a database such as jsenschema or cerberus tools.
And marking and processing the fields which do not meet the specification requirements. By error handling policies, such as using proxy values, data conversion or data complementation, etc. After processing the exception fields, target monitoring data is extracted from the processed second parsed data.
The embodiment of the invention automatically adjusts the rules and verifies the network data by combining with the dynamic rule engine, thereby improving the data quality. The specific application comprises the following steps:
a. a dynamic rules engine is applied to the first step to ensure that the check is made for the on-line JSON data for different network environments and device configurations. b. In the second step, dynamic rules can be combined with existing JSON parsing libraries to achieve more flexible, efficient data extraction and processing for large-scale client devices. c. In the third step, the dynamic rule engine and the error processing strategy can be combined, and the processing flow can be intelligently adjusted according to the analysis result, so that the cost of manual intervention is reduced.
Another embodiment of the method for automatically filling task parameters in the embodiment of the invention comprises the following steps:
based on a heartbeat mechanism, establishing communication connection between the plug-in and the monitoring center;
and monitoring whether the plug-in receives the heartbeat packet sent by the monitoring center, and restarting the plug-in if not.
The method for automatically filling the task parameters in the embodiment of the present invention is described above, and the device for automatically filling the task parameters in the embodiment of the present invention is described below, referring to fig. 2, one embodiment of the device 1 for automatically filling the task parameters in the embodiment of the present invention includes:
the definition module 11 is used for defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a general template for processing the HTTP response interface according to a selected programming language;
the acquiring module 12 is configured to acquire a task type and a requirement, and generate corresponding task parameters;
and the pushing module 13 is used for automatically filling the task parameters on an online, real-time and periodic interface based on the universal template and pushing new tasks to the gateway soft probe.
The present invention also provides an apparatus for automatically filling task parameters, where the apparatus for automatically filling task parameters includes a memory and a processor, where the memory stores computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the method for automatically filling task parameters in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or a volatile computer readable storage medium, having stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the method of automatically populating task parameters.
The method, the device, the equipment and the storage medium for automatically filling the task parameters are characterized in that a general template for processing an HTTP response interface is written according to a selected programming language by defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, then the task type and the requirement are acquired, and corresponding task parameters are generated; and finally, automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe. The invention realizes the task of automatically switching the task issued by the gateway soft probe each time, does not need to manually input task parameters in the probe monitoring platform, and automatically checks the field reported by the gateway soft probe.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (randomaccess memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (8)
1. A method for automatically populating task parameters, comprising:
defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing an HTTP response interface according to a selected programming language, wherein the universal template is used for filling task parameters and pushing new tasks to the gateway soft probe;
acquiring task types and requirements, and generating corresponding task parameters;
and automatically filling the task parameters on an online, real-time and periodic interface based on the universal template, and pushing a new task to the gateway soft probe.
2. The method according to claim 1, wherein the method further comprises:
analyzing field types in the online JSON data reported by the gateway soft probe to obtain second analysis data;
according to the soft probe card specification, checking whether each field of the second analysis data meets the requirements, and marking and processing the fields which do not meet the requirements to obtain target monitoring data;
and reporting the target monitoring data to a monitoring center through an interface, so that the monitoring center monitors the online JSON data.
3. The method of claim 2, wherein the parsing the field type in the upstream JSON data reported by the gateway soft probe to obtain second parsed data includes:
reading upper line JSON data reported by a gateway soft probe, and checking the upper line JSON data to check whether the data accords with an expected format and structure, wherein the checking comprises checking whether a required field exists and whether the field type is correct;
analyzing the online JSON data conforming to the expected format and structure into first analysis data;
and extracting the needed useful information from the internal structure of the first analysis data, and processing the extracted useful information to obtain second analysis data.
4. The method of claim 2, wherein the checking whether each field of the second parsed data is satisfactory according to the soft probe card specification, and marking and processing the unsatisfactory fields to obtain the target monitor data, comprises:
checking whether each field of the second parsed data meets requirements according to the soft probe card specification, including but not limited to the existence of the field, the data type and the value range;
and marking and processing the fields which do not meet the requirements of the soft probe card standard, and extracting target monitoring data from the second analysis data after marking and processing.
5. The method according to claim 1, wherein the method further comprises:
based on a heartbeat mechanism, establishing communication connection between the plug-in and the monitoring center;
and monitoring whether the plug-in receives the heartbeat packet sent by the monitoring center, and restarting the plug-in if not.
6. An apparatus for automatically populating a task parameter, the apparatus for automatically populating a task parameter comprising:
the definition module is used for defining an online, real-time and periodic interface required by gateway soft probe plug-in interaction, and writing a universal template for processing the HTTP response interface according to the selected programming language;
the acquisition module is used for acquiring the task type and the requirement and generating corresponding task parameters;
and the pushing module is used for automatically filling the task parameters on an online, real-time and periodic interface based on the universal template and pushing new tasks to the gateway soft probe.
7. An apparatus for automatically populating a task parameter, the apparatus for automatically populating a task parameter comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the device of the auto-fill task parameter to perform the method of auto-fill task parameter of any of claims 1-5.
8. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement a method of automatically populating task parameters according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310702891.4A CN116614398A (en) | 2023-06-14 | 2023-06-14 | Method, device, equipment and storage medium for automatically filling task parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310702891.4A CN116614398A (en) | 2023-06-14 | 2023-06-14 | Method, device, equipment and storage medium for automatically filling task parameters |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116614398A true CN116614398A (en) | 2023-08-18 |
Family
ID=87678159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310702891.4A Pending CN116614398A (en) | 2023-06-14 | 2023-06-14 | Method, device, equipment and storage medium for automatically filling task parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116614398A (en) |
-
2023
- 2023-06-14 CN CN202310702891.4A patent/CN116614398A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111083225B (en) | Data processing method and device in Internet of things platform and Internet of things platform | |
US10467316B2 (en) | Systems and methods for web analytics testing and web development | |
CN106484611B (en) | Fuzzy test method and device based on automatic protocol adaptation | |
US10951740B2 (en) | System and method for testing applications with a load tester and testing translator | |
US8631124B2 (en) | Network analysis system and method utilizing collected metadata | |
US7801719B2 (en) | Processor-based system analysis automation | |
CN114356785B (en) | Data processing method and device, electronic equipment and storage medium | |
CN117155832B (en) | Multi-terminal non-invasive recording playback test method and system for UDP transmission protocol | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
CN110932918A (en) | Log data acquisition method and device and storage medium | |
EP1780946B1 (en) | Consensus testing of electronic system | |
CN112084102A (en) | Interface pressure testing method and device | |
CN110995538B (en) | Network data acquisition method, device, system, equipment and storage medium | |
US8429458B2 (en) | Method and apparatus for system analysis | |
CN109214189B (en) | Method, device, storage medium and electronic equipment for identifying program bugs | |
CN116614398A (en) | Method, device, equipment and storage medium for automatically filling task parameters | |
US20050177630A1 (en) | Service analysis | |
CN113179317B (en) | Test system and method for content rewriting device | |
CN114416597A (en) | Test case record generation method and device | |
CN115695504B (en) | Internet of things platform communication method, device, equipment and storage medium | |
CN117235307B (en) | STDF data processing method and device and computing equipment | |
CN117271353A (en) | Program testing method, device, equipment, storage medium and product for host | |
CN118349455A (en) | Interface automation test case real-time updating method, device and equipment | |
CN116756113A (en) | Log recording method and device, electronic equipment and storage medium | |
CN117596172A (en) | Method, device, equipment and storage medium for notifying data change in real time |
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 |