A cloud service product metering and billing method
Through the cloud service product billing configuration and bill detail generation on the management side, the problem of inconvenient billing configuration in the existing technology is solved, dynamic real-time billing and cost display are realized, and users can accurately perceive resource usage costs.
Patent Information
- Application Number
- CN202310385143.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-04-12
AI Technical Summary
Existing technology is difficult to effectively support the billing of new cloud service product types and specifications, price changes are inconvenient, and billing configurations cannot be updated in a timely manner, resulting in users' lack of accurate perception of resource usage costs.
Perform billing configuration of cloud service products through the management side, including adding and modifying operations, generating bill details based on billing items, counting order status to determine billing specifications, and providing order information query to achieve dynamic and real-time billing configuration and fees. exhibit.
It realizes dynamic and real-time changes to billing configuration items, improves billing configuration, helps users accurately perceive resource usage costs, and supports accurate judgment of future resource usage.
Smart Images

Figure CN116346514B_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a method, which relates to the technical field of cloud platform management, and in particular to a cloud service product metering and billing method. Background Art
[0002] In the process of enterprise IT architecture evolution towards the cloud, more and more enterprises hope to obtain the service experience brought by large-scale cloud computing in their own data centers due to their own construction requirements such as security compliance, reuse of existing data centers, and localized experience. At the same time, by using the resource pool model, resources can be quickly provided even with little management work. As an important part of the cloud platform, the demand for cloud platforms is increasing, and more and more service products are starting to move to the cloud.
[0003] Providing users with metering and billing of service product usage is an important part of cloud computing. In the prior art, a series of pre-set templates are usually provided for each service product, which cannot provide good support for new product types and specifications, and is not easy to operate for price changes. For users who want to know the real-time price and the price of new products, it is impossible to update the billing configuration in time. At the same time, for some cloud platform customers, it is necessary to have an accurate perception of the usage fee of each service product to facilitate accurate judgment of future resource usage. Summary of the invention
[0004] The present invention aims at solving the problems of the prior art and provides a cloud service product metering and billing method, which not only enables the management side to configure the billing system better and more conveniently, but also opens a service product page on the tenant side to display the price in real time, and the billing amount can change with different configurations.
[0005] The specific scheme proposed by the present invention is:
[0006] The present invention provides a cloud service product metering and billing method, which performs billing configuration of the cloud service product through a management side: performing corresponding configuration operations according to the billing items of the cloud service product, the corresponding configuration operations including adding operations and modifying operations, the adding operations importing the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operations modifying the billing item prices according to the changes in the corresponding prices of the current billing items;
[0007] Generate bill details according to the metering and billing process, which specifically includes: counting all orders for a period of time, obtaining data corresponding to the instance ID closest to the current time in reverse order of time according to the instance ID in the order, judging the order status according to the data corresponding to the instance ID, if the order status is deleted, the order is not involved in metering and billing, if the order status is activated, billing is performed according to the specifications activated in the billing configuration, and if the order status is changed, metering and billing is performed according to the changed specifications in the billing configuration;
[0008] Summarize bills according to bill details and provide order information query.
[0009] Preferably, the cloud service product metering and billing method described in the above method includes:
[0010] Formulate billing items according to the billing basis, select corresponding billing items according to cloud service products, and perform addition and / or modification operations.
[0011] Preferably, the generating of bill details in the cloud service product metering and billing method includes:
[0012] Through the scheduled task, all orders in a period of time are counted. According to the instance ID in the order, the data corresponding to the instance ID closest to the current time is obtained in reverse order of time. The order status is determined according to the data corresponding to the instance ID.
[0013] If the order status is activated, billing is performed according to the specifications activated in the configuration. For each billing item of the order, the corresponding bill amount is calculated and saved to the database. The billing data of the cloud service products corresponding to each instance ID of all users is displayed in the bill details.
[0014] Preferably, the aggregating bills according to bill details in the cloud service product metering and billing method includes: data aggregation of bill details of the current month and data aggregation of bill details of non-current month;
[0015] For the data summary of the bill details of the current month, the amount of the bill details of the current month is summarized according to the user dimension;
[0016] For data summary of bill details other than the current month, the bill summary data of the previous month is generated on the first day of each month.
[0017] Preferably, the providing of order information query in the cloud service product metering and billing method includes:
[0018] According to the order, order information is obtained, where the order information includes the type of cloud service product created by the user, cloud service product configuration parameters, related time information, and operations involved in the billing configuration.
[0019] Preferably, the metering and billing process in the cloud service product metering and billing method includes: performing metering, wherein the metering is the number of billing items obtained by summing up the cloud service product and the billing items of the cloud service product.
[0020] The present invention also provides a cloud service product metering and billing device, including a configuration module, a bill detail module, a bill summary module and a query module.
[0021] The configuration module performs billing configuration of cloud service products through the management side: performs corresponding configuration operations according to the billing items of cloud service products, and the corresponding configuration operations include adding operations and modifying operations. The adding operation imports the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operation modifies the billing item price according to the change of the corresponding price of the current billing item;
[0022] The billing details module generates billing details according to the metering and billing process. The metering and billing process is specifically as follows: all orders for a period of time are counted, and according to the instance ID in the order, the data corresponding to the instance ID closest to the current time is obtained in reverse order of time, and the order status is determined according to the data corresponding to the instance ID. If the order status is deleted, the order is not involved in metering and billing. If the order status is activated, the billing is performed according to the specifications activated in the billing configuration. If the order status is changed, the metering and billing is performed according to the changed specifications in the billing configuration.
[0023] The bill summary module summarizes the bills according to the bill details, and the query module provides order information query.
[0024] The present invention also provides an electronic device for metering and billing cloud service products, comprising: at least one memory and at least one processor;
[0025] The at least one memory is used to store a machine-readable program;
[0026] The at least one processor is used to call the machine-readable program to execute the cloud service product metering and billing method.
[0027] The benefits of the present invention are:
[0028] The present invention provides a cloud service product metering and billing method, which can dynamically and real-time change the billing configuration items, and better improve the billing configuration items. The billing configuration can be added and modified dynamically and real-time, which is convenient for users to view the fees required to activate service products, help users to accurately perceive the fees for resource usage, and facilitate accurate judgment of future resource usage. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The present invention is a flow chart of metering and billing of the method.
[0030] Figure 2 It is a schematic diagram of the execution flow of the order statistics timing task in the method of the present invention.
[0031] Figure 3 It is a schematic diagram of the execution flow of the bill aggregation scheduled task of the method of the present invention.
[0032] Figure 4 It is a schematic diagram of the execution flow of the metering timing task of the method of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0034] The present invention provides a cloud service product metering and billing method, which performs billing configuration of the cloud service product through a management side: performing corresponding configuration operations according to the billing items of the cloud service product, the corresponding configuration operations including adding operations and modifying operations, the adding operations importing the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operations modifying the billing item prices according to the changes in the corresponding prices of the current billing items;
[0035] Generate bill details according to the metering and billing process, which specifically includes: counting all orders for a period of time, obtaining data corresponding to the instance ID closest to the current time in reverse order of time according to the instance ID in the order, judging the order status according to the data corresponding to the instance ID, if the order status is deleted, the order is not involved in metering and billing, if the order status is activated, billing is performed according to the specifications activated in the billing configuration, and if the order status is changed, metering and billing is performed according to the changed specifications in the billing configuration;
[0036] Summarize bills according to bill details and provide order information query.
[0037] The method of the present invention can dynamically and real-time change the billing configuration items on the management side, better improve the billing configuration items, and can provide the user side with dynamic and real-time display of the required amount on the page in real time according to the selected service product specifications and the billing mode of the service product (on-demand (daily) billing or one-time billing).
[0038] In a specific application, in some embodiments of the method of the present invention, based on the technical solution of the present invention, the billing configuration of the cloud service product is performed through the management side: the corresponding configuration operation is performed according to the billing items of the cloud service product, and the corresponding operation includes an add operation and a modify operation. The add operation imports the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modify operation modifies the billing item price according to the change of the corresponding price of the current billing item. The configuration is performed according to the billing items of the government cloud service product. For example, for a cloud server, the billing configuration needs to have the price of the CPU memory and the price of the system disk, etc. The basis of billing is collectively referred to as the billing item. A service product can correspond to multiple billing items. When billing the cloud service product, all billing items must be added to achieve the purpose of correct billing. The billing configuration operation includes an add and modify operation, which can support viewing details and viewing historical modification records. Perform an add operation to import the required billing items into the corresponding service product billing configuration according to the template of the common configuration items of the service product. At the same time, the price change of billing items can be completed through the modification operation. The modification operation can only edit the price corresponding to the current billing item. You can view the configuration information of all billing items in the current cloud service product by viewing the details function. Viewing the history can see the time of historical changes, and view which billing items of the cloud service product have been modified according to the time, so as to better view the specific changes in the amount.
[0039] Generate billing details according to the metering and billing process. The metering and billing process is specifically as follows: count all orders for a period of time, obtain the data corresponding to the instance ID closest to the current time in reverse order of time according to the instance ID in the order, and determine the order status according to the data corresponding to the instance ID. If the order status is deleted, the order does not participate in metering and billing. If the order status is activated, the order is charged according to the activated specifications in the billing configuration. If the order status is changed, the order is charged according to the changed specifications in the billing configuration. For example, for orders generated every day, all order information before this day is first summarized by executing a scheduled task at 0:30 in the morning, and then the instance ID, that is, the primary key of the service product, and the reverse order of time are used to obtain the data corresponding to the instance ID closest to the current time. For instances with an order status of deleted, this instance ID does not participate in metering and billing. At the same time, filter out orders belonging to service products with one-time billing, and the scheduled task only counts service products that are billed on a daily basis. Calculate the corresponding bill amount through the billing items corresponding to each order, save the database, and display the billing data of each instance, that is, cloud service products of all users in the billing details. You can refer to Figure 1-2 .
[0040] Summarize bills according to bill details, for example, summarize the billing situation of a certain month. The data here consists of two parts. For the data of the current month, the amount of the current month in the bill details is summarized according to the user's dimension and displayed. For data other than the current month, the bill summary data of the previous month is generated on the first day of each month. In order to clearly count the amount of users each month and make better estimates. Each data in the bill summary can have the function of viewing details. This function will jump to the bill details page and query the bill details data within the corresponding time, which is convenient for viewing and counting the bill amount.
[0041] Provide order information query. The order information query data on the management side comes from the relevant data of the cloud service products opened on the tenant side. By querying the order, you can view the service product type and specifications created by the user, that is, the detailed configuration parameters of the service product itself, as well as the relevant information of time. The status can be divided into three categories: opening, changing configuration, and deleting. By viewing the specifications of the service product, you can generate bill details, summarize the bill, and check the data of resource metering.
[0042] The metering and billing process includes: metering, which is the number of billing items obtained by summing up the billing items of cloud service products and cloud service products. The metering is used to estimate the number of service product configuration items used by the department or user dimension, which corresponds to the billing function. The scheduled task of metering is also executed at 0:30 am every day to generate metering data for the previous day. The difference from the billing function is that one piece of data in the bill details is only for one order, and one order can generate multiple billing details based on different billing items. The metering is summed according to the grouping dimensions of the department or user, service product and its billing items. That is, if user A opens two 100G cloud hard disks, two pieces of data are seen in the bill details, and only one piece of data can be seen in the resource metering. The number of metering is 200G.
[0043] On the tenant side, the corresponding management side functions are: bill details, bill summary, order query, and service product related operations. Bill details, bill summary, and order query can only display the data of the current department or user on the tenant side, while on the management side, the data of all departments or users can be viewed. Cloud service product related operations mainly include activation, reconfiguration, and deletion. Accordingly, when performing activation and reconfiguration operations, the price can be calculated in real time according to the selected configuration. If the selected billing configuration item does not exist, the "--" style is displayed.
[0044] The present invention also provides a cloud service product metering and billing device, including a configuration module, a bill detail module, a bill summary module and a query module.
[0045] The configuration module performs billing configuration of cloud service products through the management side: performs corresponding configuration operations according to the billing items of cloud service products, and the corresponding configuration operations include adding operations and modifying operations. The adding operation imports the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operation modifies the billing item price according to the change of the corresponding price of the current billing item;
[0046] The billing details module generates billing details according to the metering and billing process. The metering and billing process is specifically as follows: all orders for a period of time are counted, and according to the instance ID in the order, the data corresponding to the instance ID closest to the current time is obtained in reverse order of time, and the order status is determined according to the data corresponding to the instance ID. If the order status is deleted, the order is not involved in metering and billing. If the order status is activated, the billing is performed according to the specifications activated in the billing configuration. If the order status is changed, the metering and billing is performed according to the changed specifications in the billing configuration.
[0047] The bill summary module summarizes the bills according to the bill details, and the query module provides order information query.
[0048] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0049] Similarly, the device of the present invention can dynamically and real-timely change the billing configuration items, and better improve the billing configuration items. It can dynamically and real-timely add and modify the billing configuration, which is convenient for users to view the fees required to activate service products, help users to accurately perceive the fees for resource usage, and facilitate accurate judgment of future resource usage.
[0050] The present invention also provides an electronic device for metering and billing cloud service products, comprising: at least one memory and at least one processor;
[0051] The at least one memory is used to store a machine-readable program;
[0052] The at least one processor is used to call the machine-readable program to execute the cloud service product metering and billing method.
[0053] The information interaction of the processor in the above-mentioned device, the execution process of the readable program, etc., are based on the same concept as the embodiment of the method of the present invention. The specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0054] Similarly, the device of the present invention can dynamically and real-timely change the billing configuration items, and better improve the billing configuration items. It can dynamically and real-timely add and modify the billing configuration, which is convenient for users to view the fees required to activate service products, help users to accurately perceive the fees for resource usage, and facilitate accurate judgment of future resource usage.
[0055] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0056] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A cloud service product metering and billing method, characterized by: Billing configuration of cloud service products is performed through the management side: billing items are formulated according to the billing basis, corresponding billing items are selected according to cloud service products, and adding and / or modifying operations are performed. The adding operation imports the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operation modifies the billing item price according to the change of the corresponding price of the current billing item; Generate billing details according to the metering and billing process, including: count all orders for a period of time through a scheduled task, obtain the data corresponding to the instance ID closest to the current time in reverse order according to the instance ID in the order, determine the order status according to the data corresponding to the instance ID, and if the order status is activated, bill according to the specifications activated in the configuration, calculate the corresponding bill amount for each billing item of each order, and save it to the database, display the billing data of the cloud service products corresponding to each instance ID of all users in the billing details, The metering and billing process is specifically as follows: all orders for a period of time are counted, and according to the instance ID in the order, the data corresponding to the instance ID closest to the current time is obtained in reverse order of time, and the order status is determined according to the data corresponding to the instance ID. If the order status is deleted, the order is not included in the metering and billing. If the order status is activated, the billing is performed according to the specifications activated in the billing configuration. If the order status is changed, the metering and billing is performed according to the changed specifications in the billing configuration. Summarize bills based on bill details, including: data summary of bill details for the current month and data summary of bill details for non-current month; for data summary of bill details for the current month, summarize the amount of the current month in the bill details according to the user dimension; for data summary of bill details for non-current month, generate bill summary data for the previous month according to the first day of each month; And provide order information inquiry.
2. A cloud service product metering and billing method according to claim 1, characterized in that The providing of order information query includes: According to the order, order information is obtained, where the order information includes the type of cloud service product created by the user, cloud service product configuration parameters, related time information, and operations involved in the billing configuration.
3. A cloud service product metering and billing method according to claim 1, characterized in that The metering and billing process includes: performing metering, wherein the metering is the number of billing items obtained by summing up the cloud service product and the billing items of the cloud service product.
4. A cloud service product metering and billing device, characterized in that Including configuration module, bill details module, bill summary module and query module, The configuration module performs billing configuration of cloud service products through the management side: formulates billing items according to the billing basis, selects corresponding billing items according to cloud service products, and performs adding and / or modifying operations. The adding operation imports the required billing items into the corresponding cloud service product configuration according to the configuration template of the cloud service product, and the modifying operation modifies the billing item price according to the change of the corresponding price of the current billing item; The billing details module generates billing details according to the metering and billing process, including: counting all orders for a period of time through a scheduled task, obtaining the data corresponding to the instance ID closest to the current time in reverse order according to the instance ID in the order, judging the order status according to the data corresponding to the instance ID, and if the order status is activated, billing is performed according to the specifications activated in the configuration, and the corresponding billing items for each order are calculated and saved to the database, and the billing data of the cloud service products corresponding to each instance ID of all users are displayed in the billing details. The metering and billing process is specifically as follows: all orders for a period of time are counted, and according to the instance ID in the order, the data corresponding to the instance ID closest to the current time is obtained in reverse order of time, and the order status is determined according to the data corresponding to the instance ID. If the order status is deleted, the order is not included in the metering and billing. If the order status is activated, the billing is performed according to the specifications activated in the billing configuration. If the order status is changed, the metering and billing is performed according to the changed specifications in the billing configuration. The bill summary module summarizes bills according to bill details, including: data summary of the bill details of the current month and data summary of bill details of non-current month; for data summary of bill details of the current month, the amount of the current month in the bill details is summarized according to the user dimension; for data summary of bill details of non-current month, the bill summary data of the previous month is generated according to the first day of each month; The query module provides order information query.
5. An electronic device for metering and billing cloud service products, characterized in that include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to execute a cloud service product metering and billing method according to any one of claims 1 to 3.
