Multi-cloud bill checking method and device, equipment and storage medium
By analyzing and integrating cloud platform bill data and using basic resource databases for reconciliation, the problem of manual verification of multi-cloud billing is solved, and the accuracy and efficient verification of multi-cloud environmental service charges are achieved.
Patent Information
- Application Number
- CN202411015507.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, it is difficult to ensure efficiency and accuracy of manual verification of bills in multi-cloud environments. Especially because the cloud platform has many types of services and different calculation methods, bill verification is complicated and errors are prone to occur.
By calling the interfaces of each cloud platform to obtain billing data and detailed data, parse it into a lightweight data exchange format, integrate it into a standard data table, and reconcile it in the basic resource database to detect abnormal bills according to preset rules.
It improves the efficiency and accuracy of bill checking, ensures the accuracy of service charges for multi-cloud environments, and reduces the errors and complexity of manual checking.
Smart Images

Figure CN119048254A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud service technology, and in particular to a multi-cloud bill verification method, device, equipment and storage medium. Background Art
[0002] With the rapid development of cloud computing technology, more and more enterprises choose to deploy their businesses in a multi-cloud environment in order to take advantage of the services and products provided by multiple cloud platforms, such as network coverage, big data products, AI products, etc. In order to effectively control the cost of a multi-cloud environment and optimize resource usage, enterprises will manage the cost of a multi-cloud environment, and bill verification of a multi-cloud environment is one of the important links in cost management to ensure that the costs of the cloud platform are accurate and transparent.
[0003] In the prior art, billing data is generally downloaded manually from each cloud platform in a multi-cloud environment, and then manually checked based on the billing data to determine whether the service charges in the multi-cloud environment are accurate. However, there are many types of services on cloud platforms, and the calculation methods are different. Manual checking is difficult to ensure the efficiency and accuracy of bill checking. Summary of the invention
[0004] The present application provides a multi-cloud bill checking method, apparatus, device and storage medium to reconcile the billing data and billing detail data of cloud resources provided by cloud vendors with the resource data of locally recorded cloud resources, accurately and quickly detect bills with abnormal charges in the billing data and billing detail data, solve the problem in the prior art that manual bill checking is difficult to ensure checking efficiency and accuracy, effectively improve the efficiency and accuracy of bill checking, and ensure the accuracy of service charges in a multi-cloud environment.
[0005] In a first aspect, the present application provides a multi-cloud bill verification method, comprising:
[0006] Calling the interface of each cloud platform to obtain the first bill data of each cloud platform, and obtaining the first bill detail data uploaded by each cloud platform;
[0007] Parsing the first billing data and the first billing detail data of each of the cloud platforms into a lightweight data exchange format according to preset field names to obtain second billing data and second billing detail data;
[0008] The second billing data of each of the cloud platforms are integrated to obtain a first billing table, and the second billing detail data of each of the cloud platforms are integrated to obtain a second billing table;
[0009] Obtain data tables of cloud resources deployed by each of the cloud platforms in the basic resource database, reconcile the first billing table with the data table and reconcile the second billing table with the data table according to preset reconciliation rules, and determine abnormal bills in the first billing table and the second billing table.
[0010] In a second aspect, the present application provides a multi-cloud bill checking device, comprising:
[0011] A bill acquisition module is configured to call the interface of each cloud platform to acquire the first bill data of each cloud platform and acquire the first bill detail data uploaded by each cloud platform;
[0012] A bill format conversion module is configured to parse the first bill data and the first bill detail data of each of the cloud platforms into a lightweight data exchange format according to a preset field name to obtain the second bill data and the second bill detail data;
[0013] A bill integration module is configured to integrate the second bill data of each of the cloud platforms to obtain a first bill table, and integrate the second bill detail data of each of the cloud platforms to obtain a second bill table;
[0014] The bill checking module is configured to obtain the data table of each cloud resource deployed by the cloud platform in the basic resource database, reconcile the first bill table with the data table and reconcile the second bill table with the data table according to the preset reconciliation rules, and determine the abnormal bills in the first bill table and the second bill table.
[0015] In a third aspect, the present application provides a multi-cloud bill checking device, including:
[0016] one or more processors;
[0017] A memory stores one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-cloud bill verification method as described in the first aspect.
[0018] In a fourth aspect, the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to perform the multi-cloud bill verification method as described in the first aspect.
[0019] In this application, the first billing data of each cloud platform is obtained by calling the interface of each cloud platform, and the first billing detail data uploaded by each cloud platform is obtained; the first billing data and the first billing detail data of each cloud platform are parsed into a lightweight data exchange format, and the first billing data and the first billing detail data in the lightweight data exchange format are converted into the second billing data and the second billing detail data in the preset field format respectively; the second billing data of each cloud platform is integrated to obtain the first billing table, and the second billing detail data of each cloud platform is integrated to obtain the second billing table; the data table of the cloud resources deployed by each cloud platform is obtained in the basic resource database, and the first billing table is reconciled with the data table and the second billing table is reconciled with the data table according to the preset reconciliation rules, and the abnormal bills in the first billing table and the second billing table are determined. Through the above technical means, the billing data obtained from the cloud platform and the billing detail data provided by the cloud vendor can be converted into a standard data format, so that the billing data and billing detail data in the standard data format can be subsequently checked with the data table of the cloud resources recorded locally to ensure the accuracy of the billing check. The billing data and the billing details data are respectively integrated into the first billing table and the second billing table, so that the first billing table and the second billing table can be directly reconciled with the data table in the future, thereby improving the efficiency of bill reconciliation. The first billing table is reconciled with the data table and the second billing table is reconciled with the data table according to the preset reconciliation rules, and the bills with abnormal charges in the billing data and the billing details data are accurately and quickly detected, which solves the problem that it is difficult to ensure the efficiency and accuracy of manual bill reconciliation in the prior art, effectively improves the efficiency and accuracy of bill reconciliation, and ensures the accuracy of service charges in a multi-cloud environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of a multi-cloud bill checking method provided by an embodiment of the present application;
[0021] Figure 2 is a flowchart of generating second bill data and second bill detail data provided by an embodiment of the present application;
[0022] Figure 3 is a flowchart of generating a first bill table and a second bill table provided in an embodiment of the present application;
[0023] Figure 4 is a flow chart of determining abnormal bills in the first bill table and the second bill table provided in an embodiment of the present application;
[0024] Figure 5 This is a flowchart of generating and uploading a bill exception report provided by an embodiment of the present application;
[0025] Figure 6 It is a structural schematic diagram of a multi-cloud bill checking device provided in an embodiment of the present application;
[0026] Figure 7 It is a structural diagram of a multi-cloud bill checking device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0029] In the more common existing implementation methods, billing data is generally downloaded manually from each cloud platform in the multi-cloud environment, and manual verification is performed based on the billing data to determine whether the service charges in the multi-cloud environment are accurate. However, there are many types of services on cloud platforms, and the calculation methods are different. Manual verification is difficult to ensure the efficiency and accuracy of bill verification. The formats of billing data provided by multiple cloud platforms are not uniform, and errors are prone to occur when verifying billing data, and reconciliation is difficult, which affects the efficiency and accuracy of bill verification.
[0030] To solve the above problems, this embodiment provides a multi-cloud bill verification method to reconcile the billing data and billing detail data of cloud resources provided by cloud vendors with the resource data of locally recorded cloud resources, accurately and quickly detect bills with abnormal charges in the billing data and billing detail data, effectively improve the efficiency and accuracy of bill verification, and ensure the accuracy of service charges in a multi-cloud environment.
[0031] The multi-cloud bill checking method provided in this embodiment can be executed by a multi-cloud bill checking device, which can be implemented by software and / or hardware, and can be composed of two or more physical entities, or can be composed of one physical entity. For example, the multi-cloud bill checking device can be a reconciliation server, which can check the expense bills in a multi-cloud environment, determine the cloud resources with abnormal charges in the expense bills, and avoid the enterprise spending extra costs on cloud resources.
[0032] The multi-cloud bill checking device is installed with at least one type of operating system, wherein the operating system includes but is not limited to Android system, Linux system and Windows system. The multi-cloud bill checking device can install at least one application based on the operating system, and the application can be an application that comes with the operating system or an application downloaded from a third-party device or server. In this embodiment, the multi-cloud bill checking device has at least an application that can execute the multi-cloud bill checking method.
[0033] For ease of understanding, this embodiment is described by taking the reconciliation server as an example of the main body executing the multi-cloud bill reconciliation method.
[0034] Figure 1 A flowchart of a multi-cloud bill verification method provided by an embodiment of the present application is given. Figure 1 , the multi-cloud bill verification method specifically includes:
[0035] S110. Call the interface of each cloud platform to obtain the first bill data of each cloud platform, and obtain the first bill detail data uploaded by each cloud platform.
[0036] The first billing data is the billing data generated by the cloud platform according to the usage data of the corresponding deployed cloud resources within the settlement period. The first billing data includes the resource identifier of the corresponding cloud resource, the resource usage time period within the settlement period, the resource cost within the settlement period, the order identifier, the billing mode, the discount information, the project name, the product name, etc. The settlement period is set by the cloud platform, and the cost of cloud resources is generally settled once a month. Accordingly, the resource usage time period in the first billing data is the time period of cloud resource usage in the corresponding month, and the resource cost in the first billing data is the total cost in the corresponding month. This embodiment is described by taking the settlement period as a month as an example.
[0037] Exemplarily, each cloud platform deploys cloud resources corresponding to each business in the enterprise, such as virtual machines, storage space, and network architecture. During the use of cloud resources, the cloud platform can calculate the cost of the corresponding deployed cloud resources in the current month based on the billing model of the cloud resources, and generate the first bill data of the corresponding cloud resources in the current month based on the cost and other information of the cloud resources. Further, the cloud platform provides an API interface for calling the first bill data of the cloud resources, and the reconciliation server is installed with the cloud platform SDK. At the beginning of the month, the reconciliation server can generate a bill acquisition request based on the cloud platform account registered by the enterprise and the resource identifier of the cloud resources deployed by the enterprise on the cloud platform, and send the bill acquisition request to the API interface of the cloud platform through the cloud platform SDK. The cloud platform authenticates the enterprise account in the bill acquisition request received by the API interface, and obtains the first bill data of the corresponding cloud resources in the previous month according to the cloud resource identifier in the bill acquisition request after the identity authentication is passed, and sends the obtained first bill data to the reconciliation server through the API interface. The reconciliation server can call the API interface provided by each cloud platform to obtain the first bill data of the cloud resources deployed by the enterprise on each cloud platform in the previous month.
[0038] Among them, the first billing detail data is the billing data of the cloud platform according to the requirements of the enterprise to calculate the cost of cloud resources per unit time, wherein the unit time is set by the enterprise. When the settlement period is a month, the unit time is also a day or a hour. This embodiment is described by taking the unit time as an example. The first billing detail data includes the resource identifier of the cloud resource, the resource usage time period within the unit time, the resource cost within the unit time, the order identifier, the billing mode, the discount information, the project name, the product name, and also includes the cost of the cloud resource per unit time and other more detailed information such as associated documents, price attributes, etc. It can be understood that compared with the total cost of the cloud resources in the corresponding month recorded by the first billing data, the first billing detail data records the cost of the cloud resources in the corresponding hours in the corresponding month. Since a month can be divided into multiple hours, the cloud platform will generate multiple first billing detail data in each month. This embodiment aims to check the billing data and the billing detail data, determine whether the total cost of the cloud resources and the cost per unit time are accurate, and ensure the accuracy of the service charges in the multi-cloud environment.
[0039] For example, during the use of cloud resources, the cloud platform can calculate the cost of each hour of the corresponding deployed cloud resources in the current month based on the billing model of the cloud resources, and generate the first billing details of the corresponding cloud resources at each hour according to the cost of each hour and other information. At the beginning of the month, each cloud platform uploads the first billing details of each hour of the cloud resources in the previous month to the reconciliation server through the API interface provided by the reconciliation server, and the reconciliation server obtains the first billing details uploaded by each cloud platform.
[0040] S120. Parse the first billing data and the first billing detail data of each cloud platform into a lightweight data exchange format according to preset field names to obtain second billing data and second billing detail data.
[0041] Exemplarily, the first bill data of each cloud platform is converted into bill data in a unified field format by presetting the field name, and then the bill data in the unified field format is parsed into a lightweight data exchange format to obtain the second bill data. The first bill detail data of each cloud platform is converted into bill detail data in a unified field format by presetting the field name, and then the bill detail data in the unified field format is parsed into a lightweight data exchange format to obtain the second bill detail data. It can be understood that the format of the first bill data generated by different cloud platforms is different and the format of the data table of the pre-collected cloud resources is also different. If the first bill data is directly reconciled with the data table of the cloud resources, it will not only increase the complexity of the reconciliation, but also easily cause erroneous reconciliation, affecting the efficiency and accuracy of the reconciliation. Similarly, the format of the first bill detail data generated by different cloud platforms is also different and the format of the data table of the pre-collected cloud resources is also different. If the first detailed bill data is directly reconciled with the data table of the cloud resources, it will not only increase the complexity of the reconciliation, but also easily cause erroneous reconciliation, affecting the efficiency and accuracy of the reconciliation. Therefore, in order to facilitate the subsequent reconciliation of the first bill data and the first bill detail data, each first bill data and the first bill detail data can be converted into data in a unified field format with the data table, thereby improving reconciliation efficiency while ensuring reconciliation accuracy.
[0042] In this embodiment, Figure 2 1 is a flowchart of generating second bill data and second bill detail data provided by an embodiment of the present application. Figure 2 As shown, the step of generating the second bill data and the second bill detail data specifically includes S1201-S1202:
[0043] S1201. Rename the field names of the same field type in the first billing data according to the preset field names, parse the first billing data after the field is renamed into a lightweight data exchange format, and obtain second billing data.
[0044] Among them, the preset field name is the name of each field in the pre-defined unified field format, and the preset field name includes the field name of the resource identifier, the field name of the resource cost, the field name of the resource usage time period, the field name of the billing mode, etc. It can be understood that different cloud platforms have different names for the fields such as the resource identifier, resource cost, resource usage time period and billing mode in the first billing data. For example, cloud platform A will name the field of the resource identifier as XID, while cloud platform B will name the field of the resource identifier as YID. In order to facilitate the subsequent direct positioning of the resource identifier in the first billing data, the field name of the resource identifier in the first billing data can be renamed to the field name of the resource identifier in the preset field name. If the field name of the resource identifier in the preset field name is resource ID, the field name of the resource identifier in the first billing data after the renaming is uniformly named as resource ID. Similarly, the field names of the resource cost, resource usage time period and billing mode in the first billing data are also renamed to the field names of the resource cost, resource usage time period and billing mode in the preset field name.
[0045] After renaming the field names of the first bill data, the first bill data in a unified field format is obtained, and then the first bill data in a unified field format is parsed into a lightweight data exchange format, that is, the first bill data in a unified field format is parsed into a JSON format to obtain the second bill data. Since the second bill data in JSON format is presented in the form of key-value pairs and has a clear structure, the data can be located and understood more quickly during the reconciliation process, thereby improving the accuracy and efficiency of the comparison.
[0046] S1202. Rename the field names of the same field type in the first bill detail data according to the preset field names, parse the first bill detail data after the field is renamed into a lightweight data exchange format, and obtain the second bill detail data.
[0047] Similarly, different cloud platforms have different names for fields such as resource identification, resource cost, resource usage time period and billing mode in the first bill detail data. In order to facilitate the subsequent direct positioning of the resource identification in the first bill data, the field names of the resource identification, resource cost, resource usage time period and billing mode in the first bill detail data can be renamed to the field names of the resource identification, resource cost, resource usage time period and billing mode in the preset field names.
[0048] After renaming the field names of the first bill detail data, the first bill detail data in a unified field format is obtained, and then the first bill detail data in a unified field format is parsed into a lightweight data exchange format, that is, the first bill detail data in a unified field format is parsed into a JSON format to obtain the second bill detail data. Since the second bill detail data in JSON format is presented in the form of key-value pairs and has a clear structure, the data can be located and understood more quickly during the reconciliation process, thereby improving the accuracy and efficiency of the reconciliation.
[0049] This embodiment renames the field names of the first billing data and the first billing detail data of each cloud platform by presetting the field names, so as to convert the first billing data and the first billing detail data of each cloud platform into a unified field format, so as to perform bill verification based on the field information of the same field name in the subsequent process, thereby improving the efficiency and accuracy of the reconciliation. The first billing data and the first billing detail data in the unified field format are parsed into the JSON format to obtain the second billing data and the second billing detail data, so as to perform bill verification based on the second billing data and the second billing detail data in the JSON format in the subsequent process, thereby further improving the efficiency and accuracy of the reconciliation.
[0050] S130: Integrate the second billing data of each cloud platform to obtain a first billing table, and integrate the second billing detail data of each cloud platform to obtain a second billing table.
[0051] Exemplarily, all the second billing data of each cloud platform are integrated into the same billing table to obtain the first billing table, so that the first billing table can be subsequently checked based on the data table of cloud resources collected in advance, and abnormal bills in the first billing table can be detected. All the second billing details of each cloud platform are integrated into the same billing table to obtain the second billing table, so that the second billing table can be subsequently checked based on the data table of cloud resources collected in advance, and abnormal bills in the second billing table can be detected. Further, in order to improve the granularity of bill checking, the second billing data of the same project can be integrated into the same billing table according to the project name of the second billing data of each cloud platform to obtain the first billing table corresponding to the project. Accordingly, after the second billing data of each cloud platform is integrated according to the project granularity, the first billing table corresponding to multiple projects can be obtained. According to the project name of the second billing details of each cloud platform, the second billing details of the same instance can be integrated into the same billing table to obtain the second billing table corresponding to the project. Accordingly, after the second billing details of each cloud platform are integrated according to the project granularity, the second billing tables corresponding to multiple projects can be obtained. It can be understood that projects are divided according to business. The second billing data and the second billing detail data of the same project are respectively integrated into the same first billing table and the second billing table, so as to check the bill of the project and calculate the cost of the project at the same time, and help optimize the cloud resource cost of each project.
[0052] In this embodiment, Figure 3 1 is a flowchart of generating a first bill table and a second bill table provided in an embodiment of the present application. Figure 3 As shown, the steps of generating the first bill table and the second bill table specifically include S1301-S1302:
[0053] S1301. Merge the second billing data of each cloud platform, and perform deduplication processing on the billing table obtained by merging the second billing data to obtain a first billing table.
[0054] Exemplarily, all second billing data of each cloud platform are combined and placed in the same billing table, and the second billing data in the billing table is deduplicated to obtain the first billing table. When deduplicating the second billing data, the repeated second billing data is deleted until only one second billing data is retained. It is understandable that when the reconciliation server pulls the first billing data through the API interface of the cloud platform, it may repeatedly pull multiple first billing data due to network fluctuations or other reasons, resulting in multiple identical second billing data in the billing table. If deduplication is not performed, the same second billing data will be repeatedly reconciled with the data table of the cloud resources, affecting the reconciliation efficiency and accuracy. Therefore, the second billing data in the billing table is deduplicated to delete multiple identical second billing data until only one remains, so that only the remaining second billing data will be reconciled with the data table of the cloud resources later, improving the reconciliation efficiency and accuracy.
[0055] S1302: Merge the second billing details of each cloud platform, and perform deduplication processing on the billing table obtained by merging the second billing details to obtain a second billing table.
[0056] Exemplarily, all the second bill details of each cloud platform are combined and placed in the same bill table, and the second bill details in the bill table are deduplicated to obtain the second bill table. When the second bill details are deduplicated, the repeated second bill details are deleted until only one second bill details is retained. It is understandable that when the cloud platform uploads the first bill details to the reconciliation server through the API interface of the reconciliation server, it may repeatedly upload multiple first bill details due to network fluctuations or other reasons, resulting in multiple identical second bill details in the bill table. If deduplication is not performed, the same second bill details will be repeatedly reconciled with the data table of the cloud resources, affecting the efficiency and accuracy of the reconciliation. Therefore, the second bill details in the bill table are deduplicated to delete multiple identical second bill details until only one remains, so that only the remaining second bill details are reconciled with the data table of the cloud resources in the future, improving the efficiency and accuracy of the reconciliation.
[0057] This embodiment merges the second bill data and the second bill detail data of each cloud platform respectively, and deduplicates the merged bill table to generate a first bill table storing non-repetitive second bill data and a second bill table storing non-repetitive second bill detail data, thereby improving reconciliation efficiency and accuracy.
[0058] S140. Obtain data tables of cloud resources deployed on each cloud platform in the basic resource database, reconcile the first billing table with the data table and reconcile the second billing table with the data table according to preset reconciliation rules, and determine abnormal bills in the first billing table and the second billing table.
[0059] Among them, the basic resource database is maintained by the management server that manages cloud resources. The management server can monitor the operation of cloud resources deployed by each cloud platform and obtain various data of cloud resources such as resource identification, usage time period, resource type, billing mode, purchase time, SN number, public network IP, external network IP, location of the computer room, configuration specifications and project name. The management server collects various data of each cloud resource in the current month and summarizes and generates a data table containing resource data of each cloud resource, and stores the data table of cloud resources in the basic resource database. At the beginning of the month, the reconciliation server obtains the first bill data and the first bill detail data of the previous month from the cloud platform, and generates the first bill table and the second bill table of the previous month respectively according to the first bill data and the first bill detail data, and then obtains the data table of the previous month of each cloud resource in the basic resource database, and reconciles the first bill table and the second bill table of the previous month through the data table of the previous month, and determines the abnormal bills in the first bill table and the second bill table.
[0060] The preset reconciliation rule is used to indicate the conditions satisfied by the normal bills, and the abnormal bills in the first bill table and the second bill table that do not satisfy the conditions can be determined according to the reconciliation rule and the data table of the cloud resources.
[0061] In this embodiment, the reconciliation rule may be that the data table of the cloud resource of the normal bill is the same as the usage time period of the same cloud resource in the first bill table and the second bill table. Figure 4 1 is a flowchart of determining abnormal bills in the first bill table and the second bill table provided by an embodiment of the present application. Figure 4 As shown, the step of determining abnormal bills in the first bill table and the second bill table specifically includes S1401-S1405:
[0062] S1401. Determine the second billing data corresponding to the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second billing data in the first billing table.
[0063] Exemplarily, the resource identifier of each resource data in the data table of the cloud resources is compared with the resource identifier of each second bill data in the first bill table. When the resource identifier of the resource data is the same as the resource identifier of the second bill data, it is determined that the resource data and the second bill data correspond to the same cloud resource, and the second bill data is determined as the second bill data corresponding to the resource data, so that the bill of the corresponding matching second bill data can be subsequently checked based on the resource data.
[0064] S1402. Compare the first resource usage time period of the resource data with the second resource usage time period of the corresponding second billing data, and determine that the second billing data corresponding to the resource data is an abnormal bill if the first resource usage time period and the second resource usage time period are different.
[0065] Among them, the first resource usage time period is the usage time period of the cloud resources to which the corresponding resource data belongs monitored by the management server in the last month, and the second resource usage time period is the usage time period of the cloud resources to which the corresponding second billing data belongs monitored by the cloud platform in the last month. It is understandable that cloud resources may be withdrawn from use during use, and the cloud platform cannot know that the cloud resources have been withdrawn from use and continue to charge. The usage time period of the cloud resources monitored by the management server is different from the usage time period of the cloud resources monitored by the cloud platform. Therefore, the resource fee of the second billing data is additionally included in the time period when the cloud resources are not used, that is, the resource fee in the second billing data is inaccurate, and the second billing data is an abnormal bill. In this regard, the first resource usage time period of the resource data can be compared with the second resource usage time period of the corresponding matching second billing data. If the first resource usage time period and the second resource usage time period are different, it is determined that the second billing data is an abnormal bill.
[0066] Further, when the first resource usage time period and the second resource usage time period are the same, the first resource fee corresponding to the resource data is determined according to the billing rules in the resource data, and the first resource fee is compared with the second resource fee in the corresponding second billing data; when the first resource fee and the second resource fee are different, the second billing data corresponding to the resource data is determined to be an abnormal bill. Exemplarily, the same first resource usage period and the second resource usage period only indicate that the management server and the cloud platform monitor the same cloud resource usage period last month, but does not mean that the resource fee of the cloud resource calculated by the cloud platform in the second billing data is accurate. In this regard, when it is determined that the first resource usage period and the second resource usage period of the same cloud resource are the same, the first resource fee of the cloud resource corresponding to the resource data in the first resource usage period is calculated according to the billing rules in the resource data. The first resource fee is compared with the second resource fee in the second billing data corresponding to the resource data. When the first resource fee and the second resource fee are the same, it indicates that the resource fee calculated by the reconciliation server and the cloud platform for the same cloud resource last month is the same, and it can be determined that there is no problem with the second resource fee in the second billing data calculated by the cloud platform, and then the second billing data is determined to be a normal bill. When the first resource fee and the second resource fee are different, it indicates that the reconciliation server and the cloud platform have calculated different resource fees for the same cloud resource. It can be determined that there is an abnormality in the second resource fee in the second bill data calculated by the cloud platform, and then the second bill data is determined to be an abnormal bill.
[0067] It should be noted that the billing rules in the resource data include the billing mode, discount information and coupon information of the resource data. When calculating the first resource fee, the total fee of the cloud resource under the configuration during the first resource usage time can be calculated according to the billing mode, the first resource usage time period and the configuration specifications in the resource data, and the total fee can be discounted and discounted according to the discount information and coupon information to obtain the first resource fee.
[0068] This embodiment quickly and accurately identifies abnormal bills in the first bill table that have errors in the billing time by comparing the first resource usage time period in the resource data and the second resource usage time period in the second bill data for the same cloud resource. If there are no errors in the billing time, the first resource fee of the cloud resource in the first resource usage time period is accurately calculated using the billing rules in the resource data, and the first resource fee and the second resource fee of the same cloud resource are compared to quickly and accurately identify abnormal bills in the first bill table that have errors in the resource fee, effectively improving the efficiency and accuracy of reconciliation.
[0069] S1403: Determine a plurality of second bill detail data corresponding to and matching the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second bill detail data in the second bill table.
[0070] Exemplarily, the resource identifier of each resource data in the data table of cloud resources is compared with the resource identifier of each second billing detail data in the second billing table. When the resource identifier of the resource data is the same as the resource of the second billing detail data, it is determined that the resource data and the second billing detail data correspond to the same cloud resource, and the second billing detail data is determined as the second billing detail data that matches the resource data. Since the second billing table includes multiple second billing detail data with the same resource identifier but different resource usage time periods, after comparing the resource identifiers, multiple second billing detail data that matches the resource data can be determined in the second billing table, so that the bills of the multiple second billing detail data that match the resource data can be subsequently checked based on the resource data.
[0071] S1404: Aggregate the third resource usage time periods of the plurality of second bill detail data corresponding to the resource data to obtain a fourth resource usage time period, and compare the first resource usage time period with the fourth resource usage time period.
[0072] Among them, the third resource usage time period is the usage time period of the cloud resource corresponding to the second billing detail data monitored by the cloud platform in the corresponding number of hours in the last month. After the third resource usage of multiple second billing detail data corresponding to the resource data is summarized to obtain the fourth resource usage time period, the fourth resource usage time period is the usage time period of the cloud resource corresponding to the second billing detail data monitored by the cloud platform in the last month. Similarly, during the use of cloud resources, they may be retired, and the cloud platform cannot know that the cloud resources have been retired and continue to charge and generate the second billing detail data. The usage time period of the cloud resources monitored by the management server is different from the usage time period of the cloud resources monitored by the cloud platform. Therefore, the resource fees of some second billing detail data are additionally included in the time period when the cloud resources are not used, that is, this part of the second billing detail data is an abnormal bill. In this regard, the first resource usage time period and the fourth resource usage time period of the resource data can be compared. If the first resource usage time period and the fourth resource usage time period are different, it is determined that there is an abnormal bill in the corresponding matching multiple second billing detail data.
[0073] S1405. When the first resource usage time period and the fourth resource usage time period are different, determine redundant second bill detail data among the multiple second bill detail data corresponding to the resource data, and determine the redundant second bill detail data as an abnormal bill.
[0074] Exemplarily, when the first resource usage time period and the fourth resource usage time period are different, second bill detail data whose third resource usage time period is not within the range of the first resource usage time period can be determined from multiple second bill detail data corresponding to the resource data, and the second bill detail data can be determined as an abnormal bill.
[0075] Furthermore, when the first resource usage time period and the fourth resource usage time period are the same, the first resource fee corresponding to the resource data is determined according to the billing rules in the resource data, and the third resource fees of multiple second bill detail data corresponding to the resource data are aggregated to obtain the fourth resource fee; when the first resource fee and the third resource fee are different, the fifth resource fee of each second bill detail data corresponding to the resource data is determined according to the billing rules in the resource data, and the third resource fee of each second bill detail data is compared with the corresponding fifth resource fee; when the third resource fee of the second bill detail data and the corresponding fifth resource fee are different, the second bill detail data is determined as an abnormal bill.
[0076] Exemplarily, the first resource usage period and the fourth resource usage period being the same only indicates that the management server and the cloud platform monitored the same cloud resource usage period last month, but does not mean that the resource costs of the cloud resource calculated by the cloud platform in each second billing detail data are accurate. In this regard, when determining that the first resource usage period and the fourth resource usage period of the same cloud resource are the same, this embodiment calculates the first resource cost of the cloud resource corresponding to the resource data in the first resource usage period according to the billing rules in the resource data, and accumulates the third resource costs in the multiple second billing detail data that match the resource data to obtain the fourth resource cost. When the first resource cost and the fourth resource cost are the same, it indicates that the resource costs calculated by the reconciliation server and the cloud platform for the same cloud resource last month are the same, then it can be determined that there is no problem with the third resource cost in the multiple second billing detail data that match the resource data, and then it is determined that the multiple second billing detail data that match the resource data are normal bills. When the first resource fee and the fourth resource fee are different, it indicates that the resource fees calculated by the reconciliation server and the cloud platform for the same cloud resource last month are different. It can be determined that some of the third resource fees in the multiple second billing details data that match the resource data are abnormal. Then, the fifth resource fee of each second billing detail data that matches can be determined according to the billing rules in the resource data, and the fifth resource fee of the second billing detail data is compared with the third resource fee. If the fifth resource fee is the same as the third resource fee, it indicates that there is no problem with the resource fee corresponding to the hours of the second billing detail data calculated by the cloud platform. If the fifth resource fee is different from the third resource fee, it indicates that the resource fee corresponding to the hours of the second billing detail data calculated by the cloud platform is abnormal, and then the second billing detail data is determined to be an abnormal bill.
[0077] It should be noted that when calculating the fifth resource fee, the total fee of the cloud resources under this configuration during the third resource usage time can be calculated based on the billing model of the resource data, the third resource usage time period of the second bill detail data, and the configuration specifications in the resource data. The total fee can be discounted and discounted based on the discount information and coupon information to obtain the fifth resource fee.
[0078] This embodiment quickly and accurately identifies abnormal bills in the second bill table that have errors in the billing time by comparing the first resource usage time period in the resource data of the same cloud resource with the fourth resource usage time period summarized in multiple second billing details. If there is no error in the billing time, the fifth resource fee of the cloud resource in the third resource usage period is accurately calculated through the billing rules in the resource data, and the fifth resource fee and the second resource fee of the same cloud resource in the same third resource usage period are compared to quickly and accurately identify abnormal bills in the second bill table that have errors in the resource fee, effectively improving the efficiency and accuracy of reconciliation.
[0079] In one embodiment, after determining the abnormal bill, a bill exception report can be generated based on the abnormal bill, and the bill exception report can be sent to the cloud platform so that the cloud platform can correct the abnormal bill and feed the corrected bill back to the reconciliation server for reconciliation to ensure the accuracy of the calculation of the cost of cloud resources. Figure 5 This is a flowchart of generating and uploading a bill exception report provided by an embodiment of the present application. Figure 5 As shown, the steps of generating and uploading the bill exception report specifically include S1501-S1502:
[0080] S1501. Determine the corresponding abnormal reason according to the abnormal bill, and generate a bill abnormality report according to the abnormal bill and the corresponding abnormal reason.
[0081] Exemplarily, when the resource usage time of the abnormal bill is different from the resource usage time of the corresponding matching resource data, the abnormal reason of the abnormal bill is determined to be a billing time error, and when the resource fee of the abnormal bill is different from the resource fee calculated based on the corresponding matching resource data, the abnormal reason of the abnormal bill is determined to be a resource fee error. The abnormal bill and the corresponding abnormal reason are added to the preset report template to automatically generate the corresponding bill abnormality report.
[0082] S1502. Send the bill exception report to the cloud platform corresponding to the abnormal bill, so that the cloud platform can correct the abnormal bill according to the abnormal reason in the bill exception report, and send the corrected bill data or bill detail data.
[0083] Exemplarily, based on the cloud platform identifier in the abnormal bill, the cloud platform API interface is called to upload the abnormal bill report to the cloud platform. After receiving the abnormal bill report, the cloud platform corrects the resource usage time period or resource fee of the abnormal bill according to the abnormal reason in the abnormal bill report, and re-sends the corrected bill data or bill detail data to the reconciliation server. The reconciliation server re-reconciles the corrected bill data or bill detail data based on the resource data to ensure the accuracy of the calculation of the cost of cloud resources.
[0084] In one embodiment, when the reconciliation server determines that there are no abnormal bills in the first reconciliation table and the second reconciliation table, it can generate a payment document based on the first reconciliation table, the second reconciliation table and the data table, and call the API interface of the financial system to transmit the payment document to the financial system, so that the financial system pays the cost of cloud resources for the previous month, saving the process of separately issuing payment documents and uploading vouchers to the financial system, thereby improving payment efficiency.
[0085] In summary, the multi-cloud bill verification method provided by the embodiment of the present application obtains the first bill data of each cloud platform by calling the interface of each cloud platform, and obtains the first bill detail data uploaded by each cloud platform; parses the first bill data and the first bill detail data of each cloud platform into a lightweight data exchange format, and converts the first bill data and the first bill detail data in the lightweight data exchange format into the second bill data and the second bill detail data in the preset field format respectively; integrates the second bill data of each cloud platform to obtain the first bill table, and integrates the second bill detail data of each cloud platform to obtain the second bill table; obtains the data table of cloud resources deployed by each cloud platform in the basic resource database, reconciles the first bill table with the data table and reconciles the second bill table with the data table according to the preset reconciliation rules, and determines the abnormal bills in the first bill table and the second bill table. Through the above technical means, the bill data obtained from the cloud platform and the bill detail data provided by the cloud vendor can be converted into a standard data format, so that the bill data and bill detail data in the standard data format can be subsequently checked with the data table of the cloud resources recorded locally to ensure the accuracy of the bill check. The billing data and the billing details data are respectively integrated into the first billing table and the second billing table, so that the first billing table and the second billing table can be directly reconciled with the data table in the future, thereby improving the efficiency of bill reconciliation. The first billing table is reconciled with the data table and the second billing table is reconciled with the data table according to the preset reconciliation rules, and the bills with abnormal charges in the billing data and the billing details data are accurately and quickly detected, which solves the problem that it is difficult to ensure the efficiency and accuracy of manual bill reconciliation in the prior art, effectively improves the efficiency and accuracy of bill reconciliation, and ensures the accuracy of service charges in a multi-cloud environment.
[0086] Based on the above embodiments, Figure 6A schematic diagram of the structure of a multi-cloud bill checking device provided in an embodiment of the present application. Figure 6 The multi-cloud bill checking device provided in this embodiment specifically includes: a bill acquisition module 21, a bill format conversion module 22, a bill integration module 23 and a bill checking module 24.
[0087] The bill acquisition module 21 is configured to call the interface of each cloud platform to acquire the first bill data of each cloud platform and acquire the first bill detail data uploaded by each cloud platform;
[0088] The bill format conversion module 22 is configured to parse the first bill data and the first bill detail data of each cloud platform into a lightweight data exchange format according to a preset field name to obtain the second bill data and the second bill detail data;
[0089] The bill integration module 23 is configured to integrate the second bill data of each cloud platform to obtain a first bill table, and integrate the second bill detail data of each cloud platform to obtain a second bill table;
[0090] The bill checking module 24 is configured to obtain the data table of the cloud resources deployed by each cloud platform in the basic resource database, reconcile the first bill table with the data table and reconcile the second bill table with the data table according to the preset reconciliation rules, and determine the abnormal bills in the first bill table and the second bill table.
[0091] On the basis of the above embodiment, the bill checking module 24 includes: a first bill matching unit, configured to determine the second bill data corresponding to the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second bill data in the first bill table; the first bill checking unit, configured to compare the first resource usage time period of the resource data with the second resource usage time period of the corresponding second bill data, and determine that the second bill data corresponding to the resource data is an abnormal bill when the first resource usage time period and the second resource usage time period are different; the second bill matching unit, configured to determine the plurality of second bill detail data corresponding to the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second bill detail data in the second bill table; the second bill checking unit, configured to obtain a fourth resource usage time period by aggregating the third resource usage time period of the plurality of second bill detail data corresponding to the resource data, and compare the first resource usage time period with the fourth resource usage time period; the third bill checking unit, configured to determine the redundant second bill detail data in the plurality of second bill detail data corresponding to the resource data when the first resource usage time period and the fourth resource usage time period are different, and determine the redundant second bill detail data as an abnormal bill.
[0092] On the basis of the above embodiment, the first bill verification unit also includes: a first fee calculation subunit, which is configured to compare the first resource usage time period of the resource data with the second resource usage time period of the corresponding matching second bill data, and when the first resource usage time period and the second resource usage time period are the same, determine the first resource fee corresponding to the resource data according to the billing rules in the resource data, and compare the first resource fee with the second resource fee in the corresponding matching second bill data; a first abnormal bill determination subunit, which is configured to determine that the second bill data corresponding to the resource data is an abnormal bill when the first resource fee and the second resource fee are different.
[0093] On the basis of the above embodiment, the second bill verification unit includes: a second fee calculation subunit, which is configured to, after comparing the first resource usage time period with the fourth resource usage time period, determine the first resource fee corresponding to the resource data according to the billing rules in the resource data when the first resource usage time period and the fourth resource usage time period are the same, and aggregate the third resource fees of multiple second bill detail data corresponding to the resource data to obtain the fourth resource fee; a third fee calculation subunit, which is configured to, when the first resource fee and the third resource fee are different, determine the fifth resource fee of each corresponding second bill detail data according to the billing rules in the resource data, and compare the third resource fee of each second bill detail data with the corresponding fifth resource fee; a second abnormal bill determination subunit, which is configured to determine the second bill detail data as an abnormal bill when the third resource fee of the second bill detail data and the corresponding fifth resource fee are different.
[0094] Based on the above embodiments, the multi-cloud bill verification device includes: an exception report generation unit, which is configured to determine the corresponding exception cause based on the abnormal bill after determining the abnormal bill in the first bill table and the second bill table, and generate a bill exception report based on the abnormal bill and the corresponding exception cause; an exception report uploading unit, which is configured to send the bill exception report to the cloud platform corresponding to the abnormal bill, so that the cloud platform corrects the abnormal bill according to the exception cause in the bill exception report, and sends the corrected bill data or bill detail data.
[0095] Based on the above embodiment, the bill format conversion module 22 includes: a first format conversion unit, configured to rename the field name of the same field type in the first bill data according to the preset field name, and parse the first bill data after the field is renamed into a lightweight data exchange format to obtain the second bill data; a second format conversion unit, configured to rename the field name of the same field type in the first bill detail data according to the preset field name, and parse the first bill detail data after the field is renamed into a lightweight data exchange format to obtain the second bill detail data.
[0096] Based on the above embodiment, the bill integration module 23 includes: a first integration unit, configured to merge the second bill data of each cloud platform, and deduplicate the bill table obtained by merging the second bill data to obtain a first bill table; a second integration unit, configured to merge the second bill detail data of each cloud platform, and deduplicate the bill table obtained by merging the second bill detail data to obtain a second bill table.
[0097] As mentioned above, the multi-cloud bill checking device provided in the embodiment of the present application obtains the first bill data of each cloud platform by calling the interface of each cloud platform, obtains the first bill detail data uploaded by each cloud platform; parses the first bill data and the first bill detail data of each cloud platform into a lightweight data exchange format, and converts the first bill data and the first bill detail data in the lightweight data exchange format into the second bill data and the second bill detail data in the preset field format respectively; integrates the second bill data of each cloud platform to obtain the first bill table, and integrates the second bill detail data of each cloud platform to obtain the second bill table; obtains the data table of cloud resources deployed by each cloud platform in the basic resource database, reconciles the first bill table with the data table and reconciles the second bill table with the data table according to the preset reconciliation rules, and determines the abnormal bills in the first bill table and the second bill table. Through the above technical means, the bill data obtained from the cloud platform and the bill detail data provided by the cloud vendor can be converted into a standard data format, so that the bill data and the bill detail data in the standard data format can be subsequently checked with the data table of the cloud resources recorded locally to ensure the accuracy of the bill check. The billing data and the billing details data are respectively integrated into the first billing table and the second billing table, so that the first billing table and the second billing table can be directly reconciled with the data table in the future, thereby improving the efficiency of bill reconciliation. The first billing table is reconciled with the data table and the second billing table is reconciled with the data table according to the preset reconciliation rules, and the bills with abnormal charges in the billing data and the billing details data are accurately and quickly detected, which solves the problem that it is difficult to ensure the efficiency and accuracy of manual bill reconciliation in the prior art, effectively improves the efficiency and accuracy of bill reconciliation, and ensures the accuracy of service charges in a multi-cloud environment.
[0098] The multi-cloud bill checking device provided in the embodiment of the present application can be used to execute the multi-cloud bill checking method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0099] Figure 7 This is a schematic diagram of the structure of a multi-cloud bill checking device provided in an embodiment of the present application, with reference to Figure 7 The multi-cloud bill checking device includes: a processor 31, a memory 32, a communication device 33, an input device 34, and an output device 35. The number of processors 31 in the multi-cloud bill checking device can be one or more, and the number of memories 32 in the multi-cloud bill checking device can be one or more. The processor 31, memory 32, communication device 33, input device 34, and output device 35 of the multi-cloud bill checking device can be connected via a bus or other means.
[0100] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the multi-cloud bill verification method of any embodiment of the present application (for example, the bill acquisition module 21, the bill format conversion module 22, the bill integration module 23 and the bill verification module 24 in the multi-cloud bill verification device). The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0101] The communication device 33 is used for data transmission.
[0102] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 32, that is, implements the above-mentioned multi-cloud bill verification method.
[0103] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
[0104] The multi-cloud bill checking device provided above can be used to execute the multi-cloud bill checking method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0105] The embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a multi-cloud bill verification method when executed by a computer processor. The multi-cloud bill verification method includes: calling the interface of each cloud platform to obtain the first bill data of each cloud platform, and obtaining the first bill detail data uploaded by each cloud platform; parsing the first bill data and the first bill detail data of each cloud platform into a lightweight data exchange format, and converting the first bill data and the first bill detail data in the lightweight data exchange format into second bill data and second bill detail data in a preset field format respectively; integrating the second bill data of each cloud platform to obtain a first bill table, and integrating the second bill detail data of each cloud platform to obtain a second bill table; obtaining a data table of cloud resources deployed by each cloud platform in a basic resource database, reconciling the first bill table with the data table and the second bill table with the data table according to a preset reconciliation rule, and determining abnormal bills in the first bill table and the second bill table.
[0106] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0107] Of course, the storage medium containing computer executable instructions provided in the embodiments of the present application is not limited to the multi-cloud bill verification method as described above, and the computer executable instructions can also execute the relevant operations in the multi-cloud bill verification method provided in any embodiment of the present application.
[0108] The multi-cloud bill verification device, storage medium, and multi-cloud bill verification device provided in the above embodiments can execute the multi-cloud bill verification method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, refer to the multi-cloud bill verification method provided in any embodiment of the present application.
[0109] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A multi-cloud bill checking method, characterized in that: include: Calling the interface of each cloud platform to obtain the first bill data of each cloud platform, and obtaining the first bill detail data uploaded by each cloud platform; Parsing the first billing data and the first billing detail data of each of the cloud platforms into a lightweight data exchange format according to preset field names to obtain second billing data and second billing detail data; The second billing data of each of the cloud platforms are integrated to obtain a first billing table, and the second billing detail data of each of the cloud platforms are integrated to obtain a second billing table; Obtain data tables of cloud resources deployed by each of the cloud platforms in the basic resource database, reconcile the first billing table with the data table and reconcile the second billing table with the data table according to preset reconciliation rules, and determine abnormal bills in the first billing table and the second billing table.
2. The multi-cloud bill checking method according to claim 1, characterized in that: The reconciling the first bill table with the data table and the reconciling the second bill table with the data table according to a preset reconciliation rule, and determining abnormal bills in the first bill table and the second bill table, includes: Determine the second billing data corresponding to the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second billing data in the first bill table; Compare the first resource usage time period of the resource data with the second resource usage time period of the corresponding second billing data, and determine that the second billing data corresponding to the resource data is an abnormal bill if the first resource usage time period and the second resource usage time period are different; Determine a plurality of second bill detail data corresponding to and matching the resource data according to the resource identifier of each resource data in the data table and the resource identifier of each second bill detail data in the second bill table; Aggregating the third resource usage time periods of the plurality of second bill details data corresponding to the resource data to obtain a fourth resource usage time period, and comparing the first resource usage time period with the fourth resource usage time period; When the first resource usage time period is different from the fourth resource usage time period, redundant second bill detail data among a plurality of second bill detail data corresponding to the resource data is determined, and the redundant second bill detail data is determined as an abnormal bill.
3. The multi-cloud bill checking method according to claim 2, characterized in that: After comparing the first resource usage time period of the resource data with the second resource usage time period of the corresponding matching second bill data, the method further includes: In the case where the first resource usage time period and the second resource usage time period are the same, determining a first resource fee corresponding to the resource data according to a charging rule in the resource data, and comparing the first resource fee with a second resource fee in a corresponding matching second billing data; In a case where the first resource fee and the second resource fee are different, it is determined that the second bill data corresponding to the resource data is an abnormal bill.
4. The multi-cloud bill checking method according to claim 2, characterized in that: After comparing the first resource usage time period with the fourth resource usage time period, the method further includes: In the case where the first resource usage time period and the fourth resource usage time period are the same, determining the first resource fee corresponding to the resource data according to the billing rule in the resource data, and aggregating the third resource fees of the plurality of second bill detail data corresponding to the resource data to obtain the fourth resource fee; In the case where the first resource fee and the third resource fee are different, determining the fifth resource fee of each second bill detail data corresponding to the match according to the billing rule in the resource data, and comparing the third resource fee of each second bill detail data with the corresponding fifth resource fee; When the third resource fee of the second billing detail data is different from the corresponding fifth resource fee, the second billing detail data is determined as an abnormal bill.
5. The multi-cloud bill checking method according to claim 1, characterized in that: After determining the abnormal bills in the first bill table and the second bill table, the method further includes: Determine the corresponding abnormal reason according to the abnormal bill, and generate a bill abnormality report according to the abnormal bill and the corresponding abnormal reason; The bill exception report is sent to the cloud platform corresponding to the abnormal bill, so that the cloud platform corrects the abnormal bill according to the abnormal reason in the bill exception report, and sends the corrected bill data or bill detail data.
6. The multi-cloud bill checking method according to claim 1, characterized in that: The first billing data and the first billing detail data of each of the cloud platforms are parsed into a lightweight data exchange format according to the preset field names to obtain the second billing data and the second billing detail data, including: Rename the field names of the same field type in the first bill data according to the preset field names, and parse the first bill data after the field is renamed into a lightweight data exchange format to obtain second bill data; The field names of the same field type in the first bill detail data are renamed according to the preset field names, and the first bill detail data after the field is renamed is parsed into a lightweight data exchange format to obtain the second bill detail data.
7. The multi-cloud bill checking method according to claim 1, characterized in that: The second billing data of each of the cloud platforms is integrated to obtain a first billing table, and the second billing detailed data of each of the cloud platforms is integrated to obtain a second billing table, including: The second billing data of each of the cloud platforms are merged, and a billing table obtained by merging the second billing data is deduplicated to obtain a first billing table; The second billing details data of each of the cloud platforms are merged, and a billing table obtained by merging the second billing details data is deduplicated to obtain a second billing table.
8. A multi-cloud bill checking device, characterized in that: include: A bill acquisition module is configured to call the interface of each cloud platform to acquire the first bill data of each cloud platform and acquire the first bill detail data uploaded by each cloud platform; A bill format conversion module is configured to parse the first bill data and the first bill detail data of each of the cloud platforms into a lightweight data exchange format according to a preset field name to obtain the second bill data and the second bill detail data; A bill integration module is configured to integrate the second bill data of each of the cloud platforms to obtain a first bill table, and integrate the second bill detail data of each of the cloud platforms to obtain a second bill table; The bill checking module is configured to obtain the data table of each cloud resource deployed by the cloud platform in the basic resource database, reconcile the first bill table with the data table and reconcile the second bill table with the data table according to the preset reconciliation rules, and determine the abnormal bills in the first bill table and the second bill table.
9. A multi-cloud bill checking device, characterized in that: include: one or more processors; A memory stores one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-cloud bill verification method as described in any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the multi-cloud bill verification method as described in any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Patent Citations
Three-party account checking method, electronic device and readable storage medium
CN109918385A
Public cloud customer cost anomaly detection system
CN110930183A
Account checking system based on hybrid cloud computing platform and account checking method thereof
CN111192123A
Reconciliation method and device, terminal and storage medium
CN115392892A
System and method for account reconciliation
US20020026416A1
