Service inspection method, device, equipment, system and computer readable storage medium
By sending automated inspection lists and analysis results to business equipment, the problem of manual configuration dependence in the existing technology is solved, the flexibility and efficiency of service inspection is improved, and the accuracy and efficiency of exception handling is improved.
Patent Information
- Application Number
- CN202411541567.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, service inspections rely on manual configuration, resulting in poor flexibility, low efficiency, and low exception handling efficiency.
By sending a inspection list to the business equipment, the business equipment automatically obtains and performs inspection tasks, analyzes inspection results and generates abnormal information, and automatically reports abnormal information to the management equipment.
It improves the flexibility and efficiency of service inspection, reduces manual intervention, saves exception handling time, and improves the accuracy and efficiency of processing.
Smart Images

Figure CN119512788A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a service inspection method, device, equipment, system and computer-readable storage medium. Background Art
[0002] With the continuous development of computer technology, business equipment can provide more and more services. The stable operation of each service affects the stable operation of business equipment. Therefore, it is necessary to inspect the services that business equipment can provide.
[0003] In the related art, it is necessary to manually configure an inspection list for a business device, and the inspection list includes inspection targets, which are services in the business device that need to be inspected, so that the business device can be inspected according to the inspection list. It is manually determined whether the inspection target is abnormal based on the inspection result, and if the inspection target is abnormal, the inspection target is processed based on experience.
[0004] However, the above service inspection relies on manual configuration, which makes the service inspection more limited, less flexible and less efficient. Moreover, the above method handles exceptions manually based on experience, which makes the efficiency of exception handling low. Summary of the invention
[0005] The embodiments of the present application provide a service inspection method, device, equipment, system and computer-readable storage medium, which can be used to solve the problems of high limitations, poor flexibility, low efficiency and low efficiency of exception handling in related technologies. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a service inspection method, which is applied to an inspection device, and the method includes:
[0007] Sending an inspection list to a service device, the inspection list including inspection targets, the inspection targets being services that need to be inspected among services that the service device can provide;
[0008] Receiving the inspection result of the inspection target sent by the service device, analyzing the inspection result to obtain an analysis result, wherein the analysis result is used to indicate whether the inspection target is abnormal;
[0009] When the analysis result indicates that the inspection target is abnormal, obtaining first abnormality information of the inspection target, wherein the first abnormality information includes at least one of an abnormality cause or a processing suggestion;
[0010] The first abnormality information is sent to a management device of the inspection target, so that the management device processes the inspection target according to the first abnormality information.
[0011] In a possible implementation manner, before sending the inspection list to the service device, the method further includes:
[0012] Receiving an acquisition request sent by the service device, the acquisition request including an Internet Protocol address of the service device and a type of an inspection client deployed in the service device, the inspection client being used to inspect the inspection target;
[0013] The inspection list is determined according to the Internet Protocol address of the service device and the type of the inspection client.
[0014] In a possible implementation manner, the obtaining the first abnormal information of the inspection target includes:
[0015] Generate an alarm mark corresponding to the inspection result;
[0016] The abnormal information corresponding to the alarm identifier among the stored multiple abnormal information is determined as the first abnormal information, and the multiple abnormal information respectively correspond to an alarm identifier.
[0017] In a possible implementation manner, the obtaining the first abnormal information of the inspection target includes:
[0018] According to the inspection result, obtaining inspection question information of the inspection target;
[0019] The inspection question information is input into a question-answering model to obtain first abnormality information of the inspection target output by the question-answering model.
[0020] In a possible implementation, obtaining inspection question information of the inspection target according to the inspection result includes:
[0021] Determine a question template corresponding to the type of the inspection target;
[0022] According to the question template and the inspection result, inspection question information of the inspection target is obtained.
[0023] In a possible implementation, the method further includes:
[0024] Generate an alarm mark corresponding to the inspection result;
[0025] The warning identifier and the first abnormal information are stored correspondingly.
[0026] In a possible implementation, the method further includes:
[0027] receiving second abnormal information, wherein the second abnormal information includes at least one of an actual abnormal cause or an actual processing method of the inspection target;
[0028] Update the question-answer model according to the second abnormal information.
[0029] In a second aspect, an embodiment of the present application provides a service inspection method, which is applied to a service device, and the method includes:
[0030] Receiving an inspection list sent by an inspection device, the inspection list including inspection targets, the inspection targets being services that need to be inspected among services that can be provided by the business device;
[0031] Inspecting the inspection target and obtaining an inspection result of the inspection target;
[0032] The inspection result is sent to the inspection device so that the inspection device analyzes the inspection result to obtain an analysis result. When the analysis result indicates that the inspection target is abnormal, first abnormality information of the inspection target is obtained, and the first abnormality information is sent to the management device of the inspection target. The first abnormality information includes at least one of the abnormality cause or processing suggestion.
[0033] In a possible implementation, the service device is deployed with an inspection client, and the inspection client is used to inspect the inspection target;
[0034] Before receiving the inspection list sent by the inspection device, the method further includes:
[0035] The inspection client is called to send an acquisition request to the inspection device, wherein the acquisition request includes the Internet Protocol address of the service device and the type of the inspection client, and the inspection list is determined according to the Internet Protocol address of the service device and the type of the inspection client.
[0036] In a third aspect, an embodiment of the present application provides a service inspection device, the device comprising:
[0037] A sending module, used for sending an inspection list to a service device, wherein the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among the services that the service device can provide;
[0038] A receiving module, used for receiving the inspection result of the inspection target sent by the service device, analyzing the inspection result to obtain an analysis result, wherein the analysis result is used to indicate whether the inspection target is abnormal;
[0039] an acquisition module, configured to acquire first abnormality information of the inspection target when the analysis result indicates that the inspection target is abnormal, wherein the first abnormality information includes at least one of an abnormality cause or a processing suggestion;
[0040] The sending module is further used to send the first abnormal information to the management device of the inspection target, so that the management device processes the inspection target according to the first abnormal information.
[0041] In a possible implementation, the receiving module is further used to receive an acquisition request sent by the service device, the acquisition request including the Internet Protocol address of the service device and the type of the inspection client deployed in the service device, the inspection client being used to inspect the inspection target;
[0042] The device also includes:
[0043] A determination module is used to determine the inspection list according to the Internet Protocol address of the service device and the type of the inspection client.
[0044] In a possible implementation, the acquisition module is used to generate an alarm identifier corresponding to the inspection result;
[0045] The abnormal information corresponding to the alarm identifier among the stored multiple abnormal information is determined as the first abnormal information, and the multiple abnormal information respectively correspond to an alarm identifier.
[0046] In a possible implementation, the acquisition module is used to acquire inspection question information of the inspection target according to the inspection result;
[0047] The inspection question information is input into a question-answering model to obtain first abnormality information of the inspection target output by the question-answering model.
[0048] In a possible implementation, the acquisition module is used to determine a question template corresponding to the type of the inspection target;
[0049] According to the question template and the inspection result, inspection question information of the inspection target is obtained.
[0050] In a possible implementation manner, the device further includes:
[0051] A generating module, used to generate an alarm mark corresponding to the inspection result;
[0052] A storage module is used to store the alarm identifier and the first abnormal information in correspondence.
[0053] In a possible implementation, the receiving module is further configured to receive second abnormality information, where the second abnormality information includes at least one of an actual abnormality cause or an actual processing method of the inspection target;
[0054] The device also includes:
[0055] An updating module is used to update the question-answering model according to the second abnormal information.
[0056] In a fourth aspect, an embodiment of the present application provides a service inspection device, the device comprising:
[0057] A receiving module, used for receiving an inspection list sent by an inspection device, wherein the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among the services that can be provided by the business device;
[0058] An inspection module, used to inspect the inspection target and obtain the inspection result of the inspection target;
[0059] A sending module is used to send the inspection result to the inspection device so that the inspection device analyzes the inspection result to obtain an analysis result. When the analysis result indicates that the inspection target is abnormal, the first abnormal information of the inspection target is obtained, and the first abnormal information is sent to the management device of the inspection target. The first abnormal information includes at least one of the abnormal cause or processing suggestion.
[0060] In a possible implementation, the service device is deployed with an inspection client, and the inspection client is used to inspect the inspection target;
[0061] The sending module is also used to call the inspection client to send an acquisition request to the inspection device, wherein the acquisition request includes the Internet Protocol address of the business device and the type of the inspection client, and the inspection list is determined based on the Internet Protocol address of the business device and the type of the inspection client.
[0062] In a fifth aspect, an embodiment of the present application provides a patrol device, which is used to implement the service patrol method described in the first aspect above.
[0063] In a sixth aspect, an embodiment of the present application provides a business device, which is used to implement the service inspection method described in the second aspect above.
[0064] In the seventh aspect, an embodiment of the present application provides a service inspection system, which includes an inspection device and a business device. The inspection device is used to implement the service inspection method described in the first aspect above, and the business device is used to implement the service inspection method described in the second aspect above.
[0065] In an eighth aspect, a computer-readable storage medium is further provided, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor so that a computer implements any of the above-mentioned service inspection methods.
[0066] In the ninth aspect, a computer program or a computer program product is also provided, wherein the computer program or the computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor so that the computer implements any one of the above-mentioned service inspection methods.
[0067] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0068] The technical solution provided by the embodiment of the present application sends an inspection list to the service device so that the service device obtains the inspection list and inspects the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0069] Moreover, the above method can not only inspect the service, but also provide the first abnormal information of the service when the service is abnormal, so that the technical staff can process the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0071] Figure 1 It is a schematic diagram of an implementation environment of a service inspection method provided in an embodiment of the present application;
[0072] Figure 2 is a flow chart of a service inspection method provided in an embodiment of the present application;
[0073] Figure 3 This is a processing flow chart of an inspection client provided in an embodiment of the present application;
[0074] Figure 4 This is a Kafka architecture diagram provided in an embodiment of the present application;
[0075] Figure 5 This is an architecture diagram of a clickhouse provided in an embodiment of the present application;
[0076] Figure 6 It is a question template corresponding to an HTTP type provided in an embodiment of the present application;
[0077] Figure 7It is a question template corresponding to a TCP type provided in an embodiment of the present application;
[0078] Figure 8 It is an architecture diagram of a question-answering model provided in an embodiment of the present application;
[0079] Fig. 9 is a flow chart of a service inspection method provided in an embodiment of the present application;
[0080] Fig.10 is a flow chart of a service inspection method provided in an embodiment of the present application;
[0081] Fig.11 It is a structural diagram of a service inspection device provided in an embodiment of the present application;
[0082] Fig.12 It is a structural diagram of a service inspection device provided in an embodiment of the present application;
[0083] Fig.13 It is a structural diagram of a service inspection system provided in an embodiment of the present application;
[0084] Fig.14 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0085] Fig.15 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0086] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0087] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0088] Figure 1 Schematic diagram of an implementation environment of a service inspection method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: business equipment 101 and inspection equipment 102.
[0089] The service device 101 may be a terminal device or a server, and the inspection device 102 may be a terminal device or a server, which is not limited in the present embodiment. The service device 101 and the inspection device 102 are connected to each other through a wired network or a wireless network, and the service inspection method provided in the present embodiment is implemented through the interaction between the service device 101 and the inspection device 102.
[0090] Optionally, the service device 101 may be any device included in the service system, and an inspection client is deployed in the service device 101, and the inspection client is used to inspect the inspection target. The inspection device 102 may be a single device or a cluster device composed of multiple devices.
[0091] In one possible implementation, when the inspection device 102 is a device, the inspection device 102 is deployed with an inspection rule interface, kafka (a distributed, partitioned, multi-copy, distributed messaging system based on Zookeeper (a distributed coordination service)), clickhouse (a columnar database management system for online analysis), an inspection analysis program, a prompt word conversion module, an alarm session management, an inspection scheduling platform, and a question-and-answer model.
[0092] Among them, the inspection rule interface is used to provide an inspection list for the inspection client; Kafka and Clickhouse are used to store the inspection results of the inspection target; the inspection analysis program is used to analyze the inspection results to obtain analysis results, and the analysis results are used to indicate whether the inspection target is abnormal. When the analysis results indicate that the inspection target is abnormal, the inspection analysis program interacts with the alarm session management to obtain the first abnormal information of the inspection target, or when the analysis results indicate that the inspection target is abnormal, the inspection analysis program interacts with the prompt word conversion module, the alarm session management and the question-and-answer model to obtain the first abnormal information of the inspection target, and then sends the first abnormal information to the inspection scheduling platform, and the first abnormal information includes at least one of the abnormal cause or the processing suggestion; the inspection scheduling platform is used to send the first abnormal information to the management device of the inspection target, so that the management device processes the inspection target according to the first abnormal information.
[0093] In another possible implementation, when the inspection device 102 is a cluster device composed of multiple devices, the inspection device 102 is a cluster device composed of a device deployed with an inspection rule interface, a device deployed with Kafka, a device deployed with Clickhouse, a device deployed with an inspection analysis program, a device deployed with a prompt word conversion module, a device deployed with an alarm session management, a device deployed with an inspection scheduling platform, and a device deployed with a question and answer model.
[0094] It should be noted that the embodiment of the present application only takes the inspection device 102 as one device as an example. When the inspection device 102 is a device cluster composed of multiple devices, the process of implementing service inspection is similar to the process of implementing service inspection when the inspection device 102 is one device, and the embodiment of the present application will not be repeated here.
[0095] Optionally, the terminal device may be any electronic device product that can interact with a user through one or more methods such as a keyboard, a touchpad, a remote controller, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.
[0096] The terminal device may generally refer to one of a plurality of terminal devices. This embodiment is only illustrated by taking the terminal device as an example. Those skilled in the art may know that the number of the terminal devices may be more or less. For example, the terminal device may be only one, or the terminal devices may be dozens or hundreds, or more. The embodiment of this application does not limit the number and device type of the terminal devices.
[0097] The server is a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server is connected to the terminal device through a wired network or a wireless network. The server has a data receiving function, a data processing function, and a data sending function. Of course, the server may also have other functions, which are not limited in the embodiments of the present application.
[0098] Those skilled in the art should understand that the above-mentioned terminal devices and servers are for illustration only, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are incorporated herein by reference.
[0099] The present application embodiment provides a service inspection method, which can be applied to the above Figure 1 The implementation environment shown is Figure 2 As an example, the flowchart of a service inspection method provided in the embodiment of the present application is shown in FIG. Figure 1 The business device 101 and the inspection device 102 are executed. Figure 2 As shown, the method includes the following steps 201 to 206.
[0100] In step 201, the inspection device sends an inspection list to the service device.
[0101] The inspection list includes inspection targets, which are services that need to be inspected among the services that the business device can provide. Optionally, the services that the business device can provide include, but are not limited to, HTTP (Hypertext Transfer Protocol) services, TCP (Transmission Control Protocol) services, and UDP (User Datagram Protocol) services.
[0102] In a possible implementation, the service device is deployed with an inspection client, which is used to obtain an inspection list and inspect the inspection targets included in the inspection list. The inspection device is deployed with an inspection rule interface (Application Programming Interface, API), which is used by the inspection client and is used to provide the inspection client with an inspection list, which includes inspection targets. The inspection rule interface uses HTTP protocol and GET request.
[0103] Optionally, the business device calls the inspection client to send an acquisition request to the inspection device, the acquisition request includes the Internet Protocol (IP) address of the business device and the type of the inspection client; the inspection device receives the acquisition request sent by the business device, parses the acquisition request, obtains the Internet Protocol address of the business device and the type of the inspection client; determines the inspection list according to the Internet Protocol address of the business device and the type of the inspection client, and sends the inspection list to the business device. Further, the inspection device calls the inspection rule interface, determines the inspection list according to the Internet Protocol address of the business device and the type of the inspection client, and calls the inspection rule interface to send the inspection list to the inspection client of the business device.
[0104] Optionally, the inspection client deployed in the business device is developed in a plug-in manner, consisting of a main program and an inspection plug-in. The processing flow of the inspection client is as follows: Figure 3As shown, after the inspection client is started, the main program loads the plug-in configuration, loads the local configuration under the inspection plug-in into the memory, parses it into an inspection list, and stores it in a variable. When starting a scheduled task, the inspection client periodically obtains the inspection list from the inspection rule interface of the inspection device, performs inspections on the inspection targets included in the inspection list, obtains the inspection results of the inspection targets, sends the inspection results of the inspection targets to the queue, and the sending thread sends the inspection results of the inspection targets to the kafka of the inspection device according to the data specification, so as to store the inspection results of the inspection targets in the kafka of the inspection device. Among them, when the type of the inspection client is HTTP type, the inspection plug-in of the inspection client is HTTP inspection plug-in (denoted as: HTTP_plugin). When the type of the inspection client is TCP type, the inspection plug-in of the inspection client is TCP inspection plug-in (denoted as: TCP_plugin).
[0105] The type of the inspection client refers to the plug-in type of the inspection plug-in of the inspection client, and the plug-in type includes but is not limited to the HTTP type and the TCP type.
[0106] Optionally, the process of determining the inspection list according to the Internet Protocol address of the service device and the type of the inspection client includes: taking a list corresponding to the Internet Protocol address of the service device and the type of the inspection client in the stored list as the inspection list.
[0107] The following Table 1 is a schematic table of plug-in types, Internet Protocol addresses, and inspection lists stored in the inspection rule interface provided in an embodiment of the present application.
[0108] Table 1
[0109]
[0110] As can be seen from Table 1 above, the inspection list corresponding to the Internet Protocol address (127.0.0.1) and the plug-in type (tcp) is (10.10.239.86:22). When the Internet Protocol address is other and the plug-in type is other, the corresponding inspection list is shown in Table 1 above, and the embodiment of the present application will not be repeated here.
[0111] It should be noted that the above Table 1 is only an exemplary table of the embodiment of the present application, and does not limit the number of corresponding relationships between Internet Protocol addresses, plug-in types, and inspection lists.
[0112] In step 201, the business device obtains the inspection list by calling the inspection client to send an acquisition request to the inspection rule interface of the inspection device. This method does not require manual configuration of the inspection list for the business device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0113] In step 202, the service device receives the inspection list sent by the inspection device, inspects the inspection target, and obtains the inspection result of the inspection target.
[0114] In a possible implementation, the service device receives the inspection list sent by the inspection device, and calls the inspection client to inspect the inspection targets included in the inspection list to obtain the inspection results of the inspection targets.
[0115] The following is an inspection result of an inspection target provided in an embodiment of the present application.
[0116]
[0117]
[0118] In step 203, the service device sends the inspection result of the inspection target to the inspection device.
[0119] In one possible implementation, in the above step 202, the inspection client is called to inspect the inspection target. After obtaining the inspection result of the inspection target, the inspection client is called again to send the inspection result of the inspection target to the inspection device, so that the inspection device can determine whether the inspection target is abnormal based on the inspection result and determine the first abnormal information for processing the inspection result.
[0120] Optionally, the inspection client is called to send the inspection result of the inspection target to the kafka deployed in the inspection device.
[0121] In step 204, the inspection device receives the inspection result of the inspection target, analyzes the inspection result, and obtains an analysis result.
[0122] The analysis result is used to indicate whether the inspection target is abnormal.
[0123] Optionally, the inspection device is deployed with kafka, and kafka is used to receive the inspection results sent by the inspection client. The business device calls the inspection client to send the inspection results of the inspection target to the inspection device, which means that the business device calls the inspection client to send the inspection results of the inspection target to kafka in the inspection device.
[0124] like Figure 4This is an architecture diagram of Kafka provided in an embodiment of the present application. Among them, Kafka adopts a 3-node cluster, 1 master node and 2 slave nodes. The Zookeeper service is used to store the metadata of Kafka. The Zookeeper service adopts a 3-node cluster, one master node and two slave nodes. The two slave nodes of Kafka can alleviate the query pressure of the master node, and can also ensure that the queue is still readable after the master node hangs up. That is, when the master node hangs up, the two slave nodes can still elect a node as the master node. Such an architecture is a highly reliable structure that can avoid single point failures. Similarly, such an architecture also has high throughput and high retrieval volume.
[0125] Clickhouse is deployed in the inspection equipment. Clickhouse is used to read the inspection results from Kafka through the ETL (Extract-Transform-Load, the process of extracting, transforming and loading a large amount of data into the target storage data warehouse) program, and split the inspection results into tables and write them into Clickhouse. Clickhouse's external queries are loaded through NGINX (a lightweight web server / reverse proxy server and email proxy server). The reason why clickhouse needs to read the inspection results from Kafka is that the inspection analysis program deployed in the inspection equipment needs to read the inspection results from Clickhouse to analyze the inspection results. Therefore, clickhouse needs to read the inspection results from Kafka first and store the inspection results in Clickhouse for easy reading by the inspection analysis program.
[0126] like Figure 5 This is an architecture diagram of a clickhouse provided in an embodiment of the present application. Clickhouse uses a 6-node cluster, which is divided into three shards, and each shard has a master node and a slave node. The Zookeeper service is used to store the metadata of Clickhouse. The Zookeeper service uses a 3-node cluster, one master node and two slave nodes.
[0127] Optionally, an inspection analysis program is deployed in the inspection device, and the inspection analysis program is used to analyze the inspection results to obtain analysis results. The language of the inspection analysis program can be any language, and the embodiments of the present application are not limited to this. Exemplarily, the language of the inspection analysis program is shell (a language) and golang (a language). The inspection analysis program reads the inspection results from clickhouse, and the inspection device calls the inspection analysis program to analyze the inspection results to obtain analysis results. The inspection analysis program develops various types of analysis programs according to rules and business needs. The inspection analysis program determines the target analysis program from a variety of analysis programs according to pre-agreed rules, analyzes the inspection results according to the target analysis program, and obtains analysis results.
[0128] The embodiment of the present application does not limit the method of determining the target analysis program among multiple analysis programs. Optionally, any one of the multiple analysis programs is determined as the target analysis program. Alternatively, the most frequently used analysis program among the multiple analysis programs is determined as the target analysis program.
[0129] In step 205, when the analysis result indicates that the inspection target is abnormal, the inspection device obtains first abnormality information of the inspection target, where the first abnormality information includes at least one of an abnormality cause or a processing suggestion.
[0130] In a possible implementation, the embodiment of the present application provides the following two implementations to obtain the first abnormal information of the inspection target.
[0131] Implementation method 1: Generate an alarm mark corresponding to the inspection result; determine the abnormal information corresponding to the alarm mark among the stored multiple abnormal information as the first abnormal information, and the multiple abnormal information respectively correspond to one alarm mark.
[0132] In this first implementation, the process of generating an alarm identifier corresponding to the inspection result includes: forming a character from the value of each field in the inspection result, and using a hash value corresponding to the character as the alarm identifier corresponding to the inspection result.
[0133] Exemplarily, the values of the {http|tcp}, {Sourceip}, {Target}, {http_method}, {http_params}, {ResponseCode}, and {ErrorMessage} fields in the inspection result are composed of characters, and the hash values corresponding to the characters are used as alarm identifiers.
[0134] Optionally, an alarm session management is deployed in the inspection device. The alarm session management is a software that calls the alarm session management to generate an alarm identifier corresponding to the inspection result. The process of the alarm session management generating an alarm identifier corresponding to the inspection result is similar to the above, and will not be repeated here.
[0135] The alarm session management includes a session management table, in which the correspondence between each alarm identifier and the session link is stored, and the exception information corresponding to each alarm identifier is stored in the session link corresponding to each alarm identifier. The alarm session management uses the exception information included in the session link corresponding to the alarm identifier corresponding to the inspection result in the session management table as the first exception information. The session link is the Uniform Resource Locator (URL) of the session.
[0136] In this implementation method one, the abnormal information corresponding to the alarm identifier in the stored abnormal information is used as the first abnormal information. In this way, there is no need to call the question-answering model to obtain the first abnormal information, which makes the acquisition of the first abnormal information more convenient and improves the efficiency of obtaining the first abnormal information.
[0137] Implementation method 2: Obtain inspection question information of the inspection target based on the inspection results; input the inspection question information into the question-answering model to obtain the first abnormal information of the inspection target output by the question-answering model.
[0138] In a possible implementation manner, when there is no exception information corresponding to the alarm identifier in the stored multiple exception information, that is, when the first exception information is not obtained from the alarm session management, the first exception information is obtained by using implementation manner 2.
[0139] In this second implementation, the process of obtaining inspection question information of the inspection target according to the inspection result includes: determining a question template corresponding to the type of the inspection target; and obtaining the inspection question information of the inspection target according to the question template and the inspection result. The inspection question information of the inspection target is information that can be understood by the question-answering model.
[0140] Optionally, the type of the inspection target can be HTTP type or TCP type. The inspection device includes a prompt word conversion module, which stores a question template corresponding to the HTTP type and a question template corresponding to the TCP type. Figure 6 This is a question template corresponding to an HTTP type provided in an embodiment of the present application. Figure 7 It is a question template corresponding to a TCP type provided in an embodiment of the present application.
[0141] In a possible implementation, according to the inspection result, the prompt word conversion module is called to obtain the inspection question information of the inspection target.
[0142] Optionally, an alarm management module is deployed in the inspection device. After the inspection question information is obtained, the alarm management module is called to input the inspection question information into the question-answering model to obtain the first abnormal information of the inspection target output by the question-answering model.
[0143] In a possible implementation, the alarm management module is called to input the inspection question information into the question-answer model to obtain a session link output by the question-answer model, wherein the session link includes the first abnormality information of the inspection target.
[0144] like Figure 8 It is an architecture diagram of a question-and-answer model provided in an embodiment of the present application. Among them, the question-and-answer model includes a dialogue management system and a large model service system. Among them, the dialogue management system includes a front-end UI (User Interface, human-computer interaction interface), a dialogue system, Maridb (a database management system) and Redis (remote dictionary service). The front-end UI is responsible for display and interaction with users, and the front-end UI can call the API (Application Programming Interface, application programming interface) of the dialogue system. The dialogue system provides interfaces for functions such as user insertion and dialogue query insertion. Maridb is used to store dialogues, user data and account data, and Redis is used to cache data. The large model service system includes chat-api (a tool provided in a programming language), user context management, session context management, LLM-api (large language model interface), and large models. Chat-api is used to encapsulate large model dialogue services for dialogue system calls. User context management is used to store key information of users. Session context management is used to store information related to the current dialogue. LLM-api is an interface for docking large models. The large model can be Llama (LargeLanguageModelMetaAI, a pre-trained language model), GPT-3 (an autoregressive model), etc.
[0145] In the second implementation method, the first abnormal information of the inspection target is obtained by calling the question-and-answer model, so that when there is no abnormal information corresponding to the alarm identifier in the stored abnormal information, the first abnormal information of the inspection target can be obtained, making the method of obtaining the first abnormal information more flexible.
[0146] In a possible implementation, after obtaining the first abnormal information of the inspection target, an alarm mark corresponding to the inspection result may be generated, and the alarm mark and the first abnormal information may be stored in correspondence. Optionally, the process of generating the alarm mark corresponding to the inspection result has been described in the above-mentioned implementation method 2, and will not be repeated here. The process of storing the alarm mark and the first abnormal information in correspondence includes: storing the alarm mark and the first abnormal information in correspondence in the session management table.
[0147] In this implementation, the alarm identifier and the first exception information are stored in correspondence, so that when the alarm identifier is subsequently received, the first exception information corresponding to the alarm identifier can be directly extracted without calling the question-and-answer model to obtain the first exception information corresponding to the alarm identifier, so that the efficiency of obtaining the first exception information is higher, thereby improving the processing efficiency of service inspections.
[0148] In a possible implementation, the question-answer model also generates a session identifier corresponding to the session link, and sends the session identifier to the session management module, so that the session management module stores the session identifier, the alarm identifier, and the session link in correspondence.
[0149] In step 206, the inspection device sends first abnormality information to the management device of the inspection target, so that the management device processes the inspection target according to the first abnormality information.
[0150] Among them, the management device of the inspection target refers to the device used by the management object that manages the inspection target. By sending the first exception information to the management device of the inspection target, the management device of the inspection target displays the first exception information, so that the management object can view the first exception information, and then the management object can process the inspection target according to the first exception information.
[0151] The embodiment of the present application does not limit the manner in which the first abnormal information is sent to the management device of the inspection target. Optionally, the first abnormal information is sent to the management device of the inspection target in the form of a text message. Alternatively, the first abnormal information is sent to the management device of the inspection target in the form of an email. Of course, the first abnormal information can also be sent to the management device of the inspection target in other ways.
[0152] In one embodiment of the present application, the inspection result includes the device information of the management device, and the device information of the management device is the object information of the management object, and the object information of the management object includes but is not limited to the email address of the management object and the contact information of the management object. After the inspection device obtains the first abnormal information, it obtains the object information of the management object from the inspection result, and then calls the inspection scheduling platform to send the first abnormal information to the management device of the inspection target. In the service inspection method provided in the embodiment of the present application, the inspection analysis program and the inspection scheduling platform are separated, so that the inspection architecture design is more flexible and standardized.
[0153] In another embodiment of the present application, the inspection and analysis program can also obtain the session link, and the inspection and analysis program generates a console log, which is a JSON (JavaScript Object Notation, a lightweight data exchange format) log. The console log includes the device information and session link of the management device, and the session link includes the first exception information. The inspection and analysis program sends the console log to the inspection and scheduling platform, and the inspection and scheduling platform parses the console log to obtain the session link and the device information of the management device, and then sends the session link to the management device so that the management device receives the first exception information.
[0154] The following is a console log provided in an embodiment of the present application.
[0155] {
[0156] "time": "1713238464", / / Inspection time
[0157] "item_name": "A", / / Inspection name
[0158] "item_status": "NG", / / Inspection result
[0159] "email": "AAA", / / alarm and report receiving emails, multiple values are separated by commas
[0160] "memo": "Inspection item = A Agent detection data not found", / / Inspection notes, different according to the type
[0161] "alert_id": "216fc4a9c43053de04316108e0df4d8a0d9accfd362d599ef7ccffaa8f7fdcca", / / Alarm ID
[0162] "chat_url": https: / / chat.boe.com / ?sessionid=f1f9f72a-039a-cccd-82b3-f00bffce39f5, / / session link
[0163] }
[0164] In a possible implementation, after receiving the first abnormal information, the management device of the inspection target displays the first abnormal information, so that the management object processes the inspection target according to the first abnormal information, which can improve the processing efficiency of the inspection target.
[0165] In another possible implementation, after receiving the session link, the management device of the inspection target displays the session link, and in response to the trigger operation of the management object on the session link, displays the first exception information included in the session link, so that the management object processes the inspection target according to the first exception information, thereby improving the processing efficiency of the inspection target.
[0166] The process of displaying the first abnormal information included in the session link in response to the trigger operation of the management object on the session link includes: displaying a session window in response to the trigger operation of the management object on the session link, wherein the first abnormal information is displayed in the session window.
[0167] When the management object still encounters difficulties in processing the inspection target, the management object can enter the question information in the session window so that the inspection device can obtain the question information, call the question and answer model to obtain the answer information corresponding to the question information, and send the answer information to the management device so that the management object can process the inspection target according to the answer information. This can help the management object quickly solve the problems encountered in the process of processing the inspection target.
[0168] When the management object completes the inspection target, the management object can also enter the second abnormal information in the conversation window, and the second abnormal information includes at least one of the actual abnormal cause or the actual processing method of the inspection target, so that the inspection device receives the second abnormal information and updates the question-answering model according to the second abnormal information. Optionally, the question-answering model of the inspection device receives the second abnormal information and performs self-learning of the question-answering model according to the second abnormal information. In this way, the accuracy of the abnormal information given by the question-answering model is higher, so as to facilitate the management object to quickly process the inspection target.
[0169] The above method sends an inspection list to the service device so that the service device obtains the inspection list and inspects the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0170] Moreover, the above method can not only inspect the service, but also provide the first abnormal information of the service when the service is abnormal, so that the technical staff can process the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing.
[0171] Fig. 9 is a flow chart of a service inspection method provided in an embodiment of the present application, the method comprises Figure 1 The inspection device 102 in the embodiment is executed, such as Fig. 9 As shown, the method includes the following steps.
[0172] In step 901, an inspection list is sent to a service device. The inspection list includes inspection targets. The inspection targets are services that need to be inspected among services that can be provided by the service device.
[0173] In a possible implementation, the process of sending the inspection list to the service device has been described in the above step 201. For details, please refer to the relevant content of the above step 201, and the embodiment of the present application will not be repeated here.
[0174] In step 902, the inspection result of the inspection target sent by the service device is received, and the inspection result is analyzed to obtain an analysis result, which is used to indicate whether the inspection target is abnormal.
[0175] In a possible implementation, the inspection results of the inspection target are received, and the inspection results are analyzed. The process of obtaining the analysis results has been described in the above step 204. For details, see the relevant content of the above step 204, and the embodiment of the present application will not be repeated here.
[0176] In step 903, when the analysis result indicates that the inspection target is abnormal, first abnormality information of the inspection target is obtained, and the first abnormality information includes at least one of the abnormality cause or processing suggestion.
[0177] In a possible implementation, the process of obtaining the first abnormal information of the inspection target has been described in the above step 205. For details, please refer to the relevant content of the above step 205, and the embodiment of the present application will not be repeated here.
[0178] In step 904, first abnormal information is sent to a management device of the inspection target, so that the management device processes the inspection target according to the first abnormal information.
[0179] In a possible implementation, the process of sending the first abnormal information to the management device of the inspection target has been described in the above step 206. For details, please refer to the relevant content of the above step 206, and the embodiment of the present application will not be repeated here.
[0180] The above method sends an inspection list to the service device so that the service device obtains the inspection list and inspects the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0181] Moreover, the above method can not only inspect the service, but also provide the first abnormal information of the service when the service is abnormal, so that the technical staff can process the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing.
[0182] Fig.10 is a flow chart of a service inspection method provided in an embodiment of the present application, the method comprises Figure 1 The service device 101 in the embodiment executes, Fig.10 As shown, the method includes the following steps.
[0183] In step 1001, an inspection list sent by an inspection device is received, the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among services that can be provided by the business device.
[0184] In a possible implementation, the process of receiving the inspection list sent by the inspection device has been described in the above step 202. For details, please refer to the relevant content of the above step 202, and the embodiment of the present application will not be repeated here.
[0185] In step 1002, an inspection target is inspected to obtain an inspection result of the inspection target.
[0186] In a possible implementation, the process of inspecting the inspection target and obtaining the inspection result of the inspection target has been described in the above step 202. For details, please refer to the relevant content of the above step 202, and the embodiment of the present application will not be repeated here.
[0187] In step 1003, the inspection results are sent to the inspection device so that the inspection device analyzes the inspection results to obtain analysis results. When the analysis results indicate that the inspection target is abnormal, first abnormality information of the inspection target is obtained and sent to the management device of the inspection target. The first abnormality information includes at least one of the abnormal cause or processing suggestion.
[0188] In a possible implementation, the process of sending the inspection result to the inspection device has been described in the above step 203. For details, please refer to the relevant content of the above step 203, and the embodiment of the present application will not be repeated here.
[0189] The above method obtains the inspection list by interacting with the service device to inspect the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0190] Moreover, the above method can not only inspect the service, but also provide the first abnormal information of the service when the service is abnormal, so that the technical staff can process the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing.
[0191] Fig.11FIG. 1 is a schematic diagram of the structure of a service inspection device provided in an embodiment of the present application. Fig.11 As shown, the device comprises:
[0192] The sending module 1101 is used to send an inspection list to the service device, where the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among the services that the service device can provide;
[0193] The receiving module 1102 is used to receive the inspection result of the inspection target sent by the service device, analyze the inspection result, and obtain the analysis result, which is used to indicate whether the inspection target is abnormal;
[0194] An acquisition module 1103 is used to acquire first abnormality information of the inspection target when the analysis result indicates that the inspection target is abnormal, where the first abnormality information includes at least one of an abnormality cause or a processing suggestion;
[0195] The sending module 1101 is further configured to send first abnormality information to a management device of the inspection target, so that the management device processes the inspection target according to the first abnormality information.
[0196] In a possible implementation, the receiving module 1102 is further used to receive an acquisition request sent by a service device, where the acquisition request includes an Internet Protocol address of the service device and a type of an inspection client deployed in the service device, where the inspection client is used to inspect the inspection target;
[0197] The device also includes:
[0198] The determination module is used to determine the inspection list according to the Internet Protocol address of the business device and the type of the inspection client.
[0199] In a possible implementation, the acquisition module 1103 is used to generate an alarm identifier corresponding to the inspection result; determine the abnormal information corresponding to the alarm identifier among the stored multiple abnormal information as the first abnormal information, and the multiple abnormal information respectively correspond to an alarm identifier.
[0200] In a possible implementation, the acquisition module 1103 is used to acquire inspection question information of the inspection target according to the inspection result; input the inspection question information into the question-answering model to obtain the first abnormal information of the inspection target output by the question-answering model.
[0201] In a possible implementation, the acquisition module 1103 is used to determine a question template corresponding to the type of the inspection target; and acquire inspection question information of the inspection target according to the question template and the inspection result.
[0202] In a possible implementation, the device further includes:
[0203] A generation module, used to generate an alarm mark corresponding to the inspection result;
[0204] The storage module is used to store the alarm identifier and the first abnormal information in correspondence.
[0205] In a possible implementation, the receiving module 1102 is further configured to receive second abnormality information, where the second abnormality information includes at least one of an actual abnormality cause or an actual processing method of the inspection target;
[0206] The device also includes:
[0207] An updating module is used to update the question-answering model according to the second abnormal information.
[0208] The above device sends the inspection list to the service device so that the service device obtains the inspection list and inspects the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0209] Moreover, not only can the service be inspected, but also when the service is abnormal, the first abnormal information of the service will be provided, so that the technical staff can handle the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing.
[0210] Fig.12 FIG. 1 is a schematic diagram of the structure of a service inspection device provided in an embodiment of the present application. Fig.12 As shown, the device comprises:
[0211] The receiving module 1201 is used to receive an inspection list sent by an inspection device, where the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among services that can be provided by the business device;
[0212] Inspection module 1202, used to inspect the inspection target and obtain the inspection result of the inspection target;
[0213] The sending module 1203 is used to send the inspection results to the inspection device so that the inspection device analyzes the inspection results to obtain analysis results. When the analysis results indicate that the inspection target is abnormal, the first abnormal information of the inspection target is obtained and the first abnormal information is sent to the management device of the inspection target. The first abnormal information includes at least one of the abnormal cause or processing suggestion.
[0214] In a possible implementation, the service device is deployed with an inspection client, and the inspection client is used to inspect the inspection target;
[0215] The sending module 1203 is also used to call the inspection client to send an acquisition request to the inspection device, the acquisition request includes the Internet Protocol address of the business device and the type of the inspection client, and the inspection list is determined according to the Internet Protocol address of the business device and the type of the inspection client.
[0216] The above device obtains the inspection list by interacting with the service device to inspect the inspection targets included in the inspection list. There is no need to manually configure the inspection list for the service device, so that the service inspection does not rely on manual configuration, thereby making the service inspection more flexible and improving the efficiency of the service inspection to a certain extent.
[0217] Moreover, not only can the service be inspected, but also when the service is abnormal, the first abnormal information of the service will be provided, so that the technical staff can handle the service according to the first abnormal information, thereby saving the time required for service processing and improving the accuracy and efficiency of service processing.
[0218] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0219] Fig.13 It is a structural diagram of a service inspection system provided in an embodiment of the present application, and the service inspection system includes a business device and an inspection device. Among them, an inspection client is deployed in the business device, and the business device is a device included in the business system. The inspection device is deployed with an inspection rule interface, kafka, clickhouse, inspection analysis program, prompt word conversion module, alarm session management, inspection scheduling platform and question-answering model.
[0220] 1. The business device calls the inspection client to obtain the inspection list from the inspection rule interface.
[0221] 2. The business device calls the inspection client to inspect the inspection targets included in the inspection list and obtains the inspection results of the inspection targets.
[0222] 3. The business device calls the inspection client to send the inspection results of the inspection target to Kafka.
[0223] 4.Clickhouse reads the inspection results from Kafka.
[0224] 5. The inspection analysis program reads the inspection results from ClickHouse.
[0225] 6. The inspection analysis program analyzes the inspection results to obtain analysis results.
[0226] 7. When the analysis result indicates that the inspection target is abnormal, the inspection result is sent to the alarm session management.
[0227] 8. Alarm session management generates an alarm ID based on the inspection results.
[0228] 9. The alarm session management determines the abnormal information corresponding to the alarm identifier in the stored abnormal information as the first abnormal information.
[0229] 10. The alarm session management sends the first abnormality information to the inspection and analysis program.
[0230] 11. When there is no abnormal information corresponding to the alarm identifier in the abnormal information stored in the alarm session management, the inspection analysis program sends the inspection result to the prompt word conversion module.
[0231] 12. The prompt word conversion module generates inspection question information based on the inspection results.
[0232] 13. The prompt word conversion module sends inspection question information to the alarm session management.
[0233] 14. The alarm session management obtains the first abnormal information through interaction with the question and answer model.
[0234] 15. The alarm session management sends the first abnormality information to the inspection and analysis program.
[0235] 16. The inspection and analysis program generates console logs.
[0236] 17. The inspection analysis program sends console logs to the inspection scheduling platform.
[0237] 18. The inspection dispatching platform sends the first abnormal information to the management device of the inspection target.
[0238] Fig.14 The structural block diagram of a terminal device 1400 provided by an exemplary embodiment of the present application is shown. The terminal device 1400 may be any electronic device product that can perform human-computer interaction with a user through one or more methods such as a keyboard, a touchpad, a remote controller, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.
[0239] Typically, the terminal device 1400 includes: a processor 1401 and a memory 1402 .
[0240] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0241] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one instruction, which is used to be executed by the processor 1401 to implement the service inspection method provided in the method embodiment of the present application.
[0242] In some embodiments, the terminal device 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407 and a power supply 1408.
[0243] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0244] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1404 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0245] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 can be one, which is set on the front panel of the terminal device 1400; in other embodiments, the display screen 1405 can be at least two, which are respectively set on different surfaces of the terminal device 1400 or are folded; in other embodiments, the display screen 1405 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal device 1400. Even, the display screen 1405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0246] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 1400, and the rear camera is arranged on the back of the terminal device 1400. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0247] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0248] The power supply 1408 is used to power various components in the terminal device 1400. The power supply 1408 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1408 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0249] In some embodiments, the terminal device 1400 further includes one or more sensors 1409 , including but not limited to: an acceleration sensor 1410 , a gyroscope sensor 1411 , a pressure sensor 1412 , an optical sensor 1413 , and a proximity sensor 1414 .
[0250] The acceleration sensor 1410 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 1400. For example, the acceleration sensor 1410 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1410. The acceleration sensor 1410 can also be used for collecting game or user motion data.
[0251] The gyro sensor 1411 can detect the body direction and rotation angle of the terminal device 1400, and the gyro sensor 1411 can cooperate with the acceleration sensor 1410 to collect the user's 3D actions on the terminal device 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1411: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0252] The pressure sensor 1412 can be set on the side frame of the terminal device 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1412 is set on the side frame of the terminal device 1400, it can detect the user's holding signal of the terminal device 1400, and the processor 1401 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1412. When the pressure sensor 1412 is set on the lower layer of the display screen 1405, the processor 1401 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0253] The optical sensor 1413 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1413. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the ambient light intensity collected by the optical sensor 1413.
[0254] The proximity sensor 1414, also called a distance sensor, is usually arranged on the front panel of the terminal device 1400. The proximity sensor 1414 is used to collect the distance between the user and the front of the terminal device 1400. In one embodiment, when the proximity sensor 1414 detects that the distance between the user and the front of the terminal device 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1414 detects that the distance between the user and the front of the terminal device 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the screen-off state to the screen-on state.
[0255] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the terminal device 1400, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0256] Fig.15This is a schematic diagram of the structure of the server provided in the embodiment of the present application. The server 1500 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein the one or more memories 1502 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1501 to implement the service inspection method provided by the above-mentioned various method embodiments. Of course, the server 1500 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1500 may also include other components for implementing device functions, which will not be repeated here.
[0257] In an exemplary embodiment, the present application provides a patrol inspection device, the patrol inspection device is used to perform Fig. 9 The service inspection method shown.
[0258] In an exemplary embodiment, the present application provides a service device, the service device is used to perform Fig.10 The service inspection method shown.
[0259] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned service inspection methods.
[0260] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0261] In an exemplary embodiment, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned service inspection methods.
[0262] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0263] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0264] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0265] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A service inspection method, characterized in that: Applied to inspection equipment, the method comprises: Sending an inspection list to a service device, the inspection list including inspection targets, the inspection targets being services that need to be inspected among services that the service device can provide; Receiving the inspection result of the inspection target sent by the service device, analyzing the inspection result to obtain an analysis result, wherein the analysis result is used to indicate whether the inspection target is abnormal; When the analysis result indicates that the inspection target is abnormal, obtaining first abnormality information of the inspection target, wherein the first abnormality information includes at least one of an abnormality cause or a processing suggestion; The first abnormality information is sent to a management device of the inspection target, so that the management device processes the inspection target according to the first abnormality information.
2. The method according to claim 1, characterized in that Before sending the inspection list to the service device, the method further includes: Receiving an acquisition request sent by the service device, the acquisition request including an Internet Protocol address of the service device and a type of an inspection client deployed in the service device, the inspection client being used to inspect the inspection target; The inspection list is determined according to the Internet Protocol address of the service device and the type of the inspection client.
3. The method according to claim 1 or 2, characterized in that: The obtaining of first abnormal information of the inspection target includes: Generate an alarm mark corresponding to the inspection result; The abnormal information corresponding to the alarm identifier among the stored multiple abnormal information is determined as the first abnormal information, and the multiple abnormal information respectively correspond to an alarm identifier.
4. The method according to claim 1 or 2, characterized in that: The obtaining of first abnormal information of the inspection target includes: According to the inspection result, obtaining inspection question information of the inspection target; The inspection question information is input into a question-answering model to obtain first abnormality information of the inspection target output by the question-answering model.
5. The method according to claim 4, characterized in that The obtaining inspection question information of the inspection target according to the inspection result includes: Determine a question template corresponding to the type of the inspection target; According to the question template and the inspection result, inspection question information of the inspection target is obtained.
6. The method according to claim 4, characterized in that The method further comprises: Generate an alarm mark corresponding to the inspection result; The warning identifier and the first abnormal information are stored correspondingly.
7. The method according to any one of claims 4 to 6, characterized in that: The method further comprises: receiving second abnormal information, wherein the second abnormal information includes at least one of an actual abnormal cause or an actual processing method of the inspection target; Update the question-answer model according to the second abnormal information.
8. A service inspection method, characterized in that: Applied to business equipment, the method comprises: Receiving an inspection list sent by an inspection device, the inspection list including inspection targets, the inspection targets being services that need to be inspected among services that can be provided by the business device; Inspecting the inspection target and obtaining an inspection result of the inspection target; The inspection result is sent to the inspection device so that the inspection device analyzes the inspection result to obtain an analysis result. When the analysis result indicates that the inspection target is abnormal, first abnormality information of the inspection target is obtained, and the first abnormality information is sent to the management device of the inspection target. The first abnormality information includes at least one of the abnormality cause or processing suggestion.
9. The method according to claim 8, characterized in that The service device is deployed with an inspection client, and the inspection client is used to inspect the inspection target; Before receiving the inspection list sent by the inspection device, the method further includes: The inspection client is called to send an acquisition request to the inspection device, wherein the acquisition request includes the Internet Protocol address of the service device and the type of the inspection client, and the inspection list is determined according to the Internet Protocol address of the service device and the type of the inspection client.
10. A service inspection device, characterized in that: The device comprises: A sending module, used for sending an inspection list to a service device, wherein the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among the services that the service device can provide; A receiving module, used for receiving the inspection result of the inspection target sent by the service device, analyzing the inspection result to obtain an analysis result, wherein the analysis result is used to indicate whether the inspection target is abnormal; an acquisition module, configured to acquire first abnormality information of the inspection target when the analysis result indicates that the inspection target is abnormal, wherein the first abnormality information includes at least one of an abnormality cause or a processing suggestion; The sending module is further used to send the first abnormal information to the management device of the inspection target, so that the management device processes the inspection target according to the first abnormal information.
11. A service inspection device, characterized in that: The device comprises: A receiving module, used for receiving an inspection list sent by an inspection device, wherein the inspection list includes inspection targets, and the inspection targets are services that need to be inspected among the services that can be provided by the business device; An inspection module, used to inspect the inspection target and obtain the inspection result of the inspection target; A sending module is used to send the inspection result to the inspection device so that the inspection device analyzes the inspection result to obtain an analysis result. When the analysis result indicates that the inspection target is abnormal, the first abnormal information of the inspection target is obtained, and the first abnormal information is sent to the management device of the inspection target. The first abnormal information includes at least one of the abnormal cause or processing suggestion.
12. A patrol inspection device, characterized in that: The inspection device is used to execute the service inspection method described in any one of claims 1 to 7.
13. A service device, characterized in that: The business equipment is used to execute the service inspection method described in claim 8 or 9.
14. A service inspection system, characterized in that: The service inspection system includes an inspection device and a business device, wherein the inspection device is used to execute the service inspection method described in any one of claims 1 to 7, and the business device is used to execute the service inspection method described in claim 8 or 9.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer implements the service inspection method according to any one of claims 1 to 9.