CN114629732A - Charging method and device for cloud resources, electronic equipment and medium - Google Patents

Charging method and device for cloud resources, electronic equipment and medium Download PDF

Info

Publication number
CN114629732A
CN114629732A CN202011445493.1A CN202011445493A CN114629732A CN 114629732 A CN114629732 A CN 114629732A CN 202011445493 A CN202011445493 A CN 202011445493A CN 114629732 A CN114629732 A CN 114629732A
Authority
CN
China
Prior art keywords
user
charging
resource object
deduction
cloud
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011445493.1A
Other languages
Chinese (zh)
Inventor
陈雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011445493.1A priority Critical patent/CN114629732A/en
Publication of CN114629732A publication Critical patent/CN114629732A/en
Pending legal-status Critical Current

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/1403Architecture for metering, charging or billing
    • 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/1485Tariff-related aspects

Landscapes

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

Abstract

The application discloses a charging method of cloud resources, which comprises the following steps: receiving a charging request aiming at a cloud resource object, wherein the charging request comprises a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object and a use limit of the user using the cloud resource object; inquiring whether account resources of the user contain a deduction quota matched with the configuration information of the cloud resource object or not according to the user identification and the resource identification; and under the condition that the account resources of the user comprise the deduction quota, carrying out charging processing on the cloud resource object according to the deduction quota and the use limit. The method enables the electronic equipment to flexibly charge the cloud resource object used by the user.

Description

Charging method and device for cloud resources, electronic equipment and medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a charging method and apparatus for cloud resources, an electronic device, and a medium.
Background
With the continuous development of internet technology, more and more users choose to use cloud resources, for example, resources such as cloud servers and cloud databases to deploy applications and provide data support for the applications, so as to save hardware cost and improve access speed and security of the applications.
Currently, in a cloud platform, when an electronic device charges for cloud resources used by a user, a common charging method generally includes: 1. the method comprises the following steps of charging according to the amount, namely, charging according to the service life of a user aiming at the cloud resources which are fixedly configured; 2. the charging method for the fixed time length, for example, a year-in-year or month-in-month charging method, is to pay the fixed time length for the cloud resources configured in a fixed manner in advance, and then the user can use the cloud resources within the fixed time length at will.
Therefore, the charging method used by the current electronic equipment has the problems of single mode and poor flexibility.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a new technical solution for performing charging processing on cloud resources, so that an electronic device can flexibly perform charging processing on cloud resources used by a user.
According to a first aspect of the present disclosure, a charging method for cloud resources is provided, where the method includes:
receiving a charging request aiming at a cloud resource object, wherein the charging request comprises a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object and a use limit of the user using the cloud resource object;
inquiring whether account resources of the user contain a deduction quota matched with the configuration information of the cloud resource object or not according to the user identification and the resource identification;
and under the condition that the account resources of the user comprise the deduction quota, carrying out charging processing on the cloud resource object according to the deduction quota and the use limit.
Optionally, the charging processing on the cloud resource object according to the deduction quota and the usage amount includes: and calling a resource deduction interface to charge the cloud resource object according to the deduction quota and the use limit, wherein the resource deduction interface is used for deducting the use limit from the deduction quota.
Optionally, the method further comprises: under the condition that the deduction quota is not included in the account resources of the user, determining the charging quota of the cloud resource object according to the using quota; and calling a resource payment interface to perform charging processing on the cloud resource object according to the charging amount.
Optionally, in a case that the deduction quota is not included in the account resources of the user, the method further includes: acquiring charging deduction resources corresponding to the cloud resource object from a resource database according to the resource identifier, the configuration information and the using limit; generating a selection interface for the user to select according to the charging deduction resources; and displaying the selection interface to a user, and carrying out charging processing on the cloud resource object according to the charging deduction resource selected by the user in the selection interface.
Optionally, before executing the query, the method further comprises: determining whether the user is a user meeting preset use conditions or not according to the user identification; and under the condition that the user meets the preset use condition, the charging processing is not carried out on the resource object.
Optionally, the preset use condition includes: whether the user is a year-in-package or month-in-package user corresponding to the resource object.
Optionally, the price of the deduction quota is less than the price of the resource object when the resource object is directly charged according to the usage amount.
According to a second aspect of the present disclosure, there is also provided a charging apparatus for cloud resources, including:
the request receiving module is used for receiving a charging request aiming at a cloud resource object, wherein the charging request comprises a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object and a use limit of the user using the cloud resource object;
the deduction quota inquiry module is used for inquiring whether the account resources of the user contain the deduction quota matched with the configuration information of the cloud resource object or not according to the user identification and the resource identification;
and the charging processing module is used for charging the cloud resource object according to the deduction quota and the usage amount under the condition that the account resource of the user comprises the deduction quota.
According to a third aspect of the present disclosure, there is also provided an electronic device, including the apparatus of the second aspect; alternatively, the first and second electrodes may be,
the electronic device includes:
a memory for storing executable instructions;
a processor configured to execute the electronic device according to the control of the instruction to perform the method according to any one of the first aspect.
According to a fourth aspect of the present disclosure, there is also provided a computer-readable storage medium storing a computer program readable and executable by a computer, the computer program being configured to perform the method according to any one of the first aspect when the computer program is read and executed by the computer.
According to the embodiment of the disclosure, after receiving a charging request for a cloud resource object, an electronic device acquires a user identifier using the cloud resource object, a resource identifier of the cloud resource object, configuration information and a use limit of the user using the cloud resource object from the charging request; then, inquiring whether the account resources of the user have a deduction quota matched with the configuration information of the cloud resource object or not according to the user identifier and the resource identifier; and under the condition that the account resource has the deduction quota, the cloud resource object can be charged according to the deduction quota and the use limit. In the embodiment of the disclosure, the electronic device queries whether the corresponding deduction quota exists in the user account resource, and performs the charging processing on the use quota of the cloud resource object used by the user according to the deduction quota, so that the diversity and flexibility of the charging processing mode can be improved; meanwhile, the method enables the user to open or unsubscribe the cloud resource object at any time under the condition that the deduction quota exists in the account resource of the user, and enables the user to select to reuse the cloud resource object at any time under the condition that the deduction quota of the account resource of the user is not used up, so that the method can improve the user viscosity and the user retention rate.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a charging process of a conventional cloud resource.
Fig. 2 is a schematic block diagram showing a hardware configuration of a server that can be used to implement the charging method of cloud resources of an embodiment.
Fig. 3 is a flowchart illustrating a charging method for cloud resources according to an embodiment.
Fig. 4 is a functional block diagram of a charging apparatus for cloud resources according to one embodiment.
FIG. 5 is a hardware architecture diagram of an electronic device according to one embodiment.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
Please refer to fig. 1, which is a schematic diagram of a charging process of a cloud resource in the prior art. As shown in fig. 1, in the cloud platform, when performing charging processing on a cloud resource object used by a user, an electronic device, for example, a charging server may first perform step S1100, receive a charging request, that is, receive a data request for charging the cloud resource object used by the user; then, in response to the data request, the electronic device may execute step S1200 to obtain information of the cloud resource object, for example, information such as identification information of the cloud resource object and configuration information of the user when using the cloud resource object may be obtained from the data request; then, the electronic device may generate a selection interface for the user to select the charging mode, and determine to perform step S1300, or perform step S1400 and step S1500 according to the user selection result.
Of course, in the specific implementation, a selection interface for selecting the charging mode may not be provided for the user; when charging is carried out, a charging bill for charging according to a fixed time length charging mode and a charging bill for charging according to a volume charging mode are displayed on an interface at the same time, and a user selects the charging bill according to needs. In addition, after the user has selected to perform charging according to the fixed time length charging mode and successfully pay, the electronic device does not need to perform charging again for the cloud resource object used by the user within the fixed time length, but directly skips the charging process, which is not described herein again.
In order to solve the problem that the existing cloud resource charging method is single in charging mode and poor in flexibility, which results in relatively poor user experience, this embodiment provides a charging method for cloud resources, where after an electronic device receives a charging request for a cloud resource object, it may first query, according to a user representation and a resource identifier in the charging request, whether a deduction quota matching the configuration information of the cloud resource object is included in an account resource of a user; and under the condition that the account resource contains the deduction quota, directly charging the cloud resource object according to the deduction quota and the use limit, so that the electronic equipment charges the cloud resource used by the user, and the diversity and flexibility of charging are improved.
< hardware configuration >
Referring to fig. 2, a schematic block diagram showing a hardware configuration of a server that can be used to implement the charging method of cloud resources of an embodiment is shown.
As shown in fig. 2, the server 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, and an input device 2600. The processor 2100 may be, for example, a central processing unit CPU or the like. The memory 2200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, a USB interface, a serial interface, and the like. Communication device 2400 is capable of wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display. The input device 2600 may include, for example, a touch screen, a keyboard, and the like.
In this embodiment, the server 2000 may be configured to participate in implementing a charging method for cloud resources according to any embodiment of the present disclosure.
In an embodiment of the present disclosure, the memory 2200 of the server 2000 is configured to store instructions for controlling the processor 2100 to operate so as to support implementation of a charging method for cloud resources according to any embodiment of the present disclosure. The skilled person can design the instructions according to the disclosed solution of the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
It should be understood by those skilled in the art that although a plurality of devices of the server 2000 are illustrated in fig. 2, the server 2000 of the disclosed embodiments may refer to only some of the devices, for example, only the processor 2100 and the memory 2200. This is well known in the art and will not be described in further detail herein.
< method examples >
Please refer to fig. 3, which is a flowchart illustrating a charging method for cloud resources according to an embodiment. The charging method for cloud resources provided in this embodiment may be applied to an electronic device, where the electronic device may be a server in a cloud platform, for example, the server may be the server 2000 shown in fig. 2; or, the method may also be applied to a terminal device which may be in communication connection with a cloud platform, where the cloud platform includes at least one cloud resource object, and the cloud resource object may be one or more resource objects providing cloud computing services for a cloud server, a cloud database, and the like. As shown in FIG. 3, the method may include the following steps S3100-S3300, described in detail below.
Step S3100, receiving a charging request for a cloud resource object, wherein the charging request includes a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object, and a usage amount of the user using the cloud resource object.
In this embodiment, the cloud resource object may be a resource object for providing cloud computing services in the cloud platform, and the resource object may be provided for a user to use, so that the user deploys an application program using the resource object, or provides data support for the application program, for example, the resource object may be a resource object such as a cloud server and a cloud database in the cloud platform.
In specific implementation, for the same cloud resource object, when the configuration selected by the user for use is different, the charging unit price finally used for charging is often different. For example, in the same cloud platform, the charging unit prices of cloud servers with configuration information of "four-core CPU 16G memory" and "eight-core CPU 32G memory" are often different. Therefore, when the electronic device charges for the cloud resource object used by the user, it needs to acquire the configuration information of the cloud resource object, and determine the charging unit price of the cloud resource object according to the configuration information.
In this embodiment, in order to increase the computing speed, when sending a charging request to the electronic device, the configuration information of the cloud resource object is sent to the electronic device at the same time, so as to prevent the computing device from consuming time again to obtain the configuration information; of course, in specific implementation, the configuration information of the cloud resource object may also be obtained in other ways, which is not limited herein.
The user identifier is information for uniquely identifying the user, and may be, for example, a user ID of the user; of course, in specific implementation, the mobile phone number of the user or other information with uniqueness may also be used to identify the user, which is not limited herein.
In this embodiment, the resource identifier is information for uniquely identifying a resource object, where the information may be category information when broadly divided, for example, a cloud server may be identified by "01", a cloud database may be identified by "02", and the like; when the resource object is divided in a narrow sense, the information may also include information such as the model and configuration of the resource object, which is not limited herein.
The usage amount is an amount of the cloud resource object used by the user, and the usage amount may be, for example, a usage duration or a usage flow.
In specific implementation, the charging request in this embodiment may be that when the user selects to use the cloud resource object in the cloud platform, the application server in the cloud platform generates the charging request according to the configuration information selected by the user, the usage amount selected by the user or actually used by the user of the cloud resource object, and sends the charging request to the electronic device for performing charging processing, for example, a charging server in the cloud platform.
It should be noted that, in this embodiment, the generation time of the charging request may be set as needed, for example, when the user selects to use the cloud resource object, the charging request may be generated according to the usage amount selected by the user; or, the user may use the cloud resource object first, after the user finishes using the cloud resource object, the application server obtains the usage amount of the cloud resource object actually used by the user in response to an operation triggered by the user and finishing using the cloud resource object, and generates the charging request according to the usage amount, which is not particularly limited herein.
After step S3100, step S3200 is executed, and whether a deduction quota matching the configuration information of the cloud resource object is included in the account resource of the user is queried according to the user identifier and the resource identifier.
In this embodiment, different from a manner in which, after receiving a charging request, a charging process is performed in a volume-based charging manner or a charging process is performed in a fixed-duration charging manner in the prior art, in this embodiment, in order to improve the flexibility of using cloud resources by a user and improve the viscosity and retention rate of the user in a cloud platform, a deduction quota is provided to the user by the method provided by this embodiment, when the electronic device performs the charging process on a cloud resource object used by the user in response to the charging request, it may be first queried whether an account resource of the user includes a deduction quota matching configuration information of the cloud resource object, and the charging process is performed according to the deduction quota and a usage quota of using the cloud resource object by the user.
In this embodiment, the deduction quota may be a quota for deducting usage quota of resource objects used by the user and configured in the same manner, for example, when the usage quota is a usage duration, the deduction quota may be a deduction ticket for deducting usage duration of cloud resource objects configured in the same manner; for another example, when the usage amount is usage traffic, the deduction quota may be a deduction ticket for deducting the usage traffic of the cloud resource object with the same configuration.
In particular implementations, the deduction quota may be obtained by a user purchase. For example, an interface for purchasing the charging deduction resources may be provided to the user by the cloud platform, and the corresponding deduction quota is generated to the account resource according to the charging deduction resources selected by the user in the interface, where the charging deduction resources may be resources including a preset duration and duration quotas of one or more cloud resource objects.
It should be noted that, in practice, when the volume charging mode is selected, the charging unit price of the cloud resource object with the same configuration is often higher than that of the fixed-duration charging mode, so that, in order to save the user cost and improve the user stickiness, so as to further improve the user experience, the charging unit price of the deduction quota provided in this embodiment may be smaller than that of the volume charging mode, that is, in this embodiment, the unit price of the deduction quota is smaller than that of the resource object directly charged according to the usage amount. Of course, in specific implementation, the unit price of the deduction quota may also be set to be greater than the unit price in the charging mode according to the fixed duration, that is, the unit price in the monthly wrapping mode, which is not described herein again.
In specific implementation, when the deduction quota is provided to the user, the deduction quota may be provided to the user in the form of a single cloud resource object and a charging deduction resource corresponding to the single configuration information, so as to be purchased by the user, for example, the charging deduction resource may be in the form of (a cloud server, "a quad-core CPU 16G memory", 100 hours).
Alternatively, the charging deduction resource may be in a combined form, for example, in order to increase user viscosity, the charging deduction resource may be formed by quotas of multiple kinds of configuration information of the same cloud resource object or a combination of quotas of multiple kinds of configuration information of multiple kinds of cloud resource objects, and after the user selects such charging deduction resource, deduction quotas corresponding to the cloud resource objects are generated in account resources of the user, respectively, that is, the charging deduction resource may be in a form of { (cloud resource object 1, configuration information 1, quota component 1), (cloud resource object 2, configuration information 2, quota component 2), … (cloud resource object n, configuration information n, quota component n) }, for example, { (cloud server, "quad-core CPU 16G memory", 50 hours), (cloud server, "eight-core CPU 32G memory", 10 hours), … (cloud database, "64G in memory", 40 hours) } which is not particularly limited herein.
Certainly, in specific implementation, the cloud platform may also provide, according to a user level of the user, a deduction quota of a certain cloud resource object fixedly configured for a corresponding duration to the user, where the user level may be determined according to a total duration of the user using the cloud resource object in the cloud platform, or may also be determined according to a total bill quota of the user using the cloud resource object in the cloud platform, and no special limitation is made here.
In addition, in this embodiment, before executing this step S3200, the method further includes: determining whether the user is a user meeting preset use conditions or not according to the user identification; and under the condition that the user meets the preset use condition, the charging processing is not carried out on the resource object.
In this embodiment, the preset using condition may include: whether the user is a year-in-package or month-in-package user corresponding to the resource object.
That is, after the user has previously charged the cloud resource object with the same configuration information for a fixed time length in the cloud platform, that is, when the user is a wrapped year or a wrapped month user of the cloud resource object, it may be determined that the user is a user meeting a preset use condition when the current time is within the fixed time length, and the charging process does not need to be performed on the cloud resource object used by the user, that is, the step S3200 and the subsequent step S3300 do not need to be performed again.
After the step S3200, executing step S3300, and if the account resource of the user includes the deduction quota, performing charging processing on the cloud resource object according to the deduction quota and the usage amount.
In this embodiment, when the account resource of the user includes the deduction quota matched with the configuration information of the cloud resource object used by the user, the cloud resource object may be charged according to the deduction quota and the usage amount.
Specifically, the charging the cloud resource object according to the deduction quota and the usage amount includes: and calling a resource deduction interface to charge the cloud resource object according to the deduction quota and the use limit, wherein the resource deduction interface is used for deducting the use limit from the deduction quota.
For example, a cloud resource object used by a user is set as a "cloud server", configuration information is a "quad-core CPU 16G memory", and a usage amount is 16 hours, then a deduction quota in the form of (the cloud server, "the quad-core CPU 16G memory", 100 hours) is included in account resources of the user, that is, in the case of a deduction quota matching the cloud resource object used by the user and the configuration information, a resource deduction interface may be called to perform charging processing on the cloud resource object, that is, a duration of use of the user is deducted from the deduction quota of the account resources of the user, and the deducted deduction quota is updated into the account resources of the user, that is, the updated deduction quota may be (the cloud server, "the quad-core CPU 16G memory", 84 hours).
In addition, in a case that the account resource of the user does not include the deduction quota, the method provided in this embodiment further includes: determining the charging limit of the cloud resource object according to the using limit; and calling a resource payment interface to perform charging processing on the cloud resource object according to the charging amount.
Specifically, when the account resource of the user does not include the corresponding deduction quota, the charging process may be performed in a volume-based charging manner directly according to the usage amount of the cloud resource object used by the user, for example, according to a formula: and calculating the charging amount, and calling a resource payment interface, namely, performing charging processing on the cloud resource object by using the interface for performing payment processing.
In addition, in a specific implementation, in order to improve flexibility of charging processing when the deduction quota is not included in the account resource of the user, the method provided in this embodiment further includes: under the condition that the deduction quota is not included in the account resources of the user, acquiring charging deduction resources corresponding to the cloud resource object from a resource database according to the resource identifier, the configuration information and the use limit; generating a selection interface for the user to select according to the charging deduction resources; and displaying the selection interface to a user, and carrying out charging processing on the cloud resource object according to the charging deduction resource selected by the user in the selection interface.
Specifically, under the condition that the account resources of the user do not include the corresponding deduction quota, the corresponding charging deduction resources can be inquired from a resource database providing the charging deduction resources according to the resource identification and the configuration information of the cloud resource object; then, generating and displaying a selection interface for the user to select according to the charging deduction resources; and then, charging the cloud resource object according to the charging deduction resource selected by the user in the selection interface. It should be noted that, the charging processing for the cloud resource object described herein may specifically be to call a resource payment interface to perform charging processing on the charging deduction resource selected by the user, and after the user successfully pays the charging deduction resource selected by the user, the usage amount of the cloud resource object used by the user is deducted from the corresponding deduction quota of the account resource through the resource deduction interface.
As can be known from the above steps S3100 to S3300, in the method of this embodiment, after the electronic device receives the charging request for the cloud resource object, the electronic device acquires, from the charging request, the user identifier of using the cloud resource object, the resource identifier of the cloud resource object, the configuration information, and the usage amount of the user using the cloud resource object; then, inquiring whether the account resources of the user have a deduction quota matched with the configuration information of the cloud resource object or not according to the user identifier and the resource identifier; and under the condition that the account resource has the deduction quota, the cloud resource object can be charged according to the deduction quota and the use limit. The method can improve the diversity and flexibility of the charging processing mode by inquiring whether the corresponding deduction quota exists in the user account resources and charging the use limit of the cloud resource object used by the user according to the deduction quota; meanwhile, the method enables the user to open or unsubscribe the cloud resource object at any time under the condition that the deduction quota exists in the account resources of the user, and enables the user to select to reuse the cloud resource object at any time under the condition that the deduction quota of the account resources of the user is not used up, so that the method can improve the user viscosity and the user retention rate.
< apparatus embodiment >
In this embodiment, a cloud resource billing apparatus is further provided, which may be applied to an electronic device, for example, may be applied to the server 2000 shown in fig. 2, and as shown in fig. 4, the apparatus 4000 may include a request receiving module 4100, a deduction quota querying module 4200, and a billing processing module 4300.
A request receiving module 4100, configured to receive a charging request for a cloud resource object, where the charging request includes a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object, and a usage amount of the user using the cloud resource object.
A deduction quota query module 4200, configured to query, according to the user identifier and the resource identifier, whether a deduction quota matching the configuration information of the cloud resource object is included in the account resource of the user.
And the charging processing module 4300 is configured to, when the account resource of the user includes the deduction quota, perform charging processing on the cloud resource object according to the deduction quota and the usage amount.
In an embodiment, when the charging processing module 4300 performs charging processing on the cloud resource object according to the deduction quota and the usage amount, the charging processing module 4300 may be configured to: and calling a resource deduction interface to charge the cloud resource object according to the deduction quota and the use limit, wherein the resource deduction interface is used for deducting the use limit from the deduction quota.
In an embodiment, in a case that the deduction quota is not included in the account resource of the user, the apparatus 4000 further includes a payment module, configured to determine a charging quota of the cloud resource object according to the usage quota; and calling a resource payment interface to perform charging processing on the cloud resource object according to the charging amount.
In one embodiment, in a case that the deduction quota is not included in the account resources of the user, the apparatus 4000 further includes a charging deduction resource selection module configured to: acquiring charging deduction resources corresponding to the cloud resource object from a resource database according to the resource identifier, the configuration information and the use limit; generating a selection interface for the user to select according to the charging deduction resources; and displaying the selection interface to a user, and carrying out charging processing on the cloud resource object according to the charging deduction resource selected by the user in the selection interface.
In one embodiment, the apparatus 4000 further comprises a user determination module configured to: determining whether the user is a user meeting preset use conditions or not according to the user identification; and under the condition that the user meets the preset use condition, the charging processing is not carried out on the resource object.
< apparatus embodiment >
In this embodiment, an electronic device is further provided, which may include the cloud resource charging apparatus 4000 according to any embodiment of the present disclosure, and is configured to implement the cloud resource charging method according to any embodiment of the present disclosure.
As shown in fig. 5, the electronic device 5000 may further include a processor 5200 and a memory 5100, the memory 5100 being configured to store executable instructions; the processor 5200 is configured to operate the electronic device according to the control of the instruction to perform a charging method of cloud resources according to any embodiment of the present disclosure.
The above modules of the apparatus 4000 may be implemented by the processor 5200 executing the instructions to perform a method of billing for cloud resources according to any embodiment of the present disclosure.
The electronic device 5000 may be a server, for example, the electronic device 5000 may be the server 2000 in fig. 2 or the like.
< media examples >
In this embodiment, a computer-readable storage medium is further provided, which stores a computer program that can be read and executed by a computer, and when the computer program is read and executed by the computer, the computer program is configured to perform the method according to any of the above embodiments of the present disclosure.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1. A charging method for cloud resources is characterized by comprising the following steps:
receiving a charging request aiming at a cloud resource object, wherein the charging request comprises a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object and a use limit of the user using the cloud resource object;
inquiring whether account resources of the user contain a deduction quota matched with the configuration information of the cloud resource object or not according to the user identification and the resource identification;
and under the condition that the account resources of the user comprise the deduction quota, carrying out charging processing on the cloud resource object according to the deduction quota and the use limit.
2. The method of claim 1, wherein the charging the cloud resource object according to the deduction quota and the usage amount comprises:
and calling a resource deduction interface to charge the cloud resource object according to the deduction quota and the use limit, wherein the resource deduction interface is used for deducting the use limit from the deduction quota.
3. The method of claim 1, further comprising:
under the condition that the deduction quota is not included in the account resources of the user, determining the charging quota of the cloud resource object according to the using quota;
and calling a resource payment interface to perform charging processing on the cloud resource object according to the charging amount.
4. The method of claim 1, wherein in a case that the deduction quota is not included in the user's account resources, the method further comprises:
acquiring charging deduction resources corresponding to the cloud resource object from a resource database according to the resource identifier, the configuration information and the using limit;
generating a selection interface for the user to select according to the charging deduction resources;
and displaying the selection interface to a user, and carrying out charging processing on the cloud resource object according to the charging deduction resource selected by the user in the selection interface.
5. The method of claim 1, wherein prior to executing the query, the method further comprises:
determining whether the user is a user meeting preset use conditions or not according to the user identification;
and under the condition that the user meets the preset use condition, the charging processing is not carried out on the resource object.
6. The method of claim 5, wherein the preset use condition comprises: whether the user is a year-in-package or month-in-package user corresponding to the resource object.
7. The method of claim 1, wherein the deduction quota has a unit price that is less than a unit price of directly charging the resource object by the usage amount.
8. A charging device for cloud resources is characterized by comprising:
the request receiving module is used for receiving a charging request aiming at a cloud resource object, wherein the charging request comprises a user identifier of a user using the cloud resource object, a resource identifier of the cloud resource object, configuration information of the cloud resource object and a use limit of the user using the cloud resource object;
the deduction quota inquiry module is used for inquiring whether the account resources of the user contain the deduction quota matched with the configuration information of the cloud resource object or not according to the user identification and the resource identification;
and the charging processing module is used for charging the cloud resource object according to the deduction quota and the usage amount under the condition that the account resource of the user comprises the deduction quota.
9. An electronic device comprising the apparatus of claim 8; alternatively, the first and second electrodes may be,
the electronic device includes:
a memory for storing executable instructions;
a processor configured to execute the electronic device to perform the method according to the control of the instruction, wherein the method is as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which is readable and executable by a computer, and which, when read by the computer, is adapted to perform the method according to any one of claims 1 to 7.
CN202011445493.1A 2020-12-11 2020-12-11 Charging method and device for cloud resources, electronic equipment and medium Pending CN114629732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011445493.1A CN114629732A (en) 2020-12-11 2020-12-11 Charging method and device for cloud resources, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011445493.1A CN114629732A (en) 2020-12-11 2020-12-11 Charging method and device for cloud resources, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114629732A true CN114629732A (en) 2022-06-14

Family

ID=81896511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011445493.1A Pending CN114629732A (en) 2020-12-11 2020-12-11 Charging method and device for cloud resources, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114629732A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074135A (en) * 2023-01-31 2023-05-05 中国联合网络通信集团有限公司 Quota configuration method and quota configuration device
CN116542659A (en) * 2023-04-10 2023-08-04 北京城市网邻信息技术有限公司 Resource allocation method, device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110265147A1 (en) * 2010-04-27 2011-10-27 Huan Liu Cloud-based billing, credential, and data sharing management system
CN102594576A (en) * 2012-03-19 2012-07-18 广州亦云信息技术有限公司 Charging method based on cloud platform service
US20130031028A1 (en) * 2011-07-25 2013-01-31 Bank Of America Exchange System Supporting Cloud Computing
US20140324647A1 (en) * 2013-03-15 2014-10-30 Gravitant, Inc. Cloud services expenditure analytics
CN104468136A (en) * 2014-12-31 2015-03-25 华为技术有限公司 Billing method, analysis center and billing center
CN106447317A (en) * 2015-08-10 2017-02-22 阿里巴巴集团控股有限公司 Business object providing method and terminal, and related server
CN107360006A (en) * 2017-06-12 2017-11-17 北京三快在线科技有限公司 A kind of resource billing method and device
CN107464107A (en) * 2016-06-06 2017-12-12 阿尔卡特朗讯 Method, system and equipment for the online charging of cloud system
CN108833123A (en) * 2018-04-11 2018-11-16 无锡华云数据技术服务有限公司 Based on according to quantity cloud host charging method and device
CN110298677A (en) * 2018-03-22 2019-10-01 中移(苏州)软件技术有限公司 A kind of method, apparatus, electronic equipment and the storage medium of cloud computing resources charging
CN111130810A (en) * 2019-11-27 2020-05-08 华为技术有限公司 Charging method and device for cloud service usage package and related equipment
CN111162921A (en) * 2019-11-27 2020-05-15 华为技术有限公司 Multi-account cloud service usage package sharing method and device and related equipment
CN111224791A (en) * 2020-01-10 2020-06-02 上海云海万邦数据科技有限公司 Cloud resource charging method and device, electronic equipment and storage medium
CN111612506A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Financial resource deduction method and device and electronic equipment
CN111756589A (en) * 2019-03-26 2020-10-09 杭州海康威视系统技术有限公司 Cloud resource management method and device, cloud server and storage medium
CN112054912A (en) * 2020-08-31 2020-12-08 北京易捷思达科技发展有限公司 Resource charging system and method of OpenStack open source cloud platform

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110265147A1 (en) * 2010-04-27 2011-10-27 Huan Liu Cloud-based billing, credential, and data sharing management system
US20130031028A1 (en) * 2011-07-25 2013-01-31 Bank Of America Exchange System Supporting Cloud Computing
CN102594576A (en) * 2012-03-19 2012-07-18 广州亦云信息技术有限公司 Charging method based on cloud platform service
US20140324647A1 (en) * 2013-03-15 2014-10-30 Gravitant, Inc. Cloud services expenditure analytics
CN104468136A (en) * 2014-12-31 2015-03-25 华为技术有限公司 Billing method, analysis center and billing center
CN106447317A (en) * 2015-08-10 2017-02-22 阿里巴巴集团控股有限公司 Business object providing method and terminal, and related server
US20190349269A1 (en) * 2016-06-06 2019-11-14 Alcatel Lucent Method, system and device for online charging in cloud system
CN107464107A (en) * 2016-06-06 2017-12-12 阿尔卡特朗讯 Method, system and equipment for the online charging of cloud system
CN107360006A (en) * 2017-06-12 2017-11-17 北京三快在线科技有限公司 A kind of resource billing method and device
CN110298677A (en) * 2018-03-22 2019-10-01 中移(苏州)软件技术有限公司 A kind of method, apparatus, electronic equipment and the storage medium of cloud computing resources charging
CN108833123A (en) * 2018-04-11 2018-11-16 无锡华云数据技术服务有限公司 Based on according to quantity cloud host charging method and device
CN111756589A (en) * 2019-03-26 2020-10-09 杭州海康威视系统技术有限公司 Cloud resource management method and device, cloud server and storage medium
CN111130810A (en) * 2019-11-27 2020-05-08 华为技术有限公司 Charging method and device for cloud service usage package and related equipment
CN111162921A (en) * 2019-11-27 2020-05-15 华为技术有限公司 Multi-account cloud service usage package sharing method and device and related equipment
CN111224791A (en) * 2020-01-10 2020-06-02 上海云海万邦数据科技有限公司 Cloud resource charging method and device, electronic equipment and storage medium
CN111612506A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Financial resource deduction method and device and electronic equipment
CN112054912A (en) * 2020-08-31 2020-12-08 北京易捷思达科技发展有限公司 Resource charging system and method of OpenStack open source cloud platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074135A (en) * 2023-01-31 2023-05-05 中国联合网络通信集团有限公司 Quota configuration method and quota configuration device
CN116074135B (en) * 2023-01-31 2024-05-03 中国联合网络通信集团有限公司 Quota configuration method and quota configuration device
CN116542659A (en) * 2023-04-10 2023-08-04 北京城市网邻信息技术有限公司 Resource allocation method, device, electronic equipment and storage medium
CN116542659B (en) * 2023-04-10 2024-06-04 北京城市网邻信息技术有限公司 Resource allocation method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8249552B1 (en) Pre and post-paid service plan manager
US20150235196A1 (en) Payment method and device
US9143625B2 (en) Selection of wireless devices and service plans
CN108805632B (en) Charging method and device
CN110490572B (en) Payment method, device, related equipment and system
CN110233741B (en) Service charging method, device, equipment and storage medium
CN114629732A (en) Charging method and device for cloud resources, electronic equipment and medium
US20220300928A1 (en) Cloud Computing Metering and Charging Method and Apparatus, and Electronic Device and Storage Medium
CN111209060A (en) Capability development platform processing method and device
CN110753323B (en) Card resource allocation method and server
CN108629619A (en) Use the motivational techniques, system and server of sharing articles
CN113037510A (en) Charging method, charging device and computer readable storage medium
US9008614B2 (en) Method, device and computer program product for controlling use of electronic communication services
JP6354261B2 (en) Cloud service fee presentation system and cloud service fee presentation method
KR20100137826A (en) Electronic cash system for displaying a using log and controll method thereof
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
CN110895777A (en) Method and device for processing overtime service list
US11062364B1 (en) Pricing usage of software products
CN108197961B (en) User management method and device
CN111210329A (en) Accounting document generation method and device, storage medium and electronic equipment
CN113496386A (en) Method and device for combined charging
KR102538192B1 (en) Method for depositing and using points using a text message
CN110570225A (en) Virtual cloud desktop use charging method, system, medium and electronic equipment
KR101533223B1 (en) Content sale system
US10015322B2 (en) Creating rating requests for groups of consumption items

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination