Information pushing method and device, electronic equipment and storage medium
By obtaining and analyzing the identification information, original cost information and accumulated discount information of the cloud resource provider, the target cost is calculated, which solves the problem of comprehensive data analysis and comparison in the existing technology and realizes the recommendation of the most cost-effective cloud resource purchase plan. .
Patent Information
- Application Number
- CN202311301275.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology cannot perform comprehensive data analysis, making it difficult for users to find the most cost-effective cloud resource purchase plan. It only considers the general discounts of a single cloud resource provider and does not analyze the secondary discounts of multiple providers.
By obtaining the target cloud resource type information, use the preset correspondence to obtain the identification information, original cost information and accumulated discount information of the cloud resource provider, calculate the target cost information, determine the lowest cost cloud resource provider, and push relevant information to the user information.
It implements comprehensive data analysis and comparison of multiple cloud resource providers, recommends the most cost-effective purchase plan, and helps users choose the lowest-cost option from multiple providers.
Smart Images

Figure CN118803032A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of cloud computing technology, and in particular, relates to a method, device, electronic device and storage medium for information push. Background Art
[0002] Cloud resource products are becoming increasingly diverse, and different cloud resource providers offer different levels of discounts for each type of cloud resource product.
[0003] When users purchase cloud resource products, they cannot find the pattern of discounts and it is difficult to screen out the most cost-effective purchase plan. When performing cost analysis, the existing technology only considers the general discounts provided by a single cloud resource provider, does not analyze multiple cloud resource providers, and does not perform cost analysis on secondary discounts. The data analysis is not comprehensive and it is impossible to obtain a cost-effective purchase plan.
[0004] Therefore, the problem with the prior art is that it is impossible to conduct a comprehensive data analysis to obtain a cost-effective purchasing solution. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for information push, which solve the problem that it is impossible to perform comprehensive data analysis to obtain a cost-effective purchasing solution.
[0006] In a first aspect, an embodiment of the present application provides a method for information push, including:
[0007] When the target cloud resource type information is obtained, in a preset first correspondence, the identification information, original cost information, and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information are obtained, wherein the first correspondence includes a correspondence between the cloud resource type information and the identification information, original cost information, and accumulated discount information of the cloud resource provider;
[0008] Multiply the original cost information by the accumulated discount information to obtain the target cost information corresponding to each cloud resource provider identification information;
[0009] Determine the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value;
[0010] Push the cloud resource information of the target cloud resource provider to the user.
[0011] In some possible implementations, when the target cloud resource type information is obtained, before obtaining the cloud resource provider identification information, the original cost information, and the accumulated discount information corresponding to the target cloud resource type information in the preset first correspondence, the method further includes:
[0012] Get historical bills for each cloud resource provider within a preset time period;
[0013] Acquire target field data corresponding to the target field from the historical bill, wherein the target field data includes cloud resource provider identification information, cloud resource type information, original cost information, and first discount information;
[0014] In a preset second correspondence, obtaining second discount information corresponding to the target field data, the second correspondence including a correspondence between the field data and the second discount information;
[0015] Multiply the first discount information and the second discount information to obtain cumulative discount information;
[0016] A first corresponding relationship is generated based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information.
[0017] In some possible implementations, generating a first correspondence based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information includes:
[0018] According to a preset third correspondence, obtaining a target name corresponding to the cloud resource type information, wherein the third correspondence includes a correspondence between the cloud resource type information and the name;
[0019] A first corresponding relationship is generated based on the cloud resource provider identification information, a target name corresponding to the cloud resource type information, the original cost information, and the accumulated discount information.
[0020] In some possible implementations, before obtaining the target name corresponding to the cloud resource type information according to the preset third correspondence, the method further includes:
[0021] Traverse historical bills and obtain target data corresponding to the same target field;
[0022] Based on the target data and the preset name, a third corresponding relationship is generated.
[0023] In some possible implementations, before obtaining the second discount information corresponding to the target field data in the preset second corresponding relationship, the method further includes:
[0024] Acquire type information of a second discount corresponding to the target field data;
[0025] Determine the second discount information according to the type information and the preset formula, where the second discount information is a non-negative number not greater than 1;
[0026] Based on the target field data and the second discount information, a second corresponding relationship is generated.
[0027] In some possible implementations, when the target cloud resource type information is obtained, in a preset first correspondence, obtaining identification information, original cost information, and accumulated discount information of a cloud resource provider corresponding to the target cloud resource type information includes:
[0028] When the preset target interface obtains the target cloud resource type information, in the preset first corresponding relationship, the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information are obtained, wherein the target interface includes the interfaces of all cloud resource providers.
[0029] In some possible implementations, the method further includes:
[0030] When the cloud resource provider's interface changes, the target interface is updated according to the preset protocol.
[0031] In a second aspect, the embodiment of the present application further provides a device for information push, including:
[0032] an acquisition module, configured to, when the target cloud resource type information is acquired, acquire, in a preset first correspondence, identification information, original cost information, and accumulated discount information of a cloud resource provider corresponding to the target cloud resource type information, wherein the first correspondence includes a correspondence between the cloud resource type information and the identification information, original cost information, and accumulated discount information of the cloud resource provider;
[0033] A calculation module, used for multiplying the original cost information with the accumulated discount information to obtain the target cost information corresponding to each cloud resource provider identification information;
[0034] A determination module, used to determine the cloud resource information of the target cloud resource provider corresponding to the target cost information with the minimum value;
[0035] The sending module is used to push the cloud resource information of the target cloud resource provider to the user.
[0036] In some possible implementations, when the acquisition module is used to acquire the target cloud resource type information, before acquiring the cloud resource provider identification information, the original cost information, and the accumulated discount information corresponding to the target cloud resource type information in a preset first correspondence, the device further includes a generation module:
[0037] The acquisition module is also used to obtain the historical bills of each cloud resource provider within a preset time period;
[0038] The acquisition module is further used to acquire target field data corresponding to the target field from the historical bill, wherein the target field data includes cloud resource provider identification information, cloud resource type information, original cost information and first discount information;
[0039] The acquisition module is further used to acquire the second discount information corresponding to the target field data in a preset second corresponding relationship, where the second corresponding relationship includes a corresponding relationship between the field data and the second discount information;
[0040] The calculation module is further used to multiply the first discount information and the second discount information to obtain the accumulated discount information;
[0041] The generating module is used to generate a first corresponding relationship based on the cloud resource provider identification information, the cloud resource type information, the original cost information and the accumulated discount information.
[0042] In some possible implementations, the generating module is used to generate a first correspondence based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information, including:
[0043] An acquiring unit, configured to acquire a target name corresponding to the cloud resource type information according to a preset third corresponding relationship, wherein the third corresponding relationship includes a corresponding relationship between the cloud resource type information and the name;
[0044] The generating unit is used to generate a first corresponding relationship based on the cloud resource provider identification information, the target name corresponding to the cloud resource type information, the original cost information and the accumulated discount information.
[0045] In some possible implementations, before the obtaining unit is used to obtain the target name corresponding to the cloud resource type information according to the preset third corresponding relationship, the device further includes:
[0046] The acquisition module is also used to traverse historical bills and obtain target data corresponding to the same target field;
[0047] The generating module is further used to generate a third corresponding relationship based on the target data and the preset name.
[0048] In some possible implementations, before the acquisition module is further used to acquire the second discount information corresponding to the target field data in the preset second corresponding relationship, the device further includes:
[0049] The acquisition module is further used to acquire type information of the second discount corresponding to the target field data;
[0050] The determination module is further used to determine the second discount information according to the type information and the preset formula, where the second discount information is a non-negative number not greater than 1;
[0051] The generating module is further used to generate a second corresponding relationship based on the target field data and the second discount information.
[0052] In some possible implementations, the acquisition module is used to acquire, in a case where the target cloud resource type information is acquired, identification information, original cost information, and accumulated discount information of a cloud resource provider corresponding to the target cloud resource type information in a preset first correspondence, including:
[0053] An acquisition unit is used to obtain the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information in a preset first corresponding relationship when the preset target interface obtains the target cloud resource type information, wherein the target interface includes the interfaces of all cloud resource providers.
[0054] In some possible implementations, the device further includes an updating module:
[0055] The update module is used to update the target interface according to a preset protocol when the interface of the cloud resource provider changes.
[0056] In a third aspect, an embodiment of the present application further provides an electronic device comprising a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for information push in the first aspect, or any possible implementation method in the first aspect, is implemented.
[0057] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for information push in the first aspect, or any possible implementation method in the first aspect, is implemented.
[0058] The information push method, device, electronic device and storage medium of the embodiment of the present application obtains the target cloud resource type information that the user wants to purchase, obtains the cloud resource provider identification information, original cost information and accumulated discount information corresponding to the target cloud resource type information in the preset first correspondence, and then multiplies the original cost information by the accumulated discount information to obtain the target cost information corresponding to each cloud resource provider identification information, and then determines the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value, and pushes the cloud resource information to the user. In the embodiment of the present application, the first correspondence includes the correspondence between "cloud resource type information" and "cloud resource provider identification information, original cost information and accumulated discount information", and multiple cloud resource providers corresponding to the target cloud resource type information that the user wants to purchase can be screened out, and the target cost information is calculated by accumulating the discount information, so that the cloud resource information of the target cloud resource provider with the lowest target cost information can be obtained from multiple cloud resource providers and recommended to the user, so that a comprehensive data analysis and comparison can be performed on multiple cloud resource providers, thereby providing users with a cost-effective purchase plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0060] Figure 1 This is a schematic diagram of the system composition of an information push provided by an embodiment of the present application;
[0061] Figure 2 This is a schematic diagram of a process for a system for information push to push a solution provided by an embodiment of the present application;
[0062] Figure 3 This is a flow chart of a method for information push provided in an embodiment of the present application;
[0063] Figure 4-a It is a structural diagram of a low-code bill download module provided in an embodiment of the present application;
[0064] Figure 4-b This is a schematic diagram of the interface download process of a low-code bill download module provided in an embodiment of the present application;
[0065] Figure 5 This is another flow chart of a method for information push provided in an embodiment of the present application;
[0066] Figure 6 It is a schematic diagram of a filling process for filling Table 2 provided in an embodiment of the present application;
[0067] Figure 7 It is a schematic diagram of an information push device provided in an embodiment of the present application;
[0068] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0070] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0071] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0072] As cloud resource service products become increasingly diverse, more and more users are choosing to use cloud resource services from different public cloud providers. Cloud resource services refer to computing, storage, network and other services provided by cloud resource service providers through the public Internet. Some cloud resource services can be obtained by users for free, but some cloud resource services need to be purchased.
[0073] When users purchase cloud resource service products, they can directly purchase cloud resource service products provided by cloud resource service providers on the cloud resource platform, or they can purchase them indirectly through operators. However, due to the large number of cloud resource service providers, and different cloud resource service providers set different discounts for different cloud products, and different operators provide different types of special discounts, users cannot find the rules of discounts when purchasing cloud resource products, and it is difficult to screen out cost-effective purchase plans.
[0074] As described in the background technology, the prior art only considers the general discounts provided by a single cloud resource provider when conducting cost analysis, without analyzing multiple cloud resource providers, and without analyzing the secondary discounts (i.e., special discounts) provided by operators. The data analysis is not comprehensive, and the most cost-effective purchase plan cannot be obtained. Therefore, the prior art has the problem of being unable to conduct comprehensive data analysis and obtain a cost-effective purchase plan.
[0075] Based on this, the embodiments of the present application provide a method, device, electronic device and storage medium for information push, which can perform comprehensive data analysis and comparison on multiple cloud resource providers, obtain the target cloud resource provider with the lowest cost from multiple cloud resource providers, and recommend the corresponding cloud resource information to users, thereby providing users with a cost-effective purchasing plan.
[0076] The following takes the information push system as an example. Figure 1 and Figure 2 The technical solution of the embodiment of the present application is described.
[0077] like Figure 1 As shown, the information push system may include: "low-code bill download module", "original discount generation module", "special discount management module" and "solution recommendation module", and the information push system may interact with various cloud resource providers.
[0078] like Figure 2 As shown, the specific process of pushing the scheme by the information push system of the embodiment of the present application is described as a whole:
[0079] 1) "Low-code bill download module", obtain the key token through authentication management;
[0080] 2) The enterprise administrator configures authentication information and bill download parameters;
[0081] 3) Call the bill download interface to download the historical bills of the cloud business platform;
[0082] 4) The cloud business platform returns the historical bills to the "low-code bill download module";
[0083] 5) The "low-code bill download module" sends the downloaded historical bills to the "original discount generation module";
[0084] 6) After receiving the historical bill, the "original discount generation module" can obtain target field data (i.e., cloud resource provider identification information, cloud resource type information, original cost information, and first discount information) from the historical bill;
[0085] 7) The "original discount generation module" sends the target field data to the "special discount management module";
[0086] 8) After receiving the target field data, the "special discount management module" will search for the corresponding second discount type information, convert it to obtain the second discount information not greater than 1, and multiply the second discount information by the first discount information in the target field data to calculate the cumulative discount information;
[0087] 9) The “special discount management module” generates a corresponding relationship (i.e., the first corresponding relationship mentioned in the embodiment below) based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information;
[0088] 10) The "special discount management module" sends the first corresponding relationship to the "plan recommendation module";
[0089] 11) The "solution recommendation module" stores the first correspondence, and is used to calculate the cost information corresponding to each cloud resource provider's identification information through the first correspondence when the "solution recommendation module" obtains the target cloud resource type information that the user wants to purchase, and then push the cloud resource information of the cloud resource provider corresponding to the lowest cost information to the user. By conducting a comprehensive data analysis and comparison of multiple cloud resource providers, a more cost-effective purchase solution is provided to the user.
[0090] The above introduces the components of the information push system and the specific process of the information push system to push solutions. Figure 3 The information push method provided in the embodiment of the present application is described in detail.
[0091] Figure 3 is a schematic diagram of a method for information push provided by an embodiment of the present application, such as Figure 3 As shown, the method may include S110 - S140 .
[0092] S110, when the target cloud resource type information is obtained, in a preset first correspondence, the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information is obtained, and the first correspondence includes a correspondence between the cloud resource type information and the cloud resource provider identification information, original cost information and accumulated discount information.
[0093] The target cloud resource type information refers to the cloud resource type information that the user wants to purchase, that is, the user's purchase demand. For example, the user inputs the target cloud resource type information that the user wants to purchase, and the target cloud resource type information may include one or more of the following information: cloud resource service provider, fee category, cloud resource type, cloud resource name, region, whether to reserve an instance, saving plan, etc.
[0094] The first correspondence refers to the correspondence between the cloud resource type information, the cloud resource provider identification information, the original cost information and the accumulated discount information generated in advance, and this correspondence can be called the first correspondence.
[0095] Specifically, step S110 can be understood as: when the operator obtains the target cloud resource type information that the user wants to purchase, the operator can obtain the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information in the preset first correspondence (that is, the correspondence between the cloud resource type information and the cloud resource provider identification information, original cost information and accumulated discount information).
[0096] In some embodiments, when the target cloud resource type information is obtained, in a preset first correspondence, the identification information, original cost information, and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information are obtained, that is, step S110, including:
[0097] When the preset target interface obtains the target cloud resource type information, in the preset first corresponding relationship, the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information are obtained, wherein the target interface includes the interfaces of all cloud resource providers.
[0098] The target interface refers to packaging and encapsulating all types of interfaces of all cloud resource providers into different target interfaces. Therefore, by interacting with different cloud resource providers through the target interface, the historical bills of each cloud resource provider can be obtained.
[0099] Specifically, when the preset target interface including all cloud resource providers obtains the target cloud resource type information, the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information can be obtained in the preset first corresponding relationship. By uniformly managing the interfaces of different public cloud platforms in advance, multiple types of interfaces can be adapted, realizing the ready-to-use download method of historical bills.
[0100] In some embodiments, the information push method further includes:
[0101] When the cloud resource provider's interface changes, the target interface is updated according to the preset protocol.
[0102] Specifically, when the interface of the cloud resource provider changes, the target interface can be automatically updated according to the preset protocol. That is, the written interface code can not only adapt to the interfaces of different public cloud platforms, but also when the interface of the public cloud platform changes, the updated interface can be obtained through pre-written program code. There is no need for secondary development when the interface is updated. While ensuring the comprehensiveness of obtaining historical bills, the real-time nature of obtaining historical bills is also guaranteed.
[0103] In one embodiment, the “low-code bill download module” is as follows Figure 4-a As shown, the "low-code bill download module" has authentication management function, download script management function, bill file management function and interface adaptation function, among which the interface adaptation function can adapt various interfaces such as interface_1, interface_2,..., interface_n, etc.
[0104] The "low-code bill download module" can send a historical bill download request to a public cloud provider such as public cloud provider_1, public cloud provider_2, or public cloud provider_3. After receiving the download request, the public cloud provider returns the historical bill information to the "low-code bill download module". The interfaces of different public cloud platforms can be uniformly managed in advance, and various types of interfaces can be adapted to achieve ready-to-use historical bill downloading.
[0105] For example, Figure 4-a As shown, the pom.xml configuration file can be used to store the path, version, groupid and other information of each cloud vendor's SDK. The dependency tag can be used to uniformly manage and associate the SDKs of each cloud vendor, which can meet multiple bill download methods such as RESTful, cloud storage bucket, SDK, etc.
[0106] In one embodiment, the download process of the "low-code bill download module" is as follows Figure 4-b As shown:
[0107] 1) Authentication management function: After the user enters the account information of the cloud resource provider, such as the access key (AK / SK), the "low-code bill download module" automatically calls the authentication interface of the corresponding cloud resource provider to obtain token / cookie related information, where the token can replace the username and password. The data return format can be in json format. By parsing the message body in json format, the authentication information required to download historical bills can be obtained;
[0108] 2) Next, assemble the bill download parameters: the front-end page automatically imports the authentication information from the previous step as the call message header. At the same time, the front-end assembles the page through the key & value message, collects the public cloud identification information, request method (which can be GET), request URL, historical bill file type, account period, etc.;
[0109] 3) Download script management function: can adapt to different interfaces to download historical bills.
[0110] In an example, the called interface types are RESTFul interface and SDK interface, and the assembled message is "https: / / billunion.api.ksyun.com?Action=DescribeBillSummaryBy PayMode&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&Public parameters (such as cookie / ak / sk, etc.)";
[0111] In another example, the called interface type is an object storage interface.
[0112] 4) Bill file management function: During the file transfer process of historical bills, you can rename a temporary file name, such as the official file name + '.tmp', and then change it back to the official file name after the file transfer is completed. Since bill files are large files and the transfer process is long, this mechanism (i.e. file read and write anti-collision mechanism) can prevent the user from using or modifying the data during the transfer process, which can effectively avoid misoperation of historical bill files during the transfer process.
[0113] In one example, historical bill storage uses HDFS's mature data storage solution to uniformly store and manage the original bills and billing data of the public cloud by cloud provider and date. The storage naming convention is: " / DATA / BUSINESS / BILL / SRC / ${CloudType} / ${DATE} / xxx".
[0114] S120, multiplying the original cost information by the accumulated discount information to obtain target cost information corresponding to each cloud resource provider identification information.
[0115] Specifically, step S120 can be understood as: through step S110, the cloud resource provider's identification information, original cost information and accumulated discount information corresponding to the target cloud resource type information that the user wants to purchase have been found. Next, step S120 can multiply the original cost information by the accumulated discount information to obtain the target cost information corresponding to each cloud resource provider's identification information, that is, the cost required for the user to purchase the target cloud resource type information from each cloud resource provider.
[0116] S130, determining the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value.
[0117] Specifically, step S130 can be understood as: after obtaining the required cost (i.e., target cost information) for the user to purchase the target cloud resource type information from each cloud resource provider in step S120, step S130 can obtain the target cost information with the smallest value, and can determine the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value.
[0118] S140: Push the cloud resource information of the target cloud resource provider to the user.
[0119] Specifically, step S140 may be understood as: after obtaining the cloud resource information of the target cloud resource provider in step S130, step S140 may push the cloud resource information of the target cloud resource provider to the user.
[0120] In an embodiment of the present application, by obtaining the target cloud resource type information that the user wants to purchase, in the preset first corresponding relationship, the cloud resource provider identification information, original cost information and accumulated discount information corresponding to the target cloud resource type information are obtained, and then the original cost information is multiplied by the accumulated discount information, the target cost information corresponding to each cloud resource provider identification information can be obtained, and then the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value can be determined, and the cloud resource information can be pushed to the user. In an embodiment of the present application, the first corresponding relationship includes the corresponding relationship between "cloud resource type information" and "cloud resource provider identification information, original cost information and accumulated discount information", and multiple cloud resource providers corresponding to the target cloud resource type information that the user wants to purchase can be screened out, and the target cost information can be calculated by accumulating the discount information, so that the cloud resource information of the target cloud resource provider with the lowest target cost information can be obtained from multiple cloud resource providers and recommended to the user, so that a comprehensive data analysis and comparison can be performed on multiple cloud resource providers, thereby providing users with a cost-effective purchase plan.
[0121] In some embodiments, Figure 5 As shown, in the case where the target cloud resource type information is obtained, in the preset first corresponding relationship, before obtaining the cloud resource provider identification information, the original cost information and the accumulated discount information corresponding to the target cloud resource type information, that is, before step S110, the information push method further includes:
[0122] S151, obtaining historical bills of each cloud resource provider within a preset time period;
[0123] S152, acquiring target field data corresponding to the target field from the historical bill, wherein the target field data includes cloud resource provider identification information, cloud resource type information, original cost information, and first discount information;
[0124] S153, obtaining second discount information corresponding to the target field data in a preset second corresponding relationship, where the second corresponding relationship includes a corresponding relationship between the field data and the second discount information;
[0125] S154, multiplying the first discount information and the second discount information to obtain accumulated discount information;
[0126] S155: Generate a first corresponding relationship based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information.
[0127] Specifically, the historical bill of a cloud resource provider refers to the historical bill generated after a user purchases a cloud resource service product from the cloud resource provider. The historical bill may include information such as cloud resource provider identification information, cloud resource type information, original cost information, and first discount information.
[0128] The second discount information refers to the second discount offered by the intermediary based on the original discount offered by the cloud resource provider, such as discounts on discounts, discounts for purchases over a certain amount, coupons, refunds, and other special discounts.
[0129] The second corresponding relationship refers to the corresponding relationship between the field data in the historical bills retained by the middleman and the second discount information, which can be called the second corresponding relationship.
[0130] It should be noted that cloud resource providers provide the official price and first discount information of cloud resources; after middlemen purchase cloud resources in bulk, they will add the second discount information on the basis of the first discount information and then provide it to users.
[0131] It should also be noted that the preferential information included in the historical bills obtained from the cloud resource provider only includes the first discount information. The second discount information corresponding to the same bill needs to be obtained from the historical bills of the middleman (ie, the second corresponding relationship).
[0132] Specifically, step S151 can be understood as the operator obtaining the historical bills of each cloud resource provider within a preset time period.
[0133] Step S152 can be understood as obtaining target field data corresponding to the target field from the historical bill, namely, cloud resource provider identification information, cloud resource type information, original cost information and first discount information.
[0134] It should be noted that the target field of step S152 may be a field highly correlated with discount benefits obtained by summarizing historical bills.
[0135] Step S153 can be understood as obtaining the second discount information corresponding to the target field data in the preset correspondence relationship between the field data and the second discount information (ie, the second correspondence relationship), wherein the second correspondence relationship includes the correspondence relationship between the field data and the second discount information.
[0136] Step S154 can be understood as that the first discount information and the second discount information are both discount information between 0 and 1, so the first discount information and the second discount information can be multiplied to obtain the accumulated discount information.
[0137] Step S155 can be understood as generating a first corresponding relationship based on the cloud resource provider identification information, cloud resource type information, original cost information and accumulated discount information, so that the first corresponding relationship includes the identification information of all cloud resource providers, the cloud resource type information of each cloud resource provider, the original cost information, and the first discount information and the second discount information (i.e., the accumulated discount information). A comprehensive data analysis is performed, and the purchase plan obtained based on the first corresponding relationship is more cost-effective.
[0138] In some embodiments, based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information, generating a first correspondence relationship, i.e., step S155, includes:
[0139] According to the preset third corresponding relationship, the target name corresponding to the cloud resource type information is obtained. In fact, the third corresponding relationship includes the corresponding relationship between the cloud resource type information and the name;
[0140] A first corresponding relationship is generated based on the cloud resource provider identification information, a target name corresponding to the cloud resource type information, the original cost information, and the accumulated discount information.
[0141] The third correspondence refers to the correspondence between the cloud resource type information and the name, which can be called the third correspondence. In the preset third correspondence, each cloud resource type corresponds to a standard name, which can solve the problem that different cloud resource providers provide different names for the same cloud resource type.
[0142] It should be noted that the first corresponding relationship obtained from the third corresponding relationship includes the target name corresponding to the cloud resource type information, that is, through the target name corresponding to the cloud resource type information, the corresponding cloud resource provider identification information, original cost information and accumulated discount information can be queried in the first corresponding relationship.
[0143] Specifically, according to the preset third correspondence between cloud resource type information and name, the target name corresponding to the cloud resource type information can be obtained, and then the first correspondence can be generated based on the cloud resource provider identification information, the target name corresponding to the cloud resource type information, the original cost information and the accumulated discount information.
[0144] In some embodiments, before obtaining the target name corresponding to the cloud resource type information according to the preset third correspondence, the method further includes:
[0145] Traverse historical bills and obtain target data corresponding to the same target field;
[0146] Based on the target data and the preset name, a third corresponding relationship is generated.
[0147] Specifically, before obtaining the target name corresponding to the cloud resource type information according to the preset third correspondence, it is necessary to generate the third correspondence in advance, that is, traverse the historical bills (the historical bills are the historical bills of each cloud resource provider), and obtain the target data corresponding to the same target field, wherein the same field is the same cloud resource type, and then based on the target data and the preset name, the generated correspondence can be called the third correspondence. Therefore, by uniformly naming all data involving the same field (i.e., the same cloud resource type) in all cloud resource historical bills, when the user enters the name of the cloud resource type that he wants to purchase (i.e., the name uniformly named for the cloud resource type), in the first correspondence generated by the third correspondence, all historical bill information involving the cloud resource type name in the historical bill can be accurately, quickly and without omission, that is, through the cloud resource type name, the corresponding cloud resource provider identification information, original cost information and accumulated discount information can be queried in the first correspondence, and the query result is more accurate, fast and comprehensive.
[0148] In some embodiments, before obtaining the second discount information corresponding to the target field data in the preset second corresponding relationship, that is, before step S153, the information push method further includes:
[0149] Acquire type information of a second discount corresponding to the target field data;
[0150] Determine the second discount information according to the type information and the preset formula, where the second discount information is a non-negative number not greater than 1;
[0151] Based on the target field data and the second discount information, a second corresponding relationship is generated.
[0152] The preset formula refers to converting different second discount type information into second discount information not greater than 1. Different second discount type information may correspond to different preset formulas.
[0153] Specifically, the correspondence between the field data and the type information of the second discount can be called the fourth correspondence. In the fourth correspondence, the type information of the second discount corresponding to the target field data (i.e., the target field data obtained from the historical bill of the cloud resource provider based on step S152) can be obtained, and then the second discount information can be determined based on the type information and the preset formula, and the second discount information obtained according to the preset formula is a non-negative number not greater than 1. Then, the second correspondence (i.e., the historical bill of the intermediary) can be generated based on the target field data and the second discount information.
[0154] In one example, the target field data corresponding to the target field is obtained from the historical bills of all cloud resource providers, that is, the steps in Table 2 above are obtained, such as Figure 6 shown.
[0155] like Figure 6 As shown, first enter the start state, read the column names of the first line of the original bill, store them in sequence S1, and then read the subsequent original bill data line by line, and store them in sequence Sx (x = 2, 3, 4...n, assuming that the original bill has n lines).
[0156] Then, fix the sequence S1 and traverse the remaining sequences Sx (x=2, 3, 4...n). Fix the sequence S1, that is, traverse the fields of S1 and confirm the position of the field in Table 2, and record the serial number of the field.
[0157] Next, determine whether padding is required and whether the padding value needs to be calculated: If there is no ready-made field mapping and the data needs to be calculated from other fields, or if certain conditions need to be met before padding, perform simple processing in this step. If there is no column name for field mapping, discard the data and record the column number i of the currently traversed S1 sequence, that is, S1[i];
[0158] Next, determine whether enumeration value conversion is required: before filling the sequence Sx[i] of the original bill into Table 2, check whether the values to be filled need to be uniformly mapped according to Table 1. After mapping into a unified name / value, fill it into the corresponding column of Table 2. If the discount field already has a discount value, skip it and do not fill it.
[0159] Next, after traversing all Sx (x = 2, 3, 4 ... n) sequences, that is, filling the processed values of sequence Sx [i] into the corresponding positions of Table 2, the conversion from the original bill to Table 2 is completed, and the end state is entered. Thus, the embodiment of the present application completes the process of filling in Table 2 according to the historical bill, obtains the target field data corresponding to the target field, and obtains the core data from the historical bill, providing a multi-dimensional data basis for cost analysis.
[0160] It should be noted that the fourth corresponding relationship refers to the business terms within the operator, that is, the corresponding relationship between the field data in the fourth corresponding relationship and the type of the second discount can be formulated by the operator.
[0161] In an embodiment of the present application, the type information of the second discount corresponding to the fourth correspondence established by the operator can be obtained through the target field data obtained from the historical bills of the cloud resource provider, and then different preset formulas are calculated according to different type information of the second discount to obtain second discount information not greater than 1, and a second correspondence is generated based on the target field data and the second discount information, so that the use of the second correspondence in step S153 can be implemented, and the multiplication calculation method of multiplying the first discount information and the second discount information in step S154 can also be implemented to obtain the cumulative discount information, thereby adding the second discount information to the cumulative discount information and participating in the calculation of the final cost, thereby realizing the cost analysis of the secondary discount, and the data analysis is more comprehensive, so as to obtain a cost-effective purchase plan.
[0162] It should be noted that, for ease of understanding, the corresponding relationships in the embodiments of the present application are summarized here: the first corresponding relationship, the second corresponding relationship, the third corresponding relationship, and the fourth corresponding relationship are all established in advance, wherein the second corresponding relationship, the third corresponding relationship, and the fourth corresponding relationship are used to generate the first corresponding relationship. Specifically:
[0163] The first corresponding relationship is used to query the corresponding cloud resource provider identification information, original cost information and accumulated discount information when receiving the target cloud resource type information that the user wants to purchase, so as to calculate the cost and obtain the lowest cost purchase plan.
[0164] The second corresponding relationship refers to the historical bills of the operator. After obtaining the historical bills of the cloud resource provider, the corresponding second discount information can be found in the second corresponding relationship. The second discount information is standardized information, that is, a non-negative number not greater than 1, which is used to multiply the first discount information to obtain the accumulated discount information.
[0165] The third correspondence refers to the correspondence generated after standardizing the names corresponding to the same cloud resource types after obtaining the historical bills of the cloud resource provider, which can be understood as an enumeration value mapping table. The third correspondence is used to unify the target names of the same cloud resource type information obtained in the historical bills of the cloud resource provider. Based on the first correspondence generated by the third correspondence, when the target cloud resource type information that the user wants to purchase is received (i.e., including the target name corresponding to the cloud resource type information), the corresponding cloud resource provider identification information, original cost information and accumulated discount information can be queried more quickly, and the query results can be more comprehensive and accurate.
[0166] The fourth correspondence refers to the correspondence between the field data set by the operator and the type information of the second discount. After obtaining the target field data in the historical bill of the cloud resource provider, the corresponding type information of the second discount can be obtained through the fourth correspondence. The type information of the second discount may include types such as discount on discount, full discount, coupon or refund amount.
[0167] In one embodiment, the specific implementation process of the system providing information push to recommend a cost-effective purchase plan to a user is as follows:
[0168] 1) First, download the historical bills of all cloud resource providers through the "Low-Code Bill Download Module" and send the historical bills to the "Original Discount Generation Module".
[0169] 2) After obtaining the historical bill, firstly perform unified naming according to the third correspondence (i.e., the correspondence between cloud resource type and name). For example, the third correspondence is shown in Table 1.
[0170] Table 1
[0171] Field Name Generic enumeration values Cloud Resource Provider_1 Cloud Resource Provider_2 Cloud Resource Provider_3 Cloud Resource Provider_4 Cloud resource name Cloud Host Amazon EC2 Elastic Compute Service Elastic Cloud Server Cloud Virtual Machine (CVM) Cloud resource name Object Storage Amazon S3 Object Storage Service (OSS) Object Storage Service CloudObject Storage Cloud resource name RDS Amazon RDS ApsaraDB RDS Instance Relational Database TencentDB for MySQL
[0172] Table 1 is an enumeration value mapping table. For example, if the cloud resource name of cloud resource provider_1 is "AmazonEC2", the cloud resource name of cloud resource provider_2 is "Elastic Compute Service", the cloud resource name of cloud resource provider_3 is "Elastic Cloud Server", and the cloud resource name of cloud resource provider_4 is "Cloud Virtual Machine (CVM)", they are uniformly named as the target name: "Cloud Host". The target name may also include standardized unified names such as object storage and RDS. In the embodiment of the present application, the problem of differences in the names of related attributes such as product names, expense categories, cloud resource names, regions, etc. of each cloud vendor can be solved, and unified management of bill fields can be achieved.
[0173] 3) Secondly, after receiving the historical bill, the "original discount generation module" can summarize the target fields with a high correlation with the preferential discount information from the historical bill. The target fields may include: cloud resource type information field, cloud resource provider identification information field, original cost information field and first discount information field.
[0174] In one example, after receiving the historical bill, the "original discount generation module" extracts the target field data corresponding to the target field from the historical bill, as shown in Table 2.
[0175] Table 2
[0176]
[0177] In Table 2, the target field data includes: public cloud vendor identification information, cloud resource type information (i.e., account period, fee category, cloud resource type, cloud resource name, region, whether to reserve instances, whether to save plans, etc.), original cost information, and first discount information. Among them, the account period refers to the effective time of the original price and the first discount; the fee category refers to the user's payment method category, such as prepaid method, partial prepaid method, postpaid method, etc.; the cloud resource type refers to the type of original resource product, such as computing, storage, network, etc.; the cloud resource name refers to the name of the cloud resource product; the region refers to the effective geographical location of the original price and the first discount; the reserved instance refers to the cloud resources reserved in advance for the user; the saving plan refers to whether the cloud resources are used sparingly.
[0178] 4) Then, the "special discount management module" can obtain the corresponding second discount type information in the fourth correspondence (i.e., the correspondence between the target field data set by the operator and the second discount type) according to the target field data in Table 1, and convert it into second discount information with a value between 0 and 1 according to a preset formula.
[0179] 4.1) The type information of the second discount obtained from the fourth corresponding relationship may be, for example, a special secondary discount such as a discount on a discount, a discount for a certain amount, a voucher, a refund, etc., which makes the type information of the second discount diverse. Therefore, it is necessary to convert it into the second discount information between 0 and 1 according to a preset formula.
[0180] In an example, the generation process of the second discount information with a value between 0 and 1 is shown in Table 3.
[0181] Table 3
[0182]
[0183] As shown in Table 3, the corresponding second discount type information, i.e., the type of the second discount, coupon, discount amount, refund amount and other information, can be queried in Table 3 according to the target field data. After the second discount type information is calculated by a preset formula, the second discount information with a value range of 0 to 1 can be obtained.
[0184] 4.2) Preset formula
[0185] In one example, the type of the second discount is "discount on discount". In Table 2, the search is performed based on "public cloud provider + cloud resource type information (i.e., account period + fee category + cloud resource type + cloud resource name + region + reserved instance + savings plan)". Since the discount on discount is a value between 0 and 1, it can be directly used as the second discount. For example, if the applicable scope of a column is "all", the column can be removed from the combined search conditions. The cumulative discount that meets the combination = the first discount that meets the combination conditions × the second discount.
[0186] In another example, the type of the second discount is "full discount", and the preset formula is: second discount = (full discount threshold - full discount amount) / full discount threshold, then the cumulative discount = first discount × second discount = first discount × (full discount threshold - full discount amount) / full discount threshold.
[0187] In another example, the type of the second discount is "voucher". Through the combination of conditions of "public cloud provider + account period + fee category + cloud resource type + cloud resource name + region + reserved instance + savings plan", the total cost of the applicable scope of the voucher is screened out and converted into the second discount = (total cost - voucher) / total cost, then the cumulative discount = first discount × second discount = first discount × (total cost - voucher) / total cost.
[0188] In another example, the type of the second discount is "rebate amount". The rebate amount scenario is essentially the same as the voucher, both of which are deductions from the total cost. Therefore, it is converted into the second discount = (total cost - rebate amount) / total cost, then the cumulative discount = first discount × second discount = first discount × (total cost - rebate amount) / total cost.
[0189] 4.3) The "special discount management module" multiplies the second discount information and the first discount information in the target field data to obtain the cumulative discount information, and then generates a corresponding relationship (i.e., the first corresponding relationship mentioned in the above embodiment) based on the cloud resource provider identification information, cloud resource type information, original cost information and cumulative discount information, and sends the first corresponding relationship to the "solution recommendation module".
[0190] 5) When the target cloud resource type information is obtained, the "Scheme Recommendation Module" obtains the identification information, original cost information, and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information in the first corresponding relationship, and then multiplies the original cost information by the accumulated discount information to obtain the cost information corresponding to the identification information of each cloud resource provider, and then pushes the cloud resource information of the cloud resource provider corresponding to the lowest cost information to the user. By conducting comprehensive data analysis and comparison of multiple cloud resource providers, users are provided with a more cost-effective purchase plan.
[0191] The present application also provides a device for information push, such as Figure 7 As shown, the device 700 may include an acquisition module 710 , a calculation module 720 , a determination module 730 and a sending module 740 .
[0192] The acquisition module 710 is used to acquire, in the case of acquiring the target cloud resource type information, the identification information, the original cost information and the accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information in a preset first correspondence relationship, wherein the first correspondence relationship includes the correspondence relationship between the cloud resource type information and the identification information, the original cost information and the accumulated discount information of the cloud resource provider;
[0193] A calculation module 720, configured to multiply the original cost information by the accumulated discount information to obtain target cost information corresponding to each cloud resource provider identification information;
[0194] A determination module 730 is used to determine the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value;
[0195] The sending module 740 is used to push the cloud resource information of the target cloud resource provider to the user.
[0196] In an embodiment of the present application, the information push device obtains the target cloud resource type information that the user wants to purchase, obtains the cloud resource provider identification information, original cost information and accumulated discount information corresponding to the target cloud resource type information in the preset first correspondence, and then multiplies the original cost information by the accumulated discount information to obtain the target cost information corresponding to each cloud resource provider identification information, and then determines the cloud resource information of the target cloud resource provider corresponding to the target cost information with the smallest value, and pushes the cloud resource information to the user. In an embodiment of the present application, the first correspondence includes the correspondence between "cloud resource type information" and "cloud resource provider identification information, original cost information and accumulated discount information", and multiple cloud resource providers corresponding to the target cloud resource type information that the user wants to purchase can be screened out, and the target cost information can be calculated by accumulating the discount information, so that the cloud resource information of the target cloud resource provider with the lowest target cost information can be obtained from multiple cloud resource providers and recommended to the user, so that a comprehensive data analysis and comparison can be performed on multiple cloud resource providers, thereby providing users with a cost-effective purchase plan.
[0197] In some embodiments, when the acquisition module is used to acquire the target cloud resource type information, before acquiring the cloud resource provider identification information, the original cost information and the accumulated discount information corresponding to the target cloud resource type information in the preset first correspondence, the device further includes a generation module:
[0198] The acquisition module is also used to obtain the historical bills of each cloud resource provider within a preset time period;
[0199] The acquisition module is further used to acquire target field data corresponding to the target field from the historical bill, wherein the target field data includes cloud resource provider identification information, cloud resource type information, original cost information and first discount information;
[0200] The acquisition module is further used to acquire the second discount information corresponding to the target field data in a preset second corresponding relationship, where the second corresponding relationship includes a corresponding relationship between the field data and the second discount information;
[0201] The calculation module is further used to multiply the first discount information and the second discount information to obtain the accumulated discount information;
[0202] The generating module is used to generate a first corresponding relationship based on the cloud resource provider identification information, the cloud resource type information, the original cost information and the accumulated discount information.
[0203] In some embodiments, the generating module is used to generate a first correspondence based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information, including:
[0204] An acquiring unit, configured to acquire a target name corresponding to the cloud resource type information according to a preset third corresponding relationship;
[0205] The generating unit is used to generate a first corresponding relationship based on the cloud resource provider identification information, the target name corresponding to the cloud resource type information, the original cost information and the accumulated discount information.
[0206] In some embodiments, before the acquisition unit is used to acquire the target name corresponding to the cloud resource type information according to the preset third correspondence, the device further includes:
[0207] The acquisition module is also used to traverse historical bills and obtain target data corresponding to the same target field;
[0208] The generating module is further used to generate a third corresponding relationship based on the target data and the preset name.
[0209] In some embodiments, before the acquisition module is further used to acquire the second discount information corresponding to the target field data in the preset second corresponding relationship, the device further includes:
[0210] The acquisition module is further used to acquire type information of the second discount corresponding to the target field data;
[0211] The determination module is further used to determine the second discount information according to the type information and the preset formula, where the second discount information is a non-negative number not greater than 1;
[0212] The generating module is further used to generate a second corresponding relationship based on the target field data and the second discount information.
[0213] In some embodiments, the acquisition module is used to acquire target cloud resource type information, including:
[0214] The acquisition unit is used to acquire target cloud resource type information through a preset target interface, wherein the target interface includes interfaces of all cloud resource providers.
[0215] In some embodiments, the apparatus further comprises an update module:
[0216] The update module is used to update the target interface according to a preset protocol when the interface of the cloud resource provider changes.
[0217] Each module in the information push device provided in the embodiment of the present application can realize Figures 1 to 6 The functions of each step of the method for providing information push and achieving its corresponding technical effects are described briefly and will not be repeated here.
[0218] Figure 8 A schematic diagram of the hardware structure of the information push device provided in an embodiment of the present application is shown.
[0219] The information push device may include a processor 801 and a memory 802 storing computer program instructions.
[0220] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0221] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0222] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.
[0223] The processor 801 implements any one of the information push methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0224] In one example, the information push device may further include a communication interface 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 804 and communicate with each other.
[0225] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0226] The bus 804 includes hardware, software or both, coupling the components of the terminal service device to each other. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Linear Predictive Coding (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VESA Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 804 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0227] The device can execute the information push method in the embodiment of the present application based on each unit / component in the information push device, thereby realizing the combination of Figures 1 to 6 Describes the method of information push.
[0228] In addition, in combination with the information push method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the information push methods in the above embodiment is implemented.
[0229] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned information push method embodiments.
[0230] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0231] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0232] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0233] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0234] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for information push, characterized in that: include: In the case of obtaining the target cloud resource type information, obtaining the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information in a preset first correspondence relationship, wherein the first correspondence relationship includes a correspondence between the cloud resource type information and the identification information, original cost information and accumulated discount information of the cloud resource provider; Multiplying the original cost information by the accumulated discount information to obtain target cost information corresponding to each of the cloud resource provider identification information; Determine the cloud resource information of the target cloud resource provider corresponding to the target cost information having the smallest value; The cloud resource information of the target cloud resource provider is pushed to the user.
2. The method according to claim 1, characterized in that In the case where the target cloud resource type information is obtained, before obtaining the cloud resource provider identification information, the original cost information, and the accumulated discount information corresponding to the target cloud resource type information in the preset first corresponding relationship, the method further includes: Get historical bills for each cloud resource provider within a preset time period; Acquire target field data corresponding to the target field from the historical bill, wherein the target field data includes cloud resource provider identification information, cloud resource type information, original cost information, and first discount information; In a preset second correspondence, obtaining second discount information corresponding to the target field data, wherein the second correspondence includes a correspondence between the field data and the second discount information; multiplying the first discount information and the second discount information to obtain accumulated discount information; A first corresponding relationship is generated based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information.
3. The method according to claim 2, characterized in that The generating a first corresponding relationship based on the cloud resource provider identification information, the cloud resource type information, the original cost information, and the accumulated discount information includes: According to a preset third correspondence, obtaining a target name corresponding to the cloud resource type information, wherein the third correspondence includes a correspondence between the cloud resource type information and the name; A first corresponding relationship is generated based on the cloud resource provider identification information, the target name corresponding to the cloud resource type information, the original cost information, and the accumulated discount information.
4. According to the method of claim 3, before obtaining the target name corresponding to the cloud resource type information according to the preset third corresponding relationship, the method further includes: Traverse the historical bills to obtain target data corresponding to the same target field; Based on the target data and the preset name, a third corresponding relationship is generated.
5. The method according to claim 2, characterized in that: Before obtaining the second discount information corresponding to the target field data in the preset second corresponding relationship, the method further includes: Acquire type information of a second discount corresponding to the target field data; Determine second discount information according to the type information and a preset formula, where the second discount information is a non-negative number not greater than 1; A second corresponding relationship is generated based on the target field data and the second discount information.
6. The method according to any one of claims 1 to 5, characterized in that: In the case where the target cloud resource type information is obtained, in a preset first corresponding relationship, obtaining identification information, original cost information, and accumulated discount information of a cloud resource provider corresponding to the target cloud resource type information includes: When the preset target interface obtains the target cloud resource type information, in the preset first corresponding relationship, the identification information, original cost information and accumulated discount information of the cloud resource provider corresponding to the target cloud resource type information are obtained, wherein the target interface includes the interfaces of all the cloud resource providers.
7. The method according to claim 6, characterized in that Also includes: When the interface of the cloud resource provider changes, the target interface is updated according to a preset protocol.
8. A device for information push, characterized in that: include: an acquisition module, configured to, upon acquiring the target cloud resource type information, acquire, in a preset first correspondence, identification information, original cost information, and accumulated discount information of a cloud resource provider corresponding to the target cloud resource type information, wherein the first correspondence includes a correspondence between the cloud resource type information and the identification information, original cost information, and accumulated discount information of the cloud resource provider; A calculation module, configured to multiply the original cost information by the accumulated discount information to obtain target cost information corresponding to each of the cloud resource provider identification information; A determination module, used to determine the cloud resource information of the target cloud resource provider corresponding to the target cost information having the smallest value; The sending module is used to push the cloud resource information of the target cloud resource provider to the user.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for information push according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for pushing information according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Cost optimization method in multi-cloud environment
CN121056255A
