CN114490260B - System index generation method, device, proxy server and storage medium - Google Patents
System index generation method, device, proxy server and storage medium Download PDFInfo
- Publication number
- CN114490260B CN114490260B CN202210063589.4A CN202210063589A CN114490260B CN 114490260 B CN114490260 B CN 114490260B CN 202210063589 A CN202210063589 A CN 202210063589A CN 114490260 B CN114490260 B CN 114490260B
- Authority
- CN
- China
- Prior art keywords
- index
- monitoring
- request
- response system
- preset
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000012544 monitoring process Methods 0.000 claims abstract description 207
- 230000004044 response Effects 0.000 claims abstract description 162
- 238000012545 processing Methods 0.000 claims abstract description 24
- 230000011218 segmentation Effects 0.000 claims description 51
- 230000001419 dependent effect Effects 0.000 claims description 42
- 238000012216 screening Methods 0.000 claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 6
- 238000013473 artificial intelligence Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 235000019800 disodium phosphate Nutrition 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
- G06F11/3082—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved by aggregating or compressing the monitored data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to data processing and provides a system index generation method, a device, a proxy server and a storage medium. According to the method, when any terminal equipment is monitored to have a request to generate, a plurality of monitoring requests are screened from the generated requests based on a response system, a plurality of target index files are generated according to index monitoring requirements, request identification of each monitoring request and configuration index files corresponding to the response system, the corresponding target index files are operated when the response system finishes responding to each monitoring request, monitoring information is obtained, the monitoring information comprises a first index result and a second index result, the plurality of first index results are combined to obtain a third index result, the second index result and the third index result are determined to be index data of the response system on the index monitoring requirements, and the generation efficiency of the index data can be improved. Furthermore, the present invention relates to blockchain techniques, wherein the index data may be stored in the blockchain.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a system index generating method, a device, a proxy server, and a storage medium.
Background
At present, when the basic indexes (response state, request quantity, request return time consumption and the like) of the system are counted and analyzed, the log platform client installed on the system is generally required to be utilized to collect the access log on the system, however, a great deal of operation and maintenance manpower is consumed by the client installed on the system, and in addition, when the access log on the system is suddenly increased, the access log contains a great deal of log information which is irrelevant to the basic indexes of the system, so that the generation efficiency of the basic indexes of the system is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a system index generation method, apparatus, proxy server, and storage medium, which can improve the efficiency of index data generation.
In one aspect, the present invention provides a system index generating method applied to a proxy server, where the proxy server communicates with a response system, and the response system communicates with a plurality of terminal devices, and the system index generating method includes:
Receiving an index monitoring requirement for the response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
when any terminal equipment is monitored to have a request to generate, screening a plurality of monitoring requests from the generated requests based on the response system;
generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index files corresponding to the response system;
forwarding the plurality of monitoring requests to the response system, and running corresponding target index files when the response system finishes responding to each monitoring request to obtain monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
combining the first index results in the monitoring information to obtain a third index result of the response system on the dependent index;
And determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
According to a preferred embodiment of the present invention, the screening a plurality of monitoring requests from the generated requests based on the response system includes:
acquiring a system address of the response system;
extracting an execution address from the generated request;
determining a request corresponding to the execution address successfully matched with the system address as an initial request;
Acquiring a demand generation time of the index detection demand, and acquiring a request generation time of the initial request;
And determining initial requests corresponding to the request generation time with the value larger than the demand generation time as the plurality of monitoring requests.
According to a preferred embodiment of the present invention, the generating a plurality of target index files according to the index monitoring requirements, the request identifier of each monitoring request, and the configuration index file corresponding to the response system includes:
acquiring files corresponding to the proxy server and the response system from a preset configuration library as the configuration index files;
Extracting an initial configuration index from the configuration index file;
Replacing the initial configuration index with the index monitoring requirement to obtain a monitoring script file;
and writing each request identifier into a position corresponding to a preset label in the monitoring script file to obtain the target index files.
According to a preferred embodiment of the present invention, after forwarding the plurality of monitoring requests to the response system, the method further comprises:
traversing a log library of the response system based on each request identification;
if a request log matched with the request identifier exists in the log library, detecting whether the request log contains a preset event or not;
and if the request log contains the preset event, determining that the response system finishes the response to each monitoring request.
According to a preferred embodiment of the present invention, the merging the first index results in the plurality of monitoring information to obtain a third index result of the response system on the dependent index includes:
Performing word segmentation processing on the dependency indexes to obtain a plurality of dependency word segments;
Calculating the vocabulary similarity of each dependent word segmentation and a preset operation vocabulary;
determining a preset operation vocabulary with the maximum vocabulary similarity as an operation relation in the dependency index;
And merging the first index result based on the operation relation to obtain the third index result.
According to a preferred embodiment of the present invention, the word segmentation processing is performed on the dependency index, and obtaining a plurality of dependency words includes:
Dividing the dependency index according to a preset index to obtain a plurality of dividing paths and path word division corresponding to each dividing path;
Acquiring the index use frequency of the preset index;
calculating the segmentation probability of each segmentation path according to the index use frequency;
and determining the path word corresponding to the segmentation path with the maximum segmentation probability as the plurality of dependent word segments.
According to a preferred embodiment of the invention, the method further comprises:
Acquiring an index benchmark of the response system on the index monitoring requirement from a preset assessment benchmark library;
detecting the index data based on the index reference to obtain the running state of the response system;
If the running state is abnormal, generating prompt information according to the index data;
And sending the prompt information to a preset binding terminal.
In another aspect, the present invention further provides a system indicator generating apparatus, which operates in a proxy server, where the proxy server communicates with a response system, and the response system communicates with a plurality of terminal devices, and the system indicator generating apparatus includes:
the receiving unit is used for receiving the index monitoring requirement of the response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
the screening unit is used for screening a plurality of monitoring requests from the generated requests based on the response system when any terminal equipment is monitored to have the request generation;
The generating unit is used for generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index file corresponding to the response system;
The operation unit is used for forwarding the plurality of monitoring requests to the response system, and operating the corresponding target index file when the response system finishes responding to each monitoring request to obtain the monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
the merging unit is used for merging the first index results in the plurality of monitoring information to obtain a third index result of the response system on the dependent index;
And the determining unit is used for determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
In another aspect, the present invention also proposes a proxy server, including:
A memory storing computer readable instructions; and
And a processor executing computer readable instructions stored in the memory to implement the system index generation method.
In another aspect, the present invention also proposes a computer readable storage medium having stored therein computer readable instructions that are executed by a processor in a proxy server to implement the system index generation method.
According to the technical scheme, the configuration index file is updated based on the index monitoring requirement and the request identifier, and the generation efficiency of the plurality of target index files can be improved because the associated information between the proxy server and the response system is not required to be reconstructed, so that the monitoring index of the response system can realize the operation of non-sensitive addition and deletion, the response system screens the plurality of monitoring requests from the generated requests, processes the generated requests by other systems and cannot accurately determine the index data of the response system, and further, the corresponding target index file is operated when the response system finishes the response to each monitoring request, the situation that the corresponding target index file cannot be accurately generated due to the fact that the response system does not complete the processing of the monitoring request can be avoided, and the index data can be accurately determined based on the monitoring information.
Drawings
FIG. 1 is a flow chart of a system index generation method according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a system index generating device according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a proxy server according to a preferred embodiment of the present invention for implementing the system index generation method.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a system index generation method according to a preferred embodiment of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The system index generation method can acquire and process related data based on artificial intelligence technology. Wherein artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) is the theory, method, technique, and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
The system index generating method is applied to one or more proxy servers, wherein the proxy servers are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored computer readable instructions, and hardware of the proxy servers comprises, but is not limited to, microprocessors, application SPECIFIC INTEGRATED circuits (Application SPECIFIC INTEGRATED circuits, application Specific Integrated Circuits (ASICs), programmable gate arrays (Field-Programmable GATE ARRAY, FPGA), digital signal processors (DIGITAL SIGNAL processors, DSPs), embedded devices and the like.
The proxy server may be any electronic product that can interact with a user in a human-computer manner, such as a Personal computer, a tablet computer, a smart phone, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a game console, an interactive internet protocol television (Internet Protocol Television, IPTV), a smart wearable device, etc.
The proxy server may comprise a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network proxy server, a proxy server group composed of multiple network proxy servers, or a Cloud based on Cloud Computing (Cloud Computing) composed of a large number of hosts or network proxy servers.
The network on which the proxy server is located includes, but is not limited to: the internet, wide area networks, metropolitan area networks, local area networks, virtual private networks (Virtual Private Network, VPN), etc.
In at least one embodiment of the present invention, the system index generation method is applied to a proxy server, which communicates with a response system, which communicates with a plurality of terminal devices.
S10, receiving an index monitoring requirement of the response system, wherein the index monitoring requirement comprises a dependent index and an independent index.
In at least one embodiment of the invention, the indicator monitoring needs are generated based on triggering of the monitoring needs of the response system.
The dependent index refers to an index having a dependency relationship with each other, and the independent index refers to an index having no dependency relationship with each other.
And S11, when any terminal equipment is monitored to have a request to generate, screening a plurality of monitoring requests from the generated requests based on the response system.
In at least one embodiment of the present invention, the arbitrary terminal device refers to any device that communicates with the response system.
The generated request refers to a request generated by the arbitrary terminal device.
The plurality of monitoring requests refer to requests generated by the arbitrary terminal device after the demand generation time.
In at least one embodiment of the invention, the proxy server screening a plurality of monitoring requests from the generated requests based on the response system comprises:
acquiring a system address of the response system;
extracting an execution address from the generated request;
determining a request corresponding to the execution address successfully matched with the system address as an initial request;
Acquiring a demand generation time of the index detection demand, and acquiring a request generation time of the initial request;
And determining initial requests corresponding to the request generation time with the value larger than the demand generation time as the plurality of monitoring requests.
The execution address is address information corresponding to the generated request.
The initial request refers to a request that needs to be processed by the response system.
The initial request which needs to be processed by the response system can be accurately screened out from the generated requests through matching of the execution address and the system address, and then the plurality of monitoring requests can be accurately screened out from the initial requests through comparison of the request generation time and the demand generation time, so that the accuracy of the index data is improved.
S12, generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index file corresponding to the response system.
In at least one embodiment of the present invention, the configuration index file refers to a file in which the proxy server monitors the response system, where the configuration index file includes an initial configuration index.
In at least one embodiment of the present invention, the proxy server generating a plurality of target index files according to the index monitoring requirements, the request identifier of each monitoring request, and the configuration index file corresponding to the response system includes:
acquiring files corresponding to the proxy server and the response system from a preset configuration library as the configuration index files;
Extracting an initial configuration index from the configuration index file;
Replacing the initial configuration index with the index monitoring requirement to obtain a monitoring script file;
and writing each request identifier into a position corresponding to a preset label in the monitoring script file to obtain the target index files.
The preset configuration library is stored with index files for monitoring the initial configuration indexes of each system by a plurality of servers. The initial configuration index may be set arbitrarily, for example, the initial configuration index may be time-consuming for request processing, or the like.
The preset tag is used for indicating a monitored object.
The monitoring script file can be quickly generated through the configuration index file, and further the file for monitoring the monitoring request can be accurately generated by utilizing the preset label.
And S13, forwarding the plurality of monitoring requests to the response system, and running corresponding target index files when the response system finishes responding to each monitoring request to obtain monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index.
In at least one embodiment of the present invention, the first index result refers to result information corresponding to the dependent index, and the second index result refers to result information corresponding to the independent index.
In at least one embodiment of the invention, after forwarding the plurality of monitoring requests to the response system, the method further comprises:
traversing a log library of the response system based on each request identification;
if a request log matched with the request identifier exists in the log library, detecting whether the request log contains a preset event or not;
and if the request log contains the preset event, determining that the response system finishes the response to each monitoring request.
And all operation logs of the response system are stored in the log library.
The preset event refers to an execution event for processing a request.
The request logs can be accurately screened from the log library through the request identification, further, based on detection of the preset event on the request logs, the response system can be timely informed of finishing the response to each monitoring request, and further, the monitoring information can be rapidly acquired.
S14, combining the first index results in the monitoring information to obtain a third index result of the response system on the dependent index.
In at least one embodiment of the present invention, the proxy server merging the first index results in the plurality of monitoring information, and obtaining the third index result of the response system on the dependent index includes:
Performing word segmentation processing on the dependency indexes to obtain a plurality of dependency word segments;
Calculating the vocabulary similarity of each dependent word segmentation and a preset operation vocabulary;
determining a preset operation vocabulary with the maximum vocabulary similarity as an operation relation in the dependency index;
And merging the first index result based on the operation relation to obtain the third index result.
The preset operation vocabulary refers to a vocabulary with an operation meaning, for example, the preset operation vocabulary includes: sum, mean, etc.
For example, the dependency index is the total URI request number, and the multiple dependency tokens are obtained by segmentation: and calculating the total, URI and the number of requests to obtain the highest word similarity depending on the word segmentation total and the sum of preset operation words, so that the operation relation is the sum, and further calculating the sum of the first index results to obtain the third index result.
By the method, the operation relation can be accurately extracted from the preset operation vocabulary, so that the first index result is processed by the operation relation, and the accuracy of the third index result is improved.
Specifically, the proxy server performs word segmentation processing on the dependency index, and obtaining a plurality of dependency words includes:
Dividing the dependency index according to a preset index to obtain a plurality of dividing paths and path word division corresponding to each dividing path;
Acquiring the index use frequency of the preset index;
calculating the segmentation probability of each segmentation path according to the index use frequency;
and determining the path word corresponding to the segmentation path with the maximum segmentation probability as the plurality of dependent word segments.
Wherein the preset index may include the initial configuration index.
The index use frequency refers to the number of times of monitoring the system by utilizing the preset index.
The segmentation probability refers to the sum of the index usage frequency corresponding to the path word segmentation matched with the preset index under each segmentation path.
The dependency index can be rapidly divided through the preset index, and then the index using frequency can be used for accurately selecting the plurality of dependency words from the path words corresponding to the plurality of segmentation paths.
S15, determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
It should be emphasized that, to further ensure the privacy and security of the index data, the index data may also be stored in a node of a blockchain.
In at least one embodiment of the present invention, the index data refers to a response of the response system to the index monitoring demand.
In at least one embodiment of the invention, the method further comprises:
Acquiring an index benchmark of the response system on the index monitoring requirement from a preset assessment benchmark library;
detecting the index data based on the index reference to obtain the running state of the response system;
If the running state is abnormal, generating prompt information according to the index data;
And sending the prompt information to a preset binding terminal.
The preset checking reference library stores reference values of a plurality of systems on a plurality of indexes, and the reference values can be a data interval.
The running state is determined according to the data relation between the index datum and the index data, and if the index data is in the interval of the index datum, the running state is determined to be normal. And if any index data is not in the interval of the index standard, determining that the running state is abnormal.
The preset binding terminal may be an operation and maintenance user responsible for supervising the response system.
The index reference can be accurately obtained from the preset assessment reference library through the response system and the index monitoring requirement, the index data are further detected based on the index reference, the accuracy of the running state is improved, and when the running state is abnormal, an operation and maintenance user of the response system can be timely notified.
According to the technical scheme, the configuration index file is updated based on the index monitoring requirement and the request identifier, and the generation efficiency of the plurality of target index files can be improved because the associated information between the proxy server and the response system is not required to be reconstructed, so that the monitoring index of the response system can realize the operation of non-sensitive addition and deletion, the response system screens the plurality of monitoring requests from the generated requests, processes the generated requests by other systems and cannot accurately determine the index data of the response system, and further, the corresponding target index file is operated when the response system finishes the response to each monitoring request, the situation that the corresponding target index file cannot be accurately generated due to the fact that the response system does not complete the processing of the monitoring request can be avoided, and the index data can be accurately determined based on the monitoring information.
FIG. 2 is a functional block diagram of a system index generating device according to a preferred embodiment of the present invention. The system index generating device 11 includes a receiving unit 110, a screening unit 111, a generating unit 112, an operating unit 113, a merging unit 114, a determining unit 115, a traversing unit 116, a detecting unit 117, an acquiring unit 118, and a transmitting unit 119. The module/unit referred to herein is a series of computer readable instructions capable of being retrieved by the processor 13 and performing a fixed function and stored in the memory 12. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
In at least one embodiment of the invention, the system indicator generating means operates in a proxy server in communication with a response system in communication with a plurality of terminal devices.
The receiving unit 110 receives an index monitoring requirement for the response system, wherein the index monitoring requirement comprises a dependent index and a non-dependent index.
In at least one embodiment of the invention, the indicator monitoring needs are generated based on triggering of the monitoring needs of the response system.
The dependent index refers to an index having a dependency relationship with each other, and the independent index refers to an index having no dependency relationship with each other.
When it is monitored that any terminal device has a request to generate, the screening unit 111 screens a plurality of monitoring requests from the generated requests based on the response system.
In at least one embodiment of the present invention, the arbitrary terminal device refers to any device that communicates with the response system.
The generated request refers to a request generated by the arbitrary terminal device.
The plurality of monitoring requests refer to requests generated by the arbitrary terminal device after the demand generation time.
In at least one embodiment of the present invention, the filtering unit 111 filters a plurality of monitoring requests from the generated requests based on the response system includes:
acquiring a system address of the response system;
extracting an execution address from the generated request;
determining a request corresponding to the execution address successfully matched with the system address as an initial request;
Acquiring a demand generation time of the index detection demand, and acquiring a request generation time of the initial request;
And determining initial requests corresponding to the request generation time with the value larger than the demand generation time as the plurality of monitoring requests.
The execution address is address information corresponding to the generated request.
The initial request refers to a request that needs to be processed by the response system.
The initial request which needs to be processed by the response system can be accurately screened out from the generated requests through matching of the execution address and the system address, and then the plurality of monitoring requests can be accurately screened out from the initial requests through comparison of the request generation time and the demand generation time, so that the accuracy of the index data is improved.
The generating unit 112 generates a plurality of target index files according to the index monitoring requirements, the request identifier of each monitoring request and the configuration index file corresponding to the response system.
In at least one embodiment of the present invention, the configuration index file refers to a file in which the proxy server monitors the response system, where the configuration index file includes an initial configuration index.
In at least one embodiment of the present invention, the generating unit 112 generates a plurality of target index files according to the index monitoring requirements, the request identifier of each monitoring request, and the configuration index file corresponding to the response system, where the generating unit includes:
acquiring files corresponding to the proxy server and the response system from a preset configuration library as the configuration index files;
Extracting an initial configuration index from the configuration index file;
Replacing the initial configuration index with the index monitoring requirement to obtain a monitoring script file;
and writing each request identifier into a position corresponding to a preset label in the monitoring script file to obtain the target index files.
The preset configuration library is stored with index files for monitoring the initial configuration indexes of each system by a plurality of servers. The initial configuration index may be set arbitrarily, for example, the initial configuration index may be time-consuming for request processing, or the like.
The preset tag is used for indicating a monitored object.
The monitoring script file can be quickly generated through the configuration index file, and further the file for monitoring the monitoring request can be accurately generated by utilizing the preset label.
The operation unit 113 forwards the plurality of monitoring requests to the response system, and when the response system completes the response to each monitoring request, the operation unit executes the corresponding target index file to obtain the monitoring information of each monitoring request, where the monitoring information includes a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index.
In at least one embodiment of the present invention, the first index result refers to result information corresponding to the dependent index, and the second index result refers to result information corresponding to the independent index.
In at least one embodiment of the invention, after forwarding the plurality of monitoring requests to the response system, the traversal unit 116 traverses the log library of the response system based on each request identification;
If a request log matched with the request identifier exists in the log library, the detection unit 117 detects whether the request log contains a preset event;
if the request log includes the preset event, the determining unit 115 determines that the response system completes the response to each monitoring request.
And all operation logs of the response system are stored in the log library.
The preset event refers to an execution event for processing a request.
The request logs can be accurately screened from the log library through the request identification, further, based on detection of the preset event on the request logs, the response system can be timely informed of finishing the response to each monitoring request, and further, the monitoring information can be rapidly acquired.
The merging unit 114 merges the first index results in the plurality of monitoring information to obtain a third index result of the response system on the dependent index.
In at least one embodiment of the present invention, the merging unit 114 merges the first index results in the plurality of monitoring information, and the obtaining the third index result of the response system on the dependent index includes:
Performing word segmentation processing on the dependency indexes to obtain a plurality of dependency word segments;
Calculating the vocabulary similarity of each dependent word segmentation and a preset operation vocabulary;
determining a preset operation vocabulary with the maximum vocabulary similarity as an operation relation in the dependency index;
And merging the first index result based on the operation relation to obtain the third index result.
The preset operation vocabulary refers to a vocabulary with an operation meaning, for example, the preset operation vocabulary includes: sum, mean, etc.
For example, the dependency index is the total URI request number, and the multiple dependency tokens are obtained by segmentation: and calculating the total, URI and the number of requests to obtain the highest word similarity depending on the word segmentation total and the sum of preset operation words, so that the operation relation is the sum, and further calculating the sum of the first index results to obtain the third index result.
By the method, the operation relation can be accurately extracted from the preset operation vocabulary, so that the first index result is processed by the operation relation, and the accuracy of the third index result is improved.
Specifically, the merging unit 114 performs word segmentation processing on the dependency index, and the obtaining a plurality of dependency words includes:
Dividing the dependency index according to a preset index to obtain a plurality of dividing paths and path word division corresponding to each dividing path;
Acquiring the index use frequency of the preset index;
calculating the segmentation probability of each segmentation path according to the index use frequency;
and determining the path word corresponding to the segmentation path with the maximum segmentation probability as the plurality of dependent word segments.
Wherein the preset index may include the initial configuration index.
The index use frequency refers to the number of times of monitoring the system by utilizing the preset index.
The segmentation probability refers to the sum of the index usage frequency corresponding to the path word segmentation matched with the preset index under each segmentation path.
The dependency index can be rapidly divided through the preset index, and then the index using frequency can be used for accurately selecting the plurality of dependency words from the path words corresponding to the plurality of segmentation paths.
The determining unit 115 determines the second index result and the third index result as index data of the response system on the index monitoring demand.
It should be emphasized that, to further ensure the privacy and security of the index data, the index data may also be stored in a node of a blockchain.
In at least one embodiment of the present invention, the index data refers to a response of the response system to the index monitoring demand.
In at least one embodiment of the present invention, the obtaining unit 118 obtains an index benchmark of the response system on the index monitoring requirement from a preset assessment benchmark library;
the detecting unit 117 detects the index data based on the index reference, and obtains an operation state of the response system;
if the operation state is abnormal, the generating unit 112 generates prompt information according to the index data;
the transmitting unit 119 transmits the prompt message to a preset binding terminal.
The preset checking reference library stores reference values of a plurality of systems on a plurality of indexes, and the reference values can be a data interval.
The running state is determined according to the data relation between the index datum and the index data, and if the index data is in the interval of the index datum, the running state is determined to be normal. And if any index data is not in the interval of the index standard, determining that the running state is abnormal.
The preset binding terminal may be an operation and maintenance user responsible for supervising the response system.
The index reference can be accurately obtained from the preset assessment reference library through the response system and the index monitoring requirement, the index data are further detected based on the index reference, the accuracy of the running state is improved, and when the running state is abnormal, an operation and maintenance user of the response system can be timely notified.
According to the technical scheme, the configuration index file is updated based on the index monitoring requirement and the request identifier, and the generation efficiency of the plurality of target index files can be improved because the associated information between the proxy server and the response system is not required to be reconstructed, so that the monitoring index of the response system can realize the operation of non-sensitive addition and deletion, the response system screens the plurality of monitoring requests from the generated requests, processes the generated requests by other systems and cannot accurately determine the index data of the response system, and further, the corresponding target index file is operated when the response system finishes the response to each monitoring request, the situation that the corresponding target index file cannot be accurately generated due to the fact that the response system does not complete the processing of the monitoring request can be avoided, and the index data can be accurately determined based on the monitoring information.
Fig. 3 is a schematic structural diagram of a proxy server according to a preferred embodiment of the present invention for implementing the system index generation method.
In one embodiment of the invention, the proxy server 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions, such as a system index generation program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the proxy server 1 and does not constitute a limitation of the proxy server 1, and may include more or less components than illustrated, or may combine certain components, or different components, e.g. the proxy server 1 may also include input-output devices, network access devices, buses, etc.
The Processor 13 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 13 is an operation core and a control center of the proxy server 1, connects various parts of the entire proxy server 1 using various interfaces and lines, and executes an operating system of the proxy server 1 and various installed application programs, program codes, etc.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules/units may be a series of computer readable instructions capable of performing a specific function describing the execution of the computer readable instructions in the proxy server 1. For example, the computer-readable instructions may be divided into a receiving unit 110, a screening unit 111, a generating unit 112, an operating unit 113, a merging unit 114, a determining unit 115, a traversing unit 116, a detecting unit 117, an acquiring unit 118, and a transmitting unit 119.
The memory 12 may be used to store the computer readable instructions and/or modules, and the processor 13 may implement the various functions of the proxy server 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the proxy server, etc. Memory 12 may include non-volatile and volatile memory, such as: a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one magnetic disk storage device, flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the proxy server 1. Further, the memory 12 may be a physical memory, such as a memory bank, a TF card (Trans-FLASH CARD), or the like.
The modules/units integrated in the proxy server 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the present invention may also be implemented by implementing all or part of the processes in the methods of the embodiments described above, by instructing the associated hardware by means of computer readable instructions, which may be stored in a computer readable storage medium, the computer readable instructions, when executed by a processor, implementing the steps of the respective method embodiments described above.
Wherein the computer readable instructions comprise computer readable instruction code which may be in the form of source code, object code, executable files, or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory).
The blockchain is a novel application mode of computer technologies such as distributed system index generation, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
In connection with fig. 1, the memory 12 in the proxy server 1 stores computer readable instructions for implementing a system index generation method, and the processor 13 may execute the computer readable instructions to implement:
Receiving an index monitoring requirement for a response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
when any terminal equipment is monitored to have a request to generate, screening a plurality of monitoring requests from the generated requests based on the response system;
generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index files corresponding to the response system;
forwarding the plurality of monitoring requests to the response system, and running corresponding target index files when the response system finishes responding to each monitoring request to obtain monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
combining the first index results in the monitoring information to obtain a third index result of the response system on the dependent index;
And determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
In particular, the specific implementation method of the processor 13 on the computer readable instructions may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The computer readable storage medium has stored thereon computer readable instructions, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
Receiving an index monitoring requirement for a response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
when any terminal equipment is monitored to have a request to generate, screening a plurality of monitoring requests from the generated requests based on the response system;
generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index files corresponding to the response system;
forwarding the plurality of monitoring requests to the response system, and running corresponding target index files when the response system finishes responding to each monitoring request to obtain monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
combining the first index results in the monitoring information to obtain a third index result of the response system on the dependent index;
And determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. The units or means may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.
Claims (8)
1. A system index generation method, applied to a proxy server, the proxy server being in communication with a response system, the response system being in communication with a plurality of terminal devices, the system index generation method comprising:
Receiving an index monitoring requirement for the response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
when any terminal equipment is monitored to have a request to generate, screening a plurality of monitoring requests from the generated requests based on the response system;
generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index files corresponding to the response system;
forwarding the plurality of monitoring requests to the response system, and running corresponding target index files when the response system finishes responding to each monitoring request to obtain monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
Combining the first index results in the monitoring information to obtain a third index result of the response system on the dependent index, wherein the third index result comprises: performing word segmentation processing on the dependency indexes to obtain a plurality of dependency word segments; calculating the vocabulary similarity of each dependent word segmentation and a preset operation vocabulary; determining a preset operation vocabulary with the maximum vocabulary similarity as an operation relation in the dependency index; merging the first index result based on the operation relation to obtain the third index result; the word segmentation processing is performed on the dependency indexes, and obtaining a plurality of dependency word segments comprises the following steps: dividing the dependency index according to a preset index to obtain a plurality of dividing paths and path word division corresponding to each dividing path; acquiring the index use frequency of the preset index; calculating the segmentation probability of each segmentation path according to the index use frequency; determining the path word segmentation corresponding to the segmentation path with the maximum segmentation probability as the plurality of dependent word segmentation;
And determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
2. The system index generation method of claim 1, wherein said screening a plurality of monitoring requests from the generated requests based on the response system comprises:
acquiring a system address of the response system;
extracting an execution address from the generated request;
determining a request corresponding to the execution address successfully matched with the system address as an initial request;
Acquiring a demand generation time of the index monitoring demand, and acquiring a request generation time of the initial request;
And determining initial requests corresponding to the request generation time with the value larger than the demand generation time as the plurality of monitoring requests.
3. The system index generating method according to claim 1, wherein generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request, and the configuration index file corresponding to the response system comprises:
acquiring files corresponding to the proxy server and the response system from a preset configuration library as the configuration index files;
Extracting an initial configuration index from the configuration index file;
Replacing the initial configuration index with the index monitoring requirement to obtain a monitoring script file;
and writing each request identifier into a position corresponding to a preset label in the monitoring script file to obtain the target index files.
4. The system index generation method of claim 1, wherein after forwarding the plurality of monitoring requests to the response system, the method further comprises:
traversing a log library of the response system based on each request identification;
if a request log matched with the request identifier exists in the log library, detecting whether the request log contains a preset event or not;
and if the request log contains the preset event, determining that the response system finishes the response to each monitoring request.
5. The system index generation method according to claim 1, wherein the method further comprises:
Acquiring an index benchmark of the response system on the index monitoring requirement from a preset assessment benchmark library;
detecting the index data based on the index reference to obtain the running state of the response system;
If the running state is abnormal, generating prompt information according to the index data;
And sending the prompt information to a preset binding terminal.
6. A system index generating device operable in a proxy server, the proxy server being in communication with a response system, the response system being in communication with a plurality of terminal devices, the system index generating device comprising:
the receiving unit is used for receiving the index monitoring requirement of the response system, wherein the index monitoring requirement comprises a dependent index and an independent index;
the screening unit is used for screening a plurality of monitoring requests from the generated requests based on the response system when any terminal equipment is monitored to have the request generation;
The generating unit is used for generating a plurality of target index files according to the index monitoring requirements, the request identification of each monitoring request and the configuration index file corresponding to the response system;
The operation unit is used for forwarding the plurality of monitoring requests to the response system, and operating the corresponding target index file when the response system finishes responding to each monitoring request to obtain the monitoring information of each monitoring request, wherein the monitoring information comprises a first index result of the monitoring request on the dependent index and a second index result of the monitoring request on the independent index;
The merging unit is configured to merge the first index results in the plurality of monitoring information to obtain a third index result of the response system on the dependent index, and includes: performing word segmentation processing on the dependency indexes to obtain a plurality of dependency word segments; calculating the vocabulary similarity of each dependent word segmentation and a preset operation vocabulary; determining a preset operation vocabulary with the maximum vocabulary similarity as an operation relation in the dependency index; merging the first index result based on the operation relation to obtain the third index result; the word segmentation processing is performed on the dependency indexes, and obtaining a plurality of dependency word segments comprises the following steps: dividing the dependency index according to a preset index to obtain a plurality of dividing paths and path word division corresponding to each dividing path; acquiring the index use frequency of the preset index; calculating the segmentation probability of each segmentation path according to the index use frequency; determining the path word segmentation corresponding to the segmentation path with the maximum segmentation probability as the plurality of dependent word segmentation;
And the determining unit is used for determining the second index result and the third index result as index data of the response system on the index monitoring requirement.
7. A proxy server, the proxy server comprising:
a memory storing computer readable instructions; and
A processor executing computer readable instructions stored in the memory to implement the system index generation method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized by: the computer-readable storage medium has stored therein computer-readable instructions that are executed by a processor in a proxy server to implement the system index generation method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210063589.4A CN114490260B (en) | 2022-01-20 | 2022-01-20 | System index generation method, device, proxy server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210063589.4A CN114490260B (en) | 2022-01-20 | 2022-01-20 | System index generation method, device, proxy server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114490260A CN114490260A (en) | 2022-05-13 |
CN114490260B true CN114490260B (en) | 2024-08-27 |
Family
ID=81471733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210063589.4A Active CN114490260B (en) | 2022-01-20 | 2022-01-20 | System index generation method, device, proxy server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114490260B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991889A (en) * | 2015-06-26 | 2015-10-21 | 江苏科技大学 | Fuzzy word segmentation based non-multi-character word error automatic proofreading method |
CN110084427A (en) * | 2019-04-26 | 2019-08-02 | 飞叶科技股份有限公司 | A kind of smart city public sentiment event prediction algorithm |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112685253B (en) * | 2020-12-29 | 2024-09-27 | 深圳神拳互动科技有限公司 | Front-end error report log acquisition method, device, equipment and storage medium |
-
2022
- 2022-01-20 CN CN202210063589.4A patent/CN114490260B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991889A (en) * | 2015-06-26 | 2015-10-21 | 江苏科技大学 | Fuzzy word segmentation based non-multi-character word error automatic proofreading method |
CN110084427A (en) * | 2019-04-26 | 2019-08-02 | 飞叶科技股份有限公司 | A kind of smart city public sentiment event prediction algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN114490260A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112669138B (en) | Data processing method and related equipment | |
CN112541009B (en) | Data query method, device, electronic equipment and storage medium | |
CN111651363B (en) | Test data acquisition method and device, electronic equipment and medium | |
CN112632098A (en) | Dynamic generation method of structured query statement and related equipment | |
CN114329095A (en) | System logic diagram generation method, device, equipment and storage medium | |
CN113470775B (en) | Information acquisition method, device, equipment and storage medium | |
CN114418398A (en) | Scene task development method, device, equipment and storage medium | |
CN112685253B (en) | Front-end error report log acquisition method, device, equipment and storage medium | |
CN113918467A (en) | Financial system testing method, device, equipment and storage medium | |
CN112199483B (en) | Information input assisting method and device, electronic equipment and storage medium | |
CN112181485B (en) | Script execution method and device, electronic equipment and storage medium | |
CN112819305A (en) | Service index analysis method, device, equipment and storage medium | |
CN115037790B (en) | Abnormal registration identification method, device, equipment and storage medium | |
CN116628005A (en) | Structured query statement processing method, device, equipment and storage medium | |
CN114490260B (en) | System index generation method, device, proxy server and storage medium | |
CN115205032A (en) | Credit investigation query method, apparatus, device and storage medium | |
CN114360732B (en) | Medical data analysis method, device, electronic equipment and storage medium | |
CN114925033A (en) | Information uplink method, device, system and storage medium | |
CN114187050A (en) | Card and ticket issuing monitoring method, device, equipment and storage medium | |
CN114416417A (en) | System abnormity monitoring method, device, equipment and storage medium | |
CN113886263A (en) | System testing method, device, equipment and storage medium | |
CN114003784A (en) | Request recording method, device, equipment and storage medium | |
CN114610386A (en) | Interaction method, device, equipment and storage medium of H5 and application program | |
CN114398104B (en) | Script processing method, device, equipment and storage medium | |
CN113760777B (en) | Application program pressure test method, device, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |