An agent-based charging scheme generation method, apparatus, device, and medium

By automatically collecting evidence data and performing fault propagation reasoning through intelligent agent technology, operation and maintenance plans and billing plans are generated automatically, solving the problems of cumbersome process and low accuracy of manual billing plan generation by operation and maintenance personnel, and realizing efficient and accurate billing plan generation.

CN123145172APending Publication Date: 2026-11-20XINZHIYUN DATA SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611501720.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, maintenance personnel rely on manual experience when generating billing plans, which leads to cumbersome processes and is prone to cost estimation errors, resulting in low accuracy and efficiency.

Method used

Using intelligent agent technology, it automatically collects evidence data, performs fault propagation reasoning, generates operation and maintenance plans, and automatically generates billing plans based on asset ownership information and billing rules.

Benefits of technology

It has achieved full automation from fault location to billing scheme generation, shortened the cycle, improved accuracy and efficiency, lowered the threshold for manual diagnosis, and avoided omissions and deviations caused by manual calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145172A_ABST
    Figure CN123145172A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an agent-based charging scheme generation method, device and equipment and medium, relating to the technical field of artificial intelligence. The method comprises: in response to a fault diagnosis instruction, calling a tool set through a fault diagnosis agent to collect evidence data; performing fault propagation reasoning according to the evidence data to determine fault root cause data; retrieving an operation and maintenance knowledge base according to the fault root cause data to generate an operation and maintenance scheme; determining resource change type actions in the operation and maintenance scheme, and generating a charging scheme of the operation and maintenance scheme according to asset ownership information and charging rules of each resource change type action. Thus, the present application can improve the generation efficiency and accuracy of the charging scheme of the operation and maintenance scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, device and medium for generating billing schemes based on intelligent agents. Background Technology

[0002] As enterprises deepen their digital transformation, their operations and maintenance (O&M) management has evolved from simply handling faults to integrating fault handling with cost control. Currently, when a fault occurs, O&M personnel typically rely on their experience to determine the root cause and then formulate an O&M plan that includes actions such as restarting, configuration modification, or resource expansion.

[0003] However, in the cost control phase, operations and maintenance personnel typically need to manually query the business line, cost center, and corresponding billing rules of the asset after determining the operation and maintenance plan, and manually estimate cost changes. This method of generating billing plans based on manual experience is not only cumbersome, but also prone to cost estimation errors due to human oversight, resulting in low accuracy and efficiency in generating billing plans. Summary of the Invention

[0004] To address the aforementioned issues, this application provides a method, apparatus, device, and medium for generating billing schemes based on intelligent agents, which can improve the efficiency and accuracy of generating billing schemes for operation and maintenance solutions.

[0005] The embodiments of this application disclose the following technical solutions: In a first aspect, this application discloses a method for generating a billing scheme based on an intelligent agent, the method comprising: In response to fault diagnosis commands, the fault diagnosis agent invokes toolsets to collect evidence data. Based on the evidence data, perform fault propagation reasoning to determine the root cause data of the fault; Based on the fault root cause data, retrieve the operation and maintenance knowledge base to generate an operation and maintenance plan; Identify the resource change actions in the operation and maintenance plan, and generate a billing plan for the operation and maintenance plan based on the asset ownership information and billing rules of the asset corresponding to each resource change action.

[0006] Secondly, this application discloses a billing scheme generation device based on intelligent agents, the device comprising: The data acquisition module is used to respond to fault diagnosis commands and collect evidence data by calling the toolset through the fault diagnosis intelligent agent. The fault reasoning module is used to perform fault propagation reasoning based on the evidence data to determine the root cause data of the fault. The first generation module is used to retrieve the operation and maintenance knowledge base based on the fault root cause data and generate an operation and maintenance plan; The second generation module is used to determine the resource change actions in the operation and maintenance plan, and generate the billing plan of the operation and maintenance plan based on the asset ownership information and billing rules of the asset corresponding to each resource change action.

[0007] Thirdly, this application discloses a billing scheme generation device based on intelligent agents, the device comprising: a memory and a processor; The memory is used to store programs; The processor is configured to execute the program to implement the various steps of the agent-based billing scheme generation method as described in the first aspect.

[0008] Fourthly, this application discloses a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the various steps of the agent-based billing scheme generation method as described in the first aspect.

[0009] Compared with the prior art, this application has the following beneficial effects: This application provides a method, apparatus, device, and medium for generating billing schemes based on intelligent agents. This application automates the entire process from fault evidence collection and root cause reasoning to maintenance scheme generation. Furthermore, it automatically generates corresponding billing schemes based on the asset ownership information and billing rules involved in resource change actions within the maintenance scheme. Thus, this application, on the one hand, significantly shortens the fault location and maintenance scheme development cycle by automatically calling tools to collect evidence data and perform fault propagation reasoning through intelligent agents, lowering the threshold for manual diagnosis and improving the accuracy and timeliness of fault handling; on the other hand, by automatically matching asset ownership information and billing rules, an accurate billing scheme can be output synchronously after the maintenance action is determined, effectively avoiding omissions and deviations caused by manual calculations and improving the accuracy and efficiency of billing scheme generation. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 A flowchart illustrating a billing scheme generation method based on an intelligent agent, provided in an embodiment of this application; Figure 2 A schematic diagram of an agent-based billing scheme generation device provided in an embodiment of this application; Figure 3This is a schematic diagram of a computer-readable medium provided in an embodiment of this application. Detailed Implementation

[0012] As described earlier, in the cost control phase, operations and maintenance personnel typically need to manually query the business line, cost center, and corresponding billing rules of the asset after determining the operation and maintenance plan, and manually estimate cost changes. This method of generating billing plans based on manual experience is not only cumbersome, but also prone to cost estimation errors due to human oversight, resulting in low accuracy and efficiency in generating billing plans.

[0013] Through research, the inventors have proposed a billing scheme generation method, apparatus, device, and medium based on intelligent agents. This application automates the entire process from fault evidence collection and root cause reasoning to operation and maintenance scheme generation. Furthermore, it automatically generates corresponding billing schemes based on the asset ownership information and billing rules involved in resource change actions within the operation and maintenance scheme. Therefore, this application, on the one hand, significantly shortens the fault location and operation and maintenance scheme formulation cycle by automatically calling tools to collect evidence data and perform fault propagation reasoning through intelligent agents, lowers the threshold for manual diagnosis, and improves the accuracy and timeliness of fault handling; on the other hand, by automatically matching asset ownership information and billing rules, it can synchronously output accurate billing schemes after the operation and maintenance actions are determined, effectively avoiding omissions and deviations caused by manual calculations and improving the accuracy and efficiency of billing scheme generation.

[0014] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0015] See Figure 1 This figure is a flowchart of a billing scheme generation method based on intelligent agents provided in an embodiment of this application. This method can be applied to electronic devices where the operation and maintenance platform is located. These electronic devices can be servers, server clusters, cloud devices, or edge computing devices, etc. This embodiment of the application does not limit the specific form of the electronic device. The method includes: S101: In response to a fault diagnosis command, the fault diagnosis agent invokes a toolset to collect evidence data.

[0016] In this embodiment, the fault diagnosis command can be triggered in various ways. The triggering methods for the fault diagnosis command include, but are not limited to, the following: Method 1: Automatic Alarm Event Push Trigger. When the monitoring system detects an anomaly in a monitored object, it generates an alarm event (i.e., a fault diagnosis instruction) and automatically pushes the alarm event to the fault diagnosis intelligent agent. For example, anomalies in the monitored object may include interface response timeouts, exceeding metric limits, abnormal process exits, and lost heartbeats. The monitoring system can perform real-time monitoring of the monitored object according to preset alarm rules (such as threshold alarm rules, year-on-year / month-on-month fluctuation alarm rules, and sudden change detection alarm rules). When the monitoring results meet the preset alarm rules, an alarm event is generated, and the information carried by the alarm event, such as alarm time, alarm object, alarm level, and alarm content, is encapsulated into a fault diagnosis instruction. Therefore, this triggering method can automatically initiate the fault diagnosis process without human intervention, significantly shortening the time interval from the occurrence of a fault to the start of diagnosis.

[0017] Method Two: Triggered by User Natural Language Input. Operations and maintenance personnel can initiate fault diagnosis queries by inputting fault symptoms and other information in natural language within the operations and maintenance workbench or dialog window. For example, they can input phrases like "A certain business interface is responding slowly, please help me troubleshoot the cause" or "The XX service has been frequently restarting these past two days, please help me find the reason." The fault diagnosis intelligent agent can then use a natural language understanding model (such as a pre-trained language model) to perform intent recognition and entity extraction on the natural language input, extracting information such as fault symptoms, fault time, and fault objects, and generating fault diagnosis instructions accordingly. This triggering method lowers the barrier to entry for operations and maintenance personnel. They do not need to understand specific query syntax or system operation paths; they can trigger intelligent diagnosis simply by describing the fault in natural language, improving the usability and interaction efficiency of the operations and maintenance platform.

[0018] In this embodiment, the toolset includes a monitoring indicator query tool, an asset topology query tool, and a case library retrieval tool. The fault diagnosis agent can invoke at least one tool from the toolset based on the fault phenomenon, fault object, and fault time indicated by the fault diagnosis command. For example, the fault diagnosis agent can invoke the monitoring indicator query tool to obtain monitoring indicator data of the faulty asset during the fault period, invoke the asset topology query tool to query the asset dependency topology graph related to the faulty asset, and invoke the case library retrieval tool to retrieve historical fault records in the historical fault case library that are similar to the current fault phenomenon.

[0019] Correspondingly, the evidence data includes monitoring indicator data, asset dependency topology graphs, and a historical failure case library. The asset dependency topology graph can be stored and queried using a graph structure (nodes represent asset entities, and edges represent dependencies and their directions). The historical failure case library stores historical failure records, each of which can include information such as historical failure characteristics (e.g., alarm type, abnormal indicator pattern, error keyword vector, etc.), historical root cause, historical handling actions, occurrence time, associated assets, and feedback on the handling effect.

[0020] S102: Based on the evidence data, perform fault propagation reasoning to determine the root cause data of the fault.

[0021] The root cause type describes the fundamental nature of the fault. For example, root cause data could be: "database connection exhaustion," "application instance memory overflow," "insufficient physical host disk space," or "container group evicted." In this embodiment, the root cause data is determined in the following way: First, based on at least one of the following in the evidence data: alarm type, anomaly indicator, faulty asset, and error keyword, the current fault characteristics are determined. These current fault characteristics can characterize the manifestation of the current fault, and can be represented in the form of structured fields or further vectorized into feature vectors for easier subsequent similarity calculation. For example, current fault characteristics may include an alarm type of "database connection timeout," an anomaly indicator of "connection count exceeds threshold," a faulty asset of "a certain database instance," and an error keyword of "too many connections," etc.

[0022] Secondly, the similarity of each historical fault feature in the current fault features and the historical fault case library in the evidence data is compared (e.g., using similarity algorithms such as cosine similarity, Euclidean distance, and edit distance). The top N historical fault features by similarity are then retrieved, each corresponding to one of the N historical fault records. Here, N is a positive integer, for example, it can be 5. Therefore, by retrieving similar historical fault records, the platform's accumulated fault handling experience can be fully utilized, thereby improving the efficiency of root cause localization.

[0023] Finally, based on N historical fault records and evidence data, root cause data is generated. Root cause data can be historical root causes extracted directly from historical fault records, or new root causes derived through comprehensive reasoning based on historical fault records and evidence data. This ensures that root cause data is not limited to historical experience and can also cover novel fault scenarios not found in the historical case library.

[0024] S103: Retrieve the operation and maintenance knowledge base based on the root cause data of the fault and generate an operation and maintenance plan.

[0025] A1: Determine the search criteria based on the root cause data of the fault.

[0026] Specifically, the search criteria are determined based on the type of root cause in the root cause data (e.g., database connection exhaustion, memory overflow, insufficient disk space, etc.), the type of asset associated with the root cause (e.g., database instance, application service, physical host, container group, etc.), and the level of affected applications in the impact surface data.

[0027] The fault impact surface data is used to indicate the scope of assets, applications, or business operations that may be affected by the fault. Its purpose is to help operations and maintenance personnel quickly grasp the scope of the fault's impact, facilitating the assessment of fault severity, the development of emergency plans, and prioritization. In this embodiment, the fault impact surface data is determined as follows: First, the fault source data is determined. The fault source data indicates the asset entity that first experiences a fault or experiences a concentrated fault. When a fault diagnosis command indicates multiple alarm events, and these multiple alarm events originate from the same asset entity's fault, the asset entity is identified as the fault source data. Subsequently, in the asset dependency topology graph, using the asset entity corresponding to the fault source data as the starting node, the propagation is extended outwards along the upstream dependencies (i.e., which components the asset entity depends on) and downstream dependencies (i.e., which applications call the asset entity) of the starting node according to a preset propagation depth, obtaining the set of affected nodes. The preset propagation depth can be set according to the actual business scenario, such as 1 layer, 2 layers, or 3 layers, etc., which is not limited in this application. Finally, the fault impact surface data is determined based on the set of affected nodes.

[0028] For example, if the root cause of the fault is "database connection exhaustion", the asset type associated with the root cause is "cloud database instance", and the level of the affected application in the fault impact data is "core transaction class", then "database connection exhaustion + cloud database + core transaction class" can be used as search conditions to match the corresponding fault handling rules in the operation and maintenance knowledge base.

[0029] A2: Search the operations and maintenance knowledge base according to the search criteria to determine the set of matching operations and maintenance actions.

[0030] For example, for the search criteria "database connection exhaustion + cloud database + core transaction class", the set of matching operation and maintenance actions may include: increasing the maximum number of database connections; capturing slow SQL logs; optimizing slow SQL statements; and upgrading the database instance specifications.

[0031] A3: Determine the priority score of each operation and maintenance action in the operation and maintenance action set based on the preset sorting dimensions.

[0032] In one specific implementation, the preset sorting dimension may include the dimension of operation and maintenance action type. For example, the priority score of emergency loss mitigation operation and maintenance actions (such as instance restart, primary / standby switch, traffic degradation, etc.) is higher than the priority score of problem investigation and information collection operation and maintenance actions (such as log capture, dump file export, etc.), which is higher than the priority score of resource change operation and maintenance actions (such as specification upgrade, expansion, etc.).

[0033] In one specific implementation, the preset ranking dimension may include an impact dimension. For example, the priority score of maintenance actions with a high degree of impact on the business is higher than the priority score of maintenance actions with a low degree of impact on the business.

[0034] In one specific implementation, the preset sorting dimension may include a dependency dimension. For example, if the output of operation and maintenance action A is the input of operation and maintenance action B (e.g., it is necessary to capture dump logs before memory analysis can be performed to determine whether the instance needs to be restarted), then the priority score of operation and maintenance action A is higher than the priority score of operation and maintenance action B.

[0035] In one specific implementation, the preset sorting dimension may include the scope of impact dimension. For example, the priority score of operation and maintenance actions with a small scope of impact (such as modifying the parameters of a single application instance or adjusting the connection pool configuration of a database) is higher than the priority score of operation and maintenance actions with a large scope of impact (such as restarting the entire host or canceling the traffic entry of all applications).

[0036] It should be noted that the priority score of each operation and maintenance action can be calculated comprehensively based on the different weights of the above dimensions (which can be defined in the system configuration or optimized through machine learning), as shown in the following formula (1): Priority score = W1 × Action type score + W2 × Influence degree score + W3 × Dependence score + W4 × Scope of influence score (1) Among them, W1, W2, W3, and W4 are the weight coefficients of each dimension, and W1+W2+W3+W4=1. They can be set or dynamically adjusted according to actual operation and maintenance experience.

[0037] A4: Sort each operation and maintenance action in the operation and maintenance action set according to the priority score from high to low, and generate an operation and maintenance plan.

[0038] The operation and maintenance plan includes multiple operation and maintenance actions arranged in descending order of priority score.

[0039] Understandably, the operation and maintenance plan can be output in the form of structured data, simultaneously generating two interactive formats: a concise summary version and a full detail version. The concise summary version is used for the conversational user interface (CUI), presented in a simple "1, 2, 3" step format, while the full detail version is used for the visual workbench interface (GUI), displaying detailed parameters, scripts, impact analysis, and other information for each action in rich formats such as cards and flowcharts.

[0040] It should be noted that during the execution of the operation and maintenance actions in the operation and maintenance plan, an automatic rollback mechanism or a manual takeover mechanism can also be executed.

[0041] The automatic rollback mechanism refers to performing a state snapshot operation on the operation and maintenance object (such as a database instance, configuration file, etc.) before executing the operation and maintenance action, saving at least one of the following: the configuration before the change, the number of replicas, and disk parameters. Furthermore, during the execution of the operation and maintenance action, the business health indicators of the operation and maintenance object are monitored in real time. If a deterioration in the business indicators of the operation and maintenance object or an escalation of the fault is detected, the operation and maintenance action is immediately terminated, and a rollback operation is triggered. The rollback operation is performed in reverse order of the operation and maintenance action execution sequence to restore the operation and maintenance object to the state corresponding to the state snapshot; for irreversible operation and maintenance actions (such as instance restart), a rollback failure log is recorded, and manual intervention is prompted.

[0042] The manual takeover mechanism refers to terminating the automated process and transferring it to manual takeover when at least one of the following conditions is met: multiple retries of the operation and maintenance action all fail; rollback execution fails; or the confidence level of the root cause data is lower than the preset confidence threshold.

[0043] S104: Determine the resource change actions in the operation and maintenance plan, and generate the billing plan for the operation and maintenance plan based on the asset ownership information and billing rules of the assets corresponding to each resource change action.

[0044] First, identify resource change actions in the operation and maintenance plan. Refer to Table 1, which is an illustration of one type of operation and maintenance action provided in an embodiment of this application.

[0045] Table 1

[0046] Specifically, resource change actions in the operation and maintenance plan can be identified as follows: First, by analyzing the operation and maintenance plan, determine the operation content of each operation and maintenance action. If the operation content involves at least one of the following: instance specification upgrade (e.g., upgrading a database instance from 8 cores and 16GB to 16 cores and 32GB), horizontal scaling (e.g., increasing the number of application replicas from 4 Pods to 6 Pods), disk expansion (e.g., increasing disk capacity from 500GB to 1TB), resource scaling down (e.g., downgrading instance specifications or reducing the number of replicas), adding resources (e.g., adding a cache instance or a cloud host), and decommissioning (e.g., releasing unused cloud resource instances), then the operation and maintenance action is identified as a resource change action. Conversely, if the operation content only involves operations that do not change resource specifications, such as parameter adjustment, configuration modification, instance restart, or log capture, then the operation and maintenance action is identified as a non-resource change action.

[0047] Understandably, for non-resource change actions, they will be directly marked as "estimated cost unchanged" during the subsequent billing scheme generation process, and the subsequent billing scheme generation process will no longer be executed.

[0048] Subsequently, based on the assets corresponding to resource change actions, asset ownership information is obtained from the asset dependency topology diagram. For example, asset ownership information includes, but is not limited to: the application to which the asset belongs (e.g., the mysql-order database instance belongs to the order-service application), the organization / department to which the asset belongs (e.g., the transaction business department, user center department, basic operations and maintenance department), and the information of the person responsible for the asset (e.g., the operations and maintenance person, Zhang XX). Asset ownership information is used to determine the entity responsible for costs after a change in expenses (i.e., which department or application bears the increased or decreased costs).

[0049] Next, the billing center is invoked to retrieve the billing rules for the assets corresponding to resource change actions. For example, billing rules include, but are not limited to: the asset's current billing product identifier (e.g., cloud database MySQL version, cloud host, container service, etc.), current resource specifications (e.g., 8 cores 16GB, 4 Pods × 2 cores 4GB, 500GB disk), billing mode (e.g., annual / monthly subscription, pay-as-you-go), and current monthly fee (e.g., the current monthly fee for a mysql-order instance is 8000 yuan). This current billing status data serves as the baseline for subsequent calculations of fee changes.

[0050] Finally, based on the asset ownership information and billing rules of the assets corresponding to each resource change action, a billing scheme for the operation and maintenance plan is generated.

[0051] It is understandable that the billing scheme, similar to the operation and maintenance scheme, can be output in a structured data format, simultaneously generating two interactive formats: a simplified summary version and a full details version. The simplified summary version is used for the conversational user interface (CUI), while the full details version is used for the visual workbench interface (GUI). This application does not impose any limitations on this.

[0052] It should be noted that in actual fault scenarios, step S103 typically generates multiple candidate maintenance and operation (O&M) plans. Correspondingly, in step S104, for each candidate O&M plan, resource change actions are identified, and candidate billing plans are generated based on the asset ownership information and billing rules corresponding to each resource change action. Subsequently, the estimated costs of each candidate billing plan are compared, and billing recommendation data is generated in ascending order of estimated cost. This billing recommendation data is used to indicate which candidate O&M plan with the lower estimated cost should be prioritized. For example, the estimated cost of candidate billing plan A (only modifying database connection parameters) remains unchanged, while the estimated cost of candidate billing plan B (upgrading database instance specifications) increases by 4200 yuan per month. Therefore, the billing recommendation data, arranged from lowest to highest cost, is: Candidate Billing Plan A → Candidate Billing Plan B.

[0053] It should also be noted that after generating the billing scheme for the operation and maintenance plan, a consistency check can be performed on the operation and maintenance plan and the billing scheme to identify abnormal outputs caused by inference bias or data inconsistency.

[0054] In one specific implementation, if the operation and maintenance plan includes resource change actions, and the estimated cost in the billing plan remains unchanged, then a logical inconsistency is determined between the operation and maintenance plan and the billing plan. In this case, an alarm is triggered, prompting operation and maintenance personnel to manually review the billing plan for omissions or calculation errors. For example, if the operation and maintenance plan states "database instance specifications upgraded to 16 cores 32GB," while the billing plan outputs "estimated cost unchanged," then a logical inconsistency is determined, triggering an alarm.

[0055] In another specific implementation, if the operation and maintenance plan only includes non-resource change actions, and the estimated cost in the billing plan changes, then a logical inconsistency between the operation and maintenance plan and the billing plan is also determined. In this case, an alarm is triggered, prompting the operation and maintenance personnel to manually review the billing plan for omissions or calculation errors. For example, if the operation and maintenance plan only includes two non-resource change actions, "restarting the member-app instance" and "adjusting the Pod memory limit parameter," but the billing plan outputs "estimated monthly increase of 1100 yuan," then the two are determined to be logically inconsistent, triggering an alarm.

[0056] It should also be noted that if, based on the asset dependency topology diagram, it is determined that each operation and maintenance action in the operation and maintenance plan has an impact range that covers unrelated business assets, an alarm indication will be triggered.

[0057] Specifically, firstly, the asset dependency topology graph is input into a pre-trained graph neural network (GNN) model to obtain the topological embedding vector for each asset node in the asset dependency topology graph. The topological embedding vector is used to characterize the structural position and dependency features of each asset node in the topology network.

[0058] Subsequently, for each operational action in the operational plan, a risk diffusion score is determined based on the similarity (e.g., cosine similarity) between the topological embedding vector of the target asset node corresponding to the operational action and the topological embedding vectors of neighboring asset nodes that have an adjacency relationship with the target asset node. The risk diffusion score is used to quantify the potential impact of the operational action on surrounding assets.

[0059] Finally, if the risk diffusion score of the operation and maintenance action is greater than the preset score threshold, it is determined that the impact of the operation and maintenance action covers unrelated business assets (i.e. business assets not involved in this failure). At this time, an alarm instruction is triggered, and the operation and maintenance action is marked as an action that requires manual approval.

[0060] For example, if the action of "restarting the mysql-order database instance" affects multiple upstream applications (such as payment services and membership services) that are not covered by the fault in the topology diagram, the risk diffusion score is high, indicating that the impact of the action is too large, triggering an alarm instruction, prohibiting fully automatic execution, and forcing manual confirmation.

[0061] It should also be noted that if an operational action in the operation and maintenance plan fails, and the action is idempotent (i.e., repeated execution will not produce additional side effects, such as instance restart or service restart), the action will be retried at a preset cooldown interval (e.g., 5 minutes) until the preset maximum number of retries is reached (e.g., 3 times). If an operational action in the operation and maintenance plan fails, and the action is non-idempotent (e.g., resource configuration changes or expansion operations), automatic retry is not supported. Once execution fails, the task will be terminated immediately, triggering a rollback or manual takeover process.

[0062] It should also be noted that after executing the maintenance actions in the maintenance plan, the following methods can also be executed: First, manually tagged data is obtained regarding the root cause data of the fault. This data indicates whether the root cause data is correct or incorrect and includes at least one of the following: actual root cause data, actual operational actions, execution results, and log evidence. Next, based on the manually tagged data, evidence data, operational plans, and billing plans, fault closure-loop case data is generated and stored in the fault closure-loop case database. Finally, the operational knowledge base is updated based on the fault closure-loop case data.

[0063] Specifically, if the manually flagged data indicates that the root cause data and maintenance plan are completely correct, the fault closure case data will be added to the maintenance knowledge base after expert review. If the manually flagged data indicates that the root cause data is incorrect, the fault closure case data will be added to the maintenance knowledge base as a new fault case, and the correct root cause and handling methods corresponding to the fault phenomenon in the maintenance knowledge base will be updated.

[0064] It should also be noted that after executing the maintenance actions in the maintenance plan, the actual billing data output by the billing center can be obtained. Subsequently, the estimated cost in the billing plan is compared with the actual billing data to calculate the cost deviation value. If the cost deviation value exceeds a preset deviation threshold, the billing plan, actual billing data, and cost deviation value are used as error samples and fed back to the fault diagnosis intelligent agent to optimize the accuracy of subsequent billing plan generation.

[0065] In summary, this application provides a billing scheme generation method based on intelligent agents. This application automates the entire process from fault evidence collection and root cause reasoning to operation and maintenance scheme generation. Furthermore, it automatically generates corresponding billing schemes based on the asset ownership information and billing rules involved in resource change actions within the operation and maintenance scheme. Therefore, this application, on the one hand, significantly shortens the fault location and operation and maintenance scheme formulation cycle by automatically calling tools to collect evidence data and perform fault propagation reasoning through intelligent agents, lowers the threshold for manual diagnosis, and improves the accuracy and timeliness of fault handling; on the other hand, by automatically matching asset ownership information and billing rules, an accurate billing scheme can be output synchronously after the operation and maintenance action is determined, effectively avoiding omissions and deviations caused by manual calculation, and improving the accuracy and efficiency of billing scheme generation.

[0066] See Figure 2 This figure is a schematic diagram of a billing scheme generation device based on an intelligent agent provided in an embodiment of this application. The intelligent agent-based billing scheme generation device 200 includes: Data acquisition module 201 is used to collect evidence data by calling tools through the fault diagnosis agent in response to fault diagnosis commands. The fault reasoning module 202 is used to perform fault propagation reasoning based on evidence data to determine the root cause data of the fault. The first generation module 203 is used to retrieve the operation and maintenance knowledge base based on the root cause data of the fault and generate an operation and maintenance plan. The second generation module 204 is used to determine resource change actions in the operation and maintenance plan, and generate a billing plan for the operation and maintenance plan based on the asset ownership information and billing rules of the assets corresponding to each resource change action.

[0067] In one specific implementation, the second generation module 204 is specifically used to: determine the operation content of each operation action in the operation and maintenance plan by parsing the operation and maintenance plan; if the operation content of the operation and maintenance action involves at least one of instance specification upgrade, horizontal expansion, disk expansion, resource shrinkage, adding resources and offline destruction, then the operation and maintenance action is determined to be a resource change action.

[0068] In one specific implementation, the first generation module 203 is specifically used to: retrieve the operation and maintenance knowledge base based on the root cause data of the fault and generate multiple candidate operation and maintenance solutions; The second generation module 204 is specifically used for: for each candidate operation and maintenance plan, determining the resource change actions in the candidate operation and maintenance plan, and generating candidate billing plans for the candidate operation and maintenance plan based on the asset ownership information and billing rules of the assets corresponding to each resource change action; comparing the estimated costs in each candidate billing plan, and generating billing suggestion data in order of estimated costs from low to high; the billing suggestion data is used to indicate the priority execution of the candidate operation and maintenance plan with the lower estimated cost.

[0069] In one specific implementation, the first generation module 203 is specifically used to: retrieve the operation and maintenance knowledge base based on the root cause data of the fault, and determine the matching set of operation and maintenance actions; determine the priority score of each operation and maintenance action in the set of operation and maintenance actions based on at least one preset sorting dimension among the operation and maintenance action type dimension, impact degree dimension, dependency relationship dimension and impact scope dimension; sort each operation and maintenance action in the set of operation and maintenance actions in descending order of priority score, and generate an operation and maintenance plan.

[0070] In one specific implementation, the agent-based billing scheme generation device 200 further includes: an alarm indication module; The alarm indication module is used to trigger an alarm indication if the operation and maintenance plan includes resource change actions and the estimated cost in the billing plan remains unchanged; and / or if the operation and maintenance plan only includes non-resource change actions and the estimated cost in the billing plan changes.

[0071] In one specific implementation, the evidence data includes an asset dependency topology diagram; the alarm indication module is also used to: if, based on the asset dependency topology diagram, it is determined that in each operation and maintenance action in the operation and maintenance plan, there is an operation and maintenance action whose impact scope covers unrelated business assets, then an alarm indication is triggered.

[0072] In one specific implementation, the alarm indication module is specifically used to: input the asset dependency topology graph into a pre-trained graph neural network model to obtain the topology embedding vector of each asset node in the asset dependency topology graph; for each operation and maintenance action in the operation and maintenance plan, determine the risk diffusion score of the operation and maintenance action based on the similarity between the topology embedding vector of the target asset node corresponding to the operation and maintenance action and the topology embedding vector of the adjacent asset nodes that have an adjacency relationship with the target asset node; if the risk diffusion score of the operation and maintenance action is greater than a preset score threshold, it is determined that the impact range of the operation and maintenance action covers unrelated business assets, and an alarm indication is triggered.

[0073] In summary, this application provides a billing scheme generation device based on an intelligent agent. This application automates the entire process from fault evidence collection and root cause reasoning to operation and maintenance scheme generation. Furthermore, it automatically generates corresponding billing schemes based on the asset ownership information and billing rules involved in resource change actions within the operation and maintenance scheme. Thus, this application, on the one hand, significantly shortens the fault location and operation and maintenance scheme development cycle by automatically calling tools to collect evidence data and perform fault propagation reasoning through an intelligent agent, lowering the threshold for manual diagnosis and improving the accuracy and timeliness of fault handling; on the other hand, by automatically matching asset ownership information and billing rules, an accurate billing scheme can be output synchronously after the operation and maintenance action is determined, effectively avoiding omissions and deviations caused by manual calculation and improving the accuracy and efficiency of billing scheme generation.

[0074] This application also provides a corresponding agent-based billing scheme generation device and a computer-readable medium for implementing the agent-based billing scheme generation method provided in this application.

[0075] The agent-based billing scheme generation device includes a memory and a processor. The memory is used to store instructions or code, and the processor is used to execute the instructions or code so that the device executes an agent-based billing scheme generation method according to any embodiment of this application.

[0076] See Figure 3 This figure is a schematic diagram of a computer-readable medium provided in an embodiment of this application. The computer-readable medium 300 stores a computer program 311, which, when executed by a processor, implements the above-described... Figure 1 The steps of the agent-based billing scheme generation method.

[0077] It should be noted that, in the context of this application, 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. Machine-readable media 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 (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0078] It should be noted that the machine-readable medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0079] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0080] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

[0081] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0082] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A method for generating a billing scheme based on intelligent agents, characterized in that, The method includes: In response to fault diagnosis commands, the fault diagnosis agent invokes toolsets to collect evidence data. Based on the evidence data, perform fault propagation reasoning to determine the root cause data of the fault; Based on the fault root cause data, retrieve the operation and maintenance knowledge base to generate an operation and maintenance plan; Identify the resource change actions in the operation and maintenance plan, and generate a billing plan for the operation and maintenance plan based on the asset ownership information and billing rules of the asset corresponding to each resource change action.

2. The method according to claim 1, characterized in that, The determination of resource change actions in the operation and maintenance plan includes: By analyzing the operation and maintenance plan, the operational content of each operation and maintenance action in the operation and maintenance plan is determined; If the operation content of the operation and maintenance action involves at least one of instance specification upgrade, horizontal expansion, disk expansion, resource reduction, adding resources, and offline destruction, then the operation and maintenance action is determined to be a resource change action.

3. The method according to claim 1, characterized in that, The step of retrieving the operation and maintenance knowledge base based on the fault root cause data and generating an operation and maintenance plan includes: Based on the fault root cause data, retrieve the operation and maintenance knowledge base to generate multiple candidate operation and maintenance solutions; The step of determining resource change actions in the operation and maintenance plan, and generating a billing plan for the operation and maintenance plan based on the asset ownership information and billing rules of the asset corresponding to each resource change action, includes: For each of the candidate operation and maintenance solutions, resource change actions in the candidate operation and maintenance solution are determined, and a candidate billing solution is generated based on the asset ownership information and billing rules of the asset corresponding to each resource change action. The estimated costs of each candidate billing scheme are compared, and billing recommendation data is generated in ascending order of estimated costs. The billing recommendation data is used to indicate which candidate operation and maintenance scheme with lower estimated costs should be prioritized.

4. The method according to claim 1, characterized in that, The step of retrieving the operation and maintenance knowledge base based on the fault root cause data and generating an operation and maintenance plan includes: The operation and maintenance knowledge base is retrieved based on the fault root cause data to determine the matching set of operation and maintenance actions; The priority score of each operation and maintenance action in the operation and maintenance action set is determined based on at least one preset sorting dimension among operation and maintenance action type dimension, impact degree dimension, dependency relationship dimension and impact scope dimension. The operation and maintenance actions in the set of operation and maintenance actions are sorted in descending order of priority score to generate an operation and maintenance plan.

5. The method according to claim 1, characterized in that, After executing the billing scheme that generates the operation and maintenance plan, the method further includes: If the operation and maintenance plan includes resource change actions and the estimated cost in the billing plan remains unchanged, an alarm indication will be triggered. And / or, if the operation and maintenance plan only includes non-resource change actions, and the estimated cost in the billing plan changes, then an alarm indication is triggered.

6. The method according to claim 1, characterized in that, The evidentiary data includes an asset dependency topology diagram; The method further includes: If, based on the asset dependency topology diagram, it is determined that in each operation and maintenance action of the operation and maintenance plan, there is an operation and maintenance action whose impact scope covers unrelated business assets, then an alarm indication is triggered.

7. The method according to claim 6, characterized in that, If, based on the asset dependency topology diagram, it is determined that in each operation and maintenance action of the operation and maintenance plan, the scope of influence of the operation and maintenance action covers unrelated business assets, then an alarm indication is triggered, including: The asset dependency topology graph is input into a pre-trained graph neural network model to obtain the topology embedding vector of each asset node in the asset dependency topology graph. For each operation and maintenance action in the operation and maintenance plan, the risk diffusion score of the operation and maintenance action is determined based on the similarity between the topology embedding vector of the target asset node corresponding to the operation and maintenance action and the topology embedding vector of the neighboring asset nodes that have an adjacency relationship with the target asset node. If the risk diffusion score of the operation and maintenance action is greater than the preset score threshold, it is determined that the impact scope of the operation and maintenance action covers unrelated business assets, and an alarm indication is triggered.

8. A billing scheme generation device based on intelligent agents, characterized in that, The device includes: The data acquisition module is used to respond to fault diagnosis commands and collect evidence data by calling the toolset through the fault diagnosis intelligent agent. The fault reasoning module is used to perform fault propagation reasoning based on the evidence data to determine the root cause data of the fault. The first generation module is used to retrieve the operation and maintenance knowledge base based on the fault root cause data and generate an operation and maintenance plan; The second generation module is used to determine the resource change actions in the operation and maintenance plan, and generate the billing plan of the operation and maintenance plan based on the asset ownership information and billing rules of the asset corresponding to each resource change action.

9. A billing scheme generation device based on intelligent agents, characterized in that, The device includes: a memory and a processor; The memory is used to store programs; The processor is configured to execute the program to implement each step of the agent-based billing scheme generation method as described in any one of claims 1 to 7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements each step of the agent-based billing scheme generation method as described in any one of claims 1 to 7.