Business cost processing method and device, electronic equipment, medium and program product

By reading the topological relationship of the business line and cost statistics configuration files, counting the cost information of the business line, and determining the value information of the business line based on the value evaluation strategy, the problem of difficulty in directly counting the cost of the business line in the existing technology is solved, and efficient and accurate cost statistics and value evaluation are achieved.

CN119759512APending Publication Date: 2025-04-04BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411627949.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

It is difficult for the prior art to directly count the costs of each business line, because the composition of a business line is complex and may cover multiple basic services and multiple callers, resulting in inefficient cost analysis.

Method used

By reading the topological relationship of the business line, determine the basic service and service caller included in the target business line, obtain cost statistics configuration files, including cost statistics strategies and value evaluation strategies, count the cost information of the business line, and determine the value information of the business line based on the value evaluation strategy.

Benefits of technology

It realizes the rapid and accurate statistics of cost information of each business line, improves the efficiency and accuracy of cost statistics, and can price each basic service based on different value evaluation strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759512A_ABST
    Figure CN119759512A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a business cost processing method and device, electronic equipment, a medium and a program product, and relates to the technical field of computers. The method comprises the following steps: reading a service line topological relation, and determining at least one basic service and at least one service calling party included in a target service line according to the service line topological relation; the service line topological relation is used for indicating at least one basic service and at least one service calling party included in each service line; a cost statistics configuration file is obtained, the cost statistics configuration file comprises at least one cost statistics strategy, and the cost statistics strategy comprises a cost statistics rule and a statistics period; determining a target cost statistical strategy corresponding to the target service line; and determining the use condition of the basic service included in the target service line in the statistical period indicated by the target cost statistical strategy, and counting the cost information of the service line according to the cost statistical rule and the use condition. According to the method, the cost information of the service line can be accurately and quickly counted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic equipment, medium and program product for processing business costs. Background Art

[0002] Cost analysis is an indispensable part of enterprise management. Cost analysis can systematically evaluate and analyze the cost situation of an organization, thereby supporting cost reduction and efficiency improvement, risk management, decision making and resource optimization. With the development of artificial intelligence technology, some service platforms provide a variety of artificial intelligence basic services such as text recognition services, image recognition services, etc., and then combine these artificial intelligence basic services to generate multiple business lines with different functions. Third parties can call different business lines or different basic services according to needs. When performing cost analysis on the service platform, the cost of each basic service is counted separately, for example, the computing resources used by the basic service in a period of time are counted, and then the computing resource usage of the basic service per unit time is calculated. According to the unit time cost of each computing resource, the cost of the basic service per unit time is calculated, and finally, according to the call volume of each caller to the basic service, the cost of the caller calling the basic service is calculated. However, the composition of a business line is relatively complex, and may cover multiple basic services and multiple callers. The cost analysis based on the basic service cannot directly count the cost of each business line. Summary of the invention

[0003] In order to solve the above technical problem or at least partially solve the above technical problem, the embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for processing business costs.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing service costs, including:

[0005] Reading the business line topology relationship, and determining at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line;

[0006] Acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the calculation of the cost of the service caller calling the basic service;

[0007] Determine the target cost statistical strategy corresponding to the target business line;

[0008] Determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy, and count the cost information of the target business line according to the cost statistical rules and the usage.

[0009] Optionally, the cost statistics profile further includes at least one value evaluation strategy;

[0010] After obtaining the cost information of the business line through statistics, the method further includes: determining the value information of the target business line according to a target value evaluation strategy corresponding to the target business line and the cost information of the business line.

[0011] Optionally, after determining the value information of the target business line, the method further includes: receiving a report generation instruction input by a user, the report generation instruction being used to instruct generation of a statistical report of a specified style; generating a statistical report of the specified style based on the cost information and value information of the target business line; and outputting the statistical report.

[0012] Optionally, determining the usage of basic services included in the target business line within the statistical period indicated by the target cost statistical strategy includes: for each basic service included in the target business line, determining the number of times the basic service is called by each service caller within the statistical period indicated by the target cost statistical strategy; and determining the total number of calls to the basic service based on the number of times the basic service is called by each service caller.

[0013] Optionally, the cost information of the target business line includes the calling cost of the service caller; the cost information of the target business line is counted according to the cost statistics rule and the usage, including: determining the total cost of the basic service within the statistical period indicated by the target cost statistics strategy; for each service caller, determining the calling cost of the service caller according to the number of times the service caller calls the basic service, the total number of calls to the basic service and the total cost.

[0014] Optionally, determining the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line includes: when the target value evaluation strategy is a balanced third-party value strategy, determining the pricing of the basic service by at least one third party and the corresponding discount ratio of the third party; the balanced third-party value strategy is used to indicate the pricing of the basic service determined with reference to the pricing of the basic service by the third party and the corresponding discount ratio of the third party; taking the product of the pricing and the discount ratio as the reference pricing; and determining the value information of the target business line according to the reference pricing and the cost information of the business line.

[0015] Optionally, the value information of the target business line is determined according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line, including: when the target value evaluation strategy is a benefit criterion strategy, the value information of the target business line is determined according to the benefit ratio indicated by the benefit criterion strategy and the cost information of the business line, the benefit criterion strategy is used to indicate that the pricing of the basic service is determined according to a preset benefit target; the benefit ratio is used to indicate the ratio of the value information to the cost information, and the benefit ratio is a real number greater than 1.

[0016] In a second aspect, an embodiment of the present invention provides a device for processing service costs, including:

[0017] A topology reading module, used to read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line;

[0018] A model acquisition module is used to acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the cost of calculating the cost of the service caller calling the basic service;

[0019] A determination module, used to determine a target cost statistical strategy corresponding to the target business line;

[0020] The statistical module is used to determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy, and to collect statistical information on the cost of the target business line based on the cost statistical rules and the usage.

[0021] Optionally, the cost statistics profile further includes at least one value evaluation strategy;

[0022] The device also includes a value evaluation module, which is used to determine the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line.

[0023] Optionally, the device also includes a report generation module, which is used to receive a report generation instruction input by a user, wherein the report generation instruction is used to instruct the generation of a statistical report of a specified style; generate a statistical report of the specified style based on the cost information and value information of the target business line; and output the statistical report.

[0024] Optionally, the statistical module is used to: determine, for each basic service included in the target business line, the number of times the basic service is called by each service caller within the statistical period indicated by the target cost statistical strategy; and determine the total number of calls of the basic service based on the number of times the basic service is called by each service caller.

[0025] Optionally, the cost information of the target business line includes the calling cost of the service caller; the statistical module is also used to: determine the total cost of the basic service within the statistical period indicated by the target cost statistical strategy; for each service caller, determine the calling cost of the service caller based on the number of times the service caller calls the basic service, the total number of calls to the basic service and the total cost.

[0026] Optionally, the value evaluation module is also used to: determine the pricing of the basic service by at least one third party and the corresponding discount ratio of the third party when the target value evaluation strategy is a balanced third-party value strategy; the balanced third-party value strategy is used to indicate the pricing of the basic service with reference to the pricing of the basic service by the third party and the corresponding discount ratio of the third party; take the product of the pricing and the discount ratio as the reference pricing; and determine the value information of the target business line based on the reference pricing and the cost information of the business line.

[0027] Optionally, the value evaluation module is also used to: when the target value evaluation strategy is a benefit criterion strategy, determine the value information of the target business line according to the benefit ratio indicated by the benefit criterion strategy and the cost information of the business line, and the benefit criterion strategy is used to indicate the pricing of the basic service based on a preset benefit target; the benefit ratio is used to indicate the ratio of the value information to the cost information, and the benefit ratio is a real number greater than 1.

[0028] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; and the processor is used to implement the business cost processing method provided by any embodiment of the present invention when executing the program stored in the memory.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the method for processing business costs provided by any embodiment of the present invention is implemented.

[0030] In a fifth aspect, an embodiment of the present invention further provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the method for processing business costs provided by any embodiment of the present invention.

[0031] The technical solution provided by the embodiment of the present invention brings at least the following beneficial effects:

[0032] The method for processing business costs provided by the embodiment of the present invention determines at least one basic service and at least one service caller included in the target business line through the business line topology relationship; determines the target cost statistics strategy corresponding to the target business line; then determines the basic services included in the target business line, and the usage within the statistical period indicated by the target cost statistics strategy, and counts the cost information of the business line according to the cost statistics rules and usage. The method indicates the basic services and service callers corresponding to each business line through the business line topology relationship. When the user needs to add a new business line, change the basic services or service callers included in the business line, synchronize the business line topology relationship in real time, and then dynamically read the business line topology relationship to obtain an accurate topology relationship, thereby obtaining at least one basic service and at least one service caller included in the target business line; on the other hand, the method uses the cost statistics strategy as a configuration file, which is convenient for managing the cost statistics strategy, such as adding a new cost statistics strategy, modifying the existing cost statistics strategy, and then counting the cost information of the target business line through the target cost statistics strategy corresponding to the target business line. The method can quickly and accurately count the cost information of each business line, thereby improving the efficiency and accuracy of cost statistics. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0034] Figure 1 A flow chart showing a method for processing business costs provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram showing a sub-process of a method for processing business costs provided in an embodiment of the present invention;

[0036] Figure 3 A flow chart showing a method for processing business costs provided by another embodiment of the present invention;

[0037] Figure 4 A flowchart showing a method for processing business costs provided by another embodiment of the present invention;

[0038] Figure 5A schematic diagram showing the structure of a device for processing service costs provided by an embodiment of the present invention is shown;

[0039] Figure 6 A schematic structural diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0040] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0041] Figure 1 A flow chart of a method for processing business costs provided by an embodiment of the present invention is shown. The method can be applied to systems, artificial intelligence platforms, or big data platforms that provide a variety of basic services (including various artificial intelligence basic services, such as search services, text recognition services, image recognition services, etc.). The method for processing business costs is implemented by a server that hosts the system or an artificial intelligence platform or a server that hosts a big data platform. Among them, the server that hosts the system or an artificial intelligence platform or a server that hosts a big data platform can be an independent physical server, or it can be a server cluster or a distributed system composed of multiple physical servers. Figure 1 As shown, the processing methods for this business cost include:

[0042] Step S101: read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line according to the business line topology relationship.

[0043] Among them, the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line. In an optional embodiment, the business line topology relationship is stored in the specified path of the server in the form of a configuration file. When the user needs to count the business cost (for example, receiving a business cost statistics request from the user), the server automatically reads the business line topology relationship from the specified path. When the user needs to add a new business line, change the basic service or service caller included in the business line, synchronize the business line topology relationship in real time. The basic service is an artificial intelligence basic service for realizing a certain intelligent capability. In an optional application scenario, an application may contain multiple basic services, and a single basic service can also be used to realize different application functions. As an optional example, the knowledge question and answer application includes a text recognition service, an image recognition service, an intelligent retrieval service, etc., and the text recognition service, the image recognition service, and the intelligent retrieval service are basic services. For another example, the text recognition service can be used for knowledge question and answer applications, and can also be used for subtitle recognition applications. The service caller is the party that calls the basic service. The business line can be understood as an actual business, which can include multiple sub-businesses. In this embodiment, the business or sub-business includes a service caller calling one or more basic services to process a certain transaction.

[0044] The target business line may be any business line among the multiple business lines indicated by the business line topology relationship.

[0045] Step S102: Acquire a cost statistics configuration file, where the cost statistics configuration file includes at least one cost statistics strategy, and the cost statistics strategy includes a cost statistics rule and a statistics cycle.

[0046] The cost statistics configuration file includes one or more cost statistics strategies. The cost statistics configuration file can be stored in a specified path or a specified file system of the server. Optionally, the cost statistics configuration file and the business line topology relationship can be stored in the same specified path. When the user needs to count the business cost (for example, receiving a business cost statistics request from the user), the server automatically reads the business line topology relationship and the cost statistics configuration file from the specified path. Still optionally, the cost statistics configuration file and the business line topology relationship can be stored in different specified paths. When the user needs to count the business cost, the server automatically reads the business line topology relationship and the cost statistics configuration file from different specified paths. Optionally, a general cost statistics strategy can be generated, and the cost statistics strategy includes cost statistics rules and statistics cycles. Any business line counts costs based on the general cost statistics strategy. Still optionally, multiple different cost statistics strategies can be generated, and the multiple cost statistics strategies can be used for cost statistics of different business lines. The cost statistics strategy includes cost statistics rules, statistics cycles, and available business line identifiers. The cost statistics rules indicate how to count cost information, the statistics cycle is used to indicate the time interval of cost statistics, and the available business line identifier is used to indicate the business line to which the cost statistics strategy applies. As an optional example, the cost statistics rule may indicate that the cost information is counted according to the number of basic service calls, or may indicate that the cost information is counted according to the computing resources (such as processor resources, memory resources, network resources, etc.) used by the basic service. The resource usage statistical period can be flexibly set according to the application scenario, and the present invention will not go into details here. As an optional example, the statistical period can be several hours or several natural days.

[0047] Step S103: Determine the target cost statistics strategy corresponding to the target business line.

[0048] When the cost statistics configuration file includes one cost statistics strategy, the cost statistics strategy is used as the target cost statistics strategy corresponding to the target business line. When the cost statistics configuration file includes multiple cost statistics strategies, the target cost statistics strategy corresponding to the target business line is determined according to the available business line identifier indicated by the cost statistics strategy.

[0049] Step S104: Determine the basic services included in the target business line, the usage within the statistical period indicated by the target cost statistical strategy, and calculate the cost information of the business line according to the cost statistical rules and usage.

[0050] The usage of the basic services of the target business line includes, for example, the number of times the basic services are called or the amount of resources occupied. According to the number of times each basic service is called by each service caller and the cost statistics rules, the cost of each service caller calling each basic service is calculated. Finally, the costs of all service callers under the target business line are counted to obtain the cost information of the target business line. Optionally, the number of times a basic service is called by a service caller or the amount of resources occupied is obtained by accessing the Prometheus interface (Prometheus is a monitoring tool that can be used to monitor various data in multi-container situations). For example, the text recognition service is called by the service caller X. By passing "text recognition", "X" and the statistical time (for example, 2024.6.1~2024.6.2) to the Prometheus interface, you can get how many times the text recognition service was called by the service caller from June 1 to June 2, 2024.

[0051] The method for processing business costs provided by the embodiment of the present invention determines at least one basic service and at least one service caller included in the target business line through the business line topology relationship; determines the target cost statistics strategy corresponding to the target business line; then determines the basic services included in the target business line, and the usage within the statistical period indicated by the target cost statistics strategy, and counts the cost information of the business line according to the cost statistics rules and usage. The method indicates the basic services and service callers corresponding to each business line through the business line topology relationship, and when maintaining the business line, such as adding a new business line, changing the basic services or service callers included in the business line, synchronizes the business line topology relationship in real time, and then dynamically reads the business line topology relationship to obtain an accurate topology relationship, thereby obtaining at least one basic service and at least one service caller included in the target business line; on the other hand, the method uses the cost statistics strategy as a configuration file, which is convenient for managing the cost statistics strategy, such as adding a new cost statistics strategy, modifying the existing cost statistics strategy, and then counting the cost information of the target business line through the target cost statistics strategy corresponding to the target business line. The method can quickly and accurately count the cost information of each business line, thereby improving the efficiency and accuracy of cost statistics.

[0052] In an optional embodiment, if Figure 2 As shown, step S104 includes:

[0053] Step S201: For each basic service included in the target business line, determine the number of times the basic service is called by each service caller within the statistical period indicated by the target cost statistical strategy. For example, the text recognition service is called by the service caller X. By passing "text recognition", "X" and the statistical period (for example, 2024.6.1 to 2024.6.5) to the Prometheus interface, you can get how many times the text recognition service was called by the service caller from June 1 to June 5, 2024.

[0054] Step S202: Determine the total number of calls of the basic service according to the number of times the basic service is called by each service caller. The number of times the basic service is called by each service caller is added up, and the sum obtained is the total number of calls of the basic service.

[0055] Step S203: Determine the total cost of the basic service within the statistical period indicated by the target cost statistical strategy. The basic service itself will occupy computing resources, and the service cost of the basic service includes, for example, the cost of purchasing equipment, maintaining equipment, venues, electricity, etc. The daily service cost of each basic service is recorded in a preset database. By statistically analyzing the service cost every day within the statistical period, the total cost of each basic service within the statistical period is obtained.

[0056] Step S204: for each service caller, determine the call cost of the service caller according to the number of times the service caller calls the basic service, the total number of calls to the basic service, and the total cost.

[0057] Calculate the ratio between the number of times the service caller calls the basic service and the total number of calls to the basic service, and calculate the product of the total cost of the basic service in the statistical period and the ratio. The product represents the cost of the service user calling the basic service. For example, if service caller X calls the text recognition service 100 times and the total number of calls to the text recognition service is 200, it means that service caller X accounts for 50% of the usage share of the text recognition service. Service caller X needs to share 50% of the total cost of the text recognition service as the calling cost of service caller X calling the text recognition service.

[0058] The business cost processing method of the embodiment of the present invention provides a method to measure the calling cost of each service caller calling the basic service by the number of times the basic service is called and the total cost within the statistical period. This method can accurately and quickly calculate the calling cost of each service caller, and then obtain accurate cost information of the business line.

[0059] Figure 3 FIG. 2 is a flow chart showing a method for processing business costs provided by another embodiment of the present invention. Figure 3As shown, the processing methods for this business cost include:

[0060] Step S301: Read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line based on the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line.

[0061] Step S302: Acquire a cost statistics configuration file, where the cost statistics configuration file includes at least one cost statistics strategy and at least one value evaluation strategy, and the cost statistics strategy includes cost statistics rules and a statistics cycle.

[0062] Step S303: Determine the target cost statistics strategy corresponding to the target business line.

[0063] Step S304: Determine the basic services included in the target business line, the usage within the statistical period indicated by the target cost statistical strategy, and calculate the cost information of the business line according to the cost statistical rules and usage.

[0064] Step S305: Determine the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line.

[0065] Among them, steps S301-S304 can refer to Figure 1 To avoid repetition, the present invention will not be described in detail in the embodiments shown.

[0066] For step S305, the value evaluation strategy is used to indicate the pricing rules of the basic service. As optional examples, this embodiment provides two value evaluation strategies, namely: a balanced third-party value strategy and a benefit criterion strategy. Among them, the balanced third-party value strategy indicates that the pricing of the basic service is determined with reference to the third party's pricing of the basic service and the corresponding discount ratio. The benefit criterion strategy indicates that the pricing of the basic service is determined based on the benefit purpose without reference to the third party's pricing of the basic service.

[0067] Optionally, when the target value evaluation strategy is a balanced third-party value strategy, determine the pricing of at least one third party for the basic service and the corresponding discount ratio of the third party; use the product of the third party's pricing of the basic service and the discount ratio as the reference pricing; and determine the value information of the target business line based on the reference pricing and the cost information of the business line. For example, m% (e.g., 70%) of the cost of the service caller to call the basic service is used as the benchmark value. If the reference pricing is greater than or equal to the benchmark value, the reference pricing is used as the pricing of the basic service. If the reference pricing is less than the benchmark value, the benchmark value is used as the pricing of the basic service.

[0068] Optionally, when the target value evaluation strategy is a benefit criterion strategy, the value information of the target business line is determined according to the benefit ratio indicated by the benefit criterion strategy and the cost information of the business line, where the benefit ratio is used to indicate the ratio of the value information to the cost information, and the benefit ratio is a real number greater than 1. For example, the product of the service caller's call cost for the basic service and the benefit ratio is used as the pricing of the basic service.

[0069] In some optional embodiments, the parameters in the balanced third-party value strategy and the benefit criterion strategy can be configured through a configuration file. By configuring the parameters in the balanced third-party value strategy and the benefit criterion strategy in the form of a configuration file, the value evaluation strategy can be flexibly changed, which improves the convenience and diversity of value evaluation. When calculating the value information of the business line, the configuration file is read to obtain the parameters in the balanced third-party value strategy and the benefit criterion strategy. As an optional example, the configuration file is as follows:

[0070] {

[0071] "Basic Service 1":{

[0072] "third_party_company":"X1",

[0073] "thousand_times_cost":0.25,

[0074] "third_party_ratio":0.9,

[0075] "cost_ratio":1.3,

[0076] "priority":False},

[0077] "Basic Service 2":{

[0078] "third_party_company":"X2",

[0079] "thousand_times_cost":0.3,

[0080] "third_party_ratio":0.9

[0081] },

[0082] "Basic Service 3":{

[0083] "third_party_company":"X2",

[0084] "thousand_times_cost":0.3,

[0085] "third_party_ratio":0.9

[0086] },

[0087] "Basic Service 4":{

[0088] "third_party_company":"X1",

[0089] "thousand_times_cost":0.25,

[0090] "third_party_ratio":0.9

[0091] }

[0092] }

[0093] Among them, third_party_company represents the identifier of the third party, such as the name of the third party, thousand_times_cost represents the pricing of the third party's previous call to the basic service, third_party_ratio represents the discount ratio, cost_ratio represents the benefit ratio, priority represents the value evaluation strategy adopted, when the priority value is False, it means that the balanced third-party value strategy is adopted, and when the priority value is True, it means that the benefit criterion strategy is adopted.

[0094] The business cost processing method provided in the embodiment of the present invention can quickly and accurately count the cost information of each business line, improve the efficiency and accuracy of cost statistics, and can also price each basic service based on different value evaluation strategies.

[0095] Figure 4 FIG. 2 is a flow chart showing a method for processing business costs provided by another embodiment of the present invention. Figure 4 As shown, the processing methods for this business cost include:

[0096] Step S401: Read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line based on the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line.

[0097] Step S402: Acquire a cost statistics configuration file, where the cost statistics configuration file includes at least one cost statistics strategy and at least one value evaluation strategy, and the cost statistics strategy includes cost statistics rules and a statistics cycle.

[0098] Step S403: Determine the target cost statistics strategy corresponding to the target business line.

[0099] Step S404: Determine the basic services included in the target business line, the usage within the statistical period indicated by the target cost statistical strategy, and calculate the cost information of the business line according to the cost statistical rules and usage.

[0100] Step S405: Determine the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line.

[0101] Step S406: receiving a report generation instruction input by a user, where the report generation instruction is used to instruct generation of a statistical report of a specified style.

[0102] Step S407: Generate a statistical report in a specified format based on the cost information and value information of the target business line.

[0103] Step S408: Output statistical report.

[0104] Among them, steps S401-S405 can refer to Figure 1 or Figure 3 The illustrated embodiments are not described in detail here to avoid repetition.

[0105] For steps S406-S408, the user can perform a report generation operation through the interactive interface, and generate a report generation instruction in response to the report generation operation. The report generation instruction instructs to obtain a data source (such as the cost information and value information of the target business line) from a specified directory, and generate a statistical report of a specified sample based on the data source. In response to the generated report generation instruction, a custom tool or plug-in is used to obtain a data source (such as the cost information and value information of the target business line) from a specified directory, and a statistical report of a specified sample is generated based on the data source. Optionally, the style of the statistical report indicates the fields displayed in the statistical report and the visual presentation form, such as displaying the statistical report in a visual presentation form such as a table, a line chart, a trend chart, or a pie chart. Then, based on the cost information and value information of the target business line, a statistical report of a specified style is generated and output for display.

[0106] As an optional example, a statistical report is displayed in a table format, and the statistical report is shown in Table 1 below:

[0107] Table 1:

[0108]

[0109] The business cost processing method provided in the embodiment of the present invention can quickly and accurately count the cost information of each business line, thereby improving the efficiency and accuracy of cost statistics. It can also price each basic service based on different value evaluation strategies, and generate and output statistical reports for display, making the display of statistical data more intuitive and clear.

[0110] Figure 5 FIG. 2 is a schematic diagram showing the structure of a device for processing service costs provided by an embodiment of the present invention. Figure 5 As shown, the service cost processing device 500 includes:

[0111] A topology reading module 501 is used to read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line;

[0112] The model acquisition module 502 is used to acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the cost of calculating the cost of the service caller calling the basic service;

[0113] A determination module 503 is used to determine a target cost statistics strategy corresponding to the target business line;

[0114] The statistics module 504 is used to determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistics policy, and to collect statistics on the cost information of the target business line based on the cost statistics rules and the usage.

[0115] The processing device of business cost provided by the embodiment of the present invention determines at least one basic service and at least one service caller included in the target business line through the business line topological relationship; determines the target cost statistical strategy corresponding to the target business line; then determines the basic service included in the target business line, and the usage within the statistical period indicated by the target cost statistical strategy, and statistically calculates the cost information of the business line according to the cost statistical rules and usage. The method indicates the basic services and service callers corresponding to each business line through the business line topological relationship, and when the business line is maintained, such as adding a new business line, changing the basic service or service caller included in the business line, the business line topological relationship is synchronized in real time, and then the business line topological relationship is dynamically read to obtain an accurate topological relationship, thereby obtaining at least one basic service and at least one service caller included in the target business line; on the other hand, the method uses the cost statistical strategy as a configuration file, which is convenient for managing the cost statistical strategy, such as adding a new cost statistical strategy, modifying the existing cost statistical strategy, and then statistically calculating the cost information of the target business line through the target cost statistical strategy corresponding to the target business line. The method can quickly and accurately calculate the cost information of each business line, thereby improving the efficiency and accuracy of cost statistics.

[0116] Optionally, the cost statistics profile further includes at least one value evaluation strategy;

[0117] The device also includes a value evaluation module, which is used to determine the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line.

[0118] Optionally, the device also includes a report generation module, which is used to receive a report generation instruction input by a user, wherein the report generation instruction is used to instruct the generation of a statistical report of a specified style; generate a statistical report of the specified style based on the cost information and value information of the target business line; and output the statistical report.

[0119] Optionally, the statistical module is used to: determine, for each basic service included in the target business line, the number of times the basic service is called by each service caller within the statistical period indicated by the target cost statistical strategy; and determine the total number of calls of the basic service based on the number of times the basic service is called by each service caller.

[0120] Optionally, the cost information of the target business line includes the calling cost of the service caller; the statistical module is also used to: determine the total cost of the basic service within the statistical period indicated by the target cost statistical strategy; for each service caller, determine the calling cost of the service caller based on the number of times the service caller calls the basic service, the total number of calls to the basic service and the total cost.

[0121] Optionally, the value evaluation module is also used to: determine the pricing of the basic service by at least one third party and the corresponding discount ratio of the third party when the target value evaluation strategy is a balanced third-party value strategy; the balanced third-party value strategy is used to indicate the pricing of the basic service with reference to the pricing of the basic service by the third party and the corresponding discount ratio of the third party; take the product of the pricing and the discount ratio as the reference pricing; and determine the value information of the target business line based on the reference pricing and the cost information of the business line.

[0122] Optionally, the value evaluation module is also used to: when the target value evaluation strategy is a benefit criterion strategy, determine the value information of the target business line according to the benefit ratio indicated by the benefit criterion strategy and the cost information of the business line, and the benefit criterion strategy is used to indicate the pricing of the basic service based on a preset benefit target; the benefit ratio is used to indicate the ratio of the value information to the cost information, and the benefit ratio is a real number greater than 1.

[0123] The above device can execute the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the method for processing business costs in the embodiment of the present invention.

[0124] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0125] Memory 603, used for storing computer programs;

[0126] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0127] Reading the business line topology relationship, and determining at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line;

[0128] Acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the calculation of the cost of the service caller calling the basic service;

[0129] Determine the target cost statistical strategy corresponding to the target business line;

[0130] Determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy, and count the cost information of the target business line according to the cost statistical rules and the usage.

[0131] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0132] The communication interface is used for communication between the above terminal and other devices.

[0133] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0134] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0135] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the method for processing business costs described in any of the above embodiments.

[0136] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the method for processing business costs described in any one of the above embodiments.

[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0138] 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0139] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0140] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for processing business costs, characterized in that: include: Reading the business line topology relationship, and determining at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line; Acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the calculation of the cost of the service caller calling the basic service; Determine the target cost statistical strategy corresponding to the target business line; Determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy, and count the cost information of the target business line according to the cost statistical rules and the usage.

2. The method according to claim 1, characterized in that The cost statistics profile also includes at least one value assessment strategy; After obtaining the cost information of the business line through statistics, the method further includes: The value information of the target business line is determined according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line.

3. The method according to claim 2, characterized in that After determining the value information of the target business line, the method further includes: Receiving a report generation instruction input by a user, wherein the report generation instruction is used to instruct generation of a statistical report of a specified style; Generate a statistical report of the specified style according to the cost information and value information of the target business line; Output the statistical report.

4. The method according to any one of claims 1 to 3, characterized in that: The determining of the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy includes: For each basic service included in the target business line, determine the number of times the basic service is called by each service caller within the statistical period indicated by the target cost statistical strategy; The total number of calls of the basic service is determined according to the number of times the basic service is called by each service caller.

5. The method according to claim 4, characterized in that The cost information of the target business line includes the calling cost of the service caller; The counting of cost information of the target business line according to the cost counting rule and the usage includes: Determine the total cost of the basic service within the statistical period indicated by the target cost statistical strategy; For each service caller, the calling cost of the service caller is determined according to the number of times the service caller calls the basic service, the total number of calls of the basic service and the total cost.

6. The method according to any one of claims 2 to 5, characterized in that: The determining the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line includes: In the case where the target value evaluation strategy is a balanced third-party value strategy, determining the pricing of the basic service by at least one third party and the corresponding discount ratio of the third party; the balanced third-party value strategy is used to indicate the pricing of the basic service determined with reference to the pricing of the basic service by the third party and the corresponding discount ratio of the third party; The product of the list price and the discount ratio is used as the reference list price; Determine value information of the target business line based on the reference price and the cost information of the business line.

7. The method according to any one of claims 2 to 5, characterized in that: The determining the value information of the target business line according to the target value evaluation strategy corresponding to the target business line and the cost information of the business line includes: In the case where the target value evaluation strategy is a benefit criterion strategy, the value information of the target business line is determined based on the benefit ratio indicated by the benefit criterion strategy and the cost information of the business line. The benefit criterion strategy is used to indicate that the pricing of the basic service is determined according to a preset benefit target; the benefit ratio is used to indicate the ratio of the value information to the cost information, and the benefit ratio is a real number greater than 1.

8. A device for processing business costs, characterized in that: include: A topology reading module, used to read the business line topology relationship, and determine at least one basic service and at least one service caller included in the target business line according to the business line topology relationship; wherein the business line topology relationship is used to indicate at least one basic service and at least one service caller included in each business line; A model acquisition module is used to acquire a cost statistics configuration file, wherein the cost statistics configuration file includes at least one cost statistics strategy, wherein the cost statistics strategy includes a cost statistics rule and a statistics cycle; the cost statistics rule is used to indicate the cost of calculating the cost of the service caller calling the basic service; A determination module, used to determine a target cost statistical strategy corresponding to the target business line; The statistical module is used to determine the usage of the basic services included in the target business line within the statistical period indicated by the target cost statistical strategy, and to collect statistical information on the cost of the target business line based on the cost statistical rules and the usage.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.