A method and system for active verification of a heterogeneous cloud charging criterion

By creating billing probe resources in the test resource pool, performing resource retention and release operations, obtaining actual metering records and costs, and adjusting the resource retention duration, the problem of identifying billing discrepancies in heterogeneous cloud platforms is solved, and proactive verification and location of cost differences are achieved.

CN123185002APending Publication Date: 2026-11-27GUIZHOU-CLOUD BIG DATA IND DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611715381.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to proactively identify and verify differences in billing standards between heterogeneous cloud platforms in cloud computing, resulting in discrepancies between the costs generated by the unified billing engine and the actual costs of the underlying cloud platform, and making it difficult to distinguish the specific manifestations of these cost differences.

Method used

By creating billing probe resources in the test resource pool, performing resource retention and release operations according to the preset operation plan, obtaining the actual metering records and costs of the underlying cloud platform, calculating the expected costs using the unified billing engine, adjusting the resource retention duration to perform supplementary probe operations, comparing the relationship between actual costs and expected costs, and determining the differences in billing standards.

Benefits of technology

It enables proactive identification of differences in billing unit boundary responses and fixed cost offsets without affecting formal business resources, improving the ability to identify and locate differences in heterogeneous cloud billing standards, and providing a basis for billing rule configuration review and anomaly tracing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185002A_ABST
    Figure CN123185002A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of active check methods and systems of heterogeneous cloud charging caliber, it is related to cloud computing resource management and measurement and billing technical field.The application includes: obtaining the specification of target cloud product and the corresponding charging rule in unified charging engine, generates charging probe operation scheme;Through multi-cloud adaptation access engine, create the charging probe resource of corresponding specification in test resource pool, execute resource retention and release operation;Actual measurement record and actual cost generated by the underlying cloud platform for the charging probe resource are obtained;The corresponding expected cost is calculated using the unified charging engine;When actual cost and expected cost are inconsistent, adjust the resource retention duration in charging probe operation scheme, execute supplementary probe operation;According to the change relationship between actual cost and expected cost before and after supplementary probe operation, determine the charging caliber difference of target cloud product, and generate charging caliber check result.The application improves the checking capability of heterogeneous cloud unified charging rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing resource management and metering and billing technology, and in particular to an active verification method and system for heterogeneous cloud billing caliber. Background Technology

[0002] With the development of cloud computing technology, government cloud, industry cloud, and enterprise cloud platforms typically need to connect to multiple cloud environments from different vendors simultaneously. These different cloud environments differ in resource management interfaces, cloud product specifications, metering data formats, and billing rules. To achieve unified management of heterogeneous cloud resources, a multi-cloud adaptation access engine is typically used to convert resource operations and metering data from different cloud platforms into a unified format, and a unified billing engine generates charges according to pre-configured billing rules.

[0003] In practical applications, the billing rules adopted by the unified billing engine are typically derived from cloud product pricing configurations, tariff standard documents, or billing instructions provided by the underlying cloud platform. However, the actual billing behavior of cloud products may be affected by factors such as billing units, billing initiation conditions, resource release conditions, and fee processing methods. Even if the resource specifications and unit price configurations in the unified billing engine are correct, discrepancies may arise between the fees calculated by the unified billing engine and the fees actually generated by the underlying cloud platform due to inconsistencies in the understanding of the underlying cloud platform's actual billing standards.

[0004] Current technology typically determines whether there are cost discrepancies by comparing bills generated by a unified billing engine with those of the underlying cloud platform after cloud resources have been deployed and invoiced. When discrepancies are found, operations personnel then check resource usage records, pricing configurations, and billing rules. This approach relies heavily on actual business data and is unlikely to detect inconsistencies in billing methods before cloud products are officially deployed.

[0005] Furthermore, a single billing comparison typically only determines whether the actual cost matches the expected cost, making it difficult to further determine whether the cost difference is related to changes in cost at the billing unit boundary. For example, when the unified billing engine calculates costs according to the preset billing unit, the underlying cloud platform may use different billing unit processing methods, or other billing factors may exist that cause cost deviations. Based on a single billing result, it is difficult to distinguish the specific manifestations of cost differences.

[0006] Therefore, it is necessary to provide a method that can proactively construct the cloud resource usage process and verify the billing caliber of heterogeneous clouds by examining the cost changes under different resource retention durations. Summary of the Invention

[0007] This application provides an active verification method and system for heterogeneous cloud billing standards, which improves the verification capability of unified billing rules for heterogeneous clouds.

[0008] This application provides the following solution:

[0009] According to the first aspect, a proactive verification method for heterogeneous cloud billing caliber is provided, comprising: obtaining the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generating a billing probe operation scheme; creating a billing probe resource of the corresponding specifications in the test resource pool through a multi-cloud adaptation access engine, and performing resource retention and release operations according to the billing probe operation scheme; obtaining the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resource; calculating the corresponding expected cost using the unified billing engine according to the billing probe operation scheme; and adjusting the resource retention duration in the billing probe operation scheme and performing supplementary probe operations when the actual cost is inconsistent with the expected cost.

[0010] Based on the relationship between the actual and expected costs before and after the supplementary probe operation, the billing caliber differences of the target cloud product are determined, and billing caliber verification results are generated.

[0011] According to one achievable method in this application embodiment, the step of obtaining the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generating a billing probe operation plan, includes: identifying a cloud server billed according to usage duration as the target cloud product, and obtaining the number of CPU cores, memory capacity, and corresponding billing unit of the cloud server; determining a first retention period based on the billing unit, wherein the first retention period is less than the duration corresponding to one billing unit; generating a billing probe operation plan based on the number of CPU cores, memory capacity, first retention period, and the sequential execution order of cloud server creation, retention, and release; wherein the billing probe operation plan includes resource specifications, resource retention period, and operation order, and the resource retention period is the first retention period.

[0012] According to one achievable method in this application embodiment, the step of creating a billing probe resource of corresponding specifications in the test resource pool through a multi-cloud adaptation access engine, and performing resource retention and release operations according to the billing probe operation scheme, includes: sending a resource creation request to the target cloud platform through the multi-cloud adaptation access engine; recording the resource creation completion time when the billing probe resource is successfully created and reaches an available state; maintaining the billing probe resource in operation according to the resource retention duration in the billing probe operation scheme, and then sending a resource release request; recording the resource release completion time when the target cloud platform confirms the resource release is complete, and associating and saving the resource creation completion time, resource release completion time, and resource identifier.

[0013] According to one achievable method in this application embodiment, obtaining the actual metering record and actual cost generated by the underlying cloud platform for the billing probe resource includes: obtaining the corresponding actual metering record from the underlying cloud platform based on the resource identifier of the billing probe resource, wherein the actual metering record includes the metering start and end time and the actual metering duration; obtaining the corresponding cost details from the underlying cloud platform based on the resource identifier; and determining the actual cost generated by the billing probe resource during the metering start and end time from the cost details.

[0014] According to one achievable method in this application embodiment, the step of calculating the corresponding expected cost using a unified billing engine based on the billing probe operation scheme includes: obtaining resource specifications and resource retention duration from the billing probe operation scheme; inputting the resource specifications and resource retention duration into the unified billing engine; and using the unified billing engine to match the corresponding billing rules according to the resource specifications, and billing the resource retention duration according to the billing unit and unit price in the billing rules to obtain the expected cost.

[0015] According to one achievable method in this application embodiment, adjusting the resource retention duration in the billing probe operation scheme includes: based on the billing unit, taking the resource retention start time as the left boundary, determining the time that has passed the duration corresponding to one billing unit as the right boundary of the first billing unit interval; adjusting the first retention duration to a second retention duration, wherein the first retention duration is less than the duration corresponding to the first billing unit interval, and the second retention duration is greater than the duration corresponding to the first billing unit interval, so that the second billing probe operation completely covers the first billing unit interval and crosses its right boundary; keeping the resource specifications and billing rules unchanged, and generating a supplementary probe operation scheme based on the second retention duration.

[0016] According to one achievable method in an embodiment of this application, the execution of the supplementary probe operation includes: creating a supplementary probe resource with the same specifications as the previous billing probe resource in the test resource pool according to the supplementary probe operation scheme; releasing the supplementary probe resource after maintaining it for the second holding time; obtaining the actual metering record and actual cost corresponding to the supplementary probe resource, and calculating the corresponding expected cost using the unified billing engine; and associating and saving the actual cost and expected cost corresponding to the supplementary probe operation with the actual cost and expected cost corresponding to the previous billing probe operation.

[0017] According to one achievable method in this application embodiment, determining the billing caliber difference of the target cloud product based on the relationship between the changes in actual and expected costs before and after the supplementary probe operation includes: determining the actual cost and expected cost obtained by performing the billing probe operation using the first hold duration and the second hold duration, respectively; determining the change in actual cost based on the two actual costs, and determining the change in expected cost based on the two expected costs; when the change in actual cost is inconsistent with the change in expected cost, determining that there is a difference in the cost change relationship corresponding to the right boundary of the first billing unit interval, and determining it as a billing unit boundary response difference; when the change in actual cost is consistent with the change in expected cost, determining that the cost difference corresponding to the previous billing probe operation remains unchanged after the supplementary probe operation, and determining it as a fixed cost offset difference; and determining the billing caliber difference of the target cloud product based on the billing unit boundary response difference or the fixed cost offset difference.

[0018] According to one achievable method in this application embodiment, determining the billing scope difference of the target cloud product based on the billing unit boundary response difference or fixed cost offset difference includes: when it is determined to be a billing unit boundary response difference, associating the right boundary of the first billing unit interval, the actual cost change, and the expected cost change to form a billing unit boundary response difference record; when it is determined to be a fixed cost offset difference, associating the actual cost, the expected cost, and the difference between the two corresponding to the previous billing probe operation to form a fixed cost offset difference record; and determining the billing unit boundary response difference record or the fixed cost offset difference record as the billing scope difference of the target cloud product.

[0019] According to the second aspect, a proactive verification system for heterogeneous cloud billing calibers is provided, comprising: a scheme generation module, used to obtain the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generate a billing probe operation scheme; a probe operation module, used to create billing probe resources of corresponding specifications in the test resource pool through a multi-cloud adaptation access engine, and perform resource retention and release operations according to the billing probe operation scheme; an actual cost acquisition module, used to obtain the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources; an expected cost calculation module, used to calculate the corresponding expected cost using the unified billing engine according to the billing probe operation scheme; a supplementary probe module, used to adjust the resource retention duration in the billing probe operation scheme and perform supplementary probe operations when the actual cost is inconsistent with the expected cost; and a verification result generation module, used to determine the billing caliber difference of the target cloud product based on the change relationship between the actual cost and the expected cost before and after the supplementary probe operation, and generate a billing caliber verification result.

[0020] According to the specific embodiments provided in this application, the following technical effects are disclosed:

[0021] This invention proactively creates billing probe resources in a test resource pool and executes resource retention and release according to a preset operation plan. This allows for the acquisition of actual metering records and actual costs from the underlying cloud platform without affecting formal business resources. A unified billing engine calculates the corresponding expected costs, and when initial costs are inconsistent, the resource retention duration is adjusted to execute supplementary probe operations. By comparing the changes in actual and expected costs between the two probe operations, the invention further distinguishes between differences in billing unit boundary responses and fixed cost offsets, avoiding reliance solely on single bill amounts to determine billing anomalies. This method transforms billing verification from passive bill reconciliation to proactive and controllable resource operation verification, improving the ability to identify and locate differences in heterogeneous cloud billing standards. It provides a basis for billing rule configuration review, cloud product access acceptance, and billing anomaly tracing.

[0022] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments 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.

[0024] Figure 1 A flowchart illustrating the active verification method for heterogeneous cloud billing caliber provided in this application embodiment;

[0025] Figure 2 A schematic diagram illustrating the positional relationship between the first hold duration and the second hold duration relative to the first billing unit interval, provided for embodiments of this application;

[0026] Figure 3 A schematic diagram illustrating the process of determining and verifying billing caliber differences and generating verification results, provided in an embodiment of this application.

[0027] Figure 4 This is a structural block diagram of the active verification system for heterogeneous cloud billing caliber provided in the embodiments of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0029] Figure 1 A flowchart illustrating the active verification method for heterogeneous cloud billing caliber provided in this application embodiment. Figure 1 As shown, the method may include the following steps:

[0030] Step 101: Obtain the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generate a billing probe operation plan.

[0031] Step 102: Through the multi-cloud adaptation access engine, create billing probe resources of the corresponding specifications in the test resource pool, and perform resource retention and release operations according to the billing probe operation scheme.

[0032] Step 103: Obtain the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources.

[0033] Step 104: Calculate the corresponding expected cost using the unified billing engine according to the billing probe operation scheme.

[0034] Step 105: When the actual cost is inconsistent with the expected cost, adjust the resource retention time in the billing probe operation scheme and perform a supplementary probe operation.

[0035] Step 106: Based on the relationship between the actual cost and the expected cost before and after the supplementary probe operation, determine the billing caliber difference of the target cloud product and generate the billing caliber verification result.

[0036] As can be seen from the above process, this invention, by actively creating billing probe resources in the test resource pool and executing resource retention and release according to a preset operation plan, can obtain the actual metering records and actual costs of the underlying cloud platform without affecting formal business resources. It uses a unified billing engine to calculate the corresponding expected costs and adjusts the resource retention duration to execute supplementary probe operations when the initial costs are inconsistent. By comparing the changes in actual costs and expected costs between the two probe operations, it can further distinguish between differences in billing unit boundary responses and differences in fixed cost offsets, avoiding the judgment of billing anomalies based solely on a single bill amount. This method transforms billing verification from passive bill reconciliation to proactive and controllable resource operation verification, improving the ability to identify and locate differences in heterogeneous cloud billing standards, and providing a basis for billing rule configuration review, cloud product access acceptance, and billing anomaly tracing.

[0037] The following describes in detail each step of the above process and the effects that can be further produced, with reference to the embodiments.

[0038] Step 101 specifically involves: obtaining the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generating a billing probe operation plan.

[0039] The specifications of the target cloud product and the corresponding billing rules in the unified billing engine are obtained to generate a billing probe operation plan. This plan is mainly used to clarify the cloud product, resource configuration, and resource retention time to be tested before performing proactive billing verification, so that subsequent billing probe operations have a definite execution basis. In specific implementation, a cloud server billed by usage time can be selected as the target cloud product from the cloud product catalog already configured in the unified billing engine. Cloud servers billed by usage time are selected because their cost is directly related to the resource retention time, making it easy to observe the changes in actual cost and expected cost by changing the retention time. For cloud products billed by storage capacity, network traffic, or other usage, probe operations adapted to their billing methods can be adopted, but this implementation method preferably uses cloud servers billed by usage time.

[0040] After identifying the target cloud product, the number of CPU cores, memory capacity, and corresponding billing unit of the cloud server are obtained. The number of CPU cores and memory capacity are used to define the specific configuration of the billing probe resources, ensuring that the cloud servers subsequently created through the multi-cloud adaptation access engine correspond to the target resource specifications in the unified billing engine. For example, a cloud server with 2 CPU cores and 4GB of memory can be selected as the target cloud product. The billing unit is obtained from the billing rules corresponding to this resource specification in the unified billing engine, and it represents the time unit used by the billing rule when billing for resource usage duration, such as hourly or minute-based billing. The above resource specifications and billing units are derived from the already configured cloud products and billing rules, eliminating the need for constructing additional complex evaluation parameters.

[0041] The initial hold duration, determined based on the billing unit, is primarily used to ensure that the resource hold process of the first billing probe operation remains within the first billing unit interval, without completely covering that interval. In practice, a duration corresponding to a billing unit can be determined first, and then a first hold duration shorter than that can be selected. For example, when the duration corresponding to a billing unit is 60 minutes, the first hold duration can be set to 50 minutes. In this case, the resource hold time for the first billing probe operation is less than the duration corresponding to a billing unit, providing a basis for comparison when subsequent supplementary probe operations cross the right boundary of the first billing unit interval by increasing the hold duration. The specific value of the first hold duration can be determined based on the billing unit of the target cloud product and testing needs, and is not limited to 50 minutes.

[0042] After determining the number of CPU cores, memory capacity, and initial hold duration, a billing probe operation plan is generated based on the sequential execution order of cloud server creation, hold, and release. This operation order defines the lifecycle of the billing probe resource: first, a cloud server is created according to the specified resource specifications; after the cloud server reaches availability, it is held for the initial hold duration; and then the resource is released. By setting resource creation, hold, and release as a continuous process, this probe operation forms a resource usage process with a clear start and end point, facilitating the subsequent acquisition of actual metering records and actual charges generated by the underlying cloud platform for this resource.

[0043] The billing probe operation scheme includes resource specifications, resource retention duration, and operation sequence. Resource specifications, defined by the number of CPU cores and memory capacity, are used to create billing probe resources of the corresponding specifications. The resource retention duration, the first retention duration, controls the retention process of the billing probe resource from when it reaches an available state until the release operation is performed. The operation sequence controls the order in which cloud server creation, retention, and release occur. Through this approach, each element in the billing probe operation scheme has a clear subsequent purpose, providing a unified basis for resource creation, resource retention, resource release, and expected cost calculation, avoiding inconsistent resource specifications or retention durations across different operation stages.

[0044] Step 102 specifically involves: using the multi-cloud adaptation access engine, creating billing probe resources of the corresponding specifications in the test resource pool, and performing resource retention and release operations according to the billing probe operation scheme.

[0045] By leveraging the multi-cloud adaptation access engine, billing probe resources of corresponding specifications are created in the test resource pool. Resource retention and release operations are then performed according to the billing probe operation plan. This is primarily used to construct a cloud resource usage record with a clearly defined creation, retention, and release process, based on pre-determined resource specifications and retention duration. Performing these operations in the test resource pool distinguishes billing probe resources from formal business resources, preventing the proactive verification process from impacting normal business operations. Simultaneously, it provides the corresponding resource operation basis for subsequently obtaining actual metering records, actual costs, and calculating expected costs.

[0046] In practice, the cloud management platform first obtains the resource specifications from the billing probe operation plan and then sends a resource creation request to the target cloud platform through the multi-cloud adaptation access engine. The resource creation request may include the cloud server specifications recognizable by the target cloud platform, the resource pool identifier, and other necessary configurations required for creation. The multi-cloud adaptation access engine converts the unified resource creation request into a corresponding cloud platform interface request based on the target cloud platform's interface requirements, enabling different cloud platforms to create resources according to the same billing probe operation plan. For example, when the resource specifications in the billing probe operation plan are 2-core CPU and 4GB memory, the multi-cloud adaptation access engine requests the creation of a cloud server with the corresponding specifications from the target cloud platform.

[0047] After sending a resource creation request, the cloud management platform does not directly use the successful request sending time as the resource creation completion time. Instead, it determines whether the billing probe resource has been successfully created and reached a usable state based on the creation result and resource status returned by the target cloud platform. For cloud platforms using asynchronous creation, after receiving the creation request acceptance result, the platform can continue to obtain the status of the billing probe resource through the resource status query interface until it is confirmed that it has reached a usable state. The usable state can be the state where the cloud server has completed creation and can normally provide computing resources. After confirming that it has reached a usable state, the resource creation completion time is recorded and associated with the resource identifier returned by the target cloud platform.

[0048] The resource identifier is used to uniquely identify the billing probe resource created in this instance within the target cloud platform. It can be the instance ID returned by the target cloud platform or other unique identifiers. By saving the resource identifier, the resource corresponding to this billing probe operation can be accurately located during subsequent resource release, metering record query, and fee detail query processes, preventing the metering fees of other test resources or official business resources from being mixed into this verification.

[0049] After the billing probe resource reaches an available state, it is kept running according to the resource retention duration specified in the billing probe operation plan. This resource retention duration is the aforementioned first retention duration, used to control the retention process of the billing probe resource. For example, when the first retention duration is 50 minutes, timing can begin after confirming the cloud server has reached an available state, and a resource release request can be sent after 50 minutes. During the retention process, it is preferable not to perform upgrades, downgrades, migrations, or other operations that may change the resource specifications and billing status of the billing probe resource, so that the current probe operation is primarily affected by the resource specifications and retention duration.

[0050] Once the resource has been held for the duration specified in the billing probe operation plan, the cloud management platform sends a resource release request to the target cloud platform through the multi-cloud adaptation access engine. The multi-cloud adaptation access engine converts the unified resource release request into a corresponding cloud platform interface request based on the target cloud platform's interface requirements, using the resource identifier as the basis for identifying the release object. This ensures that the release operation applies only to the billing probe resource created in this instance, and not to other resources.

[0051] After sending a resource release request, the cloud management platform confirms whether the resource has been released successfully based on the release result returned by the target cloud platform. For cloud platforms using asynchronous release, the status of the corresponding resource can be queried until the target cloud platform confirms that the resource release is complete. After confirmation, the resource release completion time is recorded. The release request sending time is not directly used as the resource release completion time because different cloud platforms may have a time difference between the acceptance of the release request and the actual completion of the resource release. Directly using the request sending time may lead to inconsistencies between the subsequent metering time range and the actual resource status.

[0052] Finally, the resource creation completion time, resource release completion time, and resource identifier are associated and saved to form an operation record for the corresponding billing probe resource. This operation record can be further associated with the billing probe operation plan and the target cloud platform identifier, so that actual metering records and cost details can be obtained based on the resource identifier, and expected costs can be calculated according to the billing probe operation plan. Through this associated saving method, a clear correspondence can be established between resource creation, maintenance, release, and billing data, providing a traceable data foundation for subsequent billing caliber verification.

[0053] Step 103 specifically involves obtaining the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources.

[0054] Obtaining the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources is primarily used to obtain the actual metering data and cost results generated by the underlying cloud platform for this billing probe operation. This provides a basis for subsequent comparison with the expected costs calculated by the unified billing engine. The actual metering records and actual costs here originate from the underlying cloud platform, rather than being generated automatically by the unified billing engine based on the billing probe operation plan, thus enabling them to serve as independent comparison objects.

[0055] In practice, after the billing probe resource completes its creation, maintenance, and release operations, the corresponding actual metering record is retrieved from the underlying cloud platform based on the resource identifier saved during the aforementioned resource operations. The resource identifier can be the cloud server instance ID returned by the target cloud platform, used to establish a correspondence between this billing probe operation and the metering data in the underlying cloud platform. For example, the cloud management platform can use a multi-cloud adaptation access engine to call the metering data query interface of the target cloud platform and use the resource identifier as a query condition to obtain the actual metering record generated by the resource during this probe operation.

[0056] The actual metering record includes the metering start and end times and the actual metering duration. The metering start and end times represent the time range within which the underlying cloud platform meters the billing probe resources, while the actual metering duration represents the resource usage duration recorded by the underlying cloud platform. The actual metering duration can be directly returned by the underlying cloud platform, or it can be determined based on the time interval between the metering start and end times provided by the underlying cloud platform. If the underlying cloud platform splits a single resource usage process into multiple metering records, the corresponding record can be retrieved based on the resource identifier and metering time range, and the actual metering duration corresponding to this probe operation can be determined according to the underlying cloud platform's metering standards.

[0057] It should be noted that the start and end times of metering in the actual metering records are not necessarily completely consistent with the resource creation completion time and resource release completion time mentioned above. The resource creation completion time and resource release completion time are used to record the resource operation process, while the metering start and end times reflect the actual metering time range adopted by the underlying cloud platform. For example, a cloud platform may start metering after the resource reaches a specific operating state, or it may determine the metering termination time according to its own rules during the resource release process. Therefore, this implementation retains the actual metering start and end times returned by the underlying cloud platform and does not directly use the resource creation completion time and resource release completion time to replace the actual metering records, so as to facilitate subsequent verification of billing standards.

[0058] After obtaining the actual metering record, the corresponding cost details are retrieved from the underlying cloud platform based on the resource identifier. These cost details are cost data generated by the underlying cloud platform according to its actual billing rules, and may include the resource identifier, billing time range, billing item, and cost amount. In practice, the cost details corresponding to the current billing probe resource can be obtained by calling the target cloud platform's cost query interface through the multi-cloud adaptation access engine. If the underlying cloud platform uses asynchronous billing, the cost details can be retrieved after they are generated to avoid mistakenly identifying zero costs when cost details have not yet been generated.

[0059] Subsequently, the actual costs incurred by the billing probe resources within the stated metering start and end time are determined from the cost details. Specifically, the cost items in the cost details corresponding to this probe operation are matched based on the resource identifier and metering start and end time, and the corresponding cost amount is extracted. For cases where a single probe operation corresponds to multiple cost details, the costs within the current metering time range can be determined according to the cost detail structure of the underlying cloud platform, and the cost amounts that need to be merged are summarized to obtain the actual cost of this billing probe operation.

[0060] For example, a cloud server identified by a billing probe is instance A. The underlying cloud platform returns a metering record showing that its metering time is from 10:00 to 10:50, with an actual metering duration of 50 minutes. The cloud management platform can obtain the corresponding fee details based on instance A's resource identifier and calculate the resource fee for the cloud server within that metering time range. If the fee details show a corresponding fee of 2 yuan, then 2 yuan will be used as the actual fee for this billing probe operation. This value is only an example to illustrate the acquisition process; in actual implementation, the fee details returned by the underlying cloud platform should prevail.

[0061] In this way, the actual metering records clarify what resource usage processes the underlying cloud platform recorded, while the cost details clarify how much cost the underlying cloud platform actually generated for that usage process. These two correspond to different data objects. Subsequently, the unified billing engine can independently calculate the expected cost based on the billing probe operation plan, and then compare the expected cost with the actual cost obtained in this step to determine whether there are any differences in billing standards between the unified billing engine and the underlying cloud platform.

[0062] Step 104 specifically involves: calculating the corresponding expected cost using the unified billing engine based on the billing probe operation scheme.

[0063] According to the billing probe operation plan, the corresponding expected cost is calculated using the unified billing engine. This is primarily used to independently bill the current billing probe operation according to the billing rules currently configured on the cloud management platform, resulting in an expected cost that can be compared with the actual cost on the underlying cloud platform. Unlike the actual cost mentioned above, which comes directly from the underlying cloud platform, the expected cost in this step is calculated by the unified billing engine based on the billing probe operation plan, thus forming two independent cost results. This provides a basis for subsequent judgments on whether the billing standards are consistent.

[0064] In practice, the resource specifications and retention duration are first obtained from the billing probe operation plan. The resource specifications are the cloud server configuration determined when the billing probe operation plan is generated, including the number of CPU cores and memory capacity; the resource retention duration is the first retention duration specified in the billing probe operation plan. For example, the billing probe operation plan may include a resource specification of 2 CPU cores and 4GB of memory, and a resource retention duration of 50 minutes. By directly obtaining the above data from the billing probe operation plan, it can be ensured that the resource specifications and retention duration used for the expected cost calculation are consistent with the planned content of this probe operation, avoiding inconsistencies in the calculation basis caused by reselecting resource specifications or retention duration.

[0065] After obtaining the resource specifications and retention duration, these parameters are input into the unified billing engine. Specifically, the cloud management platform can organize the CPU core count, memory capacity, and resource retention duration into a billing request that the unified billing engine can recognize, and submit it through the corresponding billing interface. Upon receiving the billing request, the unified billing engine searches for the corresponding cloud product billing configuration based on the resource specifications. For situations where different cloud platforms have the same CPU core count and memory capacity but different prices, the corresponding billing rules can be determined by combining the target cloud platform to which the billing probe operation scheme belongs, avoiding the use of other cloud platform pricing configurations for this expected cost calculation.

[0066] Matching billing rules based on resource specifications means that the unified billing engine determines the applicable rule from a pre-saved list of billing rules based on the resource configuration of the target cloud product. The billing rule may include the billing unit, unit price, and corresponding billing unit processing method. For example, for a cloud server with 2 CPU cores and 4GB of memory, the hourly billing rule corresponding to that specification can be matched. If the unified billing engine has different billing rules configured for different cloud platforms, different resource specifications, or different tariff versions, the rule corresponding to this billing probe operation should be selected, and arbitrary matching from all cloud platform rules should not be performed solely based on the number of CPU cores and memory capacity.

[0067] After determining the corresponding billing rules, the unified billing engine calculates the resource retention duration according to the billing unit and unit price specified in the billing rules. In practice, the billable usage for this probe operation can be determined first based on the resource retention duration and billing unit, and then the cost can be calculated according to the unit price. For rules that stipulate billing for less than one billing unit as one billing unit, the resource retention duration can be billed according to this rule; for rules that bill continuously based on actual usage time, the calculation is performed according to the corresponding actual usage time billing method. All of the above processing is based on the billing rules already configured in the unified billing engine, without the need to introduce new billing parameters or change existing billing rules.

[0068] For example, the billing rules for a target cloud server stipulate hourly billing at a unit price of 2 yuan per hour, with any fraction of an hour billed as a full hour. When the resource retention time in the billing probe operation scheme is 50 minutes, the unified billing engine determines the corresponding billable usage as 1 hour based on this rule and calculates the expected cost of 2 yuan. When the resource retention time is 70 minutes, if the corresponding rule stipulates that usage exceeding 1 hour but less than 2 hours is billed as 2 hours, the unified billing engine calculates the expected cost of 4 yuan. The above values ​​are only for illustrating the billing process; in actual implementation, calculations should be performed according to the billing rules corresponding to the target cloud product.

[0069] Finally, the cost calculated by the unified billing engine is determined as the expected cost of this billing probe operation, and it is associated with and saved in relation to the corresponding billing probe operation plan. The expected cost represents the cost calculated by the unified billing engine according to the currently configured billing rules for this resource retention process; it does not pre-determine that it necessarily equals the actual cost of the underlying cloud platform. Subsequently, this expected cost can be compared with the actual cost returned by the underlying cloud platform. If the two are inconsistent, a supplementary probe operation is executed by adjusting the resource retention duration to further determine the corresponding billing discrepancies.

[0070] Step 105 specifically involves: when the actual cost differs from the expected cost, adjusting the resource retention time in the billing probe operation scheme and performing a supplementary probe operation.

[0071] When the actual cost differs from the expected cost, the resource retention period in the billing probe operation scheme is adjusted, and a supplementary probe operation is performed. This is mainly used to construct a second resource usage process by changing the resource retention period after the initial billing probe operation has already detected a cost difference, in order to further observe whether the actual cost of the underlying cloud platform and the expected cost of the unified billing engine change in the same way. Compared with judging billing anomalies solely based on the difference between the initial actual cost and the expected cost, this implementation provides a comparative basis for subsequently determining differences in billing unit boundary response or fixed cost offsets through two probe operations with a clear time relationship.

[0072] Figure 2This diagram illustrates the positional relationship between the first and second hold durations relative to the first billing unit interval, as provided in this embodiment. In practice, the actual cost and expected cost corresponding to the previous billing probe operation are first compared. When they match, the corresponding billing caliber verification result can be directly generated without performing supplementary probe operations; when they do not match, the billing unit interval requiring further testing is determined based on the billing unit used in the previous billing probe operation. Here, the actual cost originates from the cost details generated by the underlying cloud platform, and the expected cost is calculated by the unified billing engine based on the billing probe operation scheme and corresponding billing rules. These represent the actual billing result of the underlying cloud platform and the expected billing result of the unified billing engine, respectively.

[0073] The left and right boundaries of the first billing unit interval are determined based on the billing unit, primarily to establish a clear temporal relationship between two consecutive probe operations. Specifically, the start time of resource retention is used as the left boundary of the first billing unit interval. Then, based on the corresponding billing unit in the unified billing engine, the duration corresponding to one billing unit is determined. The time after the left boundary has passed this duration is determined as the right boundary of the first billing unit interval. Thus, the first billing unit interval is the time range from the start time of resource retention to the time after the duration corresponding to one billing unit.

[0074] For example, when the billing unit corresponding to the target cloud server in the unified billing engine is 60 minutes, the resource hold start time can be set as 0 minutes, and the time after 60 minutes can be determined as the right boundary of the first billing unit interval. In this case, the first billing unit interval is from 0 minutes to 60 minutes. The left and right boundaries here are determined based on the billing units already configured in the unified billing engine, and belong to the expected billing interval used in this verification. It is not assumed in advance that the underlying cloud platform actually uses the same billing unit or billing boundary. This application determines whether the actual billing behavior of the underlying cloud platform corresponds to this expected billing interval by comparing subsequent cost changes.

[0075] After determining the first billing unit interval, the first hold duration is adjusted to the second hold duration. Since the first hold duration is shorter than the duration corresponding to the first billing unit interval, the previous billing probe operation ended before the right boundary of the first billing unit interval, failing to fully cover it. The second hold duration is then set to be longer than the duration corresponding to the first billing unit interval, ensuring that the second billing probe operation fully covers the first billing unit interval from the start of resource hold and continues beyond the right boundary of that interval. Through these adjustments, the two probe operations respectively establish a time relationship of incomplete coverage and complete coverage of the first billing unit interval.

[0076] For example, if a billing unit corresponds to a duration of 60 minutes, and the first hold duration is 50 minutes, the second hold duration can be set to 70 minutes. The first probe operation ends after 50 minutes, before reaching the right boundary of the first billing unit interval; the second probe operation ends after 70 minutes, completely covering the first billing unit interval from 0 minutes to 60 minutes, and crossing its right boundary. 50 minutes and 70 minutes are merely examples illustrating the relationship between the two hold durations. In actual implementation, other durations can be chosen based on the billing unit of the target cloud product and testing needs, as long as the above time relationship is achieved.

[0077] It should be noted that "crossing the right boundary" in this implementation means that the end time of the second resource holding process is later than the right boundary of the first billing unit interval, not that the resource holding duration is only to the right of a certain point in time. The second probe operation lasts from the start of the resource holding until the end of the second holding duration, therefore its holding process already includes the complete first billing unit interval. For rules using discrete billing methods such as billing less than one billing unit as one billing unit, the above time relationship allows the two probe operations to be located on both sides of the expected billing unit change position, making it easier to observe whether the actual cost changes accordingly. For rules using continuous duration billing, the expected cost should be calculated according to its actual billing rules, and the cost should not be assumed to have changed abruptly simply because the holding duration crosses a certain point in time.

[0078] During the adjustment of resource retention time, the resource specifications and billing rules remain unchanged, primarily to reduce the impact of other factors on the comparison of costs between the two operations. In practice, the supplementary probe operation continues to use the same number of CPU cores, memory capacity, and corresponding billing rules as the previous billing probe operation, without performing any upgrades, downgrades, or other operations that might change the billing specifications. For situations where different tariff versions exist within the unified billing engine, it is preferable to use the same billing rule version for both probe operations to avoid misinterpreting cost differences caused by price version changes as differences caused by changes in resource retention time.

[0079] After determining the second hold duration, a supplementary probe operation plan is generated based on the second hold duration. The supplementary probe operation plan can retain the resource specifications and operation sequence from the previous billing probe operation plan, but adjusts the resource hold duration from the first hold duration to the second hold duration. Thus, the supplementary probe operation plan still includes resource specifications, resource hold duration, and operation sequence, where the resource hold duration is the second hold duration, and the operation sequence remains the same: sequentially creating, holding, and releasing the cloud server. In this way, the two probe operations can have the same resource configuration and operation process, with only a predetermined difference in the resource hold duration.

[0080] According to the supplementary probe operation plan, a supplementary probe resource with the same specifications as the previous billing probe resource is created in the test resource pool. This is mainly used to execute a second independent resource usage process according to the adjusted resource retention duration. In practice, the cloud management platform obtains the resource specifications from the supplementary probe operation plan, sends a resource creation request to the target cloud platform through the multi-cloud adaptation access engine, and creates a cloud server with the corresponding specifications in the test resource pool. For example, if the previous billing probe resource was a cloud server with 2 CPU cores and 4GB of memory, the supplementary probe resource will also use the specifications of 2 CPU cores and 4GB of memory to ensure consistent resource configuration between the two probe operations.

[0081] After the supplementary probe resource is successfully created and reaches an available state, it is kept running for the second retention period, and a resource release request is sent after the retention process ends. When the target cloud platform confirms that the resource release is complete, the corresponding resource identifier, resource creation completion time, and resource release completion time are recorded. For cloud platforms using asynchronous creation or asynchronous release interfaces, the creation or release can be confirmed through resource status queries, avoiding directly using the time when the interface request was successfully sent as the actual resource creation or release completion time. The above operation method is consistent with the previous billing probe operation, enabling the two probe operations to form a comparable resource usage process.

[0082] In practice, supplementary probe resources can be newly created independent cloud servers, rather than continuing to use previously released billing probe resources. This avoids the resource status, historical metering records, or billing cycle continuation relationships resulting from the restoration of resources after the previous release affecting the second probe operation. The previous billing probe resources and supplementary probe resources each have their own resource identifiers, and corresponding resource operation records are stored separately to ensure accurate retrieval of their respective actual metering records and cost details later.

[0083] The process involves obtaining the actual metering records and actual costs corresponding to the supplementary probe resources, and then using the unified billing engine to calculate the corresponding expected costs. This is primarily used to obtain two independent cost results for the second probe operation. Specifically, based on the resource identifier of the supplementary probe resources, the corresponding actual metering records are obtained from the underlying cloud platform. These records include the start and end times of the metering and the actual metering duration. Then, based on the resource identifier, the corresponding cost details are obtained to determine the actual costs incurred by this supplementary probe operation within the corresponding metering time range. The actual costs should be based on the cost details generated by the underlying cloud platform and should not be replaced by calculations performed by the unified billing engine.

[0084] Simultaneously, the resource specifications and second hold duration are obtained from the supplementary probe operation plan and input into the unified billing engine. The unified billing engine matches the corresponding billing rules according to the resource specifications and bills the second hold duration according to the billing unit and unit price in the billing rules to obtain the expected cost corresponding to the supplementary probe operation. Since the supplementary probe operation uses the same resource specifications and billing rules as the previous billed probe operation, the change between the two expected costs mainly corresponds to the change caused by the resource hold duration being adjusted from the first hold duration to the second hold duration.

[0085] For example, a hypothetical billing rule stipulates hourly billing at a unit price of 2 yuan per hour, with any fraction of an hour charged as a full hour. When the first hold duration is 50 minutes and the second hold duration is 70 minutes, the unified billing engine can calculate expected costs of 2 yuan and 4 yuan respectively. The actual costs generated by the underlying cloud platform for the two probe operations are obtained from the corresponding cost details. The above example is only for illustrating the calculation process of the two expected costs; the actual costs from the underlying cloud platform should be based on its actual returned cost details and cannot be inferred from the expected costs.

[0086] Finally, the actual and expected costs corresponding to the supplementary probe operation are associated and saved with those corresponding to the previous billing probe operation. In practice, separate operation records can be created for the previous billing probe operation and the supplementary probe operation, and these two records can be associated using the same verification task identifier. Each operation record can save the corresponding resource identifier, resource specifications, resource retention duration, actual metering record, actual cost, and expected cost. By saving these records in association, the cost data for the two probe operations can be clearly distinguished, avoiding confusion between metering records or cost details for different resources.

[0087] Based on the aforementioned relationships, the actual and expected costs of the first and second probe operations can be directly obtained, and the changes in actual and expected costs between the two operations can be calculated. Since the two probe operations use the same resource specifications and billing rules, and the second hold duration fully covers the first billing unit interval and extends beyond its right boundary, the relationship between the two cost changes can be used to further determine whether the actual cost changes of the underlying cloud platform are consistent with the expected cost changes of the unified billing engine. This provides a data foundation for subsequently determining differences in billing unit boundary response or fixed cost offsets.

[0088] Step 106 specifically involves: determining the billing caliber difference of the target cloud product based on the relationship between the actual cost and the expected cost before and after the supplementary probe operation, and generating the billing caliber verification result.

[0089] Based on the relationship between actual and expected costs before and after the supplementary probe operation, the billing discrepancies of the target cloud product are determined. This is primarily used to further analyze whether the cost difference changes after changes in resource retention duration, especially when the previous billing probe operation already revealed inconsistencies between actual and expected costs. Unlike simply comparing a single actual and expected cost, this implementation utilizes the cost change relationship formed by two probe operations to determine the differences between the underlying cloud platform's actual billing behavior and the unified billing engine's expected billing behavior, thus providing a more specific basis for subsequent billing rule review.

[0090] In practice, the actual and expected costs of performing billing probe operations using the first and second hold durations are first determined. The first billing probe operation uses the first hold duration; its actual cost comes from the cost details generated by the underlying cloud platform for the previous billing probe resource, while the expected cost is calculated by the unified billing engine based on the previous billing probe operation plan. The second billing probe operation uses the second hold duration; its actual cost comes from the cost details generated by the underlying cloud platform for the supplementary probe resource, while the expected cost is calculated by the unified billing engine based on the supplementary probe operation plan. By linking and saving the aforementioned operation records, the actual and expected costs for each probe operation can be accurately obtained, avoiding data confusion between different resources or different billing processes.

[0091] After obtaining the above four cost results, the actual cost change is determined based on the two actual costs, and the expected cost change is determined based on the two expected costs. Specifically, the actual cost of the second billing probe operation is subtracted from the actual cost of the first billing probe operation to obtain the actual cost change; the expected cost of the second billing probe operation is subtracted from the expected cost of the first billing probe operation to obtain the expected cost change. Through the above processing, the cost comparison between the two probe operations can be transformed into a comparison between cost changes, allowing subsequent judgments to focus on whether the costs of the underlying cloud platform and the unified billing engine change in the same way after the resource retention period is adjusted from the first retention period to the second retention period.

[0092] For example, in a hypothetical billing rule, the unified billing engine stipulates hourly billing at a unit price of 2 yuan per hour, with any fraction of an hour billed as a full hour. The first probe operation lasts 50 minutes, with an expected cost of 2 yuan; the second probe operation lasts 70 minutes, with an expected cost of 4 yuan. Therefore, the expected cost change is 2 yuan. If the underlying cloud platform generates actual costs of 2.5 yuan and 3 yuan for the two probe operations respectively, the actual cost change is 0.5 yuan, which differs from the expected cost change of 2 yuan. The above figures are only for illustrating the calculation method of cost change; in actual implementation, the actual cost details returned by the underlying cloud platform should prevail.

[0093] When the actual cost change differs from the expected cost change, a discrepancy is identified in the cost change relationship corresponding to the right boundary of the first billing unit interval, and this discrepancy is defined as a billing unit boundary response difference. This judgment is based on the fact that the first hold duration used in the previous billing probe operation was shorter than the duration corresponding to the first billing unit interval, while the second hold duration used in the supplementary probe operation was longer than the duration corresponding to that interval, ensuring that the second probe operation fully covered the first billing unit interval and crossed its right boundary. With resource specifications and billing rules remaining unchanged, the unified billing engine can calculate the corresponding expected cost change based on the aforementioned hold duration change. If the actual cost change on the underlying cloud platform is inconsistent with this, it indicates a difference in the cost change relationship between the two during this test crossing the expected right boundary of the billing unit.

[0094] It should be noted that the billing unit boundary response difference is used to characterize the inconsistency in cost changes observed in this probe operation, and does not directly indicate that the actual billing unit used by the underlying cloud platform has been determined, nor does it directly assume that the billing unit boundaries of the underlying cloud platforms are necessarily different. For example, insufficient actual cost changes may be related to different billing unit processing methods used by the underlying cloud platform, or it may be related to other billing factors in the cost details. Therefore, this implementation defines it as a billing unit boundary response difference, rather than directly defining it as an error in a specific billing rule, so that the verification results are consistent with what can be proven by actual testing.

[0095] When the actual cost change matches the expected cost change, since this supplementary probe operation was triggered under the condition that the previous actual cost and expected cost were inconsistent, it can be further determined whether the cost difference corresponding to the previous billing probe operation remains unchanged after the supplementary probe operation. Specifically, if the increase in the second actual cost relative to the first actual cost is the same as the increase in the second expected cost relative to the first expected cost, then the difference between the second actual cost and the expected cost must be the same as the difference between the first actual cost and the expected cost. Therefore, it can be determined that the cost difference corresponding to the previous billing probe operation remains unchanged after the supplementary probe operation, and it can be identified as a fixed cost offset difference.

[0096] For example, the expected cost of the first probe operation is 2 yuan, and the actual cost is 2.5 yuan; the expected cost of the second probe operation is 4 yuan, and the actual cost is 4.5 yuan. In this case, the change in actual cost is 2 yuan, and the change in expected cost is also 2 yuan, but both actual costs exceed the corresponding expected costs by 0.5 yuan. Therefore, it can be determined that the previous cost difference remains unchanged after the supplementary probe operation, and this can be identified as a fixed cost offset difference. This fixed cost offset difference refers to the fact that the actual cost and the expected cost maintain the same cost offset in these two probe operations. It does not mean that the underlying cloud platform necessarily sets a fixed additional cost, nor does it mean that this offset remains unchanged across all resource hold periods.

[0097] Using the two judgment methods described above, the initial discovered cost discrepancies can be further categorized into different manifestations. When the actual cost change differs from the expected cost change, the focus is on the inconsistent cost response after crossing the right boundary of the expected billing unit. When the changes are the same but the initial cost difference still exists, the focus is on the consistent cost change relationship while the cost result maintains a fixed offset. Therefore, subsequent billing rule reviews can focus on the billing unit processing method, cost composition, or other factors that may affect the billing result based on different manifestations of the discrepancy, rather than conducting a general investigation based solely on the initial billing difference.

[0098] Based on differences in billing unit boundary responses or fixed cost offsets, the billing scope differences for the target cloud product are determined. This is primarily used to establish a correlation between the aforementioned difference types and the corresponding original cost data and billing unit intervals, forming difference records that reflect the current verification process. The billing scope differences do not refer to just a single cost difference, but rather include records of the difference type and its corresponding billing location, cost change relationship, or cost offset. This approach ensures that billing scope differences have a clear data source and specific manifestation, facilitating subsequent viewing, verification, and traceability.

[0099] When a billing unit boundary response difference is identified, the right boundary of the first billing unit interval, the actual cost change, and the expected cost change are correlated to form a billing unit boundary response difference record. The right boundary of the first billing unit interval represents the expected billing location crossed by this supplementary probe operation; the actual cost change represents the cost change generated by the underlying cloud platform between the two probe operations; and the expected cost change represents the cost change calculated by the unified billing engine according to the corresponding billing rules. By correlating the above information, it is possible to clearly record where the expected billing unit boundary is formed during this verification, and the changes in actual and expected costs before and after that boundary.

[0100] For example, the right boundary of the first billing unit interval is 60 minutes after the resource hold begins. The first hold lasts for 50 minutes, and the second hold lasts for 70 minutes. The actual cost change is 0.5 yuan, and the expected cost change is 2 yuan. In this case, the right boundary corresponding to 60 minutes, the actual cost change of 0.5 yuan, and the expected cost change of 2 yuan can be correlated to form a billing unit boundary response difference record. This record shows that in this probe operation adjusting from 50 minutes to 70 minutes, the actual cost change of the underlying cloud platform is inconsistent with the cost change predicted by the unified billing engine, without needing to directly infer which billing unit the underlying cloud platform actually uses.

[0101] When a fixed cost offset difference is identified, the actual cost, expected cost, and the difference between the two corresponding to the previous billing probe operation are associated to form a fixed cost offset difference record. Specifically, the first actual cost is subtracted from the first expected cost to obtain the corresponding cost difference, which is then associated with and saved with the previous actual cost and expected cost. Since the aforementioned judgment has determined that the changes in actual costs and expected costs are consistent, this difference can represent the cost offset that remains unchanged between the two probe operations.

[0102] For example, the first actual cost is 2.5 yuan, and the expected cost is 2 yuan, with a difference of 0.5 yuan. The second actual cost is 4.5 yuan, and the expected cost is 4 yuan, with another difference of 0.5 yuan. In this case, the first actual cost of 2.5 yuan, the expected cost of 2 yuan, and the difference of 0.5 yuan can be associated to form a fixed cost offset difference record. This record is used to indicate the cost offset between the two probe operations, rather than directly identifying the 0.5 yuan as a fixed surcharge charged by the underlying cloud platform.

[0103] Finally, the billing unit boundary response difference record or fixed cost offset difference record is identified as the billing caliber difference for the target cloud product. In practice, the corresponding difference record can be associated and saved with the target cloud platform, target cloud product, resource specification, and billing rule identifier, enabling subsequent queries of the corresponding billing caliber difference based on the target cloud product. For billing unit boundary response differences, the difference record primarily reflects inconsistencies in cost changes at and before the expected right boundary of the billing unit; for fixed cost offset differences, the difference record primarily reflects the offset between the actual cost and the expected cost remaining unchanged during the two probe operations. Thus, the billing caliber difference can be formed in the form of specific difference records, rather than simply outputting an abstract anomaly judgment or a single cost difference.

[0104] The billing caliber verification result is generated primarily to summarize the cost comparison results and billing caliber differences from the aforementioned billing probe operations, forming result data that reflects the billing verification status of the target cloud product. The billing caliber verification result may include the target cloud platform, target cloud product, resource specification, billing rule identifier, verification task identifier, verification status, and corresponding billing caliber difference records. By associating the above information, it can be clearly identified which cloud platform, cloud product, and billing rule this verification targets, facilitating subsequent querying and traceability.

[0105] Figure 3 This diagram illustrates the process of determining and generating verification results for billing caliber differences, as provided in this application's embodiments. In specific implementation, when the actual cost and expected cost corresponding to the initial billing probe operation are consistent, a verification result indicating consistent billing caliber can be generated, and the corresponding resource specifications, resource retention duration, actual cost, and expected cost can be associated and saved. At this point, the verification result indicates that the underlying cloud platform and the unified billing engine have consistent cost results under the resource specifications and retention duration corresponding to this probe operation, and no further supplementary probe operations are required. It should be noted that consistent cost in a single instance does not mean that the target cloud product has no differences under all billing conditions, but rather that the billing results are consistent under the current test conditions.

[0106] When the initial actual cost differs from the expected cost, and a discrepancy in the billing unit boundary response is confirmed after supplementary probe operations, a verification result for the billing unit boundary response anomaly can be generated. This verification result is associated with the aforementioned billing unit boundary response difference record, reflecting the right boundary of the first billing unit interval, the resource hold duration of the two probe operations, the actual cost change, and the expected cost change. This information clarifies that the actual cost change of the underlying cloud platform differs from the expected cost change of the unified billing engine in this verification, providing a basis for subsequent checks on billing unit processing methods and related billing rules.

[0107] When the initial actual cost differs from the expected cost, and a discrepancy in fixed cost is determined after supplementary probe operations, a verification result for the fixed cost offset anomaly can be generated. This verification result is linked to the aforementioned fixed cost offset difference record, reflecting the actual cost, expected cost, and the difference between the two from the previous billing probe operation. It also demonstrates, through the cost data from the supplementary probe operation, that the offset remained unchanged between the two tests. This result serves to indicate the presence of a cost offset in the target cloud product, rather than directly attributing the offset to a fixed surcharge, billing threshold, or other specific reason.

[0108] After generating the billing caliber verification results, they can be saved to the verification records of the cloud management platform and linked with the corresponding billing probe operation plan, resource operation records, actual metering records, and cost details. Operations personnel can view the corresponding original metering data and cost changes based on the verification results to further review the billing rules in the unified billing engine. For cases where there are differences in billing calibers, the corresponding billing rules can be marked as pending review, but the billing unit or unit price will not be automatically modified based on the cost difference between the two probe operations to avoid generating new billing errors before the specific cause is confirmed.

[0109] According to another embodiment, an active verification system for heterogeneous cloud billing caliber is provided. Figure 4 A schematic block diagram of an active verification system for heterogeneous cloud billing caliber is shown according to one embodiment. Figure 4 As shown, the system includes:

[0110] The scheme generation module 401 is used to obtain the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generate a billing probe operation scheme.

[0111] The probe operation module 402 is used to create billing probe resources of corresponding specifications in the test resource pool through the multi-cloud adaptation access engine, and perform resource retention and release operations according to the billing probe operation scheme.

[0112] The actual cost acquisition module 403 is used to acquire the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources.

[0113] The expected cost calculation module 404 is used to calculate the corresponding expected cost using the unified billing engine according to the billing probe operation scheme.

[0114] The supplementary probe module 405 is used to adjust the resource retention time in the billing probe operation scheme and perform a supplementary probe operation when the actual cost is inconsistent with the expected cost.

[0115] The verification result generation module 406 is used to determine the billing caliber difference of the target cloud product based on the relationship between the actual cost and the expected cost before and after the supplementary probe operation, and to generate the billing caliber verification result.

[0116] As an implementable approach, the scheme generation module 401 obtains the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generates a billing probe operation scheme, including: identifying a cloud server billed based on usage duration as the target cloud product, and obtaining the number of CPU cores, memory capacity, and corresponding billing unit of the cloud server; determining a first retention period based on the billing unit, wherein the first retention period is less than the duration corresponding to one billing unit; generating a billing probe operation scheme based on the number of CPU cores, memory capacity, first retention period, and the sequential execution order of cloud server creation, retention, and release; wherein the billing probe operation scheme includes resource specifications, resource retention period, and operation order, and the resource retention period is the first retention period.

[0117] As an implementable approach, the probe operation module 402 creates billing probe resources of corresponding specifications in the test resource pool through a multi-cloud adaptation access engine, and performs resource retention and release operations according to the billing probe operation scheme, including: sending a resource creation request to the target cloud platform through the multi-cloud adaptation access engine; recording the resource creation completion time when the billing probe resource is successfully created and reaches an available state; keeping the billing probe resource running according to the resource retention duration in the billing probe operation scheme, and then sending a resource release request; recording the resource release completion time when the target cloud platform confirms the resource release is complete, and associating and saving the resource creation completion time, resource release completion time, and resource identifier.

[0118] As an implementable approach, the actual cost acquisition module 403 acquires the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resource, including: acquiring the corresponding actual metering record from the underlying cloud platform based on the resource identifier of the billing probe resource, wherein the actual metering record includes the metering start and end time and the actual metering duration; acquiring the corresponding cost details from the underlying cloud platform based on the resource identifier; and determining the actual cost incurred by the billing probe resource during the metering start and end time from the cost details.

[0119] As an implementable approach, the expected cost calculation module 404 calculates the corresponding expected cost using a unified billing engine based on the billing probe operation scheme, including: obtaining resource specifications and resource retention duration from the billing probe operation scheme; inputting the resource specifications and resource retention duration into the unified billing engine; and using the unified billing engine to match the corresponding billing rules according to the resource specifications, and billing the resource retention duration according to the billing unit and unit price in the billing rules to obtain the expected cost.

[0120] As an implementable approach, the supplementary probe module 405 adjusts the resource retention duration in the billing probe operation scheme, including: based on the billing unit, taking the resource retention start time as the left boundary, determining the time that has passed the duration corresponding to one billing unit as the right boundary of the first billing unit interval; adjusting the first retention duration to a second retention duration, wherein the first retention duration is less than the duration corresponding to the first billing unit interval, and the second retention duration is greater than the duration corresponding to the first billing unit interval, so that the second billing probe operation completely covers the first billing unit interval and crosses its right boundary; keeping the resource specifications and billing rules unchanged, and generating a supplementary probe operation scheme based on the second retention duration.

[0121] As one feasible approach, the supplementary probe module 405 performs a supplementary probe operation, including: creating a supplementary probe resource with the same specifications as the previous billing probe resource in the test resource pool according to the supplementary probe operation scheme; releasing the supplementary probe resource after maintaining it for the second holding time; obtaining the actual metering record and actual cost corresponding to the supplementary probe resource, and calculating the corresponding expected cost using the unified billing engine; and associating and saving the actual cost and expected cost corresponding to the supplementary probe operation with the actual cost and expected cost corresponding to the previous billing probe operation.

[0122] As an implementable approach, the verification result generation module 406 determines the billing caliber difference of the target cloud product based on the relationship between the actual cost and the expected cost before and after the supplementary probe operation. This includes: determining the actual cost and expected cost obtained by performing the billing probe operation using the first hold duration and the second hold duration, respectively; determining the actual cost change based on the two actual costs, and determining the expected cost change based on the two expected costs; when the actual cost change is inconsistent with the expected cost change, determining that there is a difference in the cost change relationship corresponding to the right boundary of the first billing unit interval, and identifying it as a billing unit boundary response difference; when the actual cost change is consistent with the expected cost change, determining that the cost difference corresponding to the previous billing probe operation remains unchanged after the supplementary probe operation, and identifying it as a fixed cost offset difference; and determining the billing caliber difference of the target cloud product based on the billing unit boundary response difference or the fixed cost offset difference.

[0123] As an implementable approach, the verification result generation module 406 determines the billing scope difference of the target cloud product based on the billing unit boundary response difference or fixed cost offset difference, including: when it is determined to be a billing unit boundary response difference, associating the right boundary of the first billing unit interval, the actual cost change, and the expected cost change to form a billing unit boundary response difference record; when it is determined to be a fixed cost offset difference, associating the actual cost, the expected cost, and the difference between the two corresponding to the previous billing probe operation to form a fixed cost offset difference record; and determining the billing unit boundary response difference record or the fixed cost offset difference record as the billing scope difference of the target cloud product.

[0124] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for actively verifying the billing caliber of heterogeneous clouds, characterized in that, include: Obtain the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generate a billing probe operation plan; Through the multi-cloud adaptation access engine, create billing probe resources of the corresponding specifications in the test resource pool, and perform resource retention and release operations according to the billing probe operation scheme. Obtain the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources; According to the billing probe operation scheme, the corresponding expected cost is calculated using the unified billing engine; When the actual cost differs from the expected cost, the resource retention time in the billing probe operation scheme is adjusted, and a supplementary probe operation is performed. Based on the relationship between the actual and expected costs before and after the supplementary probe operation, the billing caliber differences of the target cloud product are determined, and billing caliber verification results are generated.

2. The method according to claim 1, characterized in that, The process of obtaining the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generating a billing probe operation plan, includes: The cloud server that is billed based on usage time is identified as the target cloud product, and the number of CPU cores, memory capacity and corresponding billing unit of the cloud server are obtained. A first retention duration is determined based on the billing unit, wherein the first retention duration is less than the duration corresponding to one billing unit; Based on the number of CPU cores, memory capacity, first retention time, and the sequential execution order of cloud server creation, retention, and release, a billing probe operation plan is generated. The billing probe operation scheme includes resource specifications, resource retention duration, and operation sequence, wherein the resource retention duration is the first retention duration.

3. The method according to claim 1, characterized in that, The process of creating billing probe resources of corresponding specifications in the test resource pool through the multi-cloud adaptation access engine, and performing resource retention and release operations according to the billing probe operation scheme, includes: Send resource creation requests to the target cloud platform through the multi-cloud adaptation access engine; When the billing probe resource is successfully created and reaches a usable state, record the resource creation completion time; After maintaining the billing probe resource in accordance with the resource retention duration in the billing probe operation scheme, a resource release request is sent. When the target cloud platform confirms that the resource release is complete, it records the resource release completion time and saves the resource creation completion time, resource release completion time, and resource identifier together.

4. The method according to claim 1, characterized in that, The acquisition of the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources includes: Based on the resource identifier of the billing probe resource, the corresponding actual metering record is obtained from the underlying cloud platform. The actual metering record includes the metering start and end time and the actual metering duration. Based on the resource identifier, obtain the corresponding cost details from the underlying cloud platform; The actual costs incurred by the billing probe resources during the metering start and end time are determined from the cost details.

5. The method according to claim 2, characterized in that, The step of calculating the corresponding expected cost using the unified billing engine according to the billing probe operation scheme includes: Obtain the resource specifications and resource retention duration from the billing probe operation scheme; Input the resource specifications and resource retention duration into the unified billing engine; The unified billing engine matches the corresponding billing rules based on the resource specifications, and bills the duration of resource retention according to the billing unit and unit price in the billing rules to obtain the expected cost.

6. The method according to claim 2, characterized in that, The adjustment of the resource retention time in the billing probe operation scheme includes: Based on the billing unit, with the start time of resource retention as the left boundary, the time corresponding to the duration of one billing unit is determined as the right boundary of the first billing unit interval. The first holding duration is adjusted to the second holding duration, where the first holding duration is less than the duration corresponding to the first billing unit interval, and the second holding duration is greater than the duration corresponding to the first billing unit interval, so that the second billing probe operation completely covers the first billing unit interval and crosses its right boundary; Keeping the resource specifications and billing rules unchanged, a supplementary probe operation plan is generated based on the second retention duration.

7. The method according to claim 6, characterized in that, The execution of the supplementary probe operation includes: According to the supplementary probe operation scheme, a supplementary probe resource with the same specifications as the previous billing probe resource is created in the test resource pool; The supplementary probe resources will be released after the second holding time has elapsed. Obtain the actual metering records and actual costs corresponding to the supplementary probe resources, and use the unified billing engine to calculate the corresponding expected costs; The actual and expected costs of the supplementary probe operation are associated with and saved with the actual and expected costs of the previous billing probe operation.

8. The method according to claim 6, characterized in that, The determination of the billing differences for the target cloud product based on the relationship between the actual and expected costs before and after the supplementary probe operation includes: Determine the actual cost and expected cost of performing the billing probe operation using the first hold duration and the second hold duration, respectively; The change in actual costs is determined based on two actual costs, and the change in expected costs is determined based on two expected costs. When the actual cost change is inconsistent with the expected cost change, it is determined that there is a difference in the cost change relationship corresponding to the right boundary of the first billing unit interval, and this difference is identified as a billing unit boundary response difference. When the actual cost change is consistent with the expected cost change, it is determined that the cost difference corresponding to the previous billing probe operation remains unchanged after the supplementary probe operation, and it is determined as a fixed cost offset difference. The billing caliber difference of the target cloud product is determined based on the difference in the billing unit boundary response or the difference in the fixed cost offset.

9. The method according to claim 8, characterized in that, The step of determining the billing caliber difference of the target cloud product based on the billing unit boundary response difference or fixed cost offset difference includes: When a billing unit boundary response difference is identified, the right boundary of the first billing unit interval, the actual cost change, and the expected cost change are associated to form a billing unit boundary response difference record. When a fixed cost offset difference is identified, the actual cost, expected cost, and the difference between the two corresponding to the previous billing probe operation are associated to form a fixed cost offset difference record. The billing unit boundary response difference record or fixed cost offset difference record is determined as the billing caliber difference of the target cloud product.

10. An active verification system for heterogeneous cloud billing caliber, characterized in that, include: The scheme generation module is used to obtain the specifications of the target cloud product and the corresponding billing rules in the unified billing engine, and generate a billing probe operation scheme. The probe operation module is used to create billing probe resources of corresponding specifications in the test resource pool through the multi-cloud adaptation access engine, and perform resource retention and release operations according to the billing probe operation scheme. The actual cost acquisition module is used to acquire the actual metering records and actual costs generated by the underlying cloud platform for the billing probe resources; The expected cost calculation module is used to calculate the corresponding expected cost based on the billing probe operation scheme using the unified billing engine. The supplementary probe module is used to adjust the resource retention time in the billing probe operation scheme and perform supplementary probe operation when the actual cost is inconsistent with the expected cost. The verification result generation module is used to determine the billing caliber difference of the target cloud product based on the relationship between the actual cost and the expected cost before and after the supplementary probe operation, and to generate the billing caliber verification result.