Cloud budget analysis method and device, computer equipment and storage medium

By acquiring and analyzing the tags of cloud budget projects, calculating actual and predicted expenses, and generating cloud budget analysis reports, the problems of inefficient and low accuracy of existing cloud budget analysis methods are solved, and more efficient and accurate cloud budget analysis is achieved.

CN120069941APending Publication Date: 2025-05-30PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510138059.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

Existing cloud budget analysis methods are inefficient and have low accuracy, and are prone to omissions or errors.

Method used

By obtaining multiple cloud budget projects, selecting the projects within the budget cycle of the current account period as the projects to be analyzed, calculating the actual expenses within the actual period and the predicted expenses within the predicted period, and generating a cloud budget analysis report.

Benefits of technology

Improves the efficiency and accuracy of cloud budget analysis, avoids omissions or errors, and provides a more comprehensive integration of cloud billing actual situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120069941A_ABST
    Figure CN120069941A_ABST
Patent Text Reader

Abstract

The invention relates to the field of cloud technology and internet technology, is suitable for cloud budget analysis in medical scenes and financial scenes, and particularly relates to a cloud budget analysis method and device, computer equipment and a storage medium. Selecting the cloud budget project of which the current account period is in the budget period from the plurality of cloud budget projects as a to-be-analyzed cloud budget project; obtaining a cloud bill corresponding to the label of the to-be-analyzed cloud budget project, calculating the cost of the cloud bill in the actual period, and obtaining the actual cost of the to-be-analyzed cloud budget project; calculating the prediction cost of the to-be-analyzed cloud budget project in the prediction period; the analysis report obtained by the method integrates the actual conditions of the corresponding cloud bills, and the cloud bills do not need to be independently analyzed and then combined, so that omission or errors are avoided, and the analysis efficiency and accuracy of the cloud budget are also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of cloud technology and Internet technology, and is applicable to cloud budget analysis in medical scenarios and financial scenarios. In particular, it relates to a cloud budget analysis method, device, computer device, and storage medium. Background Art

[0002] With the development of cloud native, more and more enterprises choose to go to the cloud, such as major medical institutions and financial institutions. The cloud has brought improvements in aspects such as operation and maintenance, elastic scheduling, and on-demand use for users. However, there are also problems such as cost inflation, low resource utilization rate, and uncontrollable budget. Therefore, FinOps (Financial Operations, cloud cost management) emerged. FinOps is a cloud cost management method aimed at helping enterprises manage and control their cloud costs more effectively, especially applicable to application scenarios with strict cost management requirements such as medical institutions and financial institutions.

[0003] Currently, when performing cloud budget analysis using existing cloud cost management methods, it is necessary to check the budgets, actual usage, and prediction results of different types of cloud bills, and then integrate multiple cloud bills for statistical and aggregation analysis. Such a budget analysis method has low efficiency and is prone to omissions or errors, resulting in low accuracy. Summary of the Invention

[0004] The present invention provides a cloud budget analysis method, device, computer device, and storage medium to solve the technical problems of low efficiency and low accuracy of existing cloud budget analysis methods.

[0005] In a first aspect, a cloud budget analysis method is provided. The cloud budget analysis method includes:

[0006] Obtain a plurality of cloud budget items, each of the cloud budget items including a budget amount, a budget period, and at least one tag; each tag corresponds to at least one cloud bill category;

[0007] Select, from the plurality of cloud budget items, the cloud budget items whose current billing period is within the budget period as the cloud budget items to be analyzed;

[0008] Obtain the cloud bills corresponding to the tags of the cloud budget items to be analyzed, calculate the expenses incurred by the cloud bills within the actual period, and obtain the actual expenses already incurred for the cloud budget items to be analyzed. The actual period is the period from the start billing period of the budget period of the cloud budget items to be analyzed to the current billing period;

[0009] Calculate the predicted expenses of the cloud budget items to be analyzed within the prediction period. The prediction period is the period within the budget period of the cloud budget items to be analyzed other than the actual period;

[0010] Generate a cloud budget analysis report based on the budget amount, the actual cost, and the predicted cost.

[0011] In a second aspect, a cloud budget analysis device is provided. The cloud budget analysis device includes:

[0012] A cloud budget item acquisition module, configured to acquire a plurality of cloud budget items. Each cloud budget item includes a budget amount, a budget period, and at least one tag; each tag corresponds to at least one cloud bill category.

[0013] A cloud budget item selection module, configured to select, from the plurality of cloud budget items, the cloud budget items whose current billing period is within the budget period as the cloud budget items to be analyzed.

[0014] An actual cost calculation module, configured to acquire the cloud bill corresponding to the tag of the cloud budget item to be analyzed, calculate the cost incurred by the cloud bill within the actual period, and obtain the actual cost already incurred by the cloud budget item to be analyzed. The actual period is the period from the start billing period of the budget period of the cloud budget item to the current billing period.

[0015] A predicted cost calculation module, configured to calculate the predicted cost of the cloud budget item to be analyzed within the predicted period. The predicted period is the period within the budget period of the cloud budget item other than the actual period.

[0016] A budget analysis module, configured to generate a cloud budget analysis report based on the budget amount, the actual cost, and the predicted cost.

[0017] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above cloud budget analysis method are implemented.

[0018] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the above cloud budget analysis method are implemented.

[0019] In the solution implemented by the above cloud budget analysis method, device, computer device, and storage medium, multiple cloud budget items are obtained. Each of the cloud budget items includes a budget amount, a budget period, and at least one tag. Each tag corresponds to at least one cloud bill category. The cloud budget items with the current billing period within the budget period are selected as the cloud budget items to be analyzed. The cloud bills corresponding to the tags of the cloud budget items to be analyzed are obtained, and the expenses incurred by the cloud bills within the actual period are calculated to obtain the actual expenses already incurred for the cloud budget items to be analyzed. The predicted expenses for the cloud budget items to be analyzed within the predicted period are calculated. A cloud budget analysis report is generated based on the actual expenses, the predicted expenses, and the budget amount. The cloud budget items to be analyzed are associated with cloud bills through tags, so that the obtained analysis report integrates the actual situation of the corresponding cloud bills, eliminating the need to separately analyze and then merge the cloud bills, avoiding omissions or errors, and also improving the analysis efficiency and accuracy of cloud budgets. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0021] Figure 1 FIG. is a schematic diagram of an application environment of a cloud budget analysis method provided by an embodiment of the present invention.

[0022] Figure 2 FIG. is a schematic flowchart of a first implementation manner of a cloud budget analysis method provided by an embodiment of the present invention.

[0023] Figure 3 is Figure 2 a schematic flowchart of a specific implementation manner of step S50 in FIG.

[0024] Figure 4 is Figure 2 a schematic flowchart of a specific implementation manner of step S40 in FIG.

[0025] Figure 5 is Figure 2 a schematic flowchart of a specific implementation manner of step S30 in FIG.

[0026] Figure 6 FIG. is a schematic flowchart of a second implementation manner of a cloud budget analysis method provided by an embodiment of the present invention.

[0027] Figure 7 is Figure 2 a schematic flowchart of a specific implementation manner of step S60 in FIG.

[0028] Figure 8 Yes Figure 7 It is a schematic flowchart of a specific implementation manner of step S61 in the

[0029] Figure 9 It is a schematic diagram of a cloud budget analysis device in an embodiment of the present invention

[0030] Figure 10 It is a schematic structural diagram of a computer device in an embodiment of the present invention Specific implementation manner

[0031] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention

[0032] The cloud budget analysis method provided by the embodiments of the present invention can be applied in an application environment such as Figure 1 in the application environment Figure 1 It is a schematic diagram of an application environment of the cloud budget analysis method provided by an embodiment of the present invention. As Figure 1 shown, in this application environment, it includes a user terminal 100 and a server terminal 200. The user terminal 100 is a terminal device used by the user, and the server terminal 200 is a service provider providing cloud services. The user terminal 100 and the server terminal 200 jointly execute the cloud budget analysis method. It should be noted that the user terminal 100 and the server terminal 200 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but are not limited thereto. The user terminal 100 and the server terminal 200 can be connected through Bluetooth, USB (Universal Serial Bus), or other communication connection methods, and the present invention does not make any restrictions here

[0033] Figure 2 It is a schematic flowchart of the first implementation manner of the cloud budget analysis method provided by an embodiment of the present invention. As Figure 2 shown, this cloud budget analysis method can specifically include the following steps

[0034] S10. Obtain a plurality of cloud budget items, each of the cloud budget items including a budget amount, a budget period, and at least one tag; each of the tags corresponds to at least one cloud bill category

[0035] In this step, obtain multiple cloud budget items pre-created by the user; each cloud budget item is associated with cloud bills through at least one tag. The budget amount is the budget amount of the cloud budget item, and the budget period is the statistical period of the cloud budget item. Among them, the budget amount, budget period, and tags of each cloud budget item are pre-set by the user, and the corresponding relationship between the tags and cloud bill categories is pre-set by the service provider and the user; the cloud bill is the bill of cloud resources, and cloud resources include computing services, storage resources, network resources, database service resources, and other cloud resources such as security services, big data services, and AI services. Each of the said tags corresponding to at least one cloud bill category means that each of the said tags corresponds to at least one bill category of cloud resources. In a specific implementation, tag 1 and tag 2 are pre-created. Tag 1 corresponds to the computing service bill and the storage resource bill; tag 2 corresponds to the security service bill and the big data service bill.

[0036] S30. Select, from the multiple cloud budget items, the cloud budget items whose current billing period is within the budget period as the cloud budget items to be analyzed.

[0037] In this step, the billing period refers to the billing cycle of the cloud budget item, and this billing cycle can be annual, monthly, or weekly. It should be noted that, for the convenience of understanding, the billing period of the cloud budget items in all the embodiments involved in this specification is the natural month. For example, if the budget period of a certain cloud budget item A is from January 1, 2024 to December 31, 2024, and the current billing period is October 2024, at this time, since the current billing period is within the time range from January 1, 2024 to January 1, 2025 of the budget period, this cloud budget item can be selected as the cloud budget item to be analyzed.

[0038] S40. Obtain the cloud bills corresponding to the tags of the cloud budget item to be analyzed, calculate the expenses incurred by the cloud bills during the actual period, and obtain the actual expenses already incurred by the cloud budget item to be analyzed. The actual period is the period from the starting billing period of the budget period of the cloud budget item to the current billing period.

[0039] In this step, when the tag of the cloud budget item to be analyzed corresponds to 1 cloud bill, the expenses incurred by this cloud bill from the starting billing period of the budget period to the current billing period are the actual expenses already incurred by the cloud budget item to be analyzed; when the tag of the cloud budget item to be analyzed corresponds to multiple cloud bills, sum up the expenses incurred by the multiple cloud bills from the starting billing period of the budget period to the current billing period to obtain the actual expenses already incurred by the cloud budget item to be analyzed.

[0040] S50. Calculate the predicted expenses of the cloud budget item to be analyzed during the prediction period. The prediction period is the period within the budget period of the cloud budget item to be analyzed other than the actual period.

[0041] Taking cloud budget project A mentioned in step S30 as an example, if the current accounting period is October 2024, then the forecast period is November 2024 and December 2024. The forecast expenses within the forecast period are the sum of the expenses in November 2024 and December 2024.

[0042] S60. Generate a cloud budget analysis report based on the budget amount, the actual expenses, and the forecast expenses.

[0043] In this step, generating a cloud budget analysis report based on the data of the budget amount, the actual expenses, and the forecast expenses can directly obtain the actual budget situation of the cloud budget project to be analyzed.

[0044] In the cloud budget analysis method of this embodiment, the cloud budget project to be analyzed is associated with the cloud bill through tags, so that the obtained analysis report integrates the actual situation of the corresponding cloud bill, eliminating the need to separately analyze and then merge the cloud bills, avoiding omissions or errors, and improving the analysis efficiency and accuracy of the cloud budget.

[0045] Figure 3 Yes Figure 2 is a schematic flowchart of a specific implementation manner of step S50 in Figure 3 As shown, in some embodiments, step S50 can be implemented in the following manner:

[0046] S501. Calculate the forecast expenses based on the average accounting period of the actual expenses and the number of accounting periods in the forecast period.

[0047] In this embodiment, the average accounting period = actual expenses / number of occurred accounting periods, and the forecast expenses = average accounting period * remaining number of accounting periods. Taking cloud budget project A mentioned in step 30 as an example, assuming the actual expenses of cloud budget project A are 100,000 yuan, the number of occurred accounting periods is 10, and the remaining number of accounting periods is 2. Then the average accounting period is 10,000 yuan, and the forecast expenses are 20,000 yuan.

[0048] S502. Designate one of the occurred accounting periods of the cloud budget project to be analyzed as the initial accounting period, and calculate the forecast amount for each accounting period within the forecast period of the cloud budget project to be analyzed based on the expenses in the initial accounting period of the cloud budget project to be analyzed and a preset growth rate, so as to obtain the forecast expenses.

[0049] In this embodiment, by designating an occurred billing period as the initial billing period, the predicted amount for each billing period within the predicted period is calculated according to a preset growth rate. The occurred billing period can be the current billing period or other occurred billing periods. It should be noted that when the initial billing period is other occurred billing periods, only the predicted billing period amounts for each billing period within the predicted period are calculated. Taking the cloud budget project A mentioned in step 30 as an example, if the selected initial billing period is May 2024, only the predicted billing period amounts for the two billing periods of November 2024 and December 2024 need to be calculated based on the expenses occurred in May 2024 and the preset growth rate. As for the billing period amounts between May 2024 and November 2024, the actual occurred data shall prevail in the final settlement.

[0050] For the preset growth rate in the above steps, an ended cloud budget project with the same budget cycle duration as the cloud budget project to be analyzed can be selected, and then the growth rate for each billing period of this cloud budget project is calculated and used as the preset growth rate for the corresponding billing period of the cloud budget project to be analyzed. For example, the budget cycle of the ended cloud budget project B is from January 1, 2023 to December 31, 2023. The budget cycle of the cloud budget project A to be analyzed is from January 1, 2024 to December 31, 2024, the current billing period is October 2024, and the predicted period is November 2024 and December 2024. The growth rates of the cloud budget project B in November 2023 and December 2023 can be respectively used as the preset growth rates of the cloud budget project A in November 2024 and December 2024 to calculate the predicted expenses of the cloud budget project A. In addition, when the budget cycle duration of the ended cloud budget project is different from that of the cloud budget project to be analyzed, the average billing period growth rate of the historical cloud budget project can also be used as the preset growth rate. For example, the budget cycle of the cloud budget project C is from January 1, 2023 to June 31, 2023, and the average billing period growth rate of the cloud budget project C from February 2023 to June 2023 can be used as the preset growth rate.

[0051] S503. Obtain the predicted usage of the cloud resource according to the historical usage pattern of the cloud resource corresponding to the cloud bill, obtain the real-time unit price of the cloud resource, and obtain the predicted cost according to the predicted usage of the cloud resource and the real-time unit price of the cloud resource.

[0052] In this embodiment, the predicted usage of the cloud resources is obtained based on the historical usage pattern of the cloud resources corresponding to the cloud bill. A linear prediction method can be adopted, and the specific prediction method is as follows: Classify according to the cloud resource type, with "usage" as the dependent variable, and different cloud resource types will have different independent variables. Based on the data of the historical bill corresponding to the cloud resource type, the future usage of each cloud resource type is predicted. Then, the predicted cost is obtained based on the future usage of each cloud resource type and the real-time unit price of the cloud resources.

[0053] Figure 4 Yes Figure 2 A schematic flowchart of a specific implementation manner of step S40 in, as Figure 4 shown. In some embodiments, obtaining the cloud bill corresponding to the label of the cloud budget item to be analyzed in step S40 specifically includes:

[0054] S41. Obtain the label of the cloud budget item to be analyzed. The label includes an empty label, a general label, and at least one custom label. The empty label corresponds to all cloud bill categories. The general label corresponds to at least one cloud bill category preset by the system. The custom label corresponds to at least one cloud bill category preset by the user.

[0055] S42. Obtain the corresponding cloud bill according to the label of the cloud budget item to be analyzed.

[0056] In the above steps, the role of the label is to screen the cloud bill categories. The empty label means that no screening is performed on the cloud bill categories, that is, it corresponds to cloud bills of all categories. The general label is the cloud bill category preset by the system, and the system here can be the cloud service provider. The custom label is the cloud bill category preset by the user according to their own needs.

[0057] In a specific embodiment, cloud bill categories include computing service bills, storage resource bills, network resource bills, database service resource bills, and security service bills. Among them, the general tags preset by the system correspond to computing service bills and storage resource bills, the custom tag 1 preset by the user corresponds to storage resource bills and network resource bills, and the custom tag 2 preset by the user corresponds to security service bills. When the tag of the cloud budget item X to be analyzed is a general tag, the cloud bills corresponding to the cloud budget item X to be analyzed include computing service bills and storage resource bills. When the tag of the cloud budget item Y to be analyzed is the custom tag 2, the cloud bills corresponding to the cloud budget item Y to be analyzed only include security service bills. When the tag of the cloud budget item Z to be analyzed is an empty tag, the cloud bills corresponding to the cloud budget item Z to be analyzed include all cloud bills such as computing service bills, storage resource bills, network resource bills, database service resource bills, and security service bills. If the cloud budget item T to be analyzed includes both a general tag and the custom tag 1, then the cloud bills corresponding to all tags are obtained simultaneously, that is, the computing service bills and storage resource bills corresponding to the general tag and the storage resource bills and network resource bills corresponding to the custom tag 1. Since both of the above tags correspond to the storage resource bill, after obtaining the cloud bills corresponding to all tags, one duplicate storage resource bill is deleted, that is, the cloud bills corresponding to the cloud budget item T to be analyzed are computing service bills, storage resource bills, and network resource bills.

[0058] In a specific implementation manner, the above cloud budget analysis method is applied to the analysis of cloud budget items in a medical institution. Since medical institutions often store a large amount of private information such as medical consultation cases and medical insurance bills, the users of medical institutions mainly focus on cloud storage services and cloud security services for cloud service requirements. The users of medical institutions also tend to bind custom tags to the cloud bills related to cloud storage services and cloud security services, and then analyze the cloud budget items of the medical institution through the above cloud budget analysis method.

[0059] In another specific implementation manner, the above cloud budget analysis method is applied to the analysis of cloud budget items in a financial institution. The requirements of financial institutions for cloud services usually focus on cloud computing services and cloud security services. Therefore, when setting custom tags, the users of financial institutions tend to bind custom tags to the cloud bills related to cloud computing services and cloud security services, and then analyze the cloud budget items of the financial institution through the above cloud budget analysis method.

[0060] Figure 5 Yes Figure 2 A schematic flowchart of a specific implementation manner of step S30 in Figure 5 As shown, in some implementation manners, step S30 may include:

[0061] S31. Obtain the budget cycles of all the cloud budget items.

[0062] S32. Mark the status of cloud budget items with the current accounting period less than the start accounting period of the budget cycle as not started; mark the cloud budget items with the current accounting period within the budget cycle as in progress; set the status of cloud budget items with the current accounting period greater than the end accounting period of the budget cycle as ended.

[0063] S33. Select the cloud budget items with the status of in progress as the cloud budget items to be analyzed.

[0064] In the above steps, determine the status of all cloud budget items according to the current accounting period, and select the cloud budget items with the status of in progress as the cloud budget items to be analyzed. For example, if the current accounting period is October 2024, the budget cycle of cloud budget item A is from January 1, 2024 to December 31, 2024, and it is marked as in progress; the budget cycle of cloud budget item B is from January 1, 2023 to December 31, 2023, and it is marked as ended; the budget cycle of cloud budget item D is from June 1, 2025 to December 31, 2025, and it is marked as not started; select cloud budget item A with the status of in progress as the cloud budget item to be analyzed. If there are multiple cloud budget items with the status of in progress, then select multiple cloud budget items as the cloud budget items to be analyzed.

[0065] Figure 6 It is a schematic flowchart of the second implementation manner of the cloud budget analysis method provided by an embodiment of the present invention. As Figure 6 shown, in some implementation manners, before step S30, it further includes:

[0066] S20. Determine that the current time node is the preset time node for performing budget analysis.

[0067] In this implementation manner, automatic cloud budget analysis can be achieved through the preset time node for performing budget analysis. In a specific embodiment, if it is preset to perform budget analysis on the 5th day of each natural month, then when it reaches the 5th day of each natural month, the system determines that the current time node is the preset time node for performing budget analysis, and will automatically start steps S40 - S70 to complete the cloud budget analysis. It should be noted that when performing cloud budget analysis, the accounted periods are all ended periods. Therefore, the current accounting period in this embodiment is actually the previous accounting period of the accounting period where the statistical time point is located.

[0068] Figure 7 is Figure 2 a schematic flowchart of a specific implementation manner of step S60 in Figure 7 shown. In some implementation manners, step S60 may include::

[0069] S61. Determine the overspending situation of the cloud budget item to be analyzed based on the budget amount, the actual cost, and the predicted cost;

[0070] S62. Obtain the predicted total cost based on the sum of the actual cost and the predicted cost;

[0071] S63. Obtain the budget execution rate based on the ratio of the predicted total cost to the budget amount;

[0072] S64. Obtain the predicted difference based on the difference between the predicted total cost and the budget amount;

[0073] S65. Generate a cloud budget analysis report based on the overspending situation, the predicted total cost, the budget execution rate, and the predicted difference;

[0074] In the above steps, the overspending situation, the predicted total cost, the budget execution rate, and the predicted difference of the cloud budget item are obtained based on the budget amount, the actual cost, and the predicted cost respectively; and then a cloud budget analysis report is generated based on the above data. The cloud budget analysis report includes information such as the cloud budget item to be analyzed, the cloud bill category corresponding to the label, the statistical period (from the start billing period of the budget period to the current billing period), the overspending situation of the cloud budget item, the predicted total cost, the budget execution rate, and the predicted difference.

[0075] Figure 8 Yes Figure 7 is a schematic flowchart of a specific implementation manner of step S61 in, as Figure 8 shown. In some implementation manners, step S61 may include::

[0076] S611. When the actual amount is greater than the budget amount, determine that the cloud budget item is actually overspent;

[0077] S612. When the sum of the actual amount and the predicted amount is greater than the budget amount, determine that the cloud budget item is predicted to be overspent;

[0078] S613. When the sum of the actual amount and the predicted amount is less than the budget amount, determine that the cloud budget item is not overspent.

[0079] In the above steps, the actual overspending situation of the cloud budget item to be analyzed is determined by the actual amount, the predicted amount, and the budget amount, which enables users to obtain more intuitive overspending information for analyzing the cloud budget item. When the actual amount is greater than the budget amount, determine that the cloud budget item is actually overspent; when the sum of the actual amount and the predicted amount is greater than the budget amount, determine that the cloud budget item is predicted to be overspent; when the sum of the actual amount and the predicted amount is less than the budget amount, determine that the cloud budget item is not overspent.

[0080] The cloud budget analysis method provided by the embodiments of the present invention can be constructed based on artificial intelligence, and relevant data can be acquired and processed based on artificial intelligence technology to achieve unattended cloud budget analysis. Among them, artificial intelligence (AI) is to use a digital computer or a machine controlled by a digital computer to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results of theory, method, technology, and application system. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0081] In one embodiment, a cloud budget analysis device is provided, and the cloud budget analysis device corresponds one-to-one with the cloud budget analysis method in the above embodiment. As Figure 9 shown, the cloud budget analysis device includes:

[0082] A cloud budget item acquisition module 101, configured to acquire a plurality of cloud budget items, each of the cloud budget items including a budget amount, a budget period, and at least one tag; each of the tags corresponding to at least one cloud bill category;

[0083] A cloud budget item selection module 103, configured to select, from the plurality of cloud budget items, the cloud budget items whose current billing period is within the budget period as the cloud budget items to be analyzed;

[0084] An actual expense calculation module 104, configured to acquire the cloud bills corresponding to the tags of the cloud budget items to be analyzed, calculate the expenses incurred by the cloud bills within the actual period, and obtain the actual expenses already incurred by the cloud budget items to be analyzed, where the actual period is the period from the start billing period of the budget period of the cloud budget items to be analyzed to the current billing period;

[0085] A predicted expense calculation module 105, configured to calculate the predicted expenses of the cloud budget items to be analyzed within the predicted period, where the predicted period is the period other than the actual period within the budget period of the cloud budget items to be analyzed;

[0086] A budget analysis module 106, configured to generate a cloud budget analysis report according to the budget amount, the actual expenses, and the predicted expenses.

[0087] Specifically, the predicted expense calculation module 105 includes a first prediction calculation unit, a second prediction calculation unit, and a third prediction calculation unit.

[0088] A first prediction calculation unit, configured to calculate the predicted cost according to the average account period of the actual cost and the number of account periods of the prediction period.

[0089] A second prediction calculation unit, configured to specify an account period in which the to-be-analyzed cloud budget item has occurred as the initial account period, and calculate the predicted amount for each account period within the prediction period of the to-be-analyzed cloud budget item through the cost of the to-be-analyzed cloud budget item in the initial account period and a preset growth rate, so as to obtain the predicted cost.

[0090] A third prediction calculation unit, configured to obtain the predicted usage amount of the cloud resource according to the historical usage pattern of the cloud resource corresponding to the cloud bill, obtain the real-time unit price of the cloud resource, and obtain the predicted cost according to the predicted usage amount of the cloud resource and the real-time unit price of the cloud resource.

[0091] Specifically, the actual cost calculation module 104 includes a label screening unit.

[0092] The label screening unit is configured to obtain the labels of the to-be-analyzed cloud budget item, where the labels include an empty label, a general label, and at least one custom label, the empty label corresponds to all cloud bill categories, the general label corresponds to at least one cloud bill category preset by the system, and the custom label corresponds to at least one cloud bill category preset by the user.

[0093] The label screening unit is further configured to obtain the corresponding cloud bill according to the label of the to-be-analyzed cloud budget item.

[0094] Specifically, the cloud budget item selection module 103 includes a period acquisition unit, a status setting unit, and an item determination unit.

[0095] The period acquisition unit is configured to acquire the budget periods of all the cloud budget items.

[0096] The status setting unit is configured to mark the status of a cloud budget item whose current account period is less than the start account period of the budget period as not started; mark a cloud budget item whose current account period is within the budget period as in progress; and set the status of a cloud budget item whose current account period is greater than the end account period of the budget period as ended.

[0097] The item determination unit is configured to select a cloud budget item with a status of in progress as the to-be-analyzed cloud budget item.

[0098] Specifically, the cloud budget analysis device further includes a time judgment module 102.

[0099] The time judgment module 102 is configured to judge that the current time node is a preset time node for performing budget analysis.

[0100] Specifically, the budget analysis module 106 includes an overspending judgment unit, a predicted total cost calculation unit, a budget execution rate calculation unit, a predicted difference calculation unit, and a report generation unit.

[0101] The overspending judgment unit is configured to judge the overspending situation of the cloud budget item to be analyzed according to the budget amount, the actual cost, and the predicted cost.

[0102] The predicted total cost calculation unit is configured to obtain the predicted total cost based on the sum of the actual cost and the predicted cost.

[0103] The budget execution rate calculation unit is configured to obtain the budget execution rate based on the ratio of the predicted total cost to the budget amount.

[0104] The predicted difference calculation unit is configured to obtain the predicted difference based on the difference between the predicted total cost and the budget amount.

[0105] The report generation unit is configured to generate a cloud budget analysis report according to the overspending situation, the predicted total cost, the budget execution rate, and the predicted difference.

[0106] Specifically, the overspending judgment unit is specifically configured to judge that the cloud budget item is actually overspent when the actual amount is greater than the budget amount; judge that the cloud budget item is predicted to be overspent when the sum of the actual amount and the predicted amount is greater than the budget amount; and judge that the cloud budget item is not overspent when the sum of the actual amount and the predicted amount is less than the budget amount.

[0107] For the specific limitations of the cloud budget analysis device, reference may be made to the limitations of the cloud budget analysis method in the foregoing text, which will not be elaborated herein. Each module in the above cloud budget analysis device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0108] Figure 10 As a schematic structural diagram of an embodiment of a computer device according to the present application, as Figure 10 shown, the present application further provides a computer device, including:

[0109] A memory and a processor, wherein the processor stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes any step of the above cloud budget analysis method.

[0110] The present application also provides a computer-readable storage medium. When computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute any steps in the cloud budget analysis method. It can be understood that the readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0111] The above-described embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention and should all be included in the protection scope of the present invention.

Claims

1. A cloud budget analysis method, characterized in that: include: Acquire a plurality of cloud budget items, each of the cloud budget items comprising a budget amount, a budget period, and at least one tag; Each of the tags corresponds to at least one cloud billing category; Selecting, from the multiple cloud budget items, a cloud budget item within the budget period of the current account as the cloud budget item to be analyzed; Obtain a cloud bill corresponding to the tag of the cloud budget project to be analyzed, calculate the expenses incurred by the cloud bill within an actual period, and obtain the actual expenses incurred by the cloud budget project to be analyzed, where the actual period is the period from the starting account period of the budget cycle of the cloud budget project to be analyzed to the current account period; Calculating the predicted cost of the cloud budget project to be analyzed within a predicted period, where the predicted period is a period within the budget cycle of the cloud budget project to be analyzed excluding the actual period; A cloud budget analysis report is generated based on the budget amount, the actual cost, and the predicted cost.

2. The cloud budget analysis method according to claim 1, characterized in that: The calculating the forecast cost of the cloud budget item to be analyzed within the forecast period includes: Calculate the forecasted cost based on the average billing period of the actual cost and the number of billing periods in the forecast period; or, Specifying an account period in which the cloud budget item to be analyzed has occurred as an initial account period, and calculating the forecast amount of each account period of the cloud budget item to be analyzed within the forecast period by using the cost of the cloud budget item to be analyzed in the initial account period and a preset growth rate to obtain the forecast cost, or; The predicted usage of the cloud resources is obtained according to the historical usage pattern of the cloud resources corresponding to the cloud bill, the real-time unit price of the cloud resources is obtained, and the predicted fee is obtained according to the predicted usage of the cloud resources and the real-time unit price of the cloud resources.

3. The cloud budget analysis method according to claim 1, characterized in that: The step of obtaining a cloud bill corresponding to the tag of the cloud budget item to be analyzed includes: Obtaining a tag of the cloud budget item to be analyzed, the tag including an empty tag, a common tag, and at least one custom tag, the empty tag corresponds to all cloud bill categories, the common tag corresponds to at least one cloud bill category preset by the system, and the custom tag corresponds to at least one cloud bill category preset by the user; A corresponding cloud bill is obtained according to the tag of the cloud budget item to be analyzed.

4. The cloud budget analysis method according to claim 1, characterized in that: The selecting, from the multiple cloud budget items, a cloud budget item within the budget cycle during the current account period as the cloud budget item to be analyzed includes: Obtaining the budget period of all said cloud budget items; The cloud budget items whose current bill period is less than the starting bill period of the budget cycle are marked as not started; the cloud budget items whose current bill period is within the budget cycle are marked as in progress; the cloud budget items whose current bill period is greater than the ending bill period of the budget cycle are marked as ended; Select cloud budget projects with the status of In Progress as the cloud budget projects to be analyzed.

5. The cloud budget analysis method according to claim 1, characterized in that: Before selecting a cloud budget item within the budget cycle with a current account period from the multiple cloud budget items as the cloud budget item to be analyzed, the method further includes: It is determined that the current time node is the preset time node for budget analysis.

6. The cloud budget analysis method according to claim 1, characterized in that: The generating of the cloud budget analysis report according to the budget amount, the actual cost and the predicted cost includes: Determine the overspending of the cloud budget item to be analyzed according to the budget amount, the actual cost and the predicted cost; Obtaining a predicted total cost according to the sum of the actual cost and the predicted cost; Obtaining the budget execution rate based on the ratio of the predicted total cost to the budget amount; Obtaining a forecast difference value based on the difference between the forecast total cost and the budget amount; A cloud budget analysis report is generated based on the overspending situation, the predicted total cost, the budget execution rate, and the predicted difference.

7. The cloud budget analysis method according to claim 6, characterized in that: The determining, according to the budget amount, the actual cost, and the predicted cost, of the overspending of the cloud budget item to be analyzed includes: When the actual amount is greater than the budget amount, it is determined that the cloud budget item is actually overspent; When the sum of the actual amount and the predicted amount is greater than the budget amount, the cloud budget item is judged to be a predicted overspending; When the sum of the actual amount and the predicted amount is less than the budget amount, it is determined that the cloud budget item is not overspent.

8. A cloud budget analysis device, characterized in that: include: A cloud budget item acquisition module, used to acquire a plurality of cloud budget items, each of which includes a budget amount, a budget period, and at least one tag; Each of the tags corresponds to at least one cloud billing category; A cloud budget project selection module, used to select a cloud budget project within the budget cycle in the current account period from the multiple cloud budget projects as the cloud budget project to be analyzed; An actual cost calculation module is used to obtain a cloud bill corresponding to the tag of the cloud budget project to be analyzed, calculate the costs incurred by the cloud bill within an actual period, and obtain the actual costs incurred by the cloud budget project to be analyzed, where the actual period is the period from the starting account period of the budget cycle of the cloud budget project to be analyzed to the current account period; A forecast cost calculation module, used to calculate the forecast cost of the cloud budget project to be analyzed within a forecast period, where the forecast period is a period within the budget cycle of the cloud budget project to be analyzed excluding the actual period; The budget analysis module is used to generate a cloud budget analysis report based on the budget amount, the actual cost and the predicted cost.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the cloud budget analysis method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the cloud budget analysis method according to any one of claims 1 to 7 are implemented.