WO2021104452A1 - Billing method and apparatus for cloud serving usage package, and related device - Google Patents

Billing method and apparatus for cloud serving usage package, and related device Download PDF

Info

Publication number
WO2021104452A1
WO2021104452A1 PCT/CN2020/132239 CN2020132239W WO2021104452A1 WO 2021104452 A1 WO2021104452 A1 WO 2021104452A1 CN 2020132239 W CN2020132239 W CN 2020132239W WO 2021104452 A1 WO2021104452 A1 WO 2021104452A1
Authority
WO
WIPO (PCT)
Prior art keywords
usage
cloud service
bill
package
service usage
Prior art date
Application number
PCT/CN2020/132239
Other languages
French (fr)
Chinese (zh)
Inventor
赵少华
陈振强
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021104452A1 publication Critical patent/WO2021104452A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1457Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network using an account
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • This application relates to the computer field, in particular to the billing method, device and related equipment of the cloud service usage package.
  • Cloud service usually refers to cloud service providers to provide users with shared resource services.
  • cloud services have been rapidly developed and used.
  • cloud service platforms can provide users with various cloud services such as Infrastructure as a Service (IAAS).
  • IAAS Infrastructure as a Service
  • the cloud service portal website submits a corresponding resource application to the cloud computing resource management system, so that the cloud service resource management system will create corresponding resources for users to use.
  • the cost-effectiveness of a cloud service's usage package is much higher than the cost-effectiveness of a separate billing based on usage. Therefore, users usually place an order in advance through the portal to purchase a cloud computing resource usage package according to their business needs. However, most users don’t always check their balance when using a usage pack. As a result, users often purchase new usage packs after their usage exceeds the pack quota. New usage packs can take effect immediately. , But the excess usage has been billed separately, causing economic losses to users and reducing user experience.
  • This application provides the billing method, device and related equipment of the cloud service usage package.
  • the effective time in the order is earlier than the current time, the user’s cloud service bill is recalculated to reduce the user’s overage caused by the usage package. The economic loss to improve the user experience.
  • a billing method for a cloud service usage package is provided, which is applied to a billing system of a cloud service management platform, and the method includes:
  • Receiving an order for a first cloud service usage package the order including the effective time, purchase time, quota of the first cloud service usage package, and a user account that purchased the first cloud service usage package;
  • the bill of the user account is updated according to the amount of the cloud service usage package to generate an updated bill, wherein the bill records the historically generated excess usage,
  • the updated bill is generated by deducting the excess usage recorded in the bill and generated after the effective time according to the quota of the first cloud service usage package.
  • the order further includes the usage rules of the first cloud service usage package, and in the case where the effective time is earlier than the purchase time, the order is updated according to the quota of the first cloud service usage package
  • the bill for the user account to generate an update bill includes: querying the usage record recorded in the bill that matches the usage rule after the effective time; checking all the usage records according to the quota of the first cloud service usage package The excess usage generated by the usage record is deducted to generate the updated bill, wherein the excess usage is the usage exceeding the quota of the second cloud service usage package purchased in history.
  • the method further includes: receiving a bill query request sent by a client; and sending the updated bill to the client in response to the bill query request.
  • the user when the user needs to query the bill, he can query the updated bill generated by deducting the excess usage according to the newly purchased first cloud service usage package.
  • the user not only avoids the economic loss caused by the excess usage package, but also Improve user experience.
  • the method when the effective time is not earlier than the purchase time, the method further includes: generating a bill according to the usage record before the effective time and the second cloud service usage package purchased in history; The bill is updated according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
  • the user can also set the effective date after the purchase time or the same as the purchase date, and the user can flexibly set the effective time for the purchase of the usage pack, thereby avoiding the use of the actual usage time after the purchase time.
  • the time period between the time and the purchase time is billed for the waste of the usage package, which reduces user losses and improves user experience.
  • a billing device for a cloud service usage package is provided, which is applied to a billing system of a cloud service management platform.
  • the device includes a receiving unit and an updating unit, wherein,
  • the receiving unit is configured to receive an order for a first cloud service usage package, where the order includes the effective time, purchase time, quota, and user account of the first cloud service usage package. ;
  • the update unit is configured to update the bill of the user account according to the quota of the cloud service usage package to generate an update bill when the effective time is earlier than the purchase time, wherein the bill record contains For the historically generated excess usage, the updated bill is generated by deducting the excess usage recorded in the bill after the effective time according to the quota of the first cloud service usage package.
  • the order further includes a usage rule of the first cloud service usage package, and the update unit is configured to query the usage recorded in the bill that matches the usage rule after the effective time Record; the update unit is used to deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the update bill, wherein the excess usage exceeds the historical purchase The amount of the quota of the second cloud service usage package.
  • the device further includes a response unit, the receiving unit is configured to receive a bill query request sent by the client; the response unit is configured to respond to the bill query request and send the updated bill to the Client.
  • the updating unit is further configured to generate a bill based on the usage record before the effective time and the second cloud service usage package purchased in history
  • the update unit is also used to update the bill according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
  • a computer program product is provided.
  • the computer program product is read and executed by a computing device, the method described in the first aspect is implemented.
  • a computer non-transitory storage medium including instructions, which when executed on a computing device, cause the computing device to implement the method described in the first aspect.
  • an electronic device including a processor and a memory, and when the processor executes the code in the memory, the method as described in the first aspect is implemented.
  • Figure 1 is a schematic diagram of the architecture of a cloud service management platform
  • Figure 2 is a flow diagram of a billing system generating bills based on user usage records and historical usage packages
  • FIG. 3 is a schematic flowchart of a billing method for a cloud service usage package provided by this application
  • FIG. 4 is a schematic diagram of the process of obtaining an updated bill in a billing method for a cloud service usage package provided by this application;
  • FIG. 5 is a schematic flowchart of a billing method for a cloud service usage package provided by this application in an application scenario
  • FIG. 6 is a flowchart of a user setting effective range in an application scenario provided by this application.
  • FIG. 7 is a schematic structural diagram of a billing device for a cloud service usage package provided by this application.
  • FIG. 8 is a schematic diagram of the structure of an electronic device provided by the present application.
  • Cloud services are distributed computing (Distributed Computing), parallel computing (Parallel Computing), utility computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load Balance) content distribution network (Content Delivery Network) and other traditional computer and network technology development and integration products.
  • Cloud services are the increase, use, and interaction modes of Internet-based related services, which usually involve the provision of dynamic, easily expandable and often virtualized resources through the Internet. Understandably, the cloud is a metaphor for the network and the Internet. In the past, the cloud was often used to represent the telecommunication network in the figure, and later it was also used to abstractly represent the Internet and underlying infrastructure. In fact, cloud services refer to obtaining required services through the network in an on-demand and easily scalable manner. This kind of service can be related to IT and software, the Internet, or other services, which means that computing power can also be used as a commodity to circulate through the Internet.
  • Fig. 1 is a schematic diagram of the architecture of a cloud service management platform provided by the present application.
  • the cloud service management platform 100 may include a portal website 110, an order system 120, a billing system 130, and a resource management system 140.
  • the resource management system 140 is connected to the resource pool 150, and the user 160 can purchase and use cloud service resources in the resource pool 150 through the portal website 110.
  • FIG. 1 only uses one user and six cloud service resources as an example for illustration, and this application does not specifically limit the number of users and cloud service resources.
  • FIG. 1 is only a possible implementation of the cloud service management platform. In actual applications, the cloud service management platform 100 may also include more or fewer units, modules, or subsystems, which is not in this application. Make restrictions.
  • the portal website 110 may be a portal website of a cloud service platform.
  • the portal website 110 may show the user the types, parameters, and prices of resources available for purchase in the current cloud service resource pool.
  • the portal website 110 may show the user 160 the current resource pool 150
  • Resource 1 is a 2-core 8G cloud server located in the South China Data Center.
  • the operating system is Windows, the bandwidth is 1M, and the rental amount for 3 months is 300 yuan. It is understandable that the portal website 110 may also allow users to inquire about the current account balance, bills, usage records, and so on.
  • the cloud service portal website When a user chooses to purchase a certain cloud service resource, the cloud service portal website will generate order information, which may include user information, resource types ordered by the user, parameters, and prices, and send the order information to the order system 120. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
  • the order system 120 can support the portal 110 to complete the user's purchase process, such as providing the payment interface of the cloud platform provider to the portal 110 to display the payment page to the user 160, and can also drive the billing system 130 after the user has successfully paid Generate the corresponding amount package. It may also include other order management functions such as statistics and classification of the user's successful and unsuccessful payment orders, which are not specifically limited in this application.
  • the billing system 130 may be driven by the order system 120 to generate a consumption package purchased by the user 160 this time, and update the user's consumption balance.
  • the billing system 130 receives the usage record of the user 160 pushed by the resource management system 140, it deducts the usage balance according to the usage record, and generates a bill.
  • the billing system 140 can first generate the quota of the usage package purchased by the user this time according to the order information generated by the order system 120, and then perform a calculation on the usage balance of the user’s current cloud service usage package. Update.
  • the billing system 130 receives the usage record pushed by the resource management system 140 (that is, the usage record of the cloud service resource corresponding to the user)
  • the billing system 130 can deduct the usage balance according to the usage record, thereby generating bill A .
  • bill A can be updated immediately after each resource management system 140 pushes the usage record. Therefore, if the resource management system 140 sends the usage record every T time, then the bill A is also updated every T time.
  • the resource management system 140 at time T1 pushes the usage records from time T0 to time T1 to the billing system 130. Therefore, the billing system generates bill A1 and updates the usage balance based on the usage balance and usage records.
  • the resource management system 140 at time T2 pushes the usage records from time T1 to time T2 to the billing system 130. Therefore, the billing system updates the bill A1 based on the current usage balance and usage records, generates bill A2, and calculates the usage balance. Update again, and so on, so I won’t go into details here. It is understandable that when a user initiates a bill query request from the portal website 110, the billing system 130 may also integrate the newly generated bills to generate historical bill details and push them to the portal website for the user 160 to check and check.
  • the resource management system 140 can perform overall monitoring and management of various cloud service resources in the resource pool 150, generate usage records of various cloud service resources according to user usage, and send the usage records to the billing system for processing.
  • the resource management system 150 may periodically send cloud service usage records to the billing system. For example, cloud service usage records are sent every 1 hour.
  • the specific value of period T can be modified according to business usage. This application There is no specific limitation on this.
  • the resource management system 140 may also provide feedback to the portal website according to the overall situation of the various cloud service resources in the resource pool 150, such as feedback of cloud computing resources that are currently available.
  • the resource pool 150 is used to provide users with various IAAS cloud services, such as cloud hosting, cloud storage, bandwidth, etc., and can also provide users with platform as a service (Platform as a Service, PAAS) such as relational database service (Relational Database Service). , RDS), Software-as-a-Service (SAAS), etc., and can also provide rich cloud services that can be used through the network, such as software development cloud, which is not limited in this application.
  • platform as a Service PAAS
  • PAAS Platform as a Service
  • RDS relational database service
  • SAAS Software-as-a-Service
  • the billing types of cloud services can be unit price billing and usage package billing.
  • the unit price billing refers to the calculation of the cost according to the unit price of network traffic or usage.
  • the price of 1G traffic is 1 yuan
  • Usage pack billing refers to the one-time purchase of a certain amount of cloud service usage pack. After the user uses the cloud service usage pack, the usage pack is deducted according to the usage record, and the excess usage after the deduction of the usage pack is calculated at the unit price. For example, if the user spends 30 yuan to buy 40G data, if the user uses 20G data, no extra charge will be incurred.
  • the user spends 30 yuan to purchase a 40G CDN usage package at time T0, and the billing system 130 at time T1 receives the usage record of 20G CDN traffic sent by the resource manager 140 at time T0-T1. At this time, the billing system 130 will not generate additional charges.
  • Table 1 An example of a bill in an application scenario
  • this application provides a billing method for the cloud service usage pack, by adding the option of the usage pack effective time on the front-end portal, recording Each user selects the effective time of the usage package when purchasing a new usage pack, so that when the billing system determines that the effective time is earlier than the time of purchase, the excess usage will be deducted according to the new usage pack quota, and an updated bill will be generated.
  • the user's economic loss caused by the excess of the usage package improves the user's experience.
  • Fig. 3 is a schematic flowchart of a billing method for a cloud service usage package provided by the present application. As shown in Figure 3, the method includes the following steps:
  • the billing system receives an order for a first cloud service usage package, where the order includes the effective time, purchase time, quota, and the user who purchased the first cloud service usage package account number.
  • S103 Update the bill of the user account according to the amount of the cloud service usage package to generate an updated bill, wherein the bill records historically generated excess usage, and the updated bill is based on the usage of the first cloud service
  • the package quota is generated by deducting the excess usage recorded after the effective time of the bill.
  • S104 Generate a bill according to the usage record before the effective time and the second cloud service usage package purchased in history, and according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service The usage package updates the bill.
  • the order processing method provided in this application is aimed at the billing system, which may be specifically at step 3 in FIG. 1. That is to say, after the billing system receives the order information sent by the order system, it executes the order processing method provided in this application. It can be confirmed that the effective time of the usage package selected by the user in the order information is earlier than the purchase time, according to The newly purchased first cloud service usage package recalculates the excess usage, generates an updated bill, reduces the user's economic loss due to the excess usage package, and improves the user experience.
  • the order also includes the usage rules of the first cloud service usage package, and the updated bill may specifically be obtained by recalculating the excess usage that meets the usage rules of the first cloud service usage package of.
  • the billing type of each type of cloud service can also be divided into on-demand billing and per-use billing Package billing.
  • the types of usage packages in the usage package billing can also be divided into monthly, annual and hourly packages. Therefore, when a user purchases multiple usage packs, when the billing system 130 deducts the account balance based on the user's usage record, it needs to deduct the corresponding usage packs according to the usage rules of different usage packs in turn.
  • the usage rule of the usage pack can be determined according to the product type and the usage pack type selected by the user when purchasing the usage pack.
  • the product type can be hard disk service, hard disk backup service, etc. of storage type products, content delivery network (CDN) service of network type products, virtual private network (Virtual Private Network, VPN) service, etc., computing Types of products such as elastic cloud services, Cloud Container Engine (CCE) services, etc., can also be security types, application service types, database types, video types, EI enterprise intelligence types, IoT types, and other product types Cloud services, this application is not specifically limited.
  • CDN content delivery network
  • VPN Virtual Private Network
  • computing Types of products such as elastic cloud services, Cloud Container Engine (CCE) services, etc.
  • CCE Cloud Container Engine
  • the usage pack type can be the quota, duration, etc. of the usage pack.
  • the usage pack type of the hard drive usage pack A purchased by the user is 100G/hour/3 months. There is a 100G hard disk usage package quota per hour. If the user's usage does not exceed 100G in the first hour, no additional billing will be incurred. If the user uses 120G in 2 hours, then 100G is a non-excess usage and will not be charged. Additional billing will be generated. If 20G is the excess usage, the unit price will be billed. In the third hour, if the user's usage is 80G, then there will be no unit price billing.
  • the usage package type of CND usage package A is 10G/month/1 year
  • the user will have 10G traffic per month within 1 year. If the user uses 10G traffic in the first month, there will be no unit price calculation. If the user uses 12G data in the second month, then the 2G data will be charged at the unit price for excess usage.
  • the excess usage that meets the usage rules of the first cloud service usage package is recalculated, and the specific steps for generating an updated bill may be as follows:
  • S1031 Query the usage record recorded in the bill that matches the usage rule after the effective time.
  • the record C 1 is before the effective date
  • the records C 2 , C 3, and C 4 are after the effective date.
  • the usage rules of the record C 1 and the record C 4 and the usage of the first cloud service do not match, so the usage records obtained in step S1031 are the shaded record C 2 and the record C 4.
  • These two records are after the effective date and match the usage rules of the first cloud service usage package. recording.
  • record C 1 and record C 3 are hard disk usage records
  • C 2 and C 4 are CDN traffic usage records
  • the first cloud service usage package is a CDN usage package
  • the usage records matched by the usage rule are the record C 2 and the record C 4 .
  • step S1032 Deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the update bill. As shown in Figure 4, step S1032 may first determine the excess usage, and then use the excess usage to deduct the first cloud service usage package.
  • the second cloud service usage package (the current usage balance of the user account in the foregoing content) can be deducted by referring to the usage record to calculate the excess usage.
  • the usage records that match the usage rule are record C 2 and record C 4
  • the charging system 130 can compare the second record according to record C 2 and record C 4
  • the cloud service usage package is deducted.
  • the second cloud service usage package is deducted according to record C 2 and record C 41 (record C 4 is divided into record C 41 and record C 42 )
  • the second cloud service usage The remaining amount in the package that matches the usage rule is zero. Therefore, the record C 42 in the usage record that has not been deducted is the excess usage, and the deducted records C 2 and C 41 are the non-excess usage.
  • record C 2 is 10G CDN traffic
  • record C 4 is 15G CDN traffic
  • the CDN traffic quota of the second cloud service usage package is 20G
  • the excess usage is 15G
  • the non-excess usage is 20G. That is, at this time, the record C 41 is 10G
  • the record C 42 is 15G.
  • the excess usage can be deducted according to the quota of the first cloud service usage package to generate an update bill.
  • the excess usage C 42 The first cloud service usage package is deducted, and the non-excess usage C 2 and C 41 are deducted for the second cloud service usage package.
  • usage records that do not match the usage rules of the first cloud service usage package newly purchased by the user that is, records C1 and C3 in FIG. 4, will still be deducted by the second cloud service usage package.
  • the excess usage is deducted from the user's newly purchased first cloud service usage package to generate an update bill, which can avoid the economic loss of the user due to the excess usage and improve the user experience.
  • the resource management system 140 pushes the usage record to the billing system 130 every period T. Therefore, after the user purchases the first cloud service usage package, if the effective time is earlier than the purchase time, it will be Calculate the excess usage immediately after the effective time, deduct the excess usage from the first cloud service usage package again, and generate an update bill. For example, as shown in FIG. 5, after the billing system 130 receives the usage records at time T1-T2 sent by the resource management system 140 at time T1, it can use the current second cloud service usage package (the current usage balance of the user account) For generating the bill A1, reference may be made to the embodiment in FIG. 2 for details, and details are not described herein again.
  • the billing system 130 After receiving the user order information sent by the order system at time T2.5, the billing system 130 first generates the first cloud service usage package, and determines that the effective time T1 of the first cloud service usage package is earlier than the purchase time T2.5 Then, secondly, according to the usage records at the time T1-T2 (the usage records after the effective time), the excess usage and non-excess usage of the user account are determined, thereby generating an update bill A1', where, in the update bill A1', the excess usage pair The first cloud service usage package is deducted, and the non-excess usage is deducted for the second cloud service usage package, thereby avoiding the economic loss of users due to excessive usage and improving user experience.
  • the specific process of generating the updated bill A1' can refer to the embodiment in FIG. 4, which will not be repeated here.
  • the billing system receives the usage record at time T2-T3 sent by the resource management system at time T3, it can deduct the current balance of the second cloud service usage package and the balance of the first cloud service usage package based on this , Thereby generating bill A2.
  • the user spends 30 yuan to purchase a 40G CDN usage package, and the T1 time billing system 130 receives the 20G CDN traffic that the T0-T1 time usage record sent by the resource manager 140 is. At this time, the billing system 130 will not generate additional charges.
  • the usage record received by the billing system 130 at T2 is 40G CDN traffic. Since the user’s CDN usage package balance at T2 is only 20G, if the cloud service provided by this application is not used The billing method of the usage package, 20G traffic at T2 time is the unit price for excess usage.
  • Table 2 An example of a bill in an application scenario using the billing method of the cloud service usage package provided by this application
  • the billing system 130 can deduct the bill according to the embodiment of FIG. 2, that is, according to the usage record before the effective time and A bill is generated for the second cloud service usage package purchased in history, and the bill is updated according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package. For example, if a user purchases a usage pack with 100 quotas per hour, the purchase time is 8:00:00.
  • the user Since the user does not need to use the usage pack from 8 to 9 o'clock, the user can set the usage pack’s
  • the effective time is 9:00:00, then the usage records before 9:00 will be deducted for the second cloud service usage package, and the unit price of the excess part will be charged.
  • the usage records after 9:00 will be used for the first cloud service usage package and the first cloud service usage package. 2.
  • the cloud service usage package will be deducted, and the unit price of the excess will be charged. It is understandable that the user can flexibly set the effective time of the purchase amount package, which can not only avoid the user's extra cost due to the excess usage, but also avoid the difference between the purchase time (8 o'clock) and the user's actual use time (9 o'clock).
  • the waste caused by time-based charging improves user experience.
  • the above examples are only for illustration and cannot constitute a specific limitation.
  • the method further includes: receiving a bill query request sent by a client; and sending the updated bill to the client in response to the bill query request. That is, when the user queries the bill, the bill pushed by the billing system 130 to the portal website 110 is an updated bill that uses the excess usage to deduct the first cloud service usage package.
  • the resource management system 140 pushes usage records to the billing system 130 every period T, and the billing system 130 also generates bills every period T. Therefore, in order to facilitate the user to query the bill, the billing system 130 also generates bills.
  • the billing system can generate total bill details every hour, every month, every day, or once a year, and collect statistics on the bills generated in each period T.
  • the billing system 130 For example, if the billing system 130 generates bills for the previous hour once every hour, Then the 24 bills generated 24 hours in the previous day can be summarized every day at zero, and daily bill details can be generated. Similarly, monthly bill details, annual bill details, etc. can also be generated to facilitate user inquiries and improve user experience.
  • the cloud service management system 100 that implements the order method of the cloud service usage package provided by this application only needs to perform a simple upgrade on the portal site 110 and add the effective time for receiving the user's order information and the usage package. Then, the billing system 130 executes steps S101 to S104 to re-bilize the excess usage after the effective date of the user to generate an updated bill, thereby avoiding the user’s additional billing due to the excess usage. Improve user experience.
  • the portal website 110 may display the page 601 in FIG. 6 to the user.
  • Users can select the desired cloud service product type on page 601, such as storage package, downstream traffic package, back-to-source traffic package, etc. After selecting the desired product type, you can select the storage package specifications for each application volume package type For example, in Figure 6, the storage package quota is 40GB, the downstream traffic package quota is 50GB, and the return-source traffic package quota is 1TB.
  • the user can choose the length of time to purchase, such as 1 month as shown in Figure 6, that is, within 1 month, the storage package has a quota of 40GB, a downstream traffic package of 50GB, and a return-to-source traffic package of 1TB. The unit price is required for the excess. Billing.
  • the user can set the effective time for the selected usage package.
  • the effective date and time can be directly input in the input box 902, or the calendar button 903 can be used to expand the calendar to select the effective date and time.
  • the effective time can be earlier than the current one.
  • the purchase time of the may not be earlier than the current purchase time, which can be specifically determined according to the user's usage needs, and this application does not specifically limit it.
  • this application uses the option of adding the effective time of the usage package on the front-end portal site to record the effective time of the usage package selected by each user when purchasing a new usage package, so that the billing system judges that the effective time is earlier than the purchase In the case of time, the excess usage will be deducted according to the newly purchased first cloud service usage package, thereby generating an updated bill, reducing the user's economic loss caused by the excess usage package, and improving the user experience.
  • the present application provides a cloud service usage package billing device 700, which is applied to the billing system of the cloud service management platform 100 as shown in FIG. 1.
  • the device 700 includes a receiving unit 710 and Update unit 720, in which,
  • the receiving unit 710 is configured to receive an order for a first cloud service usage package, the order including the effective time, purchase time, quota, and the user who purchased the first cloud service usage package account number;
  • the update unit 720 is configured to update the bill of the user account according to the amount of the cloud service usage package to generate an update bill when the effective time is earlier than the purchase time, wherein the bill record There is a historically generated excess usage, and the updated bill is generated by deducting the excess usage recorded in the bill after the effective time according to the quota of the first cloud service usage package.
  • the order further includes the usage rule of the first cloud service usage package
  • the update unit 720 is configured to query the usage rule that is recorded in the bill and matches the usage rule after the effective time.
  • the usage record; the update unit 720 is configured to deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the updated bill, wherein the excess usage is the excess The usage amount of the second cloud service usage package purchased in history.
  • the device further includes a response unit 730, the receiving unit 710 is configured to receive a bill query request sent by the client; the response unit 730 is configured to respond to the bill query request to update the bill Sent to the client.
  • the update unit 720 is further configured to use the usage record before the effective time and the second cloud service usage amount purchased in history.
  • the package generates a bill; the update unit 720 is further configured to update the bill according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
  • this application uses the option of adding the effective time of the usage package on the front-end portal site to record the effective time of the usage package selected by each user when purchasing a new usage package, so that the billing system judges that the effective time is earlier than the purchase In the case of time, the excess usage will be deducted according to the newly purchased first cloud service usage package, thereby generating an updated bill, reducing the user's economic loss caused by the excess usage package, and improving the user experience.
  • FIG. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present application.
  • the electronic device 800 may be the billing system 130 in the foregoing content.
  • the electronic device 800 includes one or more processors 803, a communication interface 802, and a memory 801.
  • the processor 803, the communication interface 802, and the memory 801 may be connected by a bus, or may be communicated by other means such as wireless transmission.
  • the embodiment of the present application takes the connection via a bus 804 as an example, where the bus 804 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 804 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
  • the memory 801 may include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM); the memory 801 may also include non-volatile memory (Non-Volatile Memory, NVM), such as read-only memory ( Read-Only Memory (ROM), Flash Memory (FM), Hard Disk Drive (HDD), or Solid-State Drive (SSD).
  • volatile memory such as random access memory (Random Access Memory, RAM
  • non-Volatile Memory, NVM non-volatile Memory
  • ROM Read-Only Memory
  • FM Flash Memory
  • HDD Hard Disk Drive
  • SSD Solid-State Drive
  • the memory 801 may also include a combination of the above-mentioned types of memories. Among them, the memory 801 may store program codes and program data.
  • program codes for generating updated bills based on excess usage and the quota of the first cloud service usage package program codes for responding to user inquiries about order information, program codes for judging whether the effective time is at the time of purchase, etc., and usage records are also stored , Billing details and order information, etc.
  • the communication interface 802 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (Peripheral Component Interconnect express, PCIe) bus interface), a wired interface (such as an Ethernet interface), or a wireless interface (for example, a cellular network interface or the use of a wireless local area network interface) to communicate with other devices or modules.
  • the communication interface 802 is used to support the communication between the electronic device 800 and the order system 110 and the resource management system 140, and/or used to perform other steps of the technology described herein, which will not be repeated here.
  • the processor 803 includes one or more general-purpose processors, where the general-purpose processor can be any type of device capable of processing electronic instructions, including a central processing unit (CPU), a microprocessor, a microcontroller, and a main Processors, controllers, ASICs, etc.
  • the processor 803 is used to execute various types of digital storage instructions, such as software or firmware programs stored in the memory 801, which enables the computing device to provide a wide variety of services.
  • the processor 803 may include at least an update unit and a response unit, and the update unit may include the functions described by the update unit in FIG. 7, for example, when the effective time is earlier than the purchase time, according to the The amount of the cloud service usage package updates the bill of the user account to generate an update bill. It can also be used to perform other steps described in the embodiment of FIG. 3 and FIG. 6, which will not be repeated here; the response unit may include the response in FIG. 7
  • the function described by the unit for example, sending the updated bill to the client in response to the bill query request, can also be used to perform other steps described in the embodiments of FIG. 3 and FIG. 6, which will not be repeated here.
  • the functional modules or units not mentioned here please refer to the relevant descriptions in the embodiments described in FIG. 3 to FIG. 6, which will not be repeated here.
  • FIG. 8 is only a possible implementation of the embodiment of the present application.
  • the electronic device 800 may also be a cloud service cluster.
  • the cloud service cluster includes at least one computing node, and each computing node may be The electronic device as shown in Fig. 8 will not be repeated here.
  • the electronic device may also include more or fewer components, which is not limited here.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores instructions in the computer-readable storage medium, and when the computer-readable storage medium runs on a processor, the method flow shown in FIG. 3 to FIG. 6 is implemented.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product runs on a processor, the method flow shown in FIGS. 3 to 6 is realized.
  • the above-mentioned embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination.
  • the above-mentioned embodiments may be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium.
  • the semiconductor medium may be SSD.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application provides a billing method and apparatus for a cloud serving usage package, and a related device, applied to a billing system of a cloud serving management platform. The method comprises: receiving an order for a first cloud serving usage package, the order comprising an effective time, a purchase time, and a quota of the first cloud serving usage package and a user account for purchasing the first cloud serving usage package; and when the effective time is earlier than the purchase time, updating a bill of the user account according to the quota of the cloud serving usage package to generate an updated bill, the bill recording past excess usage, and the updated bill being generated by deducting the excess usage generated after the effective time recorded in the bill according to the quota of the first cloud serving usage package.

Description

云服务用量包的计费方法、装置及相关设备Billing method, device and related equipment for cloud service usage package 技术领域Technical field
本申请涉及计算机领域,尤其涉及云服务用量包的计费方法、装置及相关设备。This application relates to the computer field, in particular to the billing method, device and related equipment of the cloud service usage package.
背景技术Background technique
云服务(Cloud Serving)通常指云服务提供商为用户提供共享资源服务,随着互联网技术的发展,云服务已经得到了快速的发展和运用。目前,云服务平台可以向用户提供基础设施即服务(Infrastructure as a Service,IAAS)等多种云服务。通常,用户可通过云服务的门户网站购买云服务资源后,云服务的门户网站向云计算的资源管理系统提出相应的资源申请,使得云服务资源管理系统会创建相应的资源以供用户使用。Cloud service (Cloud Serving) usually refers to cloud service providers to provide users with shared resource services. With the development of Internet technology, cloud services have been rapidly developed and used. Currently, cloud service platforms can provide users with various cloud services such as Infrastructure as a Service (IAAS). Generally, after a user can purchase cloud service resources through a cloud service portal website, the cloud service portal website submits a corresponding resource application to the cloud computing resource management system, so that the cloud service resource management system will create corresponding resources for users to use.
一般来讲,云服务的用量包性价比远高于按使用量单独计费的性价比,因此用户通常会根据自己的业务需求,提前通过门户下单购买一个云计算资源的用量包。但是,多数用户在使用用量包时,并不会经常查看自己的用量包余额,导致用户经常在使用量已超出用量包额度后,才会购买新的用量包,新的用量包虽然可以立即生效,但是超额用量已经按单独计费生成账单,造成用户的经济损失,降低用户使用体验。Generally speaking, the cost-effectiveness of a cloud service's usage package is much higher than the cost-effectiveness of a separate billing based on usage. Therefore, users usually place an order in advance through the portal to purchase a cloud computing resource usage package according to their business needs. However, most users don’t always check their balance when using a usage pack. As a result, users often purchase new usage packs after their usage exceeds the pack quota. New usage packs can take effect immediately. , But the excess usage has been billed separately, causing economic losses to users and reducing user experience.
发明内容Summary of the invention
本申请提供了云服务用量包的计费方法、装置及相关设备,在订单内的生效时间早于当前时间的情况下,对用户的云服务账单进行重新计算,降低用户因为用量包超额而造成的经济损失,提高用户体验。This application provides the billing method, device and related equipment of the cloud service usage package. When the effective time in the order is earlier than the current time, the user’s cloud service bill is recalculated to reduce the user’s overage caused by the usage package. The economic loss to improve the user experience.
第一方面,提供了一种云服务用量包的计费方法,应用于云服务管理平台的计费系统中,所述方法包括:In the first aspect, a billing method for a cloud service usage package is provided, which is applied to a billing system of a cloud service management platform, and the method includes:
接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号;Receiving an order for a first cloud service usage package, the order including the effective time, purchase time, quota of the first cloud service usage package, and a user account that purchased the first cloud service usage package;
在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。In the case where the effective time is earlier than the purchase time, the bill of the user account is updated according to the amount of the cloud service usage package to generate an updated bill, wherein the bill records the historically generated excess usage, The updated bill is generated by deducting the excess usage recorded in the bill and generated after the effective time according to the quota of the first cloud service usage package.
具体实现中,所述订单还包括所述第一云服务用量包的使用规则,所述在所述生效时间早于所述购买时间的情况下,根据所述第一云服务用量包的额度更新所述用户账号的账单,以产生更新账单,包括:查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录;根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单,其中,所述超额用量是超出历史购买的第二云服务用量包的额度的用量。In a specific implementation, the order further includes the usage rules of the first cloud service usage package, and in the case where the effective time is earlier than the purchase time, the order is updated according to the quota of the first cloud service usage package The bill for the user account to generate an update bill includes: querying the usage record recorded in the bill that matches the usage rule after the effective time; checking all the usage records according to the quota of the first cloud service usage package The excess usage generated by the usage record is deducted to generate the updated bill, wherein the excess usage is the usage exceeding the quota of the second cloud service usage package purchased in history.
实施第一方面描述的方法,通过在前端的门户网站处增加用量包生效时间的选项,记录每个用户在购买新用量包时选择的用量包生效时间,使得计费系统在判断出生效时间早于购买时间的情况下,将超额用量按照新购买的第一云服务用量包进行扣减,从而产生更新账单,降低用户因为用量包超额而造成的经济损失,提高用户的使用体验。Implement the method described in the first aspect, by adding the option of the usage pack effective time on the front-end portal, record the effective time of the usage pack selected by each user when purchasing a new usage pack, so that the billing system judges that the effective time is early In the case of purchase time, the excess usage will be deducted according to the newly purchased first cloud service usage package, thereby generating an updated bill, reducing the economic loss of the user due to the excess usage package, and improving the user experience.
在一实施例中,所述方法还包括:接收客户端发送的账单查询请求;响应所述账单查询请求将所述更新账单发送至所述客户端。In an embodiment, the method further includes: receiving a bill query request sent by a client; and sending the updated bill to the client in response to the bill query request.
上述实施例中,当用户需要查询账单时,可以查询到将超额用量按照新购买的第一云服务用量包进行扣减生成的更新账单,用户不但避免了因为用量包超额而造成的经济损失,提高用户的使用体验。In the above embodiment, when the user needs to query the bill, he can query the updated bill generated by deducting the excess usage according to the newly purchased first cloud service usage package. The user not only avoids the economic loss caused by the excess usage package, but also Improve user experience.
在一实施例中,在所述生效时间不早于所述购买时间的情况下,所述方法还包括:根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单;根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。In an embodiment, when the effective time is not earlier than the purchase time, the method further includes: generating a bill according to the usage record before the effective time and the second cloud service usage package purchased in history; The bill is updated according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
上述实施例中,用户还可以将生效日期设置于购买时间之后或者和购买日期相同,用户可以灵活设置购买用量包的生效时间,从而避免由于用量包的实际使用时间在购买时间之后,造成对使用时间和购买时间之间的时间段的时长计费而造成的用量包浪费,降低用户损失,提高用户使用体验。In the above embodiment, the user can also set the effective date after the purchase time or the same as the purchase date, and the user can flexibly set the effective time for the purchase of the usage pack, thereby avoiding the use of the actual usage time after the purchase time. The time period between the time and the purchase time is billed for the waste of the usage package, which reduces user losses and improves user experience.
第二方面,提供了一种云服务用量包的计费装置,应用于云服务管理平台的计费系统中,所述装置包括接收单元以及更新单元,其中,In a second aspect, a billing device for a cloud service usage package is provided, which is applied to a billing system of a cloud service management platform. The device includes a receiving unit and an updating unit, wherein,
所述接收单元用于接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号;The receiving unit is configured to receive an order for a first cloud service usage package, where the order includes the effective time, purchase time, quota, and user account of the first cloud service usage package. ;
所述更新单元用于在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。The update unit is configured to update the bill of the user account according to the quota of the cloud service usage package to generate an update bill when the effective time is earlier than the purchase time, wherein the bill record contains For the historically generated excess usage, the updated bill is generated by deducting the excess usage recorded in the bill after the effective time according to the quota of the first cloud service usage package.
在一实施例中,所述订单还包括所述第一云服务用量包的使用规则,所述更新单元用于查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录;所述更新单元用于根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单,其中,所述超额用量是超出历史购买的第二云服务用量包的额度的用量。In an embodiment, the order further includes a usage rule of the first cloud service usage package, and the update unit is configured to query the usage recorded in the bill that matches the usage rule after the effective time Record; the update unit is used to deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the update bill, wherein the excess usage exceeds the historical purchase The amount of the quota of the second cloud service usage package.
在一实施例中,所述装置还包括响应单元,所述接收单元用于接收客户端发送的账单查询请求;所述响应单元用于响应所述账单查询请求将所述更新账单发送至所述客户端。In an embodiment, the device further includes a response unit, the receiving unit is configured to receive a bill query request sent by the client; the response unit is configured to respond to the bill query request and send the updated bill to the Client.
在一实施例中,在所述生效时间不早于所述购买时间的情况下,所述更新单元还用于根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单;所述更新单元还用于根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。In an embodiment, if the effective time is not earlier than the purchase time, the updating unit is further configured to generate a bill based on the usage record before the effective time and the second cloud service usage package purchased in history The update unit is also used to update the bill according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
第三方面,提供了一种计算机程序产品,当所述计算机程序产品被计算设备读取 并执行时,实现如第一方面描述的方法。In the third aspect, a computer program product is provided. When the computer program product is read and executed by a computing device, the method described in the first aspect is implemented.
第四方面,提供了一种计算机非瞬态存储介质,包括指令,当所述指令在计算设备上运行时,使得所述计算设备实现如第一方面描述的方法。In a fourth aspect, a computer non-transitory storage medium is provided, including instructions, which when executed on a computing device, cause the computing device to implement the method described in the first aspect.
第五方面,提供了一种电子设备,包括处理器和存储器,所述处理器执行所述存储器中的代码时,实现如第一方面描述的方法。In a fifth aspect, an electronic device is provided, including a processor and a memory, and when the processor executes the code in the memory, the method as described in the first aspect is implemented.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art.
图1是一种云服务管理平台的架构示意图;Figure 1 is a schematic diagram of the architecture of a cloud service management platform;
图2是一种计费系统根据用户使用记录和历史用量包生成账单的流程示意图;Figure 2 is a flow diagram of a billing system generating bills based on user usage records and historical usage packages;
图3是本申请提供的一种云服务用量包的计费方法流程示意图;FIG. 3 is a schematic flowchart of a billing method for a cloud service usage package provided by this application;
图4是本申请提供的一种云服务用量包的计费方法中更新账单获取的流程示意图;4 is a schematic diagram of the process of obtaining an updated bill in a billing method for a cloud service usage package provided by this application;
图5是本申请提供的云服务用量包的计费方法在一种应用场景下的流程示意图;FIG. 5 is a schematic flowchart of a billing method for a cloud service usage package provided by this application in an application scenario;
图6是本申请提供的一种应用场景下用户设定生效范围的流程图;FIG. 6 is a flowchart of a user setting effective range in an application scenario provided by this application;
图7是本申请提供的一种云服务用量包的计费装置的结构示意图;FIG. 7 is a schematic structural diagram of a billing device for a cloud service usage package provided by this application;
图8是本申请提供的一种电子设备的结构示意图。FIG. 8 is a schematic diagram of the structure of an electronic device provided by the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the implementation mode part of this application are only used to explain specific embodiments of this application, and are not intended to limit this application.
为了便于理解本申请实施例,首先,对本申请涉及的应用场景进行简要说明。In order to facilitate the understanding of the embodiments of the present application, first, a brief description of the application scenarios involved in the present application will be given.
云服务是分布式计算(Distributed Computing)、并行计算(Parallel Computing)、效用计算(Utility Computing)、网络存储(Network Storage Technologies)、虚拟化(Virtualization)、负载均衡(Load Balance)内容分发网络(Content Delivery Network)等传统计算机和网络技术发展融合的产物。云服务是基于互联网的相关服务的增加、使用和交互模式,通常涉及通过互联网来提供动态易扩展且经常是虚拟化的资源。可以理解的,云是网络、互联网的一种比喻说法。过去在图中往往用云来表示电信网,后来也用来抽象的表示互联网和底层基础设施。实际上,云服务指的是通过网络以按需、易扩展的方式获得所需服务。这种服务可以是IT和软件、互联网相关,也可以是其他服务,它意味着计算能力也可以作为一种商品通过互联网进行流通。Cloud services are distributed computing (Distributed Computing), parallel computing (Parallel Computing), utility computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load Balance) content distribution network (Content Delivery Network) and other traditional computer and network technology development and integration products. Cloud services are the increase, use, and interaction modes of Internet-based related services, which usually involve the provision of dynamic, easily expandable and often virtualized resources through the Internet. Understandably, the cloud is a metaphor for the network and the Internet. In the past, the cloud was often used to represent the telecommunication network in the figure, and later it was also used to abstractly represent the Internet and underlying infrastructure. In fact, cloud services refer to obtaining required services through the network in an on-demand and easily scalable manner. This kind of service can be related to IT and software, the Internet, or other services, which means that computing power can also be used as a commodity to circulate through the Internet.
简单来说,多个客户可以共享一个云服务提供商的系统资源,他们无需架设任何设备以及配备管理人员,便可享有专业的IT服务,这对于一般创业者、中小企业来说,可以极大地降低运营成本,对于云服务提供商来说,由于其购买的系统资源在空闲状态下,也可以租借客户使用,提高云服务提供商的资源利用率。To put it simply, multiple customers can share the system resources of a cloud service provider. They can enjoy professional IT services without setting up any equipment and equipping management personnel. This can be a great advantage for general entrepreneurs and small and medium-sized enterprises. To reduce operating costs, for cloud service providers, because the system resources they purchase can also be leased to customers when they are idle, which improves the resource utilization of cloud service providers.
其次,对本申请涉及的云服务管理平台的架构进行简要说明。Secondly, a brief description of the architecture of the cloud service management platform involved in this application is given.
图1是本申请提供的一种云服务管理平台的架构示意图。如图1所示,所述云服务管理平台100可以包括门户网站110、订单系统120、计费系统130以及资源管理系统140。其中,资源管理系统140与资源池150相连,用户160可以通过门户网站110 购买和使用资源池150中的云服务资源。应理解,图1仅以一个用户以及6个云服务资源为例进行了举例说明,本申请不对用户数量和云服务资源数量进行具体限定。并且,图1仅仅是云服务管理平台的一种可能的实现方式,实际应用中,所述云服务管理平台100还可以包括更多或更少的单元、模块或者子系统,本申请并不对此进行限制。Fig. 1 is a schematic diagram of the architecture of a cloud service management platform provided by the present application. As shown in FIG. 1, the cloud service management platform 100 may include a portal website 110, an order system 120, a billing system 130, and a resource management system 140. The resource management system 140 is connected to the resource pool 150, and the user 160 can purchase and use cloud service resources in the resource pool 150 through the portal website 110. It should be understood that FIG. 1 only uses one user and six cloud service resources as an example for illustration, and this application does not specifically limit the number of users and cloud service resources. Moreover, FIG. 1 is only a possible implementation of the cloud service management platform. In actual applications, the cloud service management platform 100 may also include more or fewer units, modules, or subsystems, which is not in this application. Make restrictions.
门户网站110可以是云服务平台的门户网站,门户网站110可以向用户展示当前云服务资源池中可购买的资源种类、参数以及价格,比如,门户网站110可以向用户160展示当前资源池150中存在可供使用的资源1,资源1是2核8G的云服务器,位于华南数据中心,操作系统为Windows,带宽为1M,租用3个月的租用金额为300元。可以理解的,门户网站110还可以供用户查询当前的账户余额、账单以及使用记录等等。当用户选择购买某云服务资源后,云服务的门户网站将生成订单信息,该订单信息可以包括用户信息、用户订购的资源种类、参数以及价格,并将订单信息发送至订单系统120。应理解,上述举例仅用于说明,并不能构成具体限定。The portal website 110 may be a portal website of a cloud service platform. The portal website 110 may show the user the types, parameters, and prices of resources available for purchase in the current cloud service resource pool. For example, the portal website 110 may show the user 160 the current resource pool 150 There is resource 1 available for use. Resource 1 is a 2-core 8G cloud server located in the South China Data Center. The operating system is Windows, the bandwidth is 1M, and the rental amount for 3 months is 300 yuan. It is understandable that the portal website 110 may also allow users to inquire about the current account balance, bills, usage records, and so on. When a user chooses to purchase a certain cloud service resource, the cloud service portal website will generate order information, which may include user information, resource types ordered by the user, parameters, and prices, and send the order information to the order system 120. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
订单系统120可以支撑门户网站110完成用户的购买流程,比如提供云平台供应商的支付接口给门户网站110,使其向用户160展示支付页面,还可以在用户支付成功后,驱动计费系统130生成相应的用量包。还可以包括对用户支付成功和未支付成功的订单进行统计、分类等等其他订单管理方面的功能,本申请不作具体限定。The order system 120 can support the portal 110 to complete the user's purchase process, such as providing the payment interface of the cloud platform provider to the portal 110 to display the payment page to the user 160, and can also drive the billing system 130 after the user has successfully paid Generate the corresponding amount package. It may also include other order management functions such as statistics and classification of the user's successful and unsuccessful payment orders, which are not specifically limited in this application.
计费系统130可以在订单系统120的驱动下,生成用户160本次购买的用量包,更新用户的用量余额。当计费系统130接收到资源管理系统140推送的用户160的使用记录时,根据该使用记录对用量余额进行扣减,生成账单。The billing system 130 may be driven by the order system 120 to generate a consumption package purchased by the user 160 this time, and update the user's consumption balance. When the billing system 130 receives the usage record of the user 160 pushed by the resource management system 140, it deducts the usage balance according to the usage record, and generates a bill.
具体实现中,可以如图2所示,计费系统140可以首先根据订单系统120生成的订单信息,生成本次用户购买的用量包的额度,然后对用户当前的云服务用量包的用量余额进行更新。当计费系统130接收到资源管理系统140推送的使用记录(即该用户对应的云服务资源的使用记录)时,计费系统130可以根据使用记录,对用量余额进行扣减,从而生成账单A。应理解,账单A可以在每次资源管理系统140推送使用记录后立即更新,因此,如果资源管理系统140每隔T个时间发送一次使用记录,那么账单A也是每隔T个时间更新一次。如图2所示,T1时刻资源管理系统140向计费系统130推送了T0时刻至T1时刻的使用记录,因此计费系统根据用量余额和使用记录,生成了账单A1并对用量余额进行更新,同理,T2时刻资源管理系统140向计费系统130推送了T1时刻至T2时刻的使用记录,因此计费系统根据当前用量余额、使用记录,对账单A1进行更新,生成账单A2并对用量余额再次进行更新,以此类推,这里不再展开赘述。可以理解的,当用户从门户网站110发起账单查询请求时,计费系统130还可以将最新生成的账单整合后生成历史账单明细,推送至门户网站,以供用户160查询核对。In specific implementation, as shown in FIG. 2, the billing system 140 can first generate the quota of the usage package purchased by the user this time according to the order information generated by the order system 120, and then perform a calculation on the usage balance of the user’s current cloud service usage package. Update. When the billing system 130 receives the usage record pushed by the resource management system 140 (that is, the usage record of the cloud service resource corresponding to the user), the billing system 130 can deduct the usage balance according to the usage record, thereby generating bill A . It should be understood that bill A can be updated immediately after each resource management system 140 pushes the usage record. Therefore, if the resource management system 140 sends the usage record every T time, then the bill A is also updated every T time. As shown in Figure 2, the resource management system 140 at time T1 pushes the usage records from time T0 to time T1 to the billing system 130. Therefore, the billing system generates bill A1 and updates the usage balance based on the usage balance and usage records. In the same way, the resource management system 140 at time T2 pushes the usage records from time T1 to time T2 to the billing system 130. Therefore, the billing system updates the bill A1 based on the current usage balance and usage records, generates bill A2, and calculates the usage balance. Update again, and so on, so I won’t go into details here. It is understandable that when a user initiates a bill query request from the portal website 110, the billing system 130 may also integrate the newly generated bills to generate historical bill details and push them to the portal website for the user 160 to check and check.
资源管理系统140可以对资源池150中的各种云服务资源进行整体监控和管理,根据用户的使用情况生成各种云服务资源的使用记录,并将使用记录发送至计费系统进行处理。具体实现中,资源管理系统150可以周期性地向计费系统发送云服务使用记录,比如,每隔1小时发送一次云服务使用记录,周期T的具体值可以根据业务使用情况进行修改,本申请不对此进行具体限定。资源管理系统140还可以根据资源池 150中各种云服务资源的整体情况,向门户网站进行反馈,比如反馈出当前可以空闲的云计算资源等等。The resource management system 140 can perform overall monitoring and management of various cloud service resources in the resource pool 150, generate usage records of various cloud service resources according to user usage, and send the usage records to the billing system for processing. In specific implementation, the resource management system 150 may periodically send cloud service usage records to the billing system. For example, cloud service usage records are sent every 1 hour. The specific value of period T can be modified according to business usage. This application There is no specific limitation on this. The resource management system 140 may also provide feedback to the portal website according to the overall situation of the various cloud service resources in the resource pool 150, such as feedback of cloud computing resources that are currently available.
资源池150用于向用户提供各个IAAS云服务,例如,云主机、云存储、带宽等等,还可以向用户提供平台即服务(Platform as a Service,PAAS)比如关系型数据库服务(Relational Database Service,RDS)、软件即服务(Software-as-a-Service,SAAS)等等,还可以提供软件开发云等通过网络可以使用的丰富的云服务,本申请不对此进行限定。The resource pool 150 is used to provide users with various IAAS cloud services, such as cloud hosting, cloud storage, bandwidth, etc., and can also provide users with platform as a service (Platform as a Service, PAAS) such as relational database service (Relational Database Service). , RDS), Software-as-a-Service (SAAS), etc., and can also provide rich cloud services that can be used through the network, such as software development cloud, which is not limited in this application.
一般来讲,云服务的计费类型可以是单价计费和用量包计费。其中,单价计费指的是按网络流量或者使用量的单价进行费用计算,比如1G流量价格为1元,用户需要花费60元使用60G的流量。用量包计费则指的是一次性购买一定额度的云服务用量包,用户使用该云服务用量包后,根据使用记录对用量包进行扣减,用量包扣减完毕的超额用量则使用单价计费,比如用户花30元购买40G流量,如果用户使用20G流量,将不产生额外收费,如果用户使用40G流量,也不产生额外收费,用户总共花30元使用了40G流量,如果用户使用60G流量,其中40G流量为非超额用量将不产生额外收费,有20G流量为超额用量,将会单价计费,因此用户总共需要花费30+20=50元使用60G流量。应理解,上述举例仅用于说明,并不能构成具体限定。Generally speaking, the billing types of cloud services can be unit price billing and usage package billing. Among them, the unit price billing refers to the calculation of the cost according to the unit price of network traffic or usage. For example, the price of 1G traffic is 1 yuan, and the user needs to spend 60 yuan to use 60G traffic. Usage pack billing refers to the one-time purchase of a certain amount of cloud service usage pack. After the user uses the cloud service usage pack, the usage pack is deducted according to the usage record, and the excess usage after the deduction of the usage pack is calculated at the unit price. For example, if the user spends 30 yuan to buy 40G data, if the user uses 20G data, no extra charge will be incurred. If the user uses 40G data, no additional charge will be incurred. The user spends a total of 30 yuan to use 40G data. If the user uses 60G data , Where 40G traffic is non-excess usage, no additional charges will be incurred, and 20G traffic is excess usage and will be billed at a unit price. Therefore, users need to spend a total of 30+20=50 yuan to use 60G traffic. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
可以理解的是,云服务的用量包性价比远高于按使用量单独计费的性价比,因此用户通常会根据自己的业务需求,提前在门户下单购买一个云计算资源的用量包。但是,多数用户在使用用量包时,并不会经常查看自己的用量包余额,导致用户经常在使用量已超出用量包额度后,才会购买新的用量包,新的用量包虽然可以立即生效,但是超额用量已经按单独计费生成账单,造成用户的经济损失,降低用户使用体验。It is understandable that the cost-effectiveness of the usage package of cloud services is much higher than the cost-effectiveness of separate billing based on usage. Therefore, users usually place an order in advance on the portal to purchase a usage package for cloud computing resources according to their business needs. However, most users don’t always check their balance when using a usage pack. As a result, users often purchase new usage packs after their usage exceeds the pack quota. New usage packs can take effect immediately. , But the excess usage has been billed separately, causing economic losses to users and reducing user experience.
举例来说,如表1所示,T0时刻用户花30元购买40G的CDN用量包,T1时刻计费系统130接收到资源管理器140发送的T0-T1时刻的使用记录为20G的CDN流量,此时计费系统130将不产生额外收费,T2时刻计费系统130收到的使用记录为40G的CDN流量,由于T2时刻用户的CDN用量包余额只有20G,因此T3时刻有20G流量为超额用量,用户需要对这20G用量进行单价计费,1G流量价格为1元,因此用户总共需要花费30+20=50元使用60G流量。而实际上,用户可以购买30元40G的用量包和10元20G的用量包即可使用40元获得60G的流量,但是,当用户发现流量超额后,即使立即购买10元20G的用量包,但是20G的超额用量已经计入账单,造成用户的经济损失,降低用户使用体验。应理解,上述举例仅用于说明,并不能构成具体限定。For example, as shown in Table 1, the user spends 30 yuan to purchase a 40G CDN usage package at time T0, and the billing system 130 at time T1 receives the usage record of 20G CDN traffic sent by the resource manager 140 at time T0-T1. At this time, the billing system 130 will not generate additional charges. The usage record received by the billing system 130 at T2 is 40G CDN traffic. Since the CDN usage package balance of the user at T2 is only 20G, the 20G traffic at T3 is an excess usage. , The user needs to charge the unit price for the 20G usage, and the 1G traffic price is 1 yuan, so the user needs to spend 30+20=50 yuan to use the 60G traffic in total. In fact, users can buy a 40G usage package for 30 yuan and a 20G usage package for 10 yuan to get 60G of traffic with 40 yuan. However, when the user finds that the traffic is excessive, even if he immediately buys a 10 yuan 20G usage package, The excess usage of 20G has been included in the bill, causing economic losses to users and reducing user experience. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
表1 一种应用场景下的账单的举例说明Table 1 An example of a bill in an application scenario
Figure PCTCN2020132239-appb-000001
Figure PCTCN2020132239-appb-000001
为了解决上述由于用量包超额而造成经济损失导致用户使用体验差的问题,本申请提供了一种云服务用量包的计费方法,通过在前端的门户网站处增加用量包生效时间的选项,记录每个用户在购买新用量包时选择的用量包生效时间,使得计费系统在判断出生效时间早于购买时间的情况下,将超额用量按照新用量包额度进行扣减,产生更新账单,降低用户因为用量包超额而造成的经济损失,提高用户的使用体验。In order to solve the above-mentioned problem of poor user experience due to the economic losses caused by the overage of the usage pack, this application provides a billing method for the cloud service usage pack, by adding the option of the usage pack effective time on the front-end portal, recording Each user selects the effective time of the usage package when purchasing a new usage pack, so that when the billing system determines that the effective time is earlier than the time of purchase, the excess usage will be deducted according to the new usage pack quota, and an updated bill will be generated. The user's economic loss caused by the excess of the usage package improves the user's experience.
图3是本申请提供的一种云服务用量包的计费方法的流程示意图。如图3所示,所述方法包括以下步骤:Fig. 3 is a schematic flowchart of a billing method for a cloud service usage package provided by the present application. As shown in Figure 3, the method includes the following steps:
S101:所述计费系统接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号。S101: The billing system receives an order for a first cloud service usage package, where the order includes the effective time, purchase time, quota, and the user who purchased the first cloud service usage package account number.
S102:确定所述生效时间是否早于购买时间,若是,则执行步骤S103,若否,则执行步骤S104。S102: Determine whether the effective time is earlier than the purchase time, if yes, execute step S103, if not, execute step S104.
S103:根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。S103: Update the bill of the user account according to the amount of the cloud service usage package to generate an updated bill, wherein the bill records historically generated excess usage, and the updated bill is based on the usage of the first cloud service The package quota is generated by deducting the excess usage recorded after the effective time of the bill.
S104:根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单,根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。S104: Generate a bill according to the usage record before the effective time and the second cloud service usage package purchased in history, and according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service The usage package updates the bill.
参考图1所示的系统架构可知,本申请提供的订单处理的方法针对于计费系统,具体可以是图1中的步骤3处。也就是说,计费系统在接收到订单系统发送的订单信息以后,执行本申请提供的订单处理的方法,可以在确认订单信息中用户选择的用量包生效时间早于购买时间的情况下,根据新购买的第一云服务用量包对超额用量进行重新计算,产生更新账单,降低用户因为用量包超额而造成的经济损失,提高用户的使用体验。With reference to the system architecture shown in FIG. 1, it can be seen that the order processing method provided in this application is aimed at the billing system, which may be specifically at step 3 in FIG. 1. That is to say, after the billing system receives the order information sent by the order system, it executes the order processing method provided in this application. It can be confirmed that the effective time of the usage package selected by the user in the order information is earlier than the purchase time, according to The newly purchased first cloud service usage package recalculates the excess usage, generates an updated bill, reduces the user's economic loss due to the excess usage package, and improves the user experience.
下面对如何根据用户新购买的第一云服务用量包对超额用量进行重新计算,产生更新账单,进行详细介绍。The following is a detailed introduction of how to recalculate the excess usage based on the user's newly purchased first cloud service usage package to generate an update bill.
在本申请实施例中,所述订单还包括所述第一云服务用量包的使用规则,所述更新账单具体可以是对符合第一云服务用量包的使用规则的超额用量进行重新计算而获得的。应理解,由于云服务用量包的种类繁多,每个用户为了满足使用需求,可以购买很多不同类型的云服务,每种类型的云服务的计费类型还可以分为按需计费和按用量包计费,用量包计费中的用量包类型还可以分为包月、包年和包时等种类。因此,当用户购买了多种用量包,计费系统130在根据用户使用记录对账户余额进行扣减时,需要根据不同用量包的使用规则,依次根据使用记录对相应的用量包进行扣减。这里,用量包的使用规则可以根据用户购买用量包时选择的产品类型和用量包类型确定。In the embodiment of the present application, the order also includes the usage rules of the first cloud service usage package, and the updated bill may specifically be obtained by recalculating the excess usage that meets the usage rules of the first cloud service usage package of. It should be understood that due to the wide variety of cloud service usage packages, each user can purchase many different types of cloud services in order to meet usage needs. The billing type of each type of cloud service can also be divided into on-demand billing and per-use billing Package billing. The types of usage packages in the usage package billing can also be divided into monthly, annual and hourly packages. Therefore, when a user purchases multiple usage packs, when the billing system 130 deducts the account balance based on the user's usage record, it needs to deduct the corresponding usage packs according to the usage rules of different usage packs in turn. Here, the usage rule of the usage pack can be determined according to the product type and the usage pack type selected by the user when purchasing the usage pack.
其中,产品类型可以是存储类型产品的硬盘服务、硬盘备份服务等等,网络类型产品的内容分发网络(Content Delivery Network,CDN)服务、虚拟专用网络(Virtual Private Network,VPN)服务等等,计算类型产品的弹性云服务、云容器引擎(Cloud Container Engine,CCE)服务等等,还可以是安全类型、应用服务类型、数据库类型、 视频类型、EI企业智能类型、物联网类型等等其他产品类型的云服务,本申请不作具体限定。Among them, the product type can be hard disk service, hard disk backup service, etc. of storage type products, content delivery network (CDN) service of network type products, virtual private network (Virtual Private Network, VPN) service, etc., computing Types of products such as elastic cloud services, Cloud Container Engine (CCE) services, etc., can also be security types, application service types, database types, video types, EI enterprise intelligence types, IoT types, and other product types Cloud services, this application is not specifically limited.
用量包类型可以是用量包的额度、时长等等,举例来说,用户购买的硬盘用量包A的用量包类型为100G/小时/3个月,也就是说,用户在3个月内,每小时有100G的硬盘用量包额度,如果用户第1个小时内用量不超过100G,那么将不会产生额外计费,如果用户2个小时内用量为120G,那么其中100G为非超额用量,将不会产生额外计费,20G为超额用量将会单价计费,而第3个小时,用户用量为80G,那么仍不会产生单价计费。同理,如果CND用量包A的用量包类型为10G/月/1年,则用户在1年内每个月有10G的流量,如果用户第1个月用了10G流量,将不会产生单价计费,如果用户第2个月用了12G流量,那么2G流量为超额用量将会单价计费。应理解,上述举例仅用于说明,本申请不作具体限定。The usage pack type can be the quota, duration, etc. of the usage pack. For example, the usage pack type of the hard drive usage pack A purchased by the user is 100G/hour/3 months. There is a 100G hard disk usage package quota per hour. If the user's usage does not exceed 100G in the first hour, no additional billing will be incurred. If the user uses 120G in 2 hours, then 100G is a non-excess usage and will not be charged. Additional billing will be generated. If 20G is the excess usage, the unit price will be billed. In the third hour, if the user's usage is 80G, then there will be no unit price billing. In the same way, if the usage package type of CND usage package A is 10G/month/1 year, the user will have 10G traffic per month within 1 year. If the user uses 10G traffic in the first month, there will be no unit price calculation. If the user uses 12G data in the second month, then the 2G data will be charged at the unit price for excess usage. It should be understood that the above examples are only for illustration, and this application does not make specific limitations.
因此,具体实现中,所述在所述生效时间早于所述购买时间的情况下,对符合第一云服务用量包的使用规则的超额用量进行重新计算,产生更新账单的具体步骤可以如下:Therefore, in a specific implementation, when the effective time is earlier than the purchase time, the excess usage that meets the usage rules of the first cloud service usage package is recalculated, and the specific steps for generating an updated bill may be as follows:
S1031:查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录。S1031: Query the usage record recorded in the bill that matches the usage rule after the effective time.
如图4所示,使用记录中,记录C 1处于生效日期之前,记录C 2、C 3和C 4处于生效日期之后,但是,记录C 1和记录C 4的使用规则与第一云服务用量包的使用规则不匹配,因此步骤S1031获得的使用记录为阴影部分的记录C 2和记录C 4,这两个记录是处于生效日期之后、且与第一云服务用量包的使用规则匹配的使用记录。举例来说,如果记录C 1和记录C 3是硬盘的使用记录,C 2和C 4是CDN流量的使用记录,如果第一云服务用量包是CDN用量包,那么在所述生效时间之后与所述使用规则匹配的使用记录为记录C 2和记录C 4。应理解,上述举例仅用于说明,并不能构成具体限定。 As shown in Figure 4, in the usage record, the record C 1 is before the effective date, and the records C 2 , C 3, and C 4 are after the effective date. However, the usage rules of the record C 1 and the record C 4 and the usage of the first cloud service The usage rules of the package do not match, so the usage records obtained in step S1031 are the shaded record C 2 and the record C 4. These two records are after the effective date and match the usage rules of the first cloud service usage package. recording. For example, if record C 1 and record C 3 are hard disk usage records, and C 2 and C 4 are CDN traffic usage records, if the first cloud service usage package is a CDN usage package, then after the effective time The usage records matched by the usage rule are the record C 2 and the record C 4 . It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
S1032:根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单。如图4所示,步骤S1032可以首先确定超额用量,然后使用超额用量对第一云服务用量包进行扣减。S1032: Deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the update bill. As shown in Figure 4, step S1032 may first determine the excess usage, and then use the excess usage to deduct the first cloud service usage package.
具体地,首先,可以参照使用记录对第二云服务用量包(前述内容中的用户账号的当前用量余额)进行扣减,计算出超额用量。如图4所示,在步骤S1031获得所述生效时间之后与所述使用规则匹配的使用记录为记录C 2和记录C 4之后,计费系统130可以根据记录C 2和记录C 4对第二云服务用量包进行扣减,其中,根据记录C 2和记录C 41(记录C 4被分为记录C 41和记录C 42)对第二云服务用量包进行扣减后,第二云服务用量包中剩余的与使用规则匹配的用量额度为零,因此,使用记录中还未扣减的记录C 42为超额用量,已扣减的记录C 2和C 41为未超额用量。 Specifically, first, the second cloud service usage package (the current usage balance of the user account in the foregoing content) can be deducted by referring to the usage record to calculate the excess usage. As shown in FIG. 4, after the effective time is obtained in step S1031, the usage records that match the usage rule are record C 2 and record C 4 , and the charging system 130 can compare the second record according to record C 2 and record C 4 The cloud service usage package is deducted. After the second cloud service usage package is deducted according to record C 2 and record C 41 (record C 4 is divided into record C 41 and record C 42 ), the second cloud service usage The remaining amount in the package that matches the usage rule is zero. Therefore, the record C 42 in the usage record that has not been deducted is the excess usage, and the deducted records C 2 and C 41 are the non-excess usage.
举例来说,如果记录C 2为10G的CDN流量,记录C 4为15G的CDN流量,而第二云服务用量包的CDN流量额度为20G,那么超额用量为15G,未超额用量为20G,也就是说,此时记录C 41为10G,记录C 42为15G。应理解,上述举例仅用于说明,并不能构成具体限定。 For example, if record C 2 is 10G CDN traffic, record C 4 is 15G CDN traffic, and the CDN traffic quota of the second cloud service usage package is 20G, then the excess usage is 15G, and the non-excess usage is 20G. That is, at this time, the record C 41 is 10G, and the record C 42 is 15G. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
其次,计算出超额用量后,可以根据所述第一云服务用量包的额度对将超额用量进行扣减,生成更新账单,具体地,如图4所示,在更新账单中,超额用量C 42对用 第一云服务用量包进行扣减,未超额用量C 2和C 41对第二云服务用量包进行扣减。需要说明的,与用户新购买的第一云服务用量包的使用规则不匹配的使用记录,也就是图4中的记录C1和记录C3,将仍由第二云服务用量包进行扣减。可以理解的,将超额用量对用户新购买的第一云服务用量包进行扣减生成更新账单,可以避免了用户由于超额用量而造成的经济损失,提高用户使用体验。 Secondly, after calculating the excess usage, the excess usage can be deducted according to the quota of the first cloud service usage package to generate an update bill. Specifically, as shown in Figure 4, in the update bill, the excess usage C 42 The first cloud service usage package is deducted, and the non-excess usage C 2 and C 41 are deducted for the second cloud service usage package. It should be noted that usage records that do not match the usage rules of the first cloud service usage package newly purchased by the user, that is, records C1 and C3 in FIG. 4, will still be deducted by the second cloud service usage package. It is understandable that the excess usage is deducted from the user's newly purchased first cloud service usage package to generate an update bill, which can avoid the economic loss of the user due to the excess usage and improve the user experience.
具体实现中,参考前述内容可知,资源管理系统140每隔周期T向计费系统130推送一次使用记录,因此,当用户购买第一云服务用量包后,如果生效时间早于购买时间,将会立刻计算生效时间之后的超额用量,重新将超额用量对第一云服务用量包进行扣减,生成更新账单。例如,如图5所示,计费系统130在T1时刻收到资源管理系统140发送的T1-T2时刻的使用记录后,可以根据当前的第二云服务用量包(用户账号的当前用量余额)生成账单A1,具体可以参考图2实施例,这里不再进行赘述。而计费系统130在T2.5时刻收到订单系统发送的用户订单信息后,首先产生第一云服务用量包,确定所述第一云服务用量包的生效时间T1早于购买时间T2.5后,其次,根据T1-T2时刻的使用记录(生效时间之后的使用记录),确定用户账户的超额用量和非超额用量,从而产生更新账单A1′,其中,更新账单A1′中,超额用量对第一云服务用量包进行扣减,非超额用量对第二云服务用量包进行扣减,从而避免了用户由于超额用量而造成的经济损失,提高用户使用体验。其中,更新账单A1′生成的具体过程可以参考图4实施例,这里不再展开赘述。同理可知,计费系统在T3时刻收到资源管理系统发送的T2-T3时刻的使用记录后,可以基于此对当前的第二云服务用量包余额和第一云服务用量包余额进行扣减,从而生成账单A2。以此类推,这里不再展开赘述。In specific implementation, referring to the foregoing content, it can be seen that the resource management system 140 pushes the usage record to the billing system 130 every period T. Therefore, after the user purchases the first cloud service usage package, if the effective time is earlier than the purchase time, it will be Calculate the excess usage immediately after the effective time, deduct the excess usage from the first cloud service usage package again, and generate an update bill. For example, as shown in FIG. 5, after the billing system 130 receives the usage records at time T1-T2 sent by the resource management system 140 at time T1, it can use the current second cloud service usage package (the current usage balance of the user account) For generating the bill A1, reference may be made to the embodiment in FIG. 2 for details, and details are not described herein again. After receiving the user order information sent by the order system at time T2.5, the billing system 130 first generates the first cloud service usage package, and determines that the effective time T1 of the first cloud service usage package is earlier than the purchase time T2.5 Then, secondly, according to the usage records at the time T1-T2 (the usage records after the effective time), the excess usage and non-excess usage of the user account are determined, thereby generating an update bill A1', where, in the update bill A1', the excess usage pair The first cloud service usage package is deducted, and the non-excess usage is deducted for the second cloud service usage package, thereby avoiding the economic loss of users due to excessive usage and improving user experience. Among them, the specific process of generating the updated bill A1' can refer to the embodiment in FIG. 4, which will not be repeated here. In the same way, after the billing system receives the usage record at time T2-T3 sent by the resource management system at time T3, it can deduct the current balance of the second cloud service usage package and the balance of the first cloud service usage package based on this , Thereby generating bill A2. By analogy, I won't go into details here.
仍以前述表1中的应用场景为例,用户花30元购买40G的CDN用量包,T1时刻计费系统130接收到资源管理器140发送的T0-T1时刻的使用记录为20G的CDN流量,此时计费系统130将不产生额外收费,T2时刻计费系统130收到的使用记录为40G的CDN流量,由于T2时刻用户的CDN用量包余额只有20G,如果不使用本申请提供的云服务用量包的计费方法,T2时刻有20G流量为超额用量需要单价计费。然而如果使用本申请提供的云服务用量包的计费方法,当用户发现流量超额后,可以在T3时刻购买10元20G的用量包,将生效时间设置为T2时刻,计费系统130可以根据超额用量对用户新购买的20G用量包进行扣减,生成更新账单,更新账单中的总花费只有30+10=40元,与表1实施例相比,用户减少了由于超额用量而导致的额外10元的经济损失,提高了用户体验。应理解,上述举例仅用于说明,并不能构成具体限定。Still taking the application scenario in the aforementioned Table 1 as an example, the user spends 30 yuan to purchase a 40G CDN usage package, and the T1 time billing system 130 receives the 20G CDN traffic that the T0-T1 time usage record sent by the resource manager 140 is. At this time, the billing system 130 will not generate additional charges. The usage record received by the billing system 130 at T2 is 40G CDN traffic. Since the user’s CDN usage package balance at T2 is only 20G, if the cloud service provided by this application is not used The billing method of the usage package, 20G traffic at T2 time is the unit price for excess usage. However, if you use the billing method of the cloud service usage package provided by this application, when the user finds that the traffic is oversubscribed, he can purchase a 10 yuan 20G usage package at time T3, and set the effective time to time T2, and the billing system 130 can be based on the excess The consumption is deducted from the user’s newly purchased 20G usage package, and an update bill is generated. The total cost in the update bill is only 30+10=40 yuan. Compared with the embodiment in Table 1, the user has reduced the extra 10 due to excess usage. The economic loss of yuan improves the user experience. It should be understood that the above examples are only for illustration and cannot constitute a specific limitation.
表2 一种应用场景下使用本申请提供的云服务用量包的计费方法的账单的举例Table 2 An example of a bill in an application scenario using the billing method of the cloud service usage package provided by this application
Figure PCTCN2020132239-appb-000002
Figure PCTCN2020132239-appb-000002
在本申请实施例中,如果所述生效时间不早于所述购买时间,计费系统130可以 按照图2实施例对账单进行扣减,也就是说,根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单,根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。举例来说,如果用户购买了每小时100条配额的用量包,购买时间为8:00:00,由于用户8点至9点期间都不需要使用该用量包,因此用户可以设置该用量包的生效时间为9:00:00,那么9点以前的使用记录将对第二云服务用量包进行扣减,超额部分单价计费,9点以后的使用记录将对第一云服务用量包和第二云服务用量包进行扣减,超额部分单价计费。可以理解的,用户灵活设置购买用量包的生效时间,不但可以避免用户由于超额用量而产生的额外费用,也可以避免对购买时间(8点)和用户实际的使用时间(9点)之间进行时长计费而产生的浪费,提高用户体验度,上述举例仅用于说明,并不能构成具体限定。In the embodiment of the present application, if the effective time is not earlier than the purchase time, the billing system 130 can deduct the bill according to the embodiment of FIG. 2, that is, according to the usage record before the effective time and A bill is generated for the second cloud service usage package purchased in history, and the bill is updated according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package. For example, if a user purchases a usage pack with 100 quotas per hour, the purchase time is 8:00:00. Since the user does not need to use the usage pack from 8 to 9 o'clock, the user can set the usage pack’s The effective time is 9:00:00, then the usage records before 9:00 will be deducted for the second cloud service usage package, and the unit price of the excess part will be charged. The usage records after 9:00 will be used for the first cloud service usage package and the first cloud service usage package. 2. The cloud service usage package will be deducted, and the unit price of the excess will be charged. It is understandable that the user can flexibly set the effective time of the purchase amount package, which can not only avoid the user's extra cost due to the excess usage, but also avoid the difference between the purchase time (8 o'clock) and the user's actual use time (9 o'clock). The waste caused by time-based charging improves user experience. The above examples are only for illustration and cannot constitute a specific limitation.
在本申请实施例中,所述方法还包括:接收客户端发送的账单查询请求;响应所述账单查询请求将所述更新账单发送至所述客户端。也就是说,用户查询账单时,计费系统130向门户网站110推送的账单是使用超额用量对第一云服务用量包进行扣减的更新账单。可以理解的,参考前述内容可知,资源管理系统140每隔周期T向计费系统130推送一次使用记录,计费系统130也每隔周期T生成一次账单,因此,为了便于用户进行账单查询,计费系统可以每小时、每个月、每天或者每年生成一次总的账单明细,对每个周期T生成的账单进行统计,举例来说,如果计费系统130每小时生成一次上一个小时的账单,那么可以每天零点对前一天24个小时生成的24个账单进行汇总,生成日账单明细,同理,还可以生成月账单明细、年账单明细等等,从而便于用户查询,提高用户使用感。In the embodiment of the present application, the method further includes: receiving a bill query request sent by a client; and sending the updated bill to the client in response to the bill query request. That is, when the user queries the bill, the bill pushed by the billing system 130 to the portal website 110 is an updated bill that uses the excess usage to deduct the first cloud service usage package. It can be understood that referring to the foregoing content, the resource management system 140 pushes usage records to the billing system 130 every period T, and the billing system 130 also generates bills every period T. Therefore, in order to facilitate the user to query the bill, the billing system 130 also generates bills. The billing system can generate total bill details every hour, every month, every day, or once a year, and collect statistics on the bills generated in each period T. For example, if the billing system 130 generates bills for the previous hour once every hour, Then the 24 bills generated 24 hours in the previous day can be summarized every day at zero, and daily bill details can be generated. Similarly, monthly bill details, annual bill details, etc. can also be generated to facilitate user inquiries and improve user experience.
在本申请实施例中,实现本申请提供的云服务用量包的订单方法的云服务管理系统100,只需要在门户网站110进行简单升级,添加用于接收用户的订单信息和用量包的生效时间的生效时间选项,然后由计费系统130执行步骤S101-步骤S104,对用户生效日期之后的超额用量进行重新计费,即可产生更新账单,从而避免用户由于超额用量而产生的额外计费,提高用户使用体验。In the embodiment of this application, the cloud service management system 100 that implements the order method of the cloud service usage package provided by this application only needs to perform a simple upgrade on the portal site 110 and add the effective time for receiving the user's order information and the usage package. Then, the billing system 130 executes steps S101 to S104 to re-bilize the excess usage after the effective date of the user to generate an updated bill, thereby avoiding the user’s additional billing due to the excess usage. Improve user experience.
具体实现中,如图6所示,用户在门户网站110购买第一云服务用量包时,门户网站110可以向用户显示如图6中的页面601。用户可以在页面601选择所需的云服务产品类型,比如存储包、下行流量包和回源流量包等等,选择所需的产品类型后,即可选择每种应用量包类型的存储包规格,比如图6中的存储包额度40GB,下行流量包额度50GB,回源流量包额度1TB。然后,用户可以选择购买时长,比如图6所示的1个月,也就是1个月内存储包的用量包额度为40GB,下行流量包额度50GB,回源流量包额度1TB,超出部分需要单价计费。最后,用户可以为选择的用量包设定生效时间,具体地,可以在输入框902中直接输入生效日期和时间,也可以通过日历按钮903展开日历选择生效日期和时间,生效时间可以早于当前的购买时间也可以不早于当前的购买时间,具体可以根据用户的使用需求确定,本申请不作具体限定。In a specific implementation, as shown in FIG. 6, when the user purchases the first cloud service usage package at the portal website 110, the portal website 110 may display the page 601 in FIG. 6 to the user. Users can select the desired cloud service product type on page 601, such as storage package, downstream traffic package, back-to-source traffic package, etc. After selecting the desired product type, you can select the storage package specifications for each application volume package type For example, in Figure 6, the storage package quota is 40GB, the downstream traffic package quota is 50GB, and the return-source traffic package quota is 1TB. Then, the user can choose the length of time to purchase, such as 1 month as shown in Figure 6, that is, within 1 month, the storage package has a quota of 40GB, a downstream traffic package of 50GB, and a return-to-source traffic package of 1TB. The unit price is required for the excess. Billing. Finally, the user can set the effective time for the selected usage package. Specifically, the effective date and time can be directly input in the input box 902, or the calendar button 903 can be used to expand the calendar to select the effective date and time. The effective time can be earlier than the current one. The purchase time of the may not be earlier than the current purchase time, which can be specifically determined according to the user's usage needs, and this application does not specifically limit it.
可以理解的,本申请通过在前端的门户网站处增加用量包生效时间的选项,记录每个用户在购买新用量包时选择的用量包生效时间,使得计费系统在判断出生效时间早于购买时间的情况下,将超额用量按照新购买的第一云服务用量包进行扣减,从而 产生更新账单,降低用户因为用量包超额而造成的经济损失,提高用户的使用体验。It is understandable that this application uses the option of adding the effective time of the usage package on the front-end portal site to record the effective time of the usage package selected by each user when purchasing a new usage package, so that the billing system judges that the effective time is earlier than the purchase In the case of time, the excess usage will be deducted according to the newly purchased first cloud service usage package, thereby generating an updated bill, reducing the user's economic loss caused by the excess usage package, and improving the user experience.
下面对本申请涉及的部分装置进行解释说明。如图7所示,本申请提供了一种云服务用量包的计费装置700,应用于如图1所示的云服务管理平台100的计费系统中,所述装置700包括接收单元710以及更新单元720,其中,The following explains part of the devices involved in this application. As shown in FIG. 7, the present application provides a cloud service usage package billing device 700, which is applied to the billing system of the cloud service management platform 100 as shown in FIG. 1. The device 700 includes a receiving unit 710 and Update unit 720, in which,
所述接收单元710用于接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号;The receiving unit 710 is configured to receive an order for a first cloud service usage package, the order including the effective time, purchase time, quota, and the user who purchased the first cloud service usage package account number;
所述更新单元720用于在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。The update unit 720 is configured to update the bill of the user account according to the amount of the cloud service usage package to generate an update bill when the effective time is earlier than the purchase time, wherein the bill record There is a historically generated excess usage, and the updated bill is generated by deducting the excess usage recorded in the bill after the effective time according to the quota of the first cloud service usage package.
在本申请实施例中,所述订单还包括所述第一云服务用量包的使用规则,所述更新单元720用于查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录;所述更新单元720用于根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单,其中,所述超额用量是超出历史购买的第二云服务用量包的额度的用量。In the embodiment of the present application, the order further includes the usage rule of the first cloud service usage package, and the update unit 720 is configured to query the usage rule that is recorded in the bill and matches the usage rule after the effective time. The usage record; the update unit 720 is configured to deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the updated bill, wherein the excess usage is the excess The usage amount of the second cloud service usage package purchased in history.
在本申请实施例中,所述装置还包括响应单元730,所述接收单元710用于接收客户端发送的账单查询请求;所述响应单元730用于响应所述账单查询请求将所述更新账单发送至所述客户端。In the embodiment of the present application, the device further includes a response unit 730, the receiving unit 710 is configured to receive a bill query request sent by the client; the response unit 730 is configured to respond to the bill query request to update the bill Sent to the client.
在本申请实施例中,,在所述生效时间不早于所述购买时间的情况下,所述更新单元720还用于根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单;所述更新单元720还用于根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。In the embodiment of the present application, if the effective time is not earlier than the purchase time, the update unit 720 is further configured to use the usage record before the effective time and the second cloud service usage amount purchased in history. The package generates a bill; the update unit 720 is further configured to update the bill according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
可以理解的,本申请通过在前端的门户网站处增加用量包生效时间的选项,记录每个用户在购买新用量包时选择的用量包生效时间,使得计费系统在判断出生效时间早于购买时间的情况下,将超额用量按照新购买的第一云服务用量包进行扣减,从而产生更新账单,降低用户因为用量包超额而造成的经济损失,提高用户的使用体验。It is understandable that this application uses the option of adding the effective time of the usage package on the front-end portal site to record the effective time of the usage package selected by each user when purchasing a new usage package, so that the billing system judges that the effective time is earlier than the purchase In the case of time, the excess usage will be deducted according to the newly purchased first cloud service usage package, thereby generating an updated bill, reducing the user's economic loss caused by the excess usage package, and improving the user experience.
请参见图8,图8是本申请实施例提供的一种电子设备800的结构示意图。其中,所述电子设备800可以是前述内容中的计费系统130,如图8所示,电子设备800包括一个或多个处理器803、通信接口802和存储器801。处理器803、通信接口802和存储器801可通过总线方式连接,也可通过无线传输等其他手段实现通信。本申请实施例以通过总线804连接为例,其中,总线804可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线804可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Please refer to FIG. 8, which is a schematic structural diagram of an electronic device 800 according to an embodiment of the present application. The electronic device 800 may be the billing system 130 in the foregoing content. As shown in FIG. 8, the electronic device 800 includes one or more processors 803, a communication interface 802, and a memory 801. The processor 803, the communication interface 802, and the memory 801 may be connected by a bus, or may be communicated by other means such as wireless transmission. The embodiment of the present application takes the connection via a bus 804 as an example, where the bus 804 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 804 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
存储器801可以包括易失性存储器(Volatile Memory),例如随机存取存储器 (Random Access Memory,RAM);存储器801也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如只读存储器(Read-Only Memory,ROM)、快闪存储器(Flash Memory,FM)、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD)。存储器801还可以包括上述种类的存储器的组合。其中,存储器801可以存储有程序代码以及程序数据。比如存储有用于根据超额用量和第一云服务用量包的额度生成更新账单的程序代码、响应用户查询订单信息的程序代码、判断生效时间是否在于购买时间的程序代码等等,还存储有使用记录、账单明细以及订单信息等等。The memory 801 may include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM); the memory 801 may also include non-volatile memory (Non-Volatile Memory, NVM), such as read-only memory ( Read-Only Memory (ROM), Flash Memory (FM), Hard Disk Drive (HDD), or Solid-State Drive (SSD). The memory 801 may also include a combination of the above-mentioned types of memories. Among them, the memory 801 may store program codes and program data. For example, there are stored program codes for generating updated bills based on excess usage and the quota of the first cloud service usage package, program codes for responding to user inquiries about order information, program codes for judging whether the effective time is at the time of purchase, etc., and usage records are also stored , Billing details and order information, etc.
通信接口802可以为有线接口(例如以太网接口),可以为内部接口(例如高速串行计算机扩展总线(Peripheral Component Interconnect express,PCIe)总线接口)、有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与与其他设备或模块进行通信。例如,通信接口802用于支持所述电子设备800与订单系统110和资源管理系统140之间的通信,和/或用于执行本文所描述的技术的其它步骤,这里不再进行赘述。The communication interface 802 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (Peripheral Component Interconnect express, PCIe) bus interface), a wired interface (such as an Ethernet interface), or a wireless interface ( For example, a cellular network interface or the use of a wireless local area network interface) to communicate with other devices or modules. For example, the communication interface 802 is used to support the communication between the electronic device 800 and the order system 110 and the resource management system 140, and/or used to perform other steps of the technology described herein, which will not be repeated here.
处理器803包括一个或者多个通用处理器,其中,通用处理器可以是能够处理电子指令的任何类型的设备,包括中央处理器(Central Processing Unit,CPU)、微处理器、微控制器、主处理器、控制器以及ASIC等等。处理器803用于执行各种类型的数字存储指令,例如存储在存储器801中的软件或者固件程序,它能使计算设备提供较宽的多种服务。The processor 803 includes one or more general-purpose processors, where the general-purpose processor can be any type of device capable of processing electronic instructions, including a central processing unit (CPU), a microprocessor, a microcontroller, and a main Processors, controllers, ASICs, etc. The processor 803 is used to execute various types of digital storage instructions, such as software or firmware programs stored in the memory 801, which enables the computing device to provide a wide variety of services.
具体地,所述处理器803可以至少包括更新单元和响应单元,更新单元可以包括图7中更新单元所描述的功能,例如在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,还可以是用于执行图3图6实施例描述的其他步骤,这里不再进行赘述;响应单元可以包括图7中响应单元所描述的功能,例如响应所述账单查询请求将所述更新账单发送至所述客户端,还可以是用于执行图3图6实施例描述的其他步骤,这里不再进行赘述。并且,关于这里未提及的各个功能模块或单元具体可参见前述图3-图6所述实施例中的相关阐述,这里不再赘述。Specifically, the processor 803 may include at least an update unit and a response unit, and the update unit may include the functions described by the update unit in FIG. 7, for example, when the effective time is earlier than the purchase time, according to the The amount of the cloud service usage package updates the bill of the user account to generate an update bill. It can also be used to perform other steps described in the embodiment of FIG. 3 and FIG. 6, which will not be repeated here; the response unit may include the response in FIG. 7 The function described by the unit, for example, sending the updated bill to the client in response to the bill query request, can also be used to perform other steps described in the embodiments of FIG. 3 and FIG. 6, which will not be repeated here. In addition, for the details of the functional modules or units not mentioned here, please refer to the relevant descriptions in the embodiments described in FIG. 3 to FIG. 6, which will not be repeated here.
需要说明的,图8仅仅是本申请实施例的一种可能的实现方式,实际应用中,电子设备800还可以是云服务集群,该云服务集群包括至少一个计算节点,每个计算节点可以是如图8所示的电子设备,这里不再赘述。所述电子设备还可以包括更多或更少的部件,这里不作限制。It should be noted that FIG. 8 is only a possible implementation of the embodiment of the present application. In practical applications, the electronic device 800 may also be a cloud service cluster. The cloud service cluster includes at least one computing node, and each computing node may be The electronic device as shown in Fig. 8 will not be repeated here. The electronic device may also include more or fewer components, which is not limited here.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在处理器上运行时,图3-图6所示的方法流程得以实现。The embodiment of the present application also provides a computer-readable storage medium, which stores instructions in the computer-readable storage medium, and when the computer-readable storage medium runs on a processor, the method flow shown in FIG. 3 to FIG. 6 is implemented.
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在处理器上运行时,图3-图6所示的方法流程得以实现。The embodiments of the present application also provide a computer program product. When the computer program product runs on a processor, the method flow shown in FIGS. 3 to 6 is realized.
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以 为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(Digital Video Disc,DVD))、或者半导体介质。半导体介质可以是SSD。The above-mentioned embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above-mentioned embodiments may be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium. The semiconductor medium may be SSD.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements, these modifications or replacements should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (11)

  1. 一种云服务用量包的计费方法,其特征在于,应用于云服务管理平台的计费系统中,所述方法包括:A billing method for a cloud service usage package, which is characterized in that it is applied to a billing system of a cloud service management platform, and the method includes:
    接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号;Receiving an order for a first cloud service usage package, the order including the effective time, purchase time, quota of the first cloud service usage package, and a user account that purchased the first cloud service usage package;
    在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。In the case where the effective time is earlier than the purchase time, the bill of the user account is updated according to the amount of the cloud service usage package to generate an updated bill, wherein the bill records the historically generated excess usage, The updated bill is generated by deducting the excess usage recorded in the bill and generated after the effective time according to the quota of the first cloud service usage package.
  2. 根据权利要求1所述的方法,其特征在于,所述订单还包括所述第一云服务用量包的使用规则,所述在所述生效时间早于所述购买时间的情况下,根据所述第一云服务用量包的额度更新所述用户账号的账单,以产生更新账单,包括:The method according to claim 1, wherein the order further includes a usage rule of the first cloud service usage package, and in the case that the effective time is earlier than the purchase time, according to the The amount of the first cloud service usage package updates the bill of the user account to generate an update bill, including:
    查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录;Query the usage records recorded in the bill that match the usage rules after the effective time;
    根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单,其中,所述超额用量是超出历史购买的第二云服务用量包的额度的用量。The excess usage generated by the usage record is deducted according to the limit of the first cloud service usage package to generate the updated bill, wherein the excess usage is the limit of the second cloud service usage package purchased in history. The dosage.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    接收客户端发送的账单查询请求;Receive the bill query request sent by the client;
    响应所述账单查询请求将所述更新账单发送至所述客户端。Send the updated bill to the client in response to the bill query request.
  4. 根据权利要求1所述的方法,其特征在于,在所述生效时间不早于所述购买时间的情况下,所述方法还包括:The method according to claim 1, characterized in that, in the case that the effective time is not earlier than the purchase time, the method further comprises:
    根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单;Generating a bill according to the usage record before the effective time and the second cloud service usage package purchased in history;
    根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。The bill is updated according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
  5. 一种云服务用量包的计费装置,其特征在于,应用于云服务管理平台的计费系统中,所述装置包括接收单元以及更新单元,其中,A billing device for a cloud service usage package, characterized in that it is applied to a billing system of a cloud service management platform, the device includes a receiving unit and an updating unit, wherein:
    所述接收单元用于接收针对第一云服务用量包的订单,所述订单包括所述第一云服务用量包的生效时间、购买时间、额度以及购买所述第一云服务用量包的用户账号;The receiving unit is configured to receive an order for a first cloud service usage package, where the order includes the effective time, purchase time, quota, and user account of the first cloud service usage package. ;
    所述更新单元用于在所述生效时间早于所述购买时间的情况下,根据所述云服务用量包的额度更新所述用户账号的账单,以产生更新账单,其中,所述账单记录有历史产生的超额用量,所述更新账单是根据所述第一云服务用量包的额度对所述账单记录的在所述生效时间之后产生的超额用量进行扣减产生的。The update unit is configured to update the bill of the user account according to the quota of the cloud service usage package to generate an update bill when the effective time is earlier than the purchase time, wherein the bill record contains For the historically generated excess usage, the updated bill is generated by deducting the excess usage recorded in the bill after the effective time according to the quota of the first cloud service usage package.
  6. 根据权利要求5所述的装置,其特征在于,所述订单还包括所述第一云服务用量包的使用规则,The device according to claim 5, wherein the order further includes usage rules of the first cloud service usage package,
    所述更新单元用于查询所述账单中记录的在所述生效时间之后与所述使用规则匹配的使用记录;The update unit is configured to query usage records recorded in the bill that match the usage rules after the effective time;
    所述更新单元用于根据所述第一云服务用量包的额度对所述使用记录产生的超额用量进行扣减,以产生所述更新账单,其中,所述超额用量是超出历史购买的第二云服务用量包的额度的用量。The update unit is configured to deduct the excess usage generated by the usage record according to the quota of the first cloud service usage package to generate the update bill, wherein the excess usage is the second amount that exceeds the historical purchase The amount of the quota of the cloud service usage package.
  7. 根据权利要求5或6所述的装置,其特征在于,所述装置还包括响应单元,The device according to claim 5 or 6, wherein the device further comprises a response unit,
    所述接收单元用于接收客户端发送的账单查询请求;The receiving unit is configured to receive a bill query request sent by the client;
    所述响应单元用于响应所述账单查询请求将所述更新账单发送至所述客户端。The response unit is configured to send the updated bill to the client in response to the bill query request.
  8. 根据权利要求5所述的装置,其特征在于,在所述生效时间不早于所述购买时间的情况下,The device according to claim 5, characterized in that, in the case that the effective time is not earlier than the purchase time,
    所述更新单元还用于根据所述生效时间之前的使用记录以及历史购买的第二云服务用量包产生账单;The update unit is further configured to generate a bill according to the usage record before the effective time and the second cloud service usage package purchased in history;
    所述更新单元还用于根据所述生效时间之后的使用记录以及历史购买的第二云服务用量包和所述第一云服务用量包更新所述账单。The updating unit is further configured to update the bill according to the usage record after the effective time and the second cloud service usage package purchased in history and the first cloud service usage package.
  9. 一种计算机程序产品,其特征在于,当所述计算机程序产品被计算设备读取并执行时,如权利要求1至4任一权利要求所述的方法将被执行。A computer program product, characterized in that, when the computer program product is read and executed by a computing device, the method according to any one of claims 1 to 4 will be executed.
  10. 一种计算机非瞬态存储介质,其特征在于,包括指令,当所述指令在计算设备上运行时,使得所述计算设备执行如权利要求1至4任一权利要求所述的方法。A computer non-transitory storage medium, which is characterized by comprising instructions, which when run on a computing device, cause the computing device to execute the method according to any one of claims 1 to 4.
  11. 一种电子设备,其特征在于,包括处理器和存储器,所述处理器执行所述存储器中的代码执行如权利要求1至4任一权利要求所述的方法。An electronic device, comprising a processor and a memory, and the processor executes the code in the memory to execute the method according to any one of claims 1 to 4.
PCT/CN2020/132239 2019-11-27 2020-11-27 Billing method and apparatus for cloud serving usage package, and related device WO2021104452A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911185933.1 2019-11-27
CN201911185933.1A CN111130810B (en) 2019-11-27 2019-11-27 Charging method and device for cloud service usage package and related equipment

Publications (1)

Publication Number Publication Date
WO2021104452A1 true WO2021104452A1 (en) 2021-06-03

Family

ID=70496834

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132239 WO2021104452A1 (en) 2019-11-27 2020-11-27 Billing method and apparatus for cloud serving usage package, and related device

Country Status (2)

Country Link
CN (1) CN111130810B (en)
WO (1) WO2021104452A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130810B (en) * 2019-11-27 2021-06-22 华为技术有限公司 Charging method and device for cloud service usage package and related equipment
CN112202871A (en) * 2020-09-27 2021-01-08 北京金山云网络技术有限公司 Metering and charging method, device and system for cloud computing resources and electronic equipment
CN114629732A (en) * 2020-12-11 2022-06-14 北京金山云网络技术有限公司 Charging method and device for cloud resources, electronic equipment and medium
CN113067709B (en) * 2021-03-11 2022-11-18 北京市商汤科技开发有限公司 Charging method, device and equipment based on cloud service and readable storage medium
CN114401159B (en) * 2022-01-14 2024-06-18 京东科技信息技术有限公司 Cloud computing service charging method and device, storage medium and electronic equipment
CN114548991A (en) * 2022-02-28 2022-05-27 同方有云(北京)科技有限公司 Bill generation method and device
CN114881546B (en) * 2022-07-08 2022-12-13 天聚地合(苏州)科技股份有限公司 Method and device for determining resource consumption

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072318A1 (en) * 2009-05-29 2012-03-22 International Business Machines Corporation Mechanisms for Executing a Process in a Cloud Computing Environment
JP2016103284A (en) * 2015-12-28 2016-06-02 富士通株式会社 Control program, control apparatus, and control method
CN109522134A (en) * 2018-12-19 2019-03-26 湖北省楚天云有限公司 A kind of method and apparatus that charging is carried out based on cloud computing platform resource
CN110009421A (en) * 2019-04-04 2019-07-12 杭州朗和科技有限公司 The unit price of cloud computing virtual resource determines method, medium, device and calculates equipment
CN111130810A (en) * 2019-11-27 2020-05-08 华为技术有限公司 Charging method and device for cloud service usage package and related equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9491683B2 (en) * 2014-10-31 2016-11-08 At&T Intellectual Property I, L.P. Mobile network with software defined networking architecture
CN105119727A (en) * 2015-07-31 2015-12-02 山东蚁巡网络科技有限公司 Log analysis service method characterized by charging according to cloud service resources
CN108171540A (en) * 2017-12-26 2018-06-15 北京星河星云信息技术有限公司 For the method and apparatus of resource metering and billing
CN108810837A (en) * 2018-04-27 2018-11-13 网宿科技股份有限公司 A kind of flow statistical method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072318A1 (en) * 2009-05-29 2012-03-22 International Business Machines Corporation Mechanisms for Executing a Process in a Cloud Computing Environment
JP2016103284A (en) * 2015-12-28 2016-06-02 富士通株式会社 Control program, control apparatus, and control method
CN109522134A (en) * 2018-12-19 2019-03-26 湖北省楚天云有限公司 A kind of method and apparatus that charging is carried out based on cloud computing platform resource
CN110009421A (en) * 2019-04-04 2019-07-12 杭州朗和科技有限公司 The unit price of cloud computing virtual resource determines method, medium, device and calculates equipment
CN111130810A (en) * 2019-11-27 2020-05-08 华为技术有限公司 Charging method and device for cloud service usage package and related equipment

Also Published As

Publication number Publication date
CN111130810A (en) 2020-05-08
CN111130810B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
WO2021104452A1 (en) Billing method and apparatus for cloud serving usage package, and related device
US12106337B2 (en) Method and system for dynamic pricing of web services utilization
WO2020207090A1 (en) Blockchain-based data processing system and method, computing device and storage medium
WO2021104451A1 (en) Sharing method and apparatus for multi-account cloud service usage package and related device
CN110418022B (en) Method and device for adjusting flow package for multiple user identifications
TWI677837B (en) Business information processing method and device
US8589549B1 (en) Method and system for customer incentive-based management of computing resource utilization
JP2014532935A (en) Marketplace for composite applications / data solutions
CN113516507A (en) Resource charging method and device for multi-cloud management platform
US10547586B1 (en) Bidding on electronic resources
US20120323821A1 (en) Methods for billing for data storage in a tiered data storage system
US20140279320A1 (en) Allocating and pricing virtual resources
CN110334099A (en) List calculation method and system based on database
TW201901541A (en) Method and device for realizing resource transfer, method and device for realizing payment and payment
US11574347B2 (en) System for high-speed billing transaction processing on a processing cluster
US10074115B1 (en) Subscription management service
WO2024104379A1 (en) Fee calculation method and apparatus, and electronic device, storage medium and product
US9679279B1 (en) Managing transfer of hosted service licenses
CN112184278A (en) Capability commodity charging method, capability open platform and capability commodity ordering system
US20140370848A1 (en) Systems and methods for exchanging data related to unconsumed cellular time
US20170222822A1 (en) Global data service device connection manager
WO2022261872A1 (en) Resource charging method and apparatus for multi-cloud management platform
CN103914512A (en) Method and system for managing data services
US20130166421A1 (en) Real time processing of large volume of vendor data
WO2024067672A1 (en) Cloud resource charging method, cloud management platform, computing device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20893166

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20893166

Country of ref document: EP

Kind code of ref document: A1