Method and apparatus for monitoring and collecting PHP code data
A technology of code data and data, which is applied in the field of PHP code data monitoring and collection, can solve the problems of large amount of collected data, no centralized management, difficult control of the number of monitoring requests, etc., and achieve the effect of convenient use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Such as figure 1 As shown, the present embodiment provides a method for monitoring and collecting PHP code data, comprising the following steps:
[0033] S1: Receive control information, the control information includes random sampling, specific parameter sampling and storage device information, the random sampling includes whether to enable random sampling and random sampling probability, the specific parameter sampling includes whether to enable specific parameter sampling and specific parameter ; The monitoring tool needs to confirm whether to start according to the control information; the reading of the control information is mainly used to control the intervention of the monitoring system and determine the data storage scheme.
[0034] In the process of implementation, it can monitor the PHP logic code through random sampling, for example, it can monitor the response speed of the logic code during operation, and can also monitor whether the logic code has abnormal...
Embodiment 2
[0043] Such as figure 2 As shown, the present embodiment provides a device for monitoring and collecting PHP code data, including the following modules:
[0044]Receiving module: used to receive control information, the control information includes random sampling and specific parameter sampling, the random sampling includes whether to enable random sampling and random sampling probability, the specific parameter sampling includes whether to enable specific parameter sampling and specific parameters;
[0045] Monitoring data acquisition module: used to monitor the operation of PHP logic code according to the control information to obtain monitoring data.
[0046] Data sending module: used to send the collected monitoring data to the corresponding storage device. The storage device mentioned in the data sending step is a database, a network interface or a cache queue.
Embodiment 3
[0048] Embodiment 3 discloses an electronic device, the electronic device includes a processor, a memory, and a program, wherein one or more of the processor and the memory can be used, and the program is stored in the memory and is configured to be executed by the processor, When the processor executes the program, the method for monitoring and collecting PHP code data in Embodiment 1 is realized. The electronic device may be a series of electronic devices such as a mobile phone, a computer, and a tablet computer.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

