CN116468491A - Charging rule adjustment method and device, storage medium and electronic equipment - Google Patents

Charging rule adjustment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116468491A
CN116468491A CN202310456627.7A CN202310456627A CN116468491A CN 116468491 A CN116468491 A CN 116468491A CN 202310456627 A CN202310456627 A CN 202310456627A CN 116468491 A CN116468491 A CN 116468491A
Authority
CN
China
Prior art keywords
target
charging rule
data
charging
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310456627.7A
Other languages
Chinese (zh)
Inventor
吴宜达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Du Xiaoman Technology Beijing Co Ltd
Original Assignee
Du Xiaoman Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Du Xiaoman Technology Beijing Co Ltd filed Critical Du Xiaoman Technology Beijing Co Ltd
Priority to CN202310456627.7A priority Critical patent/CN116468491A/en
Publication of CN116468491A publication Critical patent/CN116468491A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Abstract

The invention provides a charging rule adjustment method, a charging rule adjustment device, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object within a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer; respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule; selecting target expense information from the expense information set, taking the target expense information as expense information required by a target object for calling a target product in a target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: charging rules corresponding to the target fee information. The embodiment of the invention can flexibly adjust the charging rule.

Description

Charging rule adjustment method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for adjusting a charging rule, a storage medium, and an electronic device.
Background
At present, charging is a widely applied business mode, almost covers all fields, and is increasingly important in life along with continuous development of science and technology and continuous output of various products; wherein, charging in enterprises refers to the process that enterprises charge for services provided by clients (such as target objects) or products using the clients, and charging is not only an important way for enterprises to obtain benefits, but also an important means for ensuring service quality. In the prior art, when a target object needs to use a target product, a charging rule is generally configured for the target object aiming at the target product, and when the service condition of the target product is charged for each time for the target object, charging is performed according to the configured charging rule, so that a charging mode is inflexible, i.e. the flexibility is poor. Based on this, how to flexibly adjust the charging rules becomes a research hotspot.
Disclosure of Invention
In view of this, the embodiment of the invention provides a charging rule adjustment method, a device, a storage medium and an electronic apparatus, so as to solve the problem that the existing charging mode is not flexible enough (i.e. has poor flexibility), that is, the embodiment of the invention can flexibly adjust the charging rule, thereby improving the viscosity of the client.
According to an aspect of the present invention, there is provided a charging rule adjustment method, the method including:
acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object in a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer;
respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
selecting target expense information from the expense information set, taking the target expense information as expense information required by the target object to call the target product in the target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: and charging rules corresponding to the target expense information.
According to another aspect of the present invention, there is provided a charging rule adjustment apparatus including:
the system comprises an acquisition unit, a calculation unit and a calculation unit, wherein the acquisition unit is used for acquiring at least one charging rule of a target product under a target object and acquiring call data generated by calling the target product by the target object in a target time range, the call data comprises N pieces of data to be charged, and N is a non-negative integer;
The processing unit is used for calculating the cost of the N pieces of data to be charged according to each charging rule in the at least one charging rule respectively to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
the processing unit is further configured to select target expense information from the expense information set, and use the target expense information as expense information required by the target object to call the target product in the target time range, where the target object calls a charging rule corresponding to the target product in the target time range as follows: and charging rules corresponding to the target expense information.
According to another aspect of the present invention, there is provided an electronic device including a processor, and a memory storing a program, wherein the program includes instructions; the instructions, when executed by the processor, cause the processor to perform the steps of:
acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object in a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer;
Respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
selecting target expense information from the expense information set, taking the target expense information as expense information required by the target object to call the target product in the target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: and charging rules corresponding to the target expense information.
According to another aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the steps of:
acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object in a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer;
respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
Selecting target expense information from the expense information set, taking the target expense information as expense information required by the target object to call the target product in the target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: and charging rules corresponding to the target expense information.
After at least one charging rule of a target product under a target object and call data generated by the target object calling the target product within a target time range are obtained, the embodiment of the invention can respectively calculate the cost of N pieces of data to be charged in the call data according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule, and N is a non-negative integer so as to analyze the cost information of the target object using the target product from at least one aspect. Then, the target expense information can be selected from the expense information set, the target expense information is used as expense information required by the target object for calling the target product in the target time range, and the charging rule corresponding to the target product is called by the target object in the target time range as follows: charging rules corresponding to the target expense information are realized, so that the charging rules are flexibly adjusted. Therefore, the embodiment of the invention can flexibly adjust the charging rule based on the selection of the target expense information, and can better meet the requirement of the target object, thereby improving the viscosity of the client (such as the target object).
Drawings
Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments with reference to the following drawings, in which:
fig. 1 shows a flow diagram of a charging rule adjustment method according to an exemplary embodiment of the present invention;
fig. 2 shows a schematic diagram of a charging rule configuration according to an exemplary embodiment of the present invention;
fig. 3 shows a flow diagram of another charging rule adjustment method according to an exemplary embodiment of the present invention;
fig. 4 shows a flow diagram of yet another charging rule adjustment method according to an exemplary embodiment of the present invention;
fig. 5 shows a schematic block diagram of a charging rule adjustment device according to an exemplary embodiment of the present invention;
fig. 6 shows a block diagram of an exemplary electronic device that can be used to implement an embodiment of the invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While the invention is susceptible of embodiment in the drawings, it is to be understood that the invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided to provide a more thorough and complete understanding of the invention. It should be understood that the drawings and embodiments of the invention are for illustration purposes only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It should be noted that, the execution body of the charging rule adjustment method provided by the embodiment of the present invention may be one or more electronic devices, which is not limited in the present invention; the electronic device may be a terminal (i.e. a client) or a server, and when the execution body includes a plurality of electronic devices and the plurality of electronic devices include at least one terminal and at least one server, the charging rule adjustment method provided by the embodiment of the present invention may be executed jointly by the terminal and the server. Accordingly, the terminals referred to herein may include, but are not limited to: smart phones, tablet computers, notebook computers, desktop computers, smart watches, smart voice interaction devices, smart appliances, vehicle terminals, aircraft, and so on. The server mentioned herein may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and artificial intelligence platforms, and so on.
Based on the above description, an embodiment of the present invention proposes a charging rule adjustment method that can be executed by the above-mentioned electronic device (terminal or server); alternatively, the charging rule adjustment method may be performed by the terminal and the server together. For convenience of explanation, the method for adjusting the charging rule is executed by the electronic device in the following description; as shown in fig. 1, the charging rule adjustment method may include the following steps S101 to S103:
s101, acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object within a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer.
The charging rule may also be called a charging mode, a charging policy, a charging scheme, a charging card, etc. It should be understood that the charging rules are different, as are the meanings; for example, when outputting data products to the outside, an enterprise (i.e., a product provider) may typically charge for the usage of the client (i.e., an object, such as a target object), where usage charging refers to charging based on the usage of the resource by the client, including the number of calls (i.e., usage or usage) or the usage time. It should be noted that, when charging is performed according to the number of calls, one piece of data to be charged may refer to: calling single data to be charged generated by a target product once, wherein the calling times are N; when charging according to the usage time, a piece of data to be charged may also refer to: using a piece of time data generated by the target product, wherein the using time can be the sum of N pieces of data to be charged, and the like; the invention does not limit the specific content of the data to be charged. Accordingly, the target object may refer to any one of the served objects, and the target product may refer to any one of the provided products, and any one of the products may also be used to indicate the corresponding service, and so on.
In the embodiment of the present invention, the charging rules include, but are not limited to: pay-per-view, step-of-charge, excess package volume, segment package volume, unreachable package volume, subscription charging, and a mixed free and paid mode, etc.; the invention is not limited in this regard. Wherein, pay-per-view: charging according to the calling times and charging according to the single price of the product; step charging: as the number of calls increases, the billing criteria may gradually increase or decrease, such as full progressive steps: the number of steps exceeds 1, the full adaptation is carried out on the step 2, the charging is carried out according to a single price a in the interval (namely, the number of steps does not exceed 1), and after the number of steps exceeds 1, all calls are singly charged according to a new price b, and the charging is carried out according to the excessive progressive steps: the step number exceeding 1 is adapted to the step 2, the excess part is charged according to a single price a in the interval, and the excess part is charged according to a single new price b after the step number exceeding 1; excess packet amount fee: a packet quantity is predetermined, if the packet quantity is exceeded, additional payment is required, or the number of steps is exceeded by 1 st step, the excess part is adapted to the step 2, and the charging is exceeded by single piece; segmentation packet quantity: step charging is included, if the number of times exceeds the 1 st step, the excess is adapted to the 2 nd step, the total charging price is the sum of the step charging prices, and the cost is counted according to the total product price in the calling interval; amount of unread amount of packets: if the amount is reached, the price is charged according to the total price, and if the amount is not reached, the price of each product is charged according to the number of packages; subscription charging: subscription is carried out monthly or yearly, and fixed fees are paid; free and paid mixed mode: some services are offered for free, while other services are charged for, etc.
In the embodiment of the present invention, the above-mentioned at least one charging rule and the acquisition mode of the call data include, but are not limited to, the following:
the first acquisition mode is as follows: the electronic device may obtain a rule download link of at least one charging rule, may obtain a data download link of the call data, and perform rule download according to the rule download link, and perform data download according to the data download link, so that the charging rule downloaded based on the rule download link is used as at least one charging rule, and the data downloaded based on the data download link is used as the call data.
The second acquisition mode is as follows: the electronic equipment stores a charging rule set, wherein one charging rule set comprises a plurality of charging rules, and then the electronic equipment can select at least one charging rule from the charging rule set stored by the electronic equipment; correspondingly, the electronic equipment stores call data generated by calling the target product by the target object in a plurality of time ranges, and the electronic equipment can select call data generated by calling the target product by the target object in the target time range from the call data stored by the electronic equipment.
The third acquisition mode is as follows: the electronic device may have a billing rule generation component based thereon that the electronic device may employ to generate at least one billing rule for the target product under the target object. The charging rule generating component may include a charging rule management page (i.e., a client management interface or an object management interface) to perform background system configuration on the charging rule through the object management page; optionally, the electronic device may display the charging rule configuration page through the object management page, so that the charging rule is configured (i.e. generated) through the charging rule configuration page. Accordingly, the generation of the charging rule may be referred to as configuration of the charging card, the detailed information required for the charging logic corresponding to the charging rule is mainly determined according to the contract signing situation of the client, and the content of configuring the charging rule may include, but is not limited to: billing name, object identification, billing validation time, expiration time, products to which they pertain, and price and billing logic required for different billing, etc., as shown in fig. 2. The object identifier may be an object name or an object number, which is not limited in the present invention.
It should be noted that the charging rules may be stored in a relational database (such as MySQL or Oracle) to facilitate verification and historical data retention; alternatively, the charging rules may be stored in a non-relational database, which is not limited by the present invention.
It should be understood that, the above target time range may refer to a time range from a start time to a certain end time, and the specific value of the target time range is not limited in the present invention; for example, assuming that the electronic device calculates, in real time, the cost information required for the target object to call the target product, the interval time for calculating the cost information is 5 seconds, and the start time is t1, the end time point may be t2 or t2+5, respectively, and when calculating the cost information required for the target object to call the target product in the time range from the start time t1 to the end time point t2, the target time range is equal to the time range from the start time t1 to the end time point t 2; accordingly, in calculating the cost information required for the target object to call the target product in the time range from the start time t1 to the end time t2+5, the target time range is equal to the time range from the start time t1 to the end time t2+5, and so on.
S102, respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule.
For example, assume that the target object purchases and calls the target product (such as data product C), and three charging rules are signed by the target object and the product provider for the target product, namely charging according to the calling times, charging by the excess package amount and charging by the unread package amount, and the contract validity period is one year, then three charging rules of the target object under the target product need to be configured. Based on this, assuming that the number of calls of the target object to the target product is 100w (i.e., the above-mentioned call data includes 100w data to be charged) from the start time to a certain time point T1 (i.e., within the target time range) in the validity period, the electronic device may use the number of calls of 100w to calculate the charge information for charging according to the number of calls, the excess packet amount charging, and the unread packet amount charging, respectively, so as to implement charge calculation for the 100w data to be charged according to the three charging rules, respectively, thereby obtaining a charge information set, where the charge information set may include the charge information of the 100w data to be charged under the number of calls, the charge information of the 100w data to be charged under the excess packet amount charging, and the charge information of the 100w data to be charged under the unread packet amount charging.
S103, selecting target expense information from the expense information set, taking the target expense information as expense information required by calling a target product in a target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: charging rules corresponding to the target fee information.
It should be understood that the existing charging rules are not transparent enough, when the charging rules are different, the target object is difficult to compare among a plurality of charging rules, so that the situation of expenditure and self-income range cannot be judged in advance, the charging rules cannot be adjusted according to actual requirements, even when the target object uses services exceeding the charging range, the situation that the target object and the target product provider cannot unify the cost after the excessive charging is caused by the fact that the corresponding charging rules are not available, and the like. Therefore, the embodiment of the invention can configure at least one charging rule for the target product aiming at the target object, so that the charging rule corresponding to the target product, namely the optimal charging rule, is determined in the at least one charging rule, and the target object calls the charging rule corresponding to the target product in the target time range.
In a specific implementation, when the target expense information is selected in the expense information set, the electronic device can select the target expense information from the expense information set according to the size relation of each expense information in the expense information set, wherein the target expense information is smaller than any expense information except the target expense information in the expense information set.
For example, assuming that the number of at least one charging rule is 3, and N pieces of to-be-charged data generated by calling the target product by the target object in the target time range are respectively M1, M2 and M3 in the cost information under the 3 charging rules, the electronic device may select the minimum cost information Min (M1, M2, M3) as the target cost information M, that is, as the cost information required by the target object to call the target product in the target time range, and at the same time, calculate the charging rule of the target cost information M (that is, the charging rule corresponding to the target cost information M) as the charging rule corresponding to the target product to be called by the target object in the target time range, that is, the optimal charging rule of the target product to be called by the target object in the target time range.
After at least one charging rule of a target product under a target object and call data generated by the target object calling the target product within a target time range are obtained, the embodiment of the invention can respectively calculate the cost of N pieces of data to be charged in the call data according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule, and N is a non-negative integer so as to analyze the cost information of the target object using the target product from at least one aspect. Then, the target expense information can be selected from the expense information set, the target expense information is used as expense information required by the target object for calling the target product in the target time range, and the charging rule corresponding to the target product is called by the target object in the target time range as follows: charging rules corresponding to the target expense information are realized, so that the charging rules are flexibly adjusted. Therefore, the embodiment of the invention can flexibly adjust the charging rule based on the selection of the target expense information, and can better meet the requirement of the target object, thereby improving the viscosity of the client (such as the target object).
Based on the above description, the embodiments of the present invention also provide a more specific charging rule adjustment method, in which at least one charging rule of a target product under a target object is selected from a charging rule set, and the charging rule set is determined by a rule data source, that is, the charging rule set may change with a change of the rule data source. Accordingly, the charging rule adjustment method may be performed by the above-mentioned electronic device (terminal or server); alternatively, the charging rule adjustment method may be performed by the terminal and the server together. For convenience of explanation, the method for adjusting the charging rule is executed by the electronic device in the following description; referring to fig. 3, the charging rule adjustment method may include the following steps S301 to S305:
s301, when an updating instruction aiming at a rule data source is detected, updating the rule data source to obtain an updated rule data source, and determining change instruction data, wherein the change instruction data comprises the updated rule data source or charging rules indicated by the updating instruction.
Wherein the rule data source may include a billing rule for each of at least one product under a respective object, the at least one product including the target product, the at least one object formed by the respective objects including the target object. It should be appreciated that the rule data sources may be in one-to-one correspondence with the charging rule sets such that the charging rules in the charging rule sets should be the same as the charging rules in the rule data sources; based on the above, when the rule data source only includes the charging rule of the target product under the target object, each charging rule in the charging rule set is the charging rule of the target product under the target object.
Specifically, the electronic device may include an object management interface, and the user (i.e., the product provider) may perform a charging rule update operation through the object management interface; in this case, the electronic device may detect an update instruction for the rule data source. Wherein, the charging rule updating operation may refer to charging rule adding operation, and the updating instruction may refer to charging rule adding instruction; the charging rule updating operation may also refer to a charging rule modification operation, and the updating instruction may refer to a charging rule modification instruction at this time, and so on; the present invention is not limited to the specific embodiments of the charging rule updating operation and the updating instruction.
S302, based on the change indication data, the charging rule sets are synchronized in real time, and the charging rule sets after the real-time synchronization are obtained.
In the embodiment of the present invention, the electronic device may include a change data capturing (ChangeData Capture, CDC) module, which may also be referred to as a captured data change module, and the rule data source may be monitored by the change data capturing module, based on which, when the electronic device monitors that the rule data source is updated through the change data capturing module, the electronic device may synchronize the charging rule set in real time based on change instruction data through the change data capturing module, so as to obtain the charging rule set after real-time synchronization. Wherein the change data capturing module may refer to a flankcdc (an open source flank frame-based change data capturing tool); alternatively, the change data capturing module may also refer to SQL Server CDC (change data capturing tool based on relational database management system), and so on; the invention is not limited in this regard. The Apache Flink is a framework and a distributed processing engine, and is also a stream processing framework, which can be used for performing state calculation on unbounded and bounded data streams, and the Flink can provide an infinite data set, and has the advantages of low delay, high throughput, higher accuracy and better fault tolerance.
It should be noted that, the change data capturing module in the electronic device may obtain change instruction data, so as to synchronize the charging rule set in real time by using the change instruction data, and obtain the charging rule set after real-time synchronization; it should be understood that when the change indication data includes an updated rule data source, the electronic device may use the updated rule data source as a real-time synchronized charging rule set through the change data capturing module, that is, the updated rule data source may be adopted to synchronize all charging rules in the charging rule set in real time, so as to obtain a synchronized charging rule; when the change indication data comprises the charging rules indicated by the update instruction, the charging rules indicated by the update instruction can be adopted to carry out real-time synchronization of part of the charging rules on the charging rule set, so as to obtain the charging rules after real-time synchronization.
Further, the electronic device may further include a cache module and a stream processing framework module. In one embodiment, the charging rule set is located in the caching module and the flow processing framework module; based on the above, when the charging rule set is synchronized in real time based on the change instruction data by the change data capturing module to obtain the charging rule set after real-time synchronization, the electronic device can synchronize the charging rule set in the cache module in real time based on the change instruction data by the change data capturing module to obtain the charging rule set after real-time synchronization; then, the electronic device may synchronize the charging rule set in the stream processing frame module in real time using the real-time synchronized charging rule set in the buffer module, so that the stream processing frame module includes the real-time synchronized charging rule set. Optionally, the electronic device may synchronize the charging rule set in the cache module in real time based on the change instruction data by changing the data capturing module, and synchronize the charging rule set in the stream processing frame module in real time based on the change instruction data by changing the data capturing module, so that the cache module and the stream processing frame module both include the charging rule set after real-time synchronization.
In another embodiment, the charging rule set is located in the buffer module, and then the electronic device can synchronize the charging rule set in the buffer module in real time based on the change indication data by changing the data capturing module, so as to obtain the charging rule set after real-time synchronization.
Wherein, the cache module may refer to Redis (one kind of non-relational database), hbase (another kind of non-relational database), and so on; the invention is not limited in this regard. Accordingly, the stream processing framework module may refer to a Flink framework, a Storm framework (a stream processing framework that focuses on very low latency), and so on; the invention is not limited in this regard.
S303, obtaining at least one charging rule of a target product under a target object from the charging rule set after real-time synchronization, and obtaining call data generated by calling the target product by the target object within a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer.
It should be noted that, the electronic device may obtain, through the flow processing framework module, at least one charging rule of the target product under the target object. In one embodiment, when the buffer module and the stream processing frame module both include a real-time synchronized charging rule set, the electronic device may obtain, by the stream processing frame module, at least one charging rule of the target product under the target object from the real-time synchronized charging rule set located in the stream processing frame module; in another embodiment, when only the buffer module includes the charging rule after real-time synchronization, the electronic device may obtain, through the stream processing framework module, at least one charging rule of the target product under the target object from the charging rules after real-time synchronization in the buffer module, so as to update at least one charging rule of the target product under the target object in the stream processing framework module.
Illustratively, the stream processing framework module is a Flink, the cache module is a Redis, and the change data capturing module is a FlinkCDC, where the FlinkCDC may synchronize changes of the rule data source to the Flink in real time for real-time cost calculation. Specifically, the electronic device may monitor the rule data source in the database (i.e. charging rule monitoring) through the FlinkCDC, and insert, update and delete the data table in the database, so as to obtain the change indication data (such as charging rule adding and changing conditions) in real time, and further obtain the latest charging rule (i.e. at least one charging rule of the target product in the charging rule set after real-time synchronization under the target object); based on this, the electronic device may store the latest billing rules to Redis and synchronize to Flink through FlinkCDC, as shown in FIG. 4. Therefore, the embodiment of the invention can better solve the problem of synchronization of the database and the cache data by changing the data capturing module.
It should be noted that, the enterprise has explicit charging standard or billing standard for the product provided by the enterprise, that is, the indexes that we need to monitor, such as the data volume (i.e. call number) requested by each object, the frequency of the request, whether the query is successful, etc., where these indexes can reflect the usage situation of the object and provide the information required by the enterprise, and the indexes corresponding to the target object for calling the target product in the target time range are obtained according to the call data. The call data can refer to log data in a production environment, and can be used for fault detection, performance analysis, safety monitoring, business analysis and the like; correspondingly, for enterprises of the output products, the real-time log data monitoring and collection can collect data such as object behaviors, business operations and the like, so that the calling condition of a client is counted for cost calculation and analysis; that is, the call data may include data such as behavior and business operations of the target object.
Specifically, the electronic device may perform a first logic process on the call data to obtain N data to be charged in the call data, and may perform a second logic process on the N data to be charged to obtain a target charging indicator, so as to perform a fee calculation on the N data to be charged according to each charging rule in the at least one charging rule, respectively, to obtain a fee information set, and perform a fee calculation on the target charging indicator according to each charging rule in the at least one charging rule, respectively, to obtain a fee information set, so as to implement a fee calculation on the N data to be charged. The first logic process and the second logic process may be logic processing operations in ETL (Extract-Transform-Load) logic process, that is, the first logic process or the second logic process may be at least one of the logic processes of Extract (Extract), transform (Transform), load (Load), and the like. Therefore, the electronic equipment can perform ETL logic processing on the call data to obtain the target charging index.
For example, the call data may include a plurality of data, and the first logic process is an extraction logic process, and then the electronic device may extract N data to be charged from the plurality of data, i.e. may obtain the required field data from the call data for use in the charging logic. Based on this, charging is performed according to the number of calls, and one piece of data to be charged means: when single data to be charged generated by a target product is called once, the electronic equipment can convert N pieces of data to be charged into target charging indexes through second logic processing, and the target charging indexes are call times corresponding to the N pieces of data to be charged; alternatively, charging is performed according to the usage time, and one piece of data to be charged means: when using one time data generated by the target product, the electronic device can convert the N data to be charged into the target charging index through the second logic processing, and the target charging index is the use time corresponding to the N data to be charged.
Further, the data generated by each object calling product may be stored in the target message queue, that is, the call data generated by the target object calling the target product in the target time range is stored in the target message queue, and then the electronic device may obtain the call data generated by the target object calling the target product in the target time range from the target message queue; any one of the call data is different from the other data in the call data. Accordingly, the electronic device may obtain, through the stream processing framework module, call data generated by calling the target product by the target object within the target time range from the target message queue, where in this case, the call data obtained by the stream processing framework module does not include duplicate data, that is, for any one of the call data, the any one data is obtained only once by the stream processing framework module, so as to implement precise once (exact-once) of the target message queue and the stream processing framework module, which may also be referred to as precise coincidence. The target message queue may be referred to as Kafka (one message queue), rock mq (another message queue), and so on; the invention is not limited in this regard. The Kafka has the characteristics of high throughput, sustainable data storage, easy expansion of a distributed system and the like, and is superior to other message queue frames in a data acquisition and transmission flow. For example, assuming that the flow processing frame module is a link and the target message queue is Kafka, the electronic device may collect Kafka data in real time through the flow processing frame module, and use the collected data as call data, based on which the electronic device may perform logic processing in the link, so as to obtain N data to be charged in the call data.
S304, respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule.
In the embodiment of the invention, the charging rule adjusting method refers to a process of continuously adjusting and optimizing the charging rule by adopting a real-time calculation mode according to the use condition of a real-time monitoring object, and the charging rule adjusting method provided by the invention can also be called as a real-time charging rule adjusting method. The method has the advantages of strong flexibility, simple and convenient use, low cost and the like, can be widely applied to multiple fields, and can improve the use experience of customers so as to better meet the demands of the customers.
S305, selecting target expense information from the expense information set, taking the target expense information as expense information required by calling a target product in a target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: charging rules corresponding to the target fee information.
It should be noted that, when detecting a charging query instruction for calling a target product in a target time range for a target object, the electronic device may display charging information required by the target object to call the target product in the target time range and charging rules corresponding to the target product called by the target object in the target time range, that is, the electronic device may output an optimal charging rule (i.e., a charging rule corresponding to the target charging information) and the target charging information, so that an enterprise or the target object may view current benefits, usage amounts and the like through real-time results.
Optionally, the fee information required by the target object to call the target product in the target time range and the charging rule corresponding to the target object to call the target product in the target time range may be stored in the cache module, and when the electronic device detects the charging query instruction, the fee information required by the target object to call the target product in the target time range and the charging rule corresponding to the target product in the target time range may be acquired from the cache module, and the acquired data is displayed in the visual interface, as shown in fig. 4.
It should be understood that fig. 4 illustrates a charging rule adjustment procedure by way of example only, and the present invention is not limited in this regard; for example, the relational database connected to the stream processing framework module in fig. 4 may be used to store the target cost information and the charging rules corresponding to the target cost information, so as to store the historical result in a data manner, but the relational database connected to the stream processing framework module may not be included in the embodiment of the present invention; for another example, the electronic device may directly obtain, from the stream processing framework module, fee information required by the target object to invoke the target product in the target time range, and call a charging rule corresponding to the target product by the target object in the target time range, and display the obtained data in the visual interface, and so on.
In the embodiment of the invention, especially when the change data capturing module is the FlinkCDC, the cache module is the Redis, the stream processing frame module is the Flink and the target message queue is the Kafka, the advantages of Flink, kafka, redis and other technologies on real-time performance can be fully utilized, and meanwhile, the advantages of high expansibility, high stability and the like are integrated, so that a high-efficiency and high-flexibility real-time charging rule adjusting method is constructed, and the effect of better meeting the requirements of customers is achieved. It should be noted that, in other embodiments, the execution body of the charging rule adjustment method may be a plurality of electronic devices, and at this time, the change data capturing module, the cache module, the stream processing frame module, the target message queue, and the like may be located in different electronic devices; alternatively, any one of the plurality of electronic devices may include at least one of a change data capturing module, a buffering module, a stream processing frame module, and a target message queue module, and so on.
The embodiment of the invention can update the rule data source when the update instruction aiming at the rule data source is detected, obtain the updated rule data source, and determine the change indication data, wherein the change indication data comprises the updated rule data source or the charging rule indicated by the update instruction; and then, based on the change indication data, carrying out real-time synchronization on the charging rule set to obtain a charging rule set after real-time synchronization, and obtaining at least one charging rule of the target product under the target object from the charging rule set after real-time synchronization, thereby ensuring the data synchronization and the read-write speed between the charging rule set and the rule data source. Further, call data generated by calling the target product by the target object in the target time range can be obtained, the call data comprises N pieces of data to be charged, and then the N pieces of data to be charged can be respectively subjected to cost calculation according to each charging rule in at least one charging rule to obtain a cost information set, so that target cost information is selected from the cost information set, the target cost information is used as cost information required by calling the target product by the target object in the target time range, and the charging rules corresponding to the target product are called by the target object in the target time range: the charging rule corresponding to the target expense information is flexibly adjusted and optimized, so that the accuracy and flexibility of the charging rule can be improved. Therefore, the embodiment of the invention can provide at least one charging rule for the target object, and automatically adjust the charging rule in the use process, so that the target object can ensure the cost range on the premise of not knowing the specific use condition of the target object, the consideration of enterprises on the product cost can be ensured, and the competitive advantage and the trusted degree when signing and closing can be effectively improved; that is, the embodiment of the invention can improve customer satisfaction (namely, reduce customer cost by adjusting charging rules in real time, ensure cost efficiency of customers), improve customer loyalty (namely, be more friendly to customers with uncertain usage amount, ensure flexibility of use of customers, and increase retention rate of customers), improve contract signing rate (even if customers can better master actual consumption conditions to enhance trust degree of customers to enterprises, and further increase signing possibility), and the like, and can bring more income and profit to enterprises, and enhance market competitiveness of enterprises and products.
Based on the description of the related embodiments of the above charging rule adjustment method, the embodiments of the present invention also provide a charging rule adjustment device, which may be a computer program (including program code) running in an electronic device; as shown in fig. 5, the charging rule adjustment device may include an acquisition unit 501 and a processing unit 502. The charging rule adjustment means may perform the charging rule adjustment method shown in fig. 1 or fig. 3, i.e. the charging rule adjustment means may operate the above-mentioned units:
an obtaining unit 501, configured to obtain at least one charging rule of a target product under a target object, and obtain call data generated by calling the target product by the target object in a target time range, where the call data includes N pieces of data to be charged, and N is a non-negative integer;
the processing unit 502 is configured to perform a cost calculation on the N data to be charged according to each charging rule in the at least one charging rule, to obtain a cost information set, where the cost information set includes cost information of the N data to be charged under each charging rule;
the processing unit 502 is further configured to select target cost information from the cost information set, and use the target cost information as cost information required by the target object to call the target product in the target time range, where the target object calls a charging rule corresponding to the target product in the target time range, where the charging rule is as follows: and charging rules corresponding to the target expense information.
In one embodiment, when the target fee information is selected from the fee information set, the processing unit 502 may be specifically configured to:
and selecting target expense information from the expense information set according to the size relation of all expense information in the expense information set, wherein the target expense information is smaller than any expense information except the target expense information in the expense information set.
In another embodiment, the at least one charging rule is selected from a charging rule set, and the charging rule set is determined by a rule data source, and the processing unit 502 is further configured to:
when an updating instruction aiming at the rule data source is detected, updating the rule data source to obtain an updated rule data source, and determining change indication data, wherein the change indication data comprises the updated rule data source or charging rules indicated by the updating instruction;
based on the change indication data, carrying out real-time synchronization on the charging rule set to obtain a charging rule set after real-time synchronization;
the obtaining unit 501, when obtaining at least one charging rule of the target product under the target object, may be specifically configured to:
And acquiring at least one charging rule of the target product under the target object from the charging rule set after the real-time synchronization.
In another embodiment, the rule data source is monitored by a change data capture module; the processing unit 502 may be specifically configured to, when performing real-time synchronization on the charging rule set based on the change indication data to obtain the charging rule set after real-time synchronization:
and when the rule data source is monitored to be updated through the change data capturing module, carrying out real-time synchronization on the charging rule set through the change data capturing module based on the change indication data to obtain the charging rule set after real-time synchronization.
In another embodiment, the charging rule set is located in the buffer module and the flow processing frame module, and when the processing unit 502 performs real-time synchronization on the charging rule set based on the change indication data through the change data capturing module, the processing unit may be specifically configured to:
the charging rule set in the cache module is synchronized in real time based on the change indication data through the change data capturing module, and the charging rule set after real-time synchronization is obtained;
And adopting the real-time synchronized charging rule set in the cache module to synchronize the charging rule set in the stream processing frame module in real time so that the stream processing frame module comprises the real-time synchronized charging rule set.
In another embodiment, data generated by each object calling the product is stored in the target message queue; the obtaining unit 501 may be specifically configured to, when obtaining call data generated by the target object calling the target product in the target time range:
acquiring call data generated by calling the target product by the target object in a target time range from the target message queue; any one of the call data is different from other data in the call data.
In another embodiment, the processing unit 502 may be further configured to:
when detecting that the charging inquiry instruction of the target product is called in the target time range aiming at the target object, charging information required by the target object for calling the target product in the target time range is displayed, and charging rules corresponding to the target product are called in the target time range by the target object for displaying.
According to an embodiment of the present invention, each step involved in the method shown in fig. 1 or fig. 3 may be performed by each unit in the charging rule adjustment device shown in fig. 5. For example, step S101 shown in fig. 1 may be performed by the acquisition unit 501 shown in fig. 5, and steps S102 and S103 may each be performed by the processing unit 502 shown in fig. 5. As another example, steps S301, S302, S304, and S305 shown in fig. 3 may be performed by the processing unit 502 shown in fig. 5, step S303 may be performed by the acquisition unit 501 shown in fig. 5, and so on.
According to another embodiment of the present invention, each unit in the charging rule adjusting device shown in fig. 5 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, any charging rule adjustment device may also include other units, and in practical applications, these functions may also be implemented with assistance of other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, the billing rule adjustment apparatus as shown in fig. 5 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 1 or 3 on a general-purpose electronic device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the billing rule adjustment method of the embodiment of the present invention is implemented. The computer program may be recorded on, for example, a computer storage medium, and loaded into and run in the above-described electronic device through the computer storage medium.
After at least one charging rule of a target product under a target object and call data generated by the target object calling the target product within a target time range are obtained, the embodiment of the invention can respectively calculate the cost of N pieces of data to be charged in the call data according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule, and N is a non-negative integer so as to analyze the cost information of the target object using the target product from at least one aspect. Then, the target expense information can be selected from the expense information set, the target expense information is used as expense information required by the target object for calling the target product in the target time range, and the charging rule corresponding to the target product is called by the target object in the target time range as follows: charging rules corresponding to the target expense information are realized, so that the charging rules are flexibly adjusted. Therefore, the embodiment of the invention can flexibly adjust the charging rule based on the selection of the target expense information, and can better meet the requirement of the target object, thereby improving the viscosity of the client (such as the target object).
Based on the description of the method embodiment and the apparatus embodiment, the exemplary embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor for causing the electronic device to perform a method according to an embodiment of the invention when executed by the at least one processor.
The exemplary embodiments of the present invention also provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to an embodiment of the present invention.
The exemplary embodiments of the invention also provide a computer program product comprising a computer program, wherein the computer program, when being executed by a processor of a computer, is for causing the computer to perform a method according to an embodiment of the invention.
Referring to fig. 6, a block diagram of an electronic device 600 that may be a server or a client of the present invention will now be described, which is an example of a hardware device that may be applied to aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the electronic device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 607 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 608 may include, but is not limited to, magnetic disks, optical disks. The communication unit 609 allows the electronic device 600 to exchange information/data with other devices through a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the charging rule adjustment method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 600 via the ROM 602 and/or the communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the charging rule adjustment method by any other suitable means (e.g. by means of firmware).
Program code for carrying out methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It is also to be understood that the foregoing is merely illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (10)

1. A charging rule adjustment method, comprising:
acquiring at least one charging rule of a target product under a target object, and acquiring call data generated by calling the target product by the target object in a target time range, wherein the call data comprises N pieces of data to be charged, and N is a non-negative integer;
respectively carrying out cost calculation on the N pieces of data to be charged according to each charging rule in the at least one charging rule to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
Selecting target expense information from the expense information set, taking the target expense information as expense information required by the target object to call the target product in the target time range, and calling a charging rule corresponding to the target product in the target time range by the target object as follows: and charging rules corresponding to the target expense information.
2. The method of claim 1, wherein selecting the target fee information from the fee information set comprises:
and selecting target expense information from the expense information set according to the size relation of all expense information in the expense information set, wherein the target expense information is smaller than any expense information except the target expense information in the expense information set.
3. The method according to claim 1 or 2, wherein the at least one charging rule is selected from a set of charging rules, and the set of charging rules is determined by a rule data source, the method further comprising:
when an updating instruction aiming at the rule data source is detected, updating the rule data source to obtain an updated rule data source, and determining change indication data, wherein the change indication data comprises the updated rule data source or charging rules indicated by the updating instruction;
Based on the change indication data, carrying out real-time synchronization on the charging rule set to obtain a charging rule set after real-time synchronization;
the obtaining at least one charging rule of the target product under the target object includes:
and acquiring at least one charging rule of the target product under the target object from the charging rule set after the real-time synchronization.
4. A method according to claim 3, wherein the rule data source is monitored by a change data capture module; the step of synchronizing the charging rule set in real time based on the change indication data to obtain a charging rule set after real-time synchronization comprises the following steps:
and when the rule data source is monitored to be updated through the change data capturing module, carrying out real-time synchronization on the charging rule set through the change data capturing module based on the change indication data to obtain the charging rule set after real-time synchronization.
5. The method according to claim 4, wherein the charging rule set is located in a buffer module and a flow processing framework module, and the step of performing real-time synchronization on the charging rule set by the change data capturing module based on the change indication data to obtain a real-time synchronized charging rule set includes:
The charging rule set in the cache module is synchronized in real time based on the change indication data through the change data capturing module, and the charging rule set after real-time synchronization is obtained;
and adopting the real-time synchronized charging rule set in the cache module to synchronize the charging rule set in the stream processing frame module in real time so that the stream processing frame module comprises the real-time synchronized charging rule set.
6. The method of claim 5, wherein data generated by each object invoking a product is stored in a target message queue; the obtaining call data generated by the target object calling the target product in the target time range includes:
acquiring call data generated by calling the target product by the target object in a target time range from the target message queue; any one of the call data is different from other data in the call data.
7. The method according to claim 1 or 2, characterized in that the method further comprises:
when detecting that the charging inquiry instruction of the target product is called in the target time range aiming at the target object, charging information required by the target object for calling the target product in the target time range is displayed, and charging rules corresponding to the target product are called in the target time range by the target object for displaying.
8. A charging rule adjustment device, the device comprising:
the system comprises an acquisition unit, a calculation unit and a calculation unit, wherein the acquisition unit is used for acquiring at least one charging rule of a target product under a target object and acquiring call data generated by calling the target product by the target object in a target time range, the call data comprises N pieces of data to be charged, and N is a non-negative integer;
the processing unit is used for calculating the cost of the N pieces of data to be charged according to each charging rule in the at least one charging rule respectively to obtain a cost information set, wherein the cost information set comprises cost information of the N pieces of data to be charged under each charging rule;
the processing unit is further configured to select target expense information from the expense information set, and use the target expense information as expense information required by the target object to call the target product in the target time range, where the target object calls a charging rule corresponding to the target product in the target time range as follows: and charging rules corresponding to the target expense information.
9. An electronic device, comprising:
a processor; and
A memory in which a program is stored,
wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the method according to any of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202310456627.7A 2023-04-25 2023-04-25 Charging rule adjustment method and device, storage medium and electronic equipment Pending CN116468491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310456627.7A CN116468491A (en) 2023-04-25 2023-04-25 Charging rule adjustment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310456627.7A CN116468491A (en) 2023-04-25 2023-04-25 Charging rule adjustment method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116468491A true CN116468491A (en) 2023-07-21

Family

ID=87175129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310456627.7A Pending CN116468491A (en) 2023-04-25 2023-04-25 Charging rule adjustment method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116468491A (en)

Similar Documents

Publication Publication Date Title
CN109684358B (en) Data query method and device
TWI761349B (en) Risk identification method, client device and risk identification system
WO2021056737A1 (en) Data compression method and apparatus for high-frequency service data, device, and storage medium
US20180352020A1 (en) Perfect application capacity analysis for elastic capacity management of cloud-based applications
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN110738477A (en) reconciliation method, device, computer equipment and storage medium
CN108595448B (en) Information pushing method and device
CN111800292B (en) Early warning method and device based on historical flow, computer equipment and storage medium
CN110648216A (en) Wind control method and device
CN112182004A (en) Method and device for viewing data in real time, computer equipment and storage medium
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN110727563A (en) Cloud service alarm method and device for preset customer
CN110071952B (en) Service call quantity control method and device
CN113190558A (en) Data processing method and system
CN116468491A (en) Charging rule adjustment method and device, storage medium and electronic equipment
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
CN113485902A (en) Method, device, equipment and computer readable medium for testing service platform
CN113761433A (en) Service processing method and device
CN109388546B (en) Method, device and system for processing faults of application program
CN110727694A (en) Data processing method and device, electronic equipment and storage medium
CN111338916A (en) Method, device, electronic equipment and computer readable medium for processing service request
CN110019352B (en) Method and apparatus for storing data
CN115794353B (en) Cloud network service quality optimization processing method, device, equipment and storage medium
CN113778909B (en) Method and device for caching data
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment

Legal Events

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