Cloud phone-oriented anomaly detection method, anomaly analysis method, system, device and medium
By extracting and formatting abnormal information from application running data in cloud phones, and using language models for automated storage and retrieval, the problem of scattered anomaly detection signals and high analysis threshold in cloud phone scenarios is solved, achieving efficient anomaly information organization and analysis.
Patent Information
- Application Number
- CN202611600617.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-15
- Publication Date
- 2026-11-27
AI Technical Summary
In cloud phone scenarios, application operation anomaly detection signals are scattered and lack unified organization, resulting in the detection results not being able to match with subsequent analysis data. This leads to low anomaly detection efficiency, low information utilization, and high threshold for anomaly analysis, making it difficult to meet the operation and maintenance needs of large-scale cloud phone clusters.
By extracting suggestive text from the runtime data of cloud mobile applications, matching and processing abnormal information according to preset text rules and preset formats, the results of each detection stage are uniformly organized and the abnormal information is sent to the server; combined with language models, the abnormal information is automatically mapped to the database and query statements are generated, realizing unified data storage and analysis.
It improves the efficiency of anomaly detection and information utilization, lowers the threshold for anomaly analysis, and eliminates the need for maintenance personnel to manually configure and analyze anomaly information, thus enabling efficient storage and flexible retrieval of anomaly information.
Smart Images

Figure CN123185103A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and more particularly to the fields of cloud computing, big data, and large-scale models. More specifically, this disclosure provides an anomaly detection method, anomaly analysis method, system, device, and medium for cloud phones. Background Technology
[0002] In cloud phone scenarios, there are numerous running applications, and application malfunctions directly impact user experience and business revenue. However, the detection signals when applications malfunction are scattered across various detection stages. Due to the lack of unified processing of detection results, the obtained detection results cannot match the data required for subsequent analysis. Summary of the Invention
[0003] This disclosure provides an anomaly detection method, anomaly analysis method, system, device, and medium for cloud phones.
[0004] According to one aspect of this disclosure, an anomaly detection method for cloud phones is provided, comprising: determining prompt text generated by each application during runtime from the obtained runtime data of multiple applications in the cloud phone; matching the multiple prompt texts with preset text rules respectively, and determining the successfully matched prompt texts as original anomaly information; processing at least one original anomaly information according to a preset format to obtain at least one anomaly information, and sending the anomaly information to a server.
[0005] According to another aspect of this disclosure, an anomaly analysis method for cloud phones is provided, comprising: in response to receiving anomaly information, determining data to be stored based on the anomaly information and table structure information of a database, and storing the data to be stored in the database; in response to receiving query information for at least one target cloud phone among a plurality of cloud phones, converting the query information into a query statement based on the table structure information; determining the anomaly data of at least one target cloud phone from the database based on the query statement; and determining the anomaly analysis result of at least one target cloud phone by parsing the anomaly data.
[0006] According to another aspect of this disclosure, an anomaly detection device for cloud phones is provided, comprising: a data acquisition module, used to determine prompt text generated by each application during runtime from the acquired runtime data of multiple applications in the cloud phone; a rule matching module, used to match the multiple prompt texts with preset text rules respectively, and determine the successfully matched prompt texts as original anomaly information; and an information reporting module, used to process at least one original anomaly information according to a preset format to obtain at least one anomaly information, and send the anomaly information to a server.
[0007] According to another aspect of this disclosure, an anomaly analysis device for cloud phones is provided, comprising: a data storage processing module, configured to, in response to receiving anomaly information, determine data to be stored based on the anomaly information and table structure information of a database, and store the data to be stored in the database; a statement conversion module, configured to, in response to receiving query information for at least one target cloud phone among a plurality of cloud phones, convert the query information into a query statement based on the table structure information; a data query module, configured to determine the anomaly data of at least one target cloud phone from the database based on the query statement; and a result analysis module, configured to determine the anomaly analysis result of at least one target cloud phone by parsing the anomaly data.
[0008] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a method provided according to this disclosure.
[0009] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing a computer to perform the methods provided according to this disclosure.
[0010] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the method provided according to this disclosure.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0012] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0013] Figure 1 This is an exemplary system architecture diagram of an anomaly detection and analysis method applicable according to an embodiment of the present disclosure;
[0014] Figure 2 This is a flowchart of an anomaly detection method according to an embodiment of the present disclosure;
[0015] Figure 3 This is a schematic diagram of an anomaly detection method according to an embodiment of the present disclosure;
[0016] Figure 4 This is a flowchart of an anomaly analysis method according to an embodiment of the present disclosure;
[0017] Figure 5 This is a schematic diagram of the process for determining the data to be stored according to an embodiment of the present disclosure;
[0018] Figure 6 This is an architecture diagram of an anomaly analysis system according to an embodiment of the present disclosure;
[0019] Figure 7 This is a block diagram of an anomaly detection apparatus according to an embodiment of the present disclosure;
[0020] Figure 8 This is a block diagram of an anomaly analysis apparatus according to an embodiment of the present disclosure; and
[0021] Figure 9 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0022] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0023] With the development of cloud computing and mobile internet technologies, cloud phone scenarios have placed higher demands on the efficiency and response speed of application anomaly detection. Cloud phones, by virtualizing operating system instances in the cloud, enable users to remotely access and operate the cloud phone environment, and have been widely used in application testing, mobile office, and cloud gaming. However, cloud phone applications face severe challenges in anomaly detection during operation. These challenges mainly stem from the diversity and dispersion of application operation anomaly signals, as well as the format differences between anomaly detection results and the data required for subsequent analysis. These factors collectively lead to low anomaly detection efficiency, low utilization of anomaly information, and high barriers to anomaly analysis, making it difficult to meet the operation and maintenance needs of large-scale cloud phone clusters.
[0024] Abnormal signals are diverse and scattered, manifesting in various forms such as interface startup errors, interface return errors, pop-up message errors, dialog box errors, file log errors, runtime log errors, and process death. Each form generates different abnormal signal formats; some are text content, some are interface parameters, and some are process states. When multiple applications run on a cloud phone, the abnormal signals generated by each application are mixed together, making unified collection and processing difficult.
[0025] The mismatch between anomaly detection results and the data format required for subsequent analysis is manifested in the following ways: the formats of the detection results obtained from each detection stage are inconsistent. Some include interface names and additional data, some include text content, and some include process identifiers and time information. These detection results lack standardized processing and conversion, making them unable to be directly matched with the data required for subsequent analysis, necessitating additional manual processing or format conversion.
[0026] The high barrier to entry for anomaly analysis stems from the fact that typical cloud phone anomaly monitoring solutions use fixed-dimensional reports or preset query interfaces, requiring operations and maintenance personnel to query anomaly data according to preset dimension combinations. When analysis from new dimensions is needed, the system cannot respond flexibly, forcing operations and maintenance personnel to manually configure multiple filtering schemes and export data for secondary analysis. Furthermore, query results are presented in data tables, requiring operations and maintenance personnel to read and analyze them manually, resulting in unsatisfactory efficiency and accuracy.
[0027] To overcome the aforementioned technical problems, embodiments of this disclosure provide an anomaly detection method for cloud phones, comprising: determining prompt text generated by each application during runtime from acquired runtime data of multiple applications in the cloud phone; matching the multiple prompt texts with preset text rules respectively, and determining the successfully matched prompt texts as original anomaly information; processing at least one original anomaly information according to a preset format to obtain at least one anomaly information, and sending the anomaly information to a server. This method can uniformly organize the detection results obtained from each detection stage, improving anomaly detection efficiency and anomaly information utilization.
[0028] Figure 1 This is a schematic diagram of an exemplary system architecture for which anomaly detection and analysis methods can be applied according to an embodiment of the present disclosure.
[0029] It is important to note that Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0030] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a cloud phone cluster 101 and a server 105. The cloud phone cluster 101 includes multiple cloud phones 103, and each cloud phone 103 is equipped with a monitoring module 102. The monitoring module 102 communicates with the server 105 via a communication link 104. The communication link 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0031] Cloud phone 103 can be a cloud-virtualized operating system instance, providing a runtime environment for applications. Monitoring module 102 can be deployed in the system processes of cloud phone 103 to monitor the runtime data of multiple applications in cloud phone 103. Server 105 can be a server that provides various services, such as a backend server that stores, queries, and analyzes the abnormal information reported by monitoring module 102.
[0032] The monitoring module 102 obtains the running data of multiple applications from the cloud phone 103, executes the anomaly detection method for cloud phones according to this embodiment of the present disclosure, obtains anomaly information, and reports the anomaly information to the server 105. The server 105 executes the anomaly analysis method for cloud phones according to this embodiment of the present disclosure to obtain the anomaly analysis results of the target cloud phone.
[0033] It should be noted that the anomaly detection method provided in this embodiment can be executed by the monitoring module 102. Accordingly, the anomaly detection device provided in this embodiment can be installed in the monitoring module 102. The anomaly detection method provided in this embodiment can also be executed by a module or module cluster that is different from the monitoring module 102 and can communicate with the server 105.
[0034] Understandable. Figure 1 The number and types of cloud phone clusters, cloud phones, monitoring modules, communication links, and servers shown are merely illustrative. Depending on implementation needs, any number of cloud phone clusters, cloud phones, monitoring modules, communication links, and servers can be included.
[0035] It is understood that the system architecture of this disclosure has been described above, and the methods of this disclosure will be described below. It is also understood that the sequence numbers of each operation in the following methods are only for descriptive purposes and should not be considered as indicating the execution order of the operations. Unless explicitly stated otherwise, the method does not need to be executed in the exact order shown.
[0036] In the technical solutions disclosed herein, all information and data (including but not limited to data used for analysis, data stored, data displayed, etc.) are authorized information and data. The collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with relevant laws, regulations, and standards, and necessary confidentiality measures have been taken. They do not violate public order and good morals, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0037] To address the aforementioned issues, this disclosure provides an anomaly detection method for cloud phones. Figure 2 This is a flowchart of an anomaly detection method according to an embodiment of the present disclosure.
[0038] like Figure 2As shown, the method 200 may include operations S210 to S230.
[0039] In operation S210, the prompt text generated by each application during runtime is determined from the runtime data of multiple applications in the acquired cloud phone.
[0040] According to embodiments of this disclosure, runtime data can be data generated by multiple applications in a cloud phone during operation, including interface data, pop-up data, dialog box data, file log data, and runtime log data. Prompt text can be text content generated by each application during runtime to inform the user of the application's running status, including pop-up text, dialog box text, and log text. Determining prompt text from runtime data means extracting text content from interface data, pop-up data, dialog box data, file log data, and runtime log data, and determining the extracted text content as the prompt text.
[0041] In operation S220, multiple prompt texts are matched with preset text rules, and the successfully matched prompt texts are identified as the original abnormal information.
[0042] According to embodiments of this disclosure, the preset text rule is a pre-set text matching rule used to determine whether a prompt text is abnormal, and includes at least one of keywords, keyword combinations, and regular expressions. The original exception information can be information indicating an application malfunction, which is content in the prompt text that successfully matches the preset text rule. Matching multiple prompt texts with the preset text rule individually means comparing each prompt text with the keywords, keyword combinations, or regular expressions in the preset text rule one by one. When a prompt text contains a keyword or keyword combination from the preset text rule or matches a regular expression, the prompt text is determined to be a successful match, and the successfully matched prompt text is identified as the original exception information.
[0043] In operation S230, at least one original exception information is processed according to a preset format to obtain at least one exception information, and the exception information is sent to the server.
[0044] According to embodiments of this disclosure, the preset format is a pre-set field arrangement format for organizing raw anomaly information, including risk control event identifier, event timestamp, target application package name, risk classification identifier, risk cause description, and public IP address. Anomaly information is data obtained after organizing raw anomaly information according to the preset format, including the content corresponding to each field: risk control event identifier, event timestamp, target application package name, risk classification identifier, risk cause description, and public IP address. Processing at least one piece of raw anomaly information according to the preset format means extracting the content corresponding to each field from the raw anomaly information and filling in the content corresponding to each field sequentially according to the field arrangement order in the preset format to obtain the anomaly information. Sending the anomaly information to the server means transmitting the anomaly information to the server via a communication link.
[0045] According to embodiments of this disclosure, by determining prompt text from application runtime data and performing rule matching, the successfully matched prompt text is determined as the original exception information. The original exception information is then organized into exception information according to a preset format and sent to the server. This solves the problem of scattered application runtime exception detection signals and lack of unified organization, enabling the server to perform subsequent storage and analysis based on exception information in a unified format.
[0046] In this embodiment of the disclosure, the original abnormal information is determined by at least one of the following methods: the startup interface name and startup additional data obtained from the cloud phone's interface startup event are matched with a first identification rule, and the successfully matched startup interface name and startup additional data are determined as the original abnormal information; the close interface name, return interface name and return additional data obtained from the cloud phone's interface return event are matched with a second identification rule, and the successfully matched close interface name, return interface name and return additional data are determined as the original abnormal information.
[0047] According to embodiments of this disclosure, an interception point is set in the system process of the cloud phone. When an application initiates a screen launch event, the screen launch event is intercepted. The launch screen name and additional launch data are read from the screen launch event, and the launch screen name and additional launch data are compared with the screen name rule and additional launch data rule in the first identification rules, respectively. If the launch screen name matches the screen name rule or the launch additional launch data matches the additional launch data rule, the launch screen name and the launch additional launch data are identified as original abnormal information.
[0048] When an application initiates a UI return event, the event is intercepted, and the closing UI name, returning UI name, and additional return data are read from it. These are then compared with the closing UI name rule, returning UI name rule, and additional return data rule in the second identification rules. If the closing UI name matches the closing UI name rule, the returning UI name matches the returning UI name rule, or the additional return data matches the additional return data rule, then the closing UI name, the returning UI name, and the additional return data are identified as the original exception information.
[0049] For example, the monitoring module sets an interception point in the system service process. When the application initiates a UI launch event, the monitoring module intercepts a launch event with the launch interface named "Login Page" and the launch attachment data "Error Code equals Risk Control Identifier". It compares "Login Page" with the interface name rule in the first identification rule, and compares "Error Code equals Risk Control Identifier" with the attachment data rule; both match, confirming that the launch interface name and launch attachment data are original abnormal information.
[0050] When the application initiates a UI return event, the monitoring module intercepts UI return events where the closing UI is named "Login Page," the returning UI is named "Home Page," and the returned additional data is "Frequent Login Operations." The module compares "Login Page" with the closing UI name rule in the second identification rules, "Home Page" with the returning UI name rule, and "Frequent Login Operations" with the additional data rule. If a match is found, the closing UI name, returning UI name, and returned additional data are identified as original exception information.
[0051] It should be noted that the first identification rule is used to match the startup screen name and startup additional data in the interface startup event, including rules for the screen name and rules for the additional data. The second identification rule is used to match the close screen name, return screen name, and return additional data in the interface return event, including rules for the close screen name, return screen name, and rules for the additional data. The objects matched by the first and second identification rules are different.
[0052] According to embodiments of this disclosure, the startup interface name and startup additional data carried in the interface startup event, and the close interface name, return interface name and return additional data carried in the interface return event, are all interface information generated during the application's operation that can reflect the application's running status. By setting corresponding recognition rules for these interface information, application running anomalies can be identified from interface events, thereby expanding the sources of anomaly detection and making anomaly detection no longer limited to text content, but also covering anomalies at the application interface level.
[0053] In this embodiment of the disclosure, the application process status is detected, and if the application process is detected to have disappeared, the process identifier and the disappearance time are determined as the original abnormal information.
[0054] According to embodiments of this disclosure, the application process list is polled at preset intervals, and the application process list obtained in the current poll is compared with the application process list obtained in the previous poll. When an application process that existed in the previous poll disappears in the current poll, it is determined that the application process has disappeared, and the process identifier of the application process and the time of disappearance are recorded. The process identifier and the disappearance time are determined as the original abnormal information.
[0055] According to embodiments of this disclosure, by polling the application process list and recording the process identifier and disappearance time when a process disappears, it is possible to detect the abnormal death of an application process, further expanding the sources of anomaly detection.
[0056] Figure 3 This is a schematic diagram of an anomaly detection method according to an embodiment of the present disclosure.
[0057] like Figure 3 The runtime data 301 includes interface data, pop-up data, dialog box data, file log data, and runtime log data generated during the operation of multiple applications. The detection of runtime data 301 includes runtime data detection 302, application interface detection 303, and process detection 304. Runtime data detection 302 includes pop-up detection, dialog box detection, file log scanning, and runtime log monitoring; application interface detection 303 includes interface startup detection and interface return detection.
[0058] Pop-up detection intercepts the pop-up display process to obtain the pop-up text content, matches the pop-up text content with preset text rules, and identifies the successfully matched pop-up text content as the original error message 305.
[0059] The dialog box detection intercepts the dialog box display process, captures the incoming window object, calls the export command to read the original view tree string exported by the dialog box window, parses it to extract the text of all text controls inside the dialog box, matches the text with preset text rules, and identifies the successfully matched text as the original exception information 305.
[0060] File log scanning is performed according to the configuration file log path, the keywords to be matched, the decryption configuration, and the polling interval. When abnormal matching content is detected, the abnormal matching content is identified as the original error message 305.
[0061] The runtime log monitoring reads the most recent runtime logs when a dialog box pops up or a process dies. The read runtime log content is matched with a preset keyword list. If any keyword or a combination of keywords is matched, it is determined to be an anomaly. The matched runtime log content is identified as the original anomaly information 305, and additionally includes the anomaly source identifier and the matched log fragment.
[0062] The interface startup detection is achieved by hooking a startup interceptor method into the system service process, capturing interface startup events initiated by non-system applications, obtaining the startup interface name and startup additional data, matching the startup interface name and startup additional data with the first identification rule, and identifying the successfully matched startup interface name and startup additional data as the original exception information 305.
[0063] The interface return detection is achieved by hooking the closing process, capturing the closing interface name, the return interface name, and the return additional data when the application calls the settings result and closes. The closing interface name, the return interface name, and the return additional data are matched with the second identification rule. The successfully matched closing interface name, the return interface name, and the return additional data are identified as the original abnormal information 305.
[0064] Process detection polls the application process list, and when an application process is detected to have disappeared, it identifies the process ID and disappearance time as the original exception information 305.
[0065] The pop-up text content, dialog box text control text, file log content, running log content, startup interface name and startup additional data, close interface name, return interface name and return additional data, process identifier and disappearance time obtained from the above detection are all prompt texts generated by each application during runtime. Multiple prompt texts are matched with preset text rules respectively. The prompt texts that match successfully are determined as original exception information. At least one original exception information is then processed according to a preset format to obtain at least one exception information, and the exception information is sent to the server.
[0066] In this embodiment of the disclosure, field definition information is obtained, which indicates the meaning of a field in a preset format; at least one original exception information and field definition information are input into a language model, and the language model is used to extract content matching the meaning of each field from at least one original exception information to obtain multiple field contents; the multiple field contents are combined according to a preset format to obtain at least one exception information.
[0067] According to embodiments of this disclosure, the field definition information records the name and meaning of each field in a preset format. This field definition information is used to enable the language model to determine the correspondence between the contents of the original exception information and the fields in the preset format. The original exception information and the field definition information are then input into the language model together.
[0068] The language model responds to received raw exception information and field definition information by reading the name and meaning of each field in the field definition information, reading the contents recorded in the raw exception information, comparing the contents of the raw exception information with the meaning of each field, determining the field corresponding to each content in the raw exception information, and using the matched content as the field content of that field, resulting in multiple field contents. Following the field arrangement order in a preset format, the multiple field contents are sequentially filled into the corresponding fields to combine and obtain the exception information.
[0069] For example, the field definition information includes a risk control event identifier field indicating the event type, an event timestamp field indicating the event occurrence time, a target application package name field indicating the application that caused the anomaly, a risk classification identifier field indicating the risk type, a risk cause description field indicating the cause of the anomaly, and a public network address field indicating the public network address of the cloud phone. The original anomaly information includes the target event type, target time, target application, target risk type, target anomaly cause, and target network address.
[0070] The language model compares the contents of the original anomaly information with the meaning of each field to determine the risk control event identifier field corresponding to the target event type, the event timestamp field corresponding to the target time, the target application package name field corresponding to the target application, the risk classification identifier field corresponding to the target risk type, the risk cause description field corresponding to the target anomaly cause, and the public network address field corresponding to the target network address. The matched contents are used as field contents and combined according to a preset format to obtain the anomaly information.
[0071] It should be noted that the language model is used to extract field content from the raw exception information. The input consists of the raw exception information and field definition information, and the output consists of multiple field contents. The language model can be a text understanding model or a text generation model.
[0072] According to the embodiments of this disclosure, by obtaining field definition information, the original abnormal information and field definition information are input into a language model. The language model extracts content that matches the meaning of each field to obtain multiple field contents, and then combines them according to a preset format to obtain abnormal information. This solves the problem that the original abnormal information obtained from different detection stages has different forms and cannot be organized in a unified format, so that the original abnormal information obtained from each detection stage can be uniformly organized into abnormal information in a preset format, which is convenient for subsequent storage and analysis.
[0073] In this embodiment of the disclosure, field definition information is obtained, which indicates the meaning of the fields in the preset format; at least one original abnormal information is matched with the preset field rules, and the content of the successfully matched fields is combined according to the preset format to obtain at least one abnormal information.
[0074] According to embodiments of this disclosure, field definition information is obtained, which records the name and meaning of each field in a preset format. The original exception information is matched against preset field rules, which record keywords or field patterns corresponding to each field. When the content of the original exception information matches a keyword or field pattern corresponding to a certain field, that content is used as the field content of that field, resulting in multiple field contents. These multiple field contents are then sequentially filled into the corresponding fields according to the order of the fields in the preset format, and combined to obtain the exception information.
[0075] According to embodiments of this disclosure, the preset field rules record keywords or field patterns corresponding to each field in a preset format. The original anomaly information is matched against the preset field rules. When the content of the original anomaly information matches a keyword or field pattern corresponding to a certain field, that content is used as the field content of that field, resulting in multiple field contents. Then, according to the order of the fields in the preset format, the multiple field contents are sequentially filled into the corresponding fields to obtain the anomaly information. This method can complete the processing of original anomaly information without relying on a language model, making it suitable for scenarios with high processing efficiency requirements or limited language model resources, thus reducing the dependence of anomaly information processing on computational resources.
[0076] It's important to note that field patterns are predefined rules used to match content with specific formats. A field pattern specifies the format that the content corresponding to a particular field should have. For example, if the field pattern for an event timestamp field is time format, then when the content in the original exception information conforms to the time format, that content will be used as the field content of the event timestamp field. Field patterns can include at least one of time format, number format, character format, and encoding format. The difference between field patterns and keywords is that keywords are used to match specific text content, while field patterns are used to match content format.
[0077] To address the aforementioned issues, this disclosure also provides an anomaly analysis method for cloud phones. Figure 4 This is a flowchart of an anomaly analysis method according to an embodiment of the present disclosure.
[0078] like Figure 4 As shown, the method 400 may include operations S410 to S440.
[0079] In operation S410, in response to receiving an exception message, the system determines the data to be stored based on the exception message and the table structure information of the database, and then stores the data to be stored in the database.
[0080] According to embodiments of this disclosure, the anomaly information can be data obtained by the monitoring module after detecting the running data of multiple applications in the cloud phone, indicating application running anomalies, including application name, risk type, risk cause, occurrence time, and network address. Table structure information describes the names of multiple target tables in the database and the names of the fields contained in each target table, including the table name and field names. The data to be stored is the data to be written to the database, containing the content corresponding to each field in the target tables. Storing the data to be stored in the database means writing the content corresponding to each field in the database according to the target tables and fields described in the table structure information.
[0081] In operation S420, in response to receiving query information for at least one target cloud phone among multiple cloud phones, the query information is converted into a query statement based on the table structure information.
[0082] According to embodiments of this disclosure, query information is data input by an object to represent a query requirement, including the cloud phone to be queried, the query conditions, and the data type to be obtained. A query statement is a statement used to execute a query in a database, including the target table, query fields, condition fields, and sorting method. Converting query information into a query statement means extracting the query intent from the query information, determining the target table and target fields from the table structure information according to the query intent, and then generating a query statement according to a preset statement structure.
[0083] In operation S430, at least one abnormal data of a target cloud phone is determined from the database based on a query statement.
[0084] According to embodiments of this disclosure, abnormal data is data stored in the database that matches the query statement, including the content corresponding to each field of the target cloud phone in the target table. Determining abnormal data from the database means searching for matching data in the database according to the target table, query fields, condition fields, and sorting method in the query statement.
[0085] By analyzing abnormal data, the S440 determines the anomaly analysis results of at least one target cloud phone.
[0086] According to embodiments of this disclosure, the anomaly analysis result can be an analytical conclusion representing an anomaly in the target cloud phone, including statistical results for each dimension obtained after statistically analyzing the anomaly data according to multiple dimensions. Parsing the anomaly data refers to statistically analyzing the anomaly data according to multiple dimensions indicated by preset analysis requirements, combining the statistical results of each dimension, and determining the anomaly analysis result.
[0087] According to the embodiments of this disclosure, by determining the data to be stored and storing it in the database based on the abnormal information and table structure information, and converting the query information into a query statement when the query information is received, abnormal data is determined from the database and the abnormal analysis results are obtained by parsing, the problems of abnormal information not being able to match the data required for subsequent analysis and the query method being limited to preset dimensions are solved, so that operation and maintenance personnel can obtain abnormal analysis results without mastering the database query language.
[0088] In this embodiment of the disclosure, the operation S410 described above, which determines the data to be stored based on the exception information and the table structure information of the database, may further include: obtaining the table structure information and table definition information of the database, wherein the table structure information indicates multiple target tables and fields of the multiple target tables in the database, and the table definition information indicates the meaning of each field in the multiple target tables; inputting the exception information, table structure information, and table definition information into a language model; using the language model to determine multiple target tables that match the exception information based on the table structure information; and determining the content corresponding to the meaning of each field in the multiple target tables from the exception information based on the table definition information as the data to be stored.
[0089] According to embodiments of this disclosure, the table structure information records multiple target tables contained in the database and the fields contained in each target table, and the table definition information records the meaning of each field in the multiple target tables.
[0090] The exception information, table structure information, and table definition information are input into the language model. In response to receiving these information, the language model reads the multiple target tables and their fields from the table structure information, reads the contents of the exception information, compares these contents with the multiple target tables, determines the target tables that match the exception information, and identifies the matched target tables as the multiple target tables that match the exception information.
[0091] The language model reads the meanings of each field recorded in the table definition information and the contents recorded in the exception information. It compares the contents of the exception information with the meanings of each field to determine the corresponding field meanings. The matched contents are then used as the content for each field. The language model combines the contents corresponding to each field to determine the data to be stored.
[0092] For example, the risk control details table in the table structure information includes fields such as risk control event identifier, event timestamp, target application package name, risk classification identifier, risk cause description, and public network address. The anomaly statistics table includes fields such as event date, data center name, main control model, device type, system version, tag type, and tag quantity. The table definition information records the following fields: risk control event identifier (indicating event type), event timestamp (indicating event occurrence time), target application package name (indicating the application causing the anomaly), risk classification identifier (indicating risk type), risk cause description (indicating the cause of the anomaly), public network address (indicating the public network address of the cloud phone), event date (indicating event trigger date), data center name (indicating the data center where the device is located), main control model (indicating the main control model of the device), device type (indicating the device type), system version (indicating the system version of the device), tag type (indicating the tag category of the anomaly), and tag quantity (indicating the number of anomalies under that tag).
[0093] The anomaly information includes the target event type, target time, target application, target risk type, target anomaly cause, and target network address. The language model reads the table structure information and matches the target event type, target time, target application, target risk type, target anomaly cause, and target network address in the anomaly information against the risk control details table. It also matches the target date, target data center, target main control model, target device type, target system version, target tag type, and target tag quantity in the anomaly information against the anomaly statistics table to determine which anomaly information matches the risk control details table and the anomaly statistics table.
[0094] The language model reads the table definition information and matches the event type, event occurrence time, application that caused the exception, risk type, exception cause, and public address from the exception information as the target event type, event occurrence time, application that caused the exception, risk type, exception cause, and public address as the target network address. The matched content is then used as the data to be stored.
[0095] According to embodiments of this disclosure, by inputting exception information, table structure information, and table definition information into a language model, the language model reads the table structure information to determine multiple target tables that match the exception information, and reads the table definition information to match the content corresponding to the meaning of each field in the exception information as data to be stored. This can automatically map exception information of different forms to multiple target tables in the database without the need for manual mapping rules, thus improving the efficiency and accuracy of exception information storage.
[0096] Figure 5 This is a schematic diagram of the process for determining the data to be stored according to an embodiment of the present disclosure.
[0097] like Figure 5The schematic diagram includes first input data 501, second input data 502, a language model 503, and data to be stored 504. The first input data 501 includes table structure information, table definition information, and exception information. The table structure information indicates multiple target tables in the database and their fields. The table definition information indicates the meaning of each field in the target tables; for example, the event date field indicates the trigger date and time of the event, the data center name field indicates the data center where the device is located, and the device address field indicates the address of the device that triggered the exception event. The exception information is the exception information reported by the monitoring module. The second input data 502 includes device information and log information.
[0098] Device information includes device address and location (e.g., computer room). Log information includes logs uploaded by the device. Table structure information, table definition information, and exception information flow from the first input data 501 to the language model. Device information and log information flow from the second input data 502 to the language model 503. After receiving the table structure information, table definition information, exception information, device information, and log information, the language model 503 reads the multiple target tables and fields of each target table recorded in the table structure information, reads the meaning of each field recorded in the table definition information, reads the contents recorded in the exception information, reads the device address and computer room location recorded in the device information, and reads the logs uploaded by the device recorded in the log information.
[0099] The information from the anomaly reports, device information, and log information is compared with multiple target tables and the meanings of each field to determine the matching target tables and field meanings. The corresponding content for each field is then derived, and the content is combined to obtain the data to be stored (504). This data is output from the language model (503) and used to store it in the database.
[0100] In this embodiment of the disclosure, the above-mentioned operation S420, which converts query information into query statements based on table structure information, may further include: inputting table structure information and query information into a language model; using the language model to extract query intent from the query information; and determining the target table and target field that match the query intent from the table structure information according to the query intent; and using the language model to generate query statements based on the target table, target field, and query intent.
[0101] According to embodiments of this disclosure, after receiving query information input by an object, the table structure information of the database is read. The table structure information records multiple tables contained in the database and the fields contained in each table. The server inputs the table structure information and query information into a language model. In response to receiving the table structure information and query information, the language model extracts the query intent from the query information. The query intent includes the query scope, query conditions, and query content. The query scope indicates the cloud phone or application to be queried, the query conditions indicate the filtering conditions, and the query content indicates the data type to be obtained.
[0102] The language model reads multiple tables and their fields from the table structure information. It compares the query scope in the query intent with these tables to determine the matching tables, designating them as the target tables. Then, it compares the query conditions in the query intent with the fields in the target tables to determine the matching fields, designating them as the target fields. Based on the target tables, target fields, and query intent, the language model generates a query statement.
[0103] For example, the query information includes the target query scope, target query conditions, and target query content. The table structure information for the risk control details table includes fields such as risk control event identifier, event timestamp, target application package name, risk classification identifier, risk cause description, and public IP address. The language model extracts the query intent from the query information: the query scope is the target query scope, the query conditions are the target query conditions, and the query content is the target query content. The language model compares the query scope with multiple tables to determine the target table as the risk control details table, and compares the query conditions with each field in the target table to determine the target field as the event timestamp field. Based on the risk control details table, the event timestamp field, and the query intent, the language model generates the query statement.
[0104] According to embodiments of this disclosure, by inputting table structure information and query information into a language model, the language model extracts the query intent from the query information and determines the target table and target field from the table structure information based on the query intent. This enables the natural language query information to be automatically converted into a database query statement, eliminating the need for users to master database query language and lowering the query threshold.
[0105] In this embodiment of the disclosure, the sorting method of the query statement is determined according to the sorting requirements in the query intent. The sorting method indicates the ascending or descending order of the query statement and the number of data to be selected. The target table, sorting method, query field and condition field in the target field are combined according to the preset statement structure to generate a query statement. The query field indicates the data to be obtained by the query statement, and the condition field indicates the field to which the filtering conditions of the query statement are applied.
[0106] According to embodiments of this disclosure, the language model reads sorting requirements from the query intent, which indicate how the query results should be arranged. The language model determines the sorting method for the query statement based on the sorting requirements. The sorting method includes ascending / descending order and the number of data items to be selected. The ascending / descending order indicates whether the query results are arranged in ascending or descending order, and the number of data items to be selected indicates how many records are returned in the query results.
[0107] The language model selects query fields and condition fields from the target fields. Query fields are those fields in the target fields that indicate the data the query statement aims to retrieve, while condition fields are those fields in the target fields that indicate the filtering conditions the query statement targets. The language model reads a pre-defined statement structure, which specifies the order of the target table, query fields, condition fields, and sorting method in the query statement. Following the pre-defined statement structure, the language model sequentially fills in the target table, sorting method, query fields, and condition fields to generate the query statement.
[0108] For example, the sorting requirement in the query intent is the target sorting requirement. The language model determines the sorting method based on the sorting requirement, with the ascending / descending order as the target direction and the number of data to be selected as the target number. The language model selects the query field as the target query field and the condition field as the target condition field from the target fields. The language model reads the preset statement structure and fills in the target table, query field, condition field, and sorting method in sequence according to the preset statement structure to generate the query statement.
[0109] According to embodiments of this disclosure, by determining the sorting method according to the sorting requirements in the query intent, and combining the target table, sorting method, query fields and condition fields in the target field according to the preset statement structure, a complete query statement containing sorting method and field selection can be generated, so that the query results are arranged according to user needs and a specified number of data are returned.
[0110] In this embodiment of the disclosure, the above-mentioned operation S440 may further include: inputting abnormal data and preset analysis requirements into a language model, using the language model to analyze the abnormal data according to multiple dimensions indicated by the preset analysis requirements, and obtaining analysis results for each dimension; combining the analysis results for each dimension to determine the abnormal analysis results of at least one target cloud phone.
[0111] According to embodiments of this disclosure, abnormal data and preset analysis requirements are input into a language model. In response to receiving the abnormal data and preset analysis requirements, the language model reads multiple dimensions indicated in the preset analysis requirements, categorizes the contents recorded in the abnormal data according to each dimension, obtains categorized data for each dimension, counts the number of abnormal data in the categorized data for each dimension, and obtains statistical results for each dimension. The language model arranges the statistical results of each dimension sequentially according to the combination method in the preset analysis requirements to determine the abnormal analysis results for at least one target cloud phone.
[0112] For example, the preset analysis requirements indicate multiple dimensions, including system version, data center, master control type, and application version. Anomaly data includes the target system version, target data center, target master control model, and target application version. The language model counts the number of anomalies under the target system version as the first quantity, the number of anomalies under the target data center as the second quantity, the number of anomalies under the target master control model as the third quantity, and the number of anomalies under the target application version as the fourth quantity. The language model combines the statistical results from each dimension to determine the anomaly analysis result for at least one target cloud phone.
[0113] According to embodiments of this disclosure, by inputting abnormal data and preset analysis requirements into a language model, the language model analyzes the abnormal data according to multiple dimensions indicated by the preset analysis requirements, and combines the analysis results of each dimension, it is possible to perform statistical analysis on abnormal data from multiple dimensions, obtain multi-dimensional and multi-angle abnormal analysis results, and help operation and maintenance personnel quickly locate the dimensions of abnormal concentration.
[0114] It should be noted that intelligent query and analysis is a key part of this disclosure, supporting natural language-driven intelligent data query and analysis through a large language model. The workflow includes: setting system prompts for the large model, limiting the role to cloud phone risk control-related queries, and only performing data queries and parsing related to cloud phone risk control. After the user inputs natural language, the large model translates the natural language into a query statement. The input consists of a database table architecture document and the user's input natural language; the output is an optimized query statement. The system then connects to the database, executes the generated query statement, and obtains the query dataset.
[0115] The large model automatically analyzes the query results, generates natural language analysis conclusions, and outputs tables, trend descriptions, comparative analysis, or correlation analysis reports according to the specified output format. These results are then sent to the user via webpage or instant messaging. Users can also input commands to start scheduled tasks. For example, to automatically send the total risk control figures for yesterday and the day before, the changes over the two days, and the percentage changes every day at 10:00 AM, a scheduled task can be created to automatically send the report every day at 10:00 AM.
[0116] It should be noted that the query examples may include the following. In the example of querying risk control events by address, the user inputs the risk control events for the target address, infers that the target address field equals the target address, and outputs the historical risk control records for that address in both tabular and natural language summary formats after executing the query.
[0117] In the example of querying risk control events by cloud phone number, the user inputs the risk control event for the target cloud phone number, the system infers the device number field corresponding to the cloud phone number, obtains the device address by associating it with the device address mapping table, queries the risk control table based on the device address, and outputs the result.
[0118] In the example of querying risk control trends by application name, the user inputs the risk control trend of the target application to analyze. The system maps the target application to the target application package name, summarizes the daily risk control event volume of that package name from the risk control details table, generates a trend by time series, and outputs trend chart descriptions and natural language analysis. In the example of multi-dimensional correlation analysis of risk control, the user inputs the risk control correlation analysis of the target application. The system determines the target application package name, counts the number of risk control reports from the dimensions of system version, data center, master control type, application version, and address, sorts them from high to low according to abnormal hotspots, outputs a multi-dimensional correlation analysis report, and marks the dimension with the highest risk control rate for the device.
[0119] In the example of scheduled reporting and abrupt change alarms, the user inputs a daily scheduled output of the target application's risk control daily report. An alarm is issued when the risk control reporting ratio differs from the previous day's by a preset percentage. The system creates a scheduled task to execute daily, acquiring the current day's risk control data and comparing it with the previous day's ratio. If the difference exceeds a preset threshold, an alarm is automatically issued; otherwise, a daily report including trend and correlation analysis is output. Compared to fixed dimensions, this disclosure, through a large model-driven approach, transforms the user's query method from fixed dashboards and manual analysis to natural language and intelligent analysis, improving query efficiency.
[0120] Figure 6 This is an architecture diagram of an anomaly analysis system according to an embodiment of the present disclosure.
[0121] like Figure 6 As shown, the anomaly analysis system 600 may include multiple monitoring modules 610 and processing modules 620.
[0122] Multiple monitoring modules 610 are deployed on multiple cloud phones. Each monitoring module is used to determine the prompt text generated by each application during runtime from the runtime data of multiple applications in the cloud phone; match the multiple prompt texts with preset text rules, and determine the successfully matched prompt text as the original abnormal information; process at least one original abnormal information according to a preset format to obtain at least one abnormal information, and send the abnormal information to the server.
[0123] The processing module 620 is used to respond to received abnormal information, determine the data to be stored based on the abnormal information and the table structure information of the database, and store the data to be stored in the database; respond to received query information for at least one target cloud phone among multiple cloud phones, convert the query information into a query statement based on the table structure information; determine the abnormal data of at least one target cloud phone from the database based on the query statement; and determine the abnormal analysis result of at least one target cloud phone by parsing the abnormal data.
[0124] It should be noted that the processing module 620 is deployed on the server, and the exception analysis methods executed by the processing module 620 are executed by the processor in the server. After the monitoring module 610 sends exception information to the server, the processing module 620 in the server receives the exception information and performs subsequent operations such as determining the data to be stored, storing the data to be stored in the database, converting query information into query statements, determining exception data from the database, and parsing the exception data. The relationship between the processing module 620 and the server is that the processing module 620 is a module in the server used to execute the exception analysis methods, and the server is the running platform for the processing module 620. The server uses the processing module 620 to realize the storage, query, and analysis of exception information.
[0125] The following will combine Figure 7 An illustrative description is provided of an anomaly detection device for cloud phones according to one embodiment of the present disclosure. Figure 7 This is a block diagram of an anomaly detection apparatus according to an embodiment of the present disclosure.
[0126] like Figure 7 As shown, the anomaly detection device 700 may include a data acquisition module 710, a rule matching module 720, and an information reporting module 730.
[0127] The data acquisition module 710 is used to determine the prompt text generated by each application during runtime from the acquired runtime data of multiple applications in the cloud phone. In one embodiment, the data acquisition module 710 can be used to perform the operation S210 described above, which will not be repeated here.
[0128] The rule matching module 720 is used to match multiple prompt texts with preset text rules, and to identify the successfully matched prompt texts as the original abnormal information. In one embodiment, the rule matching module 720 can be used to perform the operation S220 described above, which will not be repeated here.
[0129] The information reporting module 730 is used to process at least one original abnormal information according to a preset format, obtain at least one abnormal information, and send the abnormal information to the server. In one embodiment, the information reporting module 730 can be used to perform the operation S230 described above, which will not be repeated here.
[0130] It should be noted that the details of other embodiments of the anomaly detection device and the resulting technical effects are the same or similar to the details of the embodiments of the anomaly detection method and the resulting technical effects, and will not be repeated here.
[0131] According to an embodiment of this disclosure, the anomaly detection device 700 further includes an information determination module 740, which is used to match the startup interface name and startup additional data obtained from the cloud phone's interface startup event with a first identification rule, and determine the successfully matched startup interface name and startup additional data as original anomaly information; and to match the close interface name, return interface name and return additional data obtained from the cloud phone's interface return event with a second identification rule, and determine the successfully matched close interface name, return interface name and return additional data as original anomaly information.
[0132] According to an embodiment of this disclosure, the information reporting module 730 obtains field definition information, which indicates the meaning of a field in a preset format; inputs at least one original abnormal information and field definition information into a language model, and uses the language model to extract content matching the meaning of each field from at least one original abnormal information to obtain multiple field contents; and combines the multiple field contents according to a preset format to obtain at least one abnormal information.
[0133] The following will combine Figure 8 An anomaly analysis apparatus according to one embodiment of the present disclosure is described schematically. Figure 8 This is a block diagram of an anomaly analysis apparatus according to an embodiment of the present disclosure.
[0134] like Figure 8 As shown, the anomaly analysis device 800 for cloud phones may include a data storage module 810, a statement conversion module 820, a data query module 830, and a result analysis module 840.
[0135] The data storage module 810 is used to, in response to receiving an exception message, determine the data to be stored based on the exception message and the table structure information of the database, and store the data to be stored in the database. In one embodiment, the data storage module 810 can be used to perform the operation S410 described above, which will not be repeated here.
[0136] The statement conversion module 820 is used to convert query information into a query statement based on table structure information in response to receiving query information for at least one target cloud phone among a plurality of cloud phones. In one embodiment, the statement conversion module 820 can be used to perform the operation S420 described above, which will not be repeated here.
[0137] The data query module 830 is used to determine at least one abnormal data of a target cloud phone from the database based on a query statement. In one embodiment, the data query module 830 can be used to perform the operation S430 described above, which will not be repeated here.
[0138] The result analysis module 840 is used to determine the anomaly analysis results of at least one target cloud phone by parsing abnormal data. In one embodiment, the data query module 840 can be used to perform the operation S440 described above, which will not be repeated here.
[0139] It should be noted that the details of other embodiments of the anomaly analysis device and the resulting technical effects are the same or similar to the details of the embodiments of the anomaly analysis method and the resulting technical effects, and will not be repeated here.
[0140] According to embodiments of this disclosure, the data storage module 810 is further configured to obtain table structure information and table definition information of the database. The table structure information indicates multiple target tables and fields of the multiple target tables in the database, and the table definition information indicates the meaning of each field in the multiple target tables. The exception information, table structure information, and table definition information are input into a language model. The language model is used to determine multiple target tables that match the exception information based on the table structure information, and to determine the content corresponding to the meaning of each field in the multiple target tables from the exception information based on the table definition information as data to be stored.
[0141] According to embodiments of this disclosure, the statement conversion module 820 is further configured to input table structure information and query information into a language model, extract query intent from the query information using the language model, and determine the target table and target field that match the query intent from the table structure information based on the query intent; and generate a query statement using the language model based on the target table, target field, and query intent.
[0142] According to an embodiment of this disclosure, the statement conversion module 820 is further configured to determine the sorting method of the query statement according to the sorting requirements in the query intent, wherein the sorting method indicates the ascending or descending order of the query statement and the number of data to be selected; and to combine the target table, the sorting method, the query field and the condition field in the target field according to a preset statement structure to generate a query statement, wherein the query field indicates the data to be obtained by the query statement, and the condition field indicates the field to which the filtering conditions of the query statement are applied.
[0143] According to an embodiment of this disclosure, the data query module 840 is further configured to determine the sorting method of the query statement according to the sorting requirements in the query intent, wherein the sorting method indicates the ascending or descending order of the query statement and the number of data to be selected; and to combine the target table, the sorting method, the query field and the condition field in the target field according to a preset statement structure to generate a query statement, wherein the query field indicates the data to be obtained by the query statement, and the condition field indicates the field to which the filtering conditions of the query statement are applied.
[0144] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0145] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement embodiments of the present disclosure is shown.
[0146] Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0147] like Figure 9 As shown, device 900 includes a computing unit 901, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 902 or loaded from storage unit 908 into random access memory (RAM) 903. RAM 903 may also store various programs and data required for the operation of device 900. The computing unit 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.
[0148] Multiple components in device 900 are connected to I / O interface 905, including: input unit 906, such as keyboard, mouse, etc.; output unit 907, such as various types of monitors, speakers, etc.; storage unit 908, such as disk, optical disk, etc.; and communication unit 909, such as network card, modem, wireless transceiver, etc. Communication unit 909 allows device 900 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0149] The computing unit 901 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as text processing methods and / or deep learning framework deployment methods. For example, in some embodiments, the text processing methods and / or deep learning framework deployment methods can be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed on device 900 via ROM 902 and / or communication unit 909. When the computer program is loaded into RAM 903 and executed by computing unit 901, one or more steps of the text processing method and / or the deployment method of the deep learning framework described above can be performed. Alternatively, in other embodiments, computing unit 901 can be configured to perform the text processing method and / or the deployment method of the deep learning framework by any other suitable means (e.g., by means of firmware).
[0150] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard parts (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0151] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable information processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0152] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (EPROM) or flash memory, optical fiber, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0153] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a cathode ray tube (CRT) monitor or a liquid crystal display (LCD); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0154] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication (e.g., a communication network) of any form or medium. Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0155] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.
[0156] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0157] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. An anomaly detection method for cloud phones, comprising: From the runtime data of multiple applications in the acquired cloud phone, determine the prompt text generated by each application during runtime; Multiple prompt texts are matched against preset text rules, and the prompt texts that match successfully are identified as the original abnormal information; At least one of the original exception information is processed according to a preset format to obtain at least one exception information, and the exception information is sent to the server.
2. The method according to claim 1, wherein, The original anomaly information is determined by at least one of the following methods: The startup interface name and startup additional data obtained from the interface startup event of the cloud phone are matched with the first identification rule, and the successfully matched startup interface name and startup additional data are determined as the original abnormal information. The closed interface name, returned interface name, and returned additional data obtained from the interface return event of the cloud phone are matched with the second identification rule, and the successfully matched closed interface name, returned interface name, and returned additional data are determined as the original abnormal information.
3. The method according to claim 1, wherein, The process of processing the at least one original abnormal information according to a preset format to obtain at least one abnormal information includes: Obtain field definition information, which indicates the meaning of the fields in the preset format; Input the at least one original anomaly information and the field definition information into the language model, and use the language model to extract content that matches the meaning of each field from the at least one original anomaly information to obtain multiple field contents; The contents of the multiple fields are combined according to the preset format to obtain at least one abnormal information.
4. An anomaly analysis method for cloud phones, comprising: In response to receiving an error message, the system determines the data to be stored based on the error message and the table structure information of the database, and stores the data to be stored in the database, wherein the error message is obtained by the method according to any one of claims 1-3; In response to receiving query information for at least one target cloud phone among the plurality of cloud phones, the query information is converted into a query statement based on the table structure information; Based on the query statement, abnormal data of the at least one target cloud phone is determined from the database; By analyzing the abnormal data, the anomaly analysis results of the at least one target cloud phone are determined.
5. The method according to claim 4, wherein, The step of determining the data to be stored based on the anomaly information and the database table structure information includes: Obtain the table structure information and table definition information of the database. The table structure information indicates multiple target tables in the database and the fields of the multiple target tables. The table definition information indicates the meaning of each field in the multiple target tables. The abnormal information, the table structure information, and the table definition information are input into a language model. The language model is used to determine multiple target tables that match the abnormal information based on the table structure information. Based on the table definition information, the content corresponding to the meaning of each field in the multiple target tables is determined from the abnormal information as the data to be stored.
6. The method according to claim 4, wherein, The step of converting the query information into a query statement based on the table structure information includes: The table structure information and the query information are input into a language model. The language model is used to extract the query intent from the query information. Based on the query intent, the target table and target field that match the query intent are determined from the table structure information. The query statement is generated using the language model based on the target table, the target field, and the query intent.
7. The method according to claim 6, wherein, The step of generating the query statement using the language model based on the target table, the target field, and the query intent includes: According to the sorting requirements in the query intent, the sorting method of the query statement is determined, wherein the sorting method indicates the ascending or descending order of the query statement and the number of data to be selected; The target table, the sorting method, the query field and the condition field in the target field are combined according to the preset statement structure to generate the query statement, wherein the query field indicates the data to be obtained by the query statement, and the condition field indicates the field to which the filtering conditions of the query statement are applied.
8. The method according to claim 4, wherein, By analyzing the abnormal data, the anomaly analysis results for the at least one target cloud phone include: The abnormal data and preset analysis requirements are input into a language model, and the language model is used to analyze the abnormal data according to multiple dimensions indicated by the preset analysis requirements to obtain the analysis results of each dimension. The analysis results from each dimension are combined to determine the anomaly analysis results for the at least one target cloud phone.
9. An anomaly analysis system for cloud phones, comprising: Multiple monitoring modules are deployed on multiple cloud phones. Each monitoring module is used to determine the prompt text generated by each application during runtime from the runtime data of multiple applications in the cloud phone. Multiple prompt texts are matched against preset text rules, and the prompt texts that match successfully are identified as the original abnormal information; At least one of the original abnormal information is processed according to a preset format to obtain at least one abnormal information, and the abnormal information is sent to the server; The processing module is used to respond to receiving abnormal information, determine the data to be stored based on the abnormal information and the table structure information of the database, and store the data to be stored into the database; In response to receiving query information for at least one target cloud phone among the plurality of cloud phones, the query information is converted into a query statement based on the table structure information; and abnormal data of the at least one target cloud phone is determined from the database based on the query statement. By analyzing the abnormal data, the anomaly analysis results of the at least one target cloud phone are determined.
10. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to cause the at least one processor to perform the method as described in any one of claims 1 to 3.
11. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to cause the at least one processor to perform the method as described in any one of claims 4 to 8.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein, Computer instructions are used to cause a computer to perform the method according to any one of claims 1 to 3 or claims 4 to 8.
13. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 3 or claims 4 to 8.
