Resource allocation method, electronic device, storage medium and program product

By using conditional trees and control thresholds to update resource allocation information in the resource allocation method, the problem of unreasonable resource allocation is solved, the matching of resource quotas and object attribute information is achieved, and the rationality and accuracy of resource allocation are improved.

CN120688762APending Publication Date: 2025-09-23MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510424868.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

How to reasonably allocate resources to objects, ensure that resource quotas are consistent with the object's attribute information, and improve the rationality of resource allocation.

Method used

By determining the first resource allocation information according to the attribute information of the object, and constructing the target rule set based on multiple rule sets pre-defined in the condition tree, the first resource allocation information is updated using the control threshold to obtain the second resource allocation information, and finally allocate resources to the object.

Benefits of technology

Improves the rationality and accuracy of resource allocation, ensures that resource quotas comply with object attribute information, and obtains a comprehensive target rule set through the condition tree for resource regulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120688762A_ABST
    Figure CN120688762A_ABST
Patent Text Reader

Abstract

The invention relates to the field of computers, and provides a resource allocation method, electronic equipment, a storage medium and a program product. The resource allocation method comprises the steps of determining first resource allocation information of an object according to attribute information of the object; based on the attribute information, a target rule set matched with the object is determined from a condition tree, and the condition tree is constructed through a plurality of predefined rule sets; updating the first resource allocation information based on a regulation and control threshold value corresponding to the target rule set to obtain second resource allocation information; and allocating resources to the object based on the second resource allocation information. According to the method, the resources can be reasonably allocated to the objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource allocation method, electronic equipment, storage medium, and program product. Background Art

[0002] Resource allocation is the process of arranging limited resources to best meet the needs of objects. Resource quotas allocated to different objects generally vary. How to rationally allocate resources to objects is a technical challenge that needs to be addressed. Summary of the Invention

[0003] The present application provides a resource allocation method, electronic device, storage medium and program product to solve the technical problem of how to reasonably allocate resources to objects.

[0004] A first aspect of an embodiment of the present application provides a resource allocation method, the method comprising: determining first resource allocation information of the object based on attribute information of the object; based on the attribute information, determining a target rule set that matches the object from a condition tree, the condition tree being constructed by multiple predefined rule sets; based on a control threshold corresponding to the target rule set, updating the first resource allocation information to obtain second resource allocation information; and allocating resources to the object based on the second resource allocation information.

[0005] A second aspect of an embodiment of the present application provides a resource allocation device, comprising: a determination unit for determining first resource allocation information of an object based on attribute information of the object; the determination unit is further used to determine a target rule set matching the object from a condition tree based on the attribute information, the condition tree being constructed by a plurality of predefined rule sets; an updating unit for updating the first resource allocation information based on a control threshold corresponding to the target rule set to obtain second resource allocation information; and an allocation unit for allocating resources to the object based on the second resource allocation information.

[0006] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method provided in the first aspect when executing the computer program.

[0007] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the first aspect are implemented.

[0008] A fifth aspect of an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps in the method provided in the first aspect.

[0009] In the resource allocation method of this embodiment, after determining the first resource allocation information for an object, the first resource allocation information can be updated based on the control threshold corresponding to the target rule set that matches the attribute information. This ensures that the object's resource quota is more consistent with the object's attribute information, improving the rationality of resource allocation. Furthermore, because the condition tree integrates multiple predefined rule sets, a comprehensive target rule set can be obtained through the condition tree for resource control, further ensuring the rationality of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0011] Figure 1 This is a schematic diagram of an application scenario of a resource allocation method provided in an embodiment of the present application; Figure 2 This is a flow chart of a resource allocation method provided in an embodiment of the present application; Figure 3 This is a schematic diagram of a credit limit configuration interface provided in an embodiment of the present application; Figure 4 Schematic diagram of the configuration interface of the preset feature matrix provided in the embodiment of the present application; Figure 5 This is a schematic diagram of the configuration interface of the data source provided in the embodiment of the present application; Figure 6 This is a detailed flow chart of the conditional tree construction method provided in the embodiment of the present application; Figure 7 is a schematic diagram of a conditional tree provided in an embodiment of the present application; Figure 8 is a flowchart of another resource allocation method provided in an embodiment of the present application; Figure 9 This is a functional module diagram of a resource allocation device provided in an embodiment of the present application; Figure 10 It is a structural diagram of an electronic device for implementing a resource allocation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0012] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0013] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0014] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c.

[0015] See also Figure 1 , Figure 1 This is a schematic diagram of an application scenario of a resource allocation method provided in an embodiment of the present application. The scenario may include various electronic devices 100 and a server 200.

[0016] The electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and / or smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device 100. The electronic device 100 may determine the first resource allocation information of the object based on the attribute information of the object. The electronic device 100 may be installed with various client terminals related to resource allocation. The client terminals related to resource allocation may access the condition tree deployed on the server 200. The condition tree may be used to determine the target rule set that matches the object and, based on the control threshold corresponding to the target rule set, update the first resource allocation information. Resources are allocated to the object based on the updated second resource allocation information.

[0017] Server 200 may be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Networks (CDNs), and big data and artificial intelligence platforms, but is not limited thereto. Server 200 may construct a conditional tree, which may be constructed using multiple predefined rule sets.

[0018] In some embodiments of the present application, the resource allocation method can be performed independently by the electronic device 100 or the server 200, or can be performed jointly by the server 200 and the electronic device 100. When performed independently by the electronic device 100 or the server 200, the resource allocation process can be implemented independently by the electronic device 100 or the server 200. For example, the first resource allocation information of the object can be determined on the electronic device 100 through the attribute information of the object, and the target rule set that matches the object can be determined through the condition tree deployed locally. Based on the control threshold corresponding to the target rule set, the first resource allocation information is updated, and resources are allocated to the object based on the obtained second resource allocation information. The above process can also be performed independently by the server 200. When performed jointly by the server 200 and the electronic device 100, the server 200 can construct the condition tree and then deploy the condition tree to the electronic device 100, and the resource allocation process can be implemented by the electronic device 100, or part of the process can be implemented by the electronic device 100, and part of the process can be implemented by the server 200, and the two can cooperate to implement the resource allocation process. In actual application, specific configuration can be made according to the situation, and is not specifically limited here.

[0019] In some embodiments of the present application, when the resource allocation method provided in the embodiments of the present application is executed separately by the server 200 or the electronic device 100, the above-mentioned application scenario may also include only a single device of the server 200 or the electronic device 100, or the server 200 and the electronic device 100 may be considered to be the same device. In actual application, when the resource allocation method provided in the embodiments of the present application is jointly executed by the server 200 and the electronic device 100, the server 200 and the electronic device 100 may also be the same device, that is, the server 200 and the electronic device 100 may be different functional modules of the same device, or virtual devices virtualized from the same physical device.

[0020] In a possible implementation, the user may provide attribute information of an object through the electronic device 100, and the server 200 may use the resource allocation method of the embodiment of the present application to determine resource allocation information allocated to the object and return it to the electronic device 100 for presentation.

[0021] In the embodiment of the present application, the electronic device 100 and the server 200 can be directly or indirectly connected to each other through one or more networks. The network can be a wired network or a wireless network. For example, the wireless network can be a mobile cellular network or a Wireless Fidelity (Wi-Fi) network. Of course, it can also be other possible networks, and the embodiment of the present application does not limit this. It should be noted that Figure 1The figures are only examples. In fact, the number of electronic devices and servers is not limited and is not specifically limited in the embodiments of this application.

[0022] The resource allocation method provided in the embodiment of the present application will be described below with reference to the accompanying drawings in combination with the application scenarios described above. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the embodiment of the present application, and the embodiment of the present application is not limited in this respect.

[0023] like Figure 2 FIG. 1 is a flow chart of a resource allocation method provided by an embodiment of the present application. The resource allocation method is applied to electronic devices, for example, Figure 1 The electronic device 100. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0024] S201: Determine first resource allocation information of an object according to attribute information of the object.

[0025] In at least one embodiment of the present application, an object's attribute information may include data related to the object's personal information. For example, the attribute information may include any one or more of the subject's gender, age, occupation, hobbies, geographic location, family situation, loan amount, deposit amount, and other basic information. The attribute information may also include the subject's behavioral data. For example, the attribute information may include whether a preset item has been purchased or not. The electronic device may obtain the object's attribute information from a pre-configured data source.

[0026] In at least one embodiment of the present application, in response to receiving a configuration trigger operation for a credit limit configuration item, the electronic device may display a credit limit configuration interface, allowing a preset user to configure the credit limit configuration module in the credit limit configuration interface. In one example, if a click operation on a credit limit configuration application is detected, it is determined that the electronic device has received a configuration trigger operation for the credit limit configuration module. In another example, if a web page access request for the credit limit configuration interface is received, it is determined that the electronic device has received a configuration trigger operation for the credit limit configuration module.

[0027] See also Figure 3 As shown, Figure 3A schematic diagram of a quota configuration interface provided in an embodiment of the present application. The quota configuration interface may include multiple quota configuration modules, such as module 1 and module 2. The quota configuration module may be used to configure the resource allocation quota and / or the first adjustment parameter, and the first adjustment parameter may be used to adjust the resource allocation quota. In one example, the first adjustment parameter may include an adjustment amount. For example, if the adjustment amount is +2,000 yuan, the resource allocation quota is increased by 2,000 yuan; if the adjustment amount is -5,000 yuan, the resource allocation quota is reduced by 5,000 yuan. In another example, the first adjustment parameter may also include an adjustment amplitude. The adjustment amplitude may represent a percentage adjustment based on the resource allocation quota. For example, if the adjustment amplitude is 20%, the resource allocation quota is increased by 20%; if the adjustment amplitude is -30%, the resource allocation quota is decreased by 30%. The resource allocation quota and the first adjustment parameter in each quota configuration module may be set according to actual application requirements, and the embodiments of the present application are not limited to this.

[0028] In at least one embodiment of the present application, a preset user can input quota configuration information in each quota configuration module. The quota configuration information can be used to characterize at least one object tag and the quota information associated with at least one object tag. At least one object tag may include an age range, a loan amount range, a deposit amount range, etc., but the actual application is not limited thereto, and the policy personnel can configure it according to the actual application requirements. The quota information may include a resource allocation quota and a first adjustment parameter. The embodiment of the present application can split the quota configuration process into the configuration process of several quota configuration modules, that is, split the configuration problem of the resource allocation quota and the first adjustment parameter for a certain user portrait into several configuration problems of the quota information for the object tag, thereby reducing the complexity of the quota configuration.

[0029] In one example, it is assumed that the user can input credit information into the credit configuration module. After receiving the credit information input by the user, the electronic device can bind the credit information with the identifier corresponding to the credit configuration module and configure the object tag of the credit configuration module to a null value.

[0030] In another example, a preset user may input at least one object tag and credit limit information corresponding to the at least one object tag into the credit limit configuration module. For example, the preset user may input a user age range and user gender, as well as credit limit information corresponding to the user age range and user gender, into the credit limit configuration module. After receiving the at least one object tag and the credit limit information corresponding to the at least one object tag, the electronic device may bind the user-input information to an identifier of the credit limit configuration module.

[0031] In another example, a preset user can input a data source name and an object tag into the credit configuration module. After receiving the object tag associated with the data source, electronic device 110 can search the data source for credit information that matches the object tag and bind the matched credit information to the identifier of the credit configuration module. Because the credit information corresponding to the object tag may change, embodiments of the present application dynamically obtain credit information that matches the object tag from the data source, making the credit information more accurate.

[0032] In at least one embodiment of the present application, the types of credit configuration modules may include a first type and a second type.

[0033] In one example, if the type of the quota configuration module is the first type, the quota information corresponding to the quota configuration module is the resource allocation quota. For example, assuming that the quota configuration module includes module 1 and module 2, and the types of modules 1 and 2 are both the first type, if the quota information of module 1 is 2,000 yuan and the quota information of module 2 is 3,000 yuan, then the resource allocation quota corresponding to the quota configuration module is 5,000 yuan.

[0034] In another example, if the type of the credit limit configuration module is the second type, the credit limit information corresponding to the credit limit configuration module is the first adjustment parameter. For example, assuming that the credit limit configuration module includes module 1 and module 2, and the types of module 1 and module 2 are both the second type, if the credit limit information of module 1 is +2,000 yuan and the credit limit information of module 2 is -1,000 yuan, then the first adjustment parameter corresponding to the credit limit configuration module is 1,000 yuan. For another example, if the credit limit configuration module includes module 1 and module 2, and the types of module 1 and module 2 are both the second type, if the credit limit information of module 1 is +30% and the credit limit information of module 2 is -20%, then the first adjustment parameter corresponding to the credit limit configuration module is +10%.

[0035] In at least one embodiment of the present application, the electronic device can obtain the type of each credit configuration module from the credit configuration interface. Figure 3 As shown, Figure 3 The credit configuration interface also includes setting options for the type of credit configuration module. It is preset that the user can select at least one credit configuration module in the setting options, determine the type of the selected credit configuration module as the first type, and determine the types of the remaining credit configuration modules as the second type.

[0036] After determining the type of the quota configuration module, the electronic device may add the quota information corresponding to the first type of modules to obtain the resource allocation quota, and add the quota information corresponding to the second type of modules to obtain the first adjustment parameter.

[0037] For example, the configuration process of the quota configuration module can refer to the following Table 1: Table 1 The resource allocation quota corresponding to the object tags shown in Table 1 can be expressed as the sum (e.g., 10,000 yuan) of the quota information for module 1 (e.g., 8,000 yuan) and the quota information for module 2 (e.g., 2,000 yuan). The first adjustment parameter corresponding to the object tags shown in Table 1 can be expressed as the sum (e.g., 6,000 yuan) of the quota information for module 3 (e.g., 5,000 yuan) and the quota information for module 4 (e.g., 1,000 yuan).

[0038] In at least one embodiment of the present application, an electronic device determines first resource allocation information of an object based on attribute information of the object, including: discretizing the attribute information to obtain discrete information; determining the index corresponding to the discrete information in a preset feature matrix; and determining the first resource allocation information from the preset feature matrix based on the index.

[0039] In some embodiments, for numeric attribute information, the electronic device obtains multiple discrete intervals corresponding to the attribute type based on the attribute type corresponding to the attribute information. The electronic device determines the discrete interval corresponding to the attribute information from the multiple discrete intervals as the discrete information. For example, if the attribute information is age 25, and the attribute type corresponding to the attribute information (25) is age, and if the multiple discrete intervals corresponding to the attribute type (age) include: [11, 20], [21, 30], and [31, 40], the electronic device can determine from the multiple discrete intervals that the discrete information corresponding to the attribute information (25) is: [21, 30].

[0040] In other embodiments, for non-numeric attribute information, the electronic device obtains multiple label codes corresponding to the attribute type based on the attribute type corresponding to the attribute information. The electronic device determines the label code corresponding to the attribute information from the multiple label codes as discrete information. For example, if the attribute information is the occupation of a teacher, and the attribute type corresponding to the attribute information (teacher) is occupation, and if the multiple label codes corresponding to the attribute type (occupation) include: [Teacher: 0], [White-collar worker: 1], [Freelancer: 2], the electronic device can determine from the multiple label codes that the discrete information corresponding to the attribute information (Teacher) is: 0.

[0041] See also Figure 4 As shown, Figure 4Schematic diagram of the configuration interface of the preset feature matrix provided in the embodiment of the present application. In the configuration interface of the preset feature matrix, the hit conditions for each row in the preset feature matrix and the hit conditions for each column in the preset feature matrix can be set. For example, the hit condition for the first row in the preset feature matrix can be set to: age is in the [11, 20] stage, and the hit condition for the second row can be set to: age is in the [21, 30] stage. For another example, the hit condition for the first column in the preset feature matrix can be set to: annual income is in the [11W, 20W] stage, and the hit condition for the second column can be set to: annual income is in the [21W, 30W] stage.

[0042] In some embodiments, the electronic device can determine the index corresponding to the discrete information in a preset feature matrix. The index can be used to indicate the location of a specific element in the preset feature matrix. For example, the index can be represented as row X, column Y. Continuing with the above example, if the discrete information is: age is in the range [21, 30], and annual income is in the range [110,000, 200,000], the index corresponding to the discrete information in the preset feature matrix can be determined to be: row 2, column 1.

[0043] In some embodiments, the elements in the preset feature matrix may include data values ​​or data source identifiers. If the elements in the preset feature matrix are data values, the elements in the preset feature matrix may represent credit limit information. If the elements in the preset feature matrix are data source identifiers, the elements in the preset feature matrix may represent the source of the credit limit information.

[0044] In some embodiments, the corresponding relationship between the attribute information and the credit information in the data source can be set in the configuration interface of the data source. Figure 5 As shown, Figure 5 Schematic diagram of the configuration interface of the data source provided in the embodiment of the present application. In the configuration interface of the data source, you can enter code in the "python data source configuration area", and the entered code can be used to import toolkits, introduce variables, etc. For example, you can import the json toolkit through the "import json" code, import the traceback toolkit through the "importtraceback" code, and import the datetime toolkit through the "import datetime" code. When introducing variables, you can add a data source and give the data source an alias, introduce variables through the "${alias}" method, and you can also perform null value verification on the variables. For example, if the variable is a null value, set the variable to a default value. In the configuration interface of the data source, you can use the "diff" control to trigger the comparison of the file before and after the change. The file before and after the change can be obtained from the "python data source configuration area".

[0045] For other types of data sources, electronic devices can pass parameters to objects to obtain a JSON string. Data retrieved from Python and other data sources can be represented as a JSON string, and the corresponding credit information (value) can be found in the JSON string using the key field (key). For example, if the JSON string is {a:1000,b:{c:2000}}, if the key field entered is a, the credit information found is 1000. If the key fields entered are b and c, the credit information found is 2000.

[0046] In some embodiments, if the elements in the preset feature matrix are data values, the amount information corresponding to the index can be obtained from the preset feature matrix as the first resource allocation information. For example, the data value corresponding to the second row and first column can be obtained from the preset feature matrix as the first resource allocation information. In other embodiments, if the elements in the preset feature matrix are data source identifiers, the data source identifier corresponding to the index is determined from the preset feature matrix, and the amount information corresponding to the attribute information is obtained from the data source corresponding to the data source identifier as the first resource allocation information. When the electronic device obtains the first resource allocation information from the data source, it can use a json string to retrieve it from the data source. For example, assuming the json string is {a: K1, K2; b: {c: K3, K4}}, if the input attribute information is a, the first resource allocation information found includes K1 and K2, and if the input attribute information is b and c, the first resource allocation information found includes K3 and K4.

[0047] By discretizing the attribute information, the embodiments of the present application can reduce the complexity of the attribute information, thereby improving the efficiency of determining the first resource allocation information. In addition, by using a preset feature matrix, the discrete information can be directly mapped to a corresponding index, so that the first resource allocation information can be quickly obtained from the preset feature matrix through the index.

[0048] S202: Determine a target rule set that matches the object from the condition tree based on the attribute information.

[0049] In at least one embodiment of the present application, the conditional tree can be constructed by pre-defined multiple rule sets. The specific construction process of the conditional tree can be found in Figure 6 The flowchart shown.

[0050] See also Figure 7 As shown, Figure 7 Schematic diagram of a conditional tree provided in an embodiment of the present application. The tree nodes of the conditional tree include branch nodes, such as Figure 7As shown, the branch nodes may include the first branch node 1 to the first branch node M1, and the second branch node 1 to the second branch node M2. The branch nodes correspond to each rule set, and each rule set includes at least two sub-rules, for example Figure 7 As shown, each first branch node corresponds to a corresponding rule set, and each rule set includes at least two sub-rules and combination logic corresponding to at least two sub-rules. The combination logic corresponding to at least two sub-rules may include but is not limited to: and (and), or (or). Each second branch node corresponds to a corresponding sub-rule, and each sub-rule corresponds to a preset attribute type. The preset attribute type may include but is not limited to: age, income. Each sub-rule may correspond to a conditional expression of a preset attribute type, and the conditional expression may be expressed in the form of "left factor operator right factor". For example, the preset attribute type corresponding to the sub-rule is age, and the conditional expression corresponding to the sub-rule may be: "age < 18". If the conditional expression is satisfied, the result of the conditional expression may be recorded as "accept", and the satisfaction of the conditional expression indicates that the attribute information verification has passed, that is, the attribute information matches the sub-rule. If the conditional expression is not satisfied, the result of the conditional expression may be recorded as "reject", and the failure of the conditional expression indicates that the attribute information verification has not passed, that is, the attribute information does not match the sub-rule.

[0051] In at least one embodiment of the present application, the electronic device determines a target rule set that matches the object from a condition tree based on attribute information, including: locating a target branch node corresponding to the object in the condition tree according to the attribute type corresponding to the attribute information; if the attribute information matches the rule set corresponding to the target branch node, determining the rule set corresponding to the target branch node as the target rule set.

[0052] In some embodiments, the target branch node may represent the first branch node corresponding to the same preset attribute type as the attribute type corresponding to the attribute information. For example, if the attribute type corresponding to the attribute information is age, and the preset attribute type corresponding to the first branch node 1 includes the attribute type "age", then the target branch node is the first branch node 1.

[0053] In some embodiments, the electronic device obtains a conditional expression corresponding to the target branch node based on the rule set corresponding to the target branch node, and verifies the attribute information using the conditional expression corresponding to the target branch node. If the attribute information passes verification, it is determined that the attribute information matches the rule set corresponding to the target branch node. For example, if the attribute information is an annual income of 180,000 yuan, and the conditional expression corresponding to the target branch node is "annual income > 80,000 yuan", since the conditional expression "180,000 yuan > 80,000 yuan" holds, the conditional expression evaluates to "accept", indicating that the attribute information (annual income of 180,000 yuan) matches the rule set.

[0054] In other embodiments, if the attribute information fails verification, it is determined that the attribute information does not match the rule set corresponding to the target branch node. For example, if the attribute information is age 25, and the conditional expression corresponding to the target branch node is "age < 18", since the conditional expression "25 < 18" does not hold, the conditional expression is "reject", indicating that the attribute information (age 25) does not match the rule set.

[0055] The present embodiment of the present invention uses the attribute type corresponding to the attribute information to quickly match the corresponding target branch node from the condition tree for analysis, thereby improving the efficiency of determining the target rule set. In addition, the present embodiment of the present invention does not need to compare the attribute information with the conditional expressions corresponding to all nodes in the condition tree, thereby further improving the efficiency of determining the target rule set.

[0056] In at least one embodiment of the present application, if the attribute information does not match the rule set corresponding to the target branch node, the electronic device allocates resources to the object based on the first resource allocation information.

[0057] S203: Update the first resource allocation information based on the control threshold corresponding to the target rule set to obtain second resource allocation information.

[0058] In at least one embodiment of the present application, the control threshold includes a first threshold and a second threshold, where the first threshold is less than the second threshold. In one example, the control threshold may be an adjustment amount. In another example, the control threshold may be an adjustment range. The first resource allocation information includes the resource allocation amount of the object and a first adjustment parameter corresponding to the resource allocation amount.

[0059] In at least one embodiment of the present application, the electronic device updates the first resource allocation information based on the control threshold corresponding to the target rule set to obtain the second resource allocation information, including: if the first adjustment parameter is less than the first threshold, updating the first adjustment parameter to the first threshold to obtain the second resource allocation information; if the first adjustment parameter is greater than the second threshold, updating the first adjustment parameter to the second threshold to obtain the second resource allocation information.

[0060] In some embodiments, if there are multiple target rule sets, the electronic device updates the first resource allocation information sequentially based on the execution priorities of the multiple target rule sets. In one example, if the first adjustment parameter is +800 yuan, the target rule sets include rule set 1 and rule set 2, and the execution priority of rule set 1 is higher than the execution priority of rule set 2; if the first threshold value of the control threshold corresponding to rule set 1 is +1000 yuan, and the second threshold value of the control threshold corresponding to rule set 1 is +2000 yuan; if the first threshold value of the control threshold corresponding to rule set 2 is +10 yuan, and the second threshold value of the control threshold corresponding to rule set 2 is +50 yuan; the electronic device compares the first adjustment parameter (+800 yuan) with the control threshold corresponding to rule set 1. After comparison, the first adjustment parameter (+800 yuan) is less than the first threshold value (+1000 yuan) of rule set 1, and the electronic device updates the first adjustment parameter to +1000 yuan. The electronic device then compares the first adjustment parameter with the control threshold corresponding to rule set 2. After comparison, the first adjustment parameter (+1000 yuan) is greater than the second threshold value (+50 yuan) of rule set 2, and the electronic device updates the first adjustment parameter to +50 yuan.

[0061] In another example, if the first adjustment parameter is +20%, the target rule set includes rule set 1 and rule set 2, and the execution priority of rule set 1 is higher than the execution priority of rule set 2; if the first threshold value of the control threshold corresponding to rule set 1 is +10%, and the second threshold value of the control threshold corresponding to rule set 1 is +15%; if the first threshold value of the control threshold corresponding to rule set 2 is +18%, and the second threshold value of the control threshold corresponding to rule set 2 is +30%, the electronic device compares the first adjustment parameter (+20%) with the control threshold corresponding to rule set 1. After comparison, the first adjustment parameter (+20%) is greater than the second threshold value (+15%) of rule set 1, and the electronic device updates the first adjustment parameter to +15%. The electronic device then compares the first adjustment parameter with the control threshold corresponding to rule set 2. After comparison, the first adjustment parameter (+15%) is less than the first threshold value (+18%) of rule set 2, and the electronic device updates the first adjustment parameter to +18%.

[0062] The embodiment of the present application updates the first adjustment parameter by regulating the first threshold and the second threshold in the threshold, which can avoid resource allocation exceeding the limit and improve the rationality of determining the second resource allocation information.

[0063] S204: Allocate resources to the object based on the second resource allocation information.

[0064] In at least one embodiment of the present application, the second resource allocation information includes a resource allocation quota of the object and a second adjustment parameter corresponding to the resource allocation quota.

[0065] In at least one embodiment of the present application, the electronic device allocates resources to the object based on the second resource allocation information, including: determining a target quota matching the object based on the second adjustment parameter and the resource allocation quota; and allocating resources to the object based on the target quota.

[0066] In some embodiments, if the second adjustment parameter is the adjustment amount, the second adjustment parameter and the resource allocation quota are combined to obtain the target quota. If the second adjustment parameter is the adjustment amplitude, the resource allocation quota is calculated based on the second adjustment parameter to obtain the target quota. The formula for the target quota can be expressed as: ,in, It can indicate the target amount. It can represent the resource allocation quota, may represent a second adjustment parameter.

[0067] The resource allocation method of the embodiments of the present application can be applied to the field of cloud computing. Through the resource allocation method, a target amount of resources (such as computing instances, storage resources, and network bandwidth) can be allocated to an object (such as a computing task or business entity) based on the object's attribute information (such as business type, load demand, and priority). The resource allocation method of the embodiments of the present application can also be applied to loan scenarios. Through the resource allocation method, a target amount of resources can be allocated to an object based on the object's attribute information (such as credit score, income level, historical repayment record, etc.). Practical applications are not limited to this.

[0068] In various embodiments of the present application, after determining the first resource allocation information for an object, the first resource allocation information can be updated based on a control threshold corresponding to a target rule set that matches the attribute information, thereby ensuring that the object's resource quota is more consistent with the object's attribute information and improving the rationality of resource allocation. Furthermore, because the condition tree integrates multiple predefined rule sets, a comprehensive target rule set can be obtained through the condition tree for resource control, further ensuring the rationality of resource allocation.

[0069] like Figure 6 FIG. 1 is a detailed flow chart of a conditional tree construction method provided in an embodiment of the present application. The conditional tree construction method includes steps S601 to S605.

[0070] S601: Acquire multiple rule sets.

[0071] In at least one embodiment of the present application, the preset user can Figure 3The credit limit configuration interface shown in the figure shows multiple rule sets. Each rule set includes at least two sub-rules, each corresponding to a conditional expression. For example, rule set 1 might include the sub-rule "Age is 23-25" or the sub-rule "Deposits are 20,000-30,000 RMB." The conditional expression corresponding to the sub-rule "Age is 23-25" could be "Age > 23 and Age < 25," while the conditional expression corresponding to the sub-rule "Deposits are 20,000-30,000 RMB" could be "Deposits > 20,000 RMB and Age < 30,000 RMB."

[0072] S602: Constructing combination logic corresponding to the multiple rule sets according to the execution priorities of the multiple rule sets, and using the combination logic corresponding to the multiple rule sets as a root node.

[0073] In at least one embodiment of the present application, the combination logic corresponding to the multiple rule sets can be the execution priorities of the multiple rule sets. The electronic device can use the combination logic corresponding to the multiple rule sets as the root node of the condition tree, and the root node can represent the starting node of the condition tree.

[0074] S603: For each rule set, based on the combination logic corresponding to at least two sub-rules in each rule set, construct a first branch node corresponding to the root node.

[0075] In at least one embodiment of the present application, the combination logic corresponding to at least two sub-rules in each rule set may include, but is not limited to, and, or. For example, if rule set 1 includes: sub-rule (age is 23-25 ​​years old) or sub-rule (deposit 20,000-30,000), then the combination logic corresponding to at least two sub-rules in rule set 1 can be expressed as: or. Based on the combination logic corresponding to at least two sub-rules in each rule set, the electronic device can construct the first branch node corresponding to each rule set. For example Figure 7 As shown, the electronic device can construct M1 first branch nodes based on M1 rule sets.

[0076] S604: construct a second branch node based on the conditional expression corresponding to each sub-rule, and construct a child node corresponding to the second branch node based on the operation result of the conditional expression.

[0077] In at least one embodiment of the present application, the electronic device can construct a second branch node corresponding to each sub-rule based on the conditional expression corresponding to each sub-rule. Figure 7 As shown, the electronic device can construct M2 second branch nodes based on the M2 sub-rules in the rule set 2.

[0078] In at least one embodiment of the present application, the operation result of the conditional expression may include: "accept", "reject", "accept" may indicate that the conditional expression is true, and "reject" may indicate that the conditional expression is false. Based on the operation result of the conditional expression, the electronic device may construct a child node corresponding to the second branch node. For example Figure 7 As shown, the electronic device can construct N child nodes based on N operation results of the conditional expression.

[0079] S605 , connecting the root node, the first branch node, the second branch node, and the child nodes through a preset connection relationship to obtain a conditional tree.

[0080] In at least one embodiment of the present application, the preset connection relationship may include: a connection relationship between a root node and a first branch node, a connection relationship between a first branch node and a second branch node, and a connection relationship between a second branch node and a child node. Figure 7 As shown, the root node (execution priority of multiple rule sets) is connected to M1 first branch nodes (combination logic corresponding to at least two sub-rules in each rule set), the first branch node 2 is connected to M2 second branch nodes (conditional expressions corresponding to each sub-rule), and the second branch node 1 is connected to N child nodes (the operation results of the conditional expressions).

[0081] The embodiment of the present application constructs a conditional tree through multiple rule sets, which can reduce the amount of hard-coded code and help reduce the complexity of research and development.

[0082] like Figure 8 FIG. 1 is a flow chart of another resource allocation method provided by an embodiment of the present application. The resource allocation method is applied to electronic devices, for example, Figure 1 The electronic device 100. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0083] S801 , in response to a configuration request of a data source, obtaining a frequency of changes in data in the data source.

[0084] In at least one embodiment of the present application, an electronic device parses a configuration request from a data source, obtains data information contained in the configuration request, and extracts information corresponding to a frequency tag from the data information as a change frequency. This embodiment accurately obtains the change frequency of data in the data source through the configuration request from the data source.

[0085] S802: Determine a monitoring period for the data source based on the change frequency.

[0086] In at least one embodiment of the present application, the monitoring period of the data source is inversely proportional to the change frequency. For example, if the change frequency of data in the data source is f, then the monitoring period of the data source is 1 / f.

[0087] S803: Acquire attribute information of the object from the data source according to the monitoring cycle.

[0088] In at least one embodiment of the present application, the electronic device obtains information corresponding to the identification code of the object from a data source as attribute information according to a monitoring period.

[0089] S804: Detect whether the attribute information of adjacent monitoring periods is the same.

[0090] In at least one embodiment of the present application, if the attribute information of adjacent monitoring periods is the same, step S803 is executed; if the attribute information of adjacent monitoring periods is different, step S805 is executed.

[0091] S805: Determine first resource allocation information of the object according to the attribute information of the object.

[0092] S806: Determine a target rule set that matches the object from the condition tree based on the attribute information.

[0093] S807: Update the first resource allocation information based on the control threshold corresponding to the target rule set to obtain second resource allocation information.

[0094] S808: Allocate resources to the object based on the second resource allocation information.

[0095] The details of steps S805 to S808 can be found above. Figure 2 The detailed description of steps S201 to S204 is not repeated here.

[0096] The embodiment of the present application performs resource allocation operations when the attribute information of adjacent monitoring periods changes, which can avoid excessive consumption of system resources caused by repeated execution of resource allocation operations when the attribute information has not changed, thereby improving the efficiency and stability of system operation.

[0097] like Figure 9 , is a functional module diagram of a resource allocation device provided by an embodiment of the present application. The resource allocation device 91 includes a determination unit 910, an update unit 911, an allocation unit 912, an acquisition unit 913, a construction unit 914, and a connection unit 915. The module / unit referred to in this application refers to a device that can be used by a processor (e.g. Figure 10 The processor 1101 shown in FIG. 1 is obtained and is capable of performing a series of computer-readable instruction segments that are stored in a memory (eg, Figure 101102).

[0098] In one embodiment, the determination unit 910 is used to determine first resource allocation information of the object based on the attribute information of the object; the determination unit 910 is also used to determine a target rule set that matches the object from a condition tree based on the attribute information, and the condition tree is constructed by multiple predefined rule sets; the update unit 911 is used to update the first resource allocation information based on the control threshold corresponding to the target rule set to obtain second resource allocation information; the allocation unit 912 is used to allocate resources to the object based on the second resource allocation information.

[0099] In one embodiment, the determining unit 910 is specifically configured to: discretize the attribute information to obtain discrete information; determine the index corresponding to the discrete information in a preset feature matrix; and determine the first resource allocation information from the preset feature matrix based on the index.

[0100] In one embodiment, the acquisition unit 913 is used to obtain multiple rule sets, each rule set includes at least two sub-rules, and each sub-rule corresponds to a conditional expression; the construction unit 914 is used to construct the combination logic corresponding to the multiple rule sets based on the execution priority of the multiple rule sets, and use the combination logic corresponding to the multiple rule sets as the root node; the construction unit 914 is also used to construct a first branch node corresponding to the root node for each rule set based on the combination logic corresponding to at least two sub-rules in each rule set; the construction unit 914 is also used to construct a second branch node based on the conditional expression corresponding to each sub-rule, and construct a child node corresponding to the second branch node based on the operation result of the conditional expression; the connection unit 915 is used to connect the root node, the first branch node, the second branch node and the child node through a preset connection relationship to obtain a conditional tree.

[0101] In one embodiment, the tree nodes of the conditional tree include branch nodes, which correspond to each rule set. Each rule set includes at least two sub-rules, and each sub-rule corresponds to a preset attribute type. The determination unit 910 is specifically used to: locate the target branch node corresponding to the object in the conditional tree according to the attribute type corresponding to the attribute information; if the attribute information matches the rule set corresponding to the target branch node, determine the rule set corresponding to the target branch node as the target rule set.

[0102] In one embodiment, the control threshold includes a first threshold and a second threshold, the first threshold is less than the second threshold, the first resource allocation information includes the resource allocation amount of the object and the first adjustment parameter corresponding to the resource allocation amount, and the updating unit 911 is specifically used to: if the first adjustment parameter is less than the first threshold, update the first adjustment parameter to the first threshold to obtain the second resource allocation information; if the first adjustment parameter is greater than the second threshold, update the first adjustment parameter to the second threshold to obtain the second resource allocation information.

[0103] In one embodiment, the acquisition unit 913 is further used to obtain the change frequency of data in the data source in response to a configuration request of the data source; the determination unit 910 is further used to determine the monitoring period of the data source based on the change frequency; the acquisition unit 913 is further used to obtain attribute information from the data source according to the monitoring period.

[0104] In various embodiments of the present application, after determining the first resource allocation information for an object, the first resource allocation information can be updated based on a control threshold corresponding to a target rule set that matches the attribute information, thereby ensuring that the object's resource quota is more consistent with the object's attribute information and improving the rationality of resource allocation. Furthermore, because the condition tree integrates multiple predefined rule sets, a comprehensive target rule set can be obtained through the condition tree for resource control, further ensuring the rationality of resource allocation.

[0105] Figure 10 is a structural diagram of an electronic device for implementing a resource allocation method provided in an embodiment of the present application. Optionally, Figure 10 The electronic device 100 is used to perform Figure 2 、 Figure 6 and Figure 8 The method shown.

[0106] The electronic device 100 includes at least one processor 1101 , a memory 1102 , and at least one network interface 1103 .

[0107] The processor 1101 is, for example, a general-purpose central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 1101 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0108] The memory 1102 may be, for example, a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, a random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Optionally, the memory 1102 exists independently and is connected to the processor 1101 via the internal connection 1104. Alternatively, the memory 1102 and the processor 1101 may be integrated together.

[0109] The network interface 1103 uses any transceiver-like device for communicating with other devices or communication networks. For example, the network interface 1103 includes at least one of a wired network interface and a wireless network interface. For example, the wired network interface is an Ethernet interface. For example, the Ethernet interface is an optical interface, an electrical interface, or a combination thereof. For example, the wireless network interface is a wireless local area network (WLAN) interface, a cellular network interface, or a combination thereof.

[0110] In some embodiments, the processor 1101 includes one or more CPUs, such as Figure 10 CPU0 and CPU1 are shown in the figure.

[0111] In some embodiments, the electronic device 100 optionally includes multiple processors, such as Figure 10 1 and 1105. Each of these processors is, for example, a single-CPU or a multi-CPU. A processor herein optionally refers to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0112] In some embodiments, electronic device 100 further includes internal connections 1104. Processor 1101, memory 1102, and at least one network interface 1103 are connected via internal connections 1104. Internal connections 1104 include pathways for transmitting information between these components. Internal connections 1104 may optionally be a single board or bus. Internal connections 1104 may optionally be divided into an address bus, a data bus, a control bus, and the like.

[0113] In some embodiments, the electronic device 100 further includes an input / output interface 1106 , which is connected to the internal connection 1104 .

[0114] Optionally, the processor 1101 implements the method in the above embodiment by reading the program code 1107 stored in the memory 1102, or the processor 1101 implements the method in the above embodiment by internally stored program code. In the case where the processor 1101 implements the method in the above embodiment by reading the program code 1107 stored in the memory 1102, the memory 1102 stores the program code that implements the method provided in the embodiment of the present application.

[0115] For more details on how the processor 1101 implements the above functions, please refer to the descriptions in the previous method embodiments, which will not be repeated here.

[0116] This embodiment further provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the resource allocation method in the above-mentioned embodiment.

[0117] This embodiment further provides a computer program product. When the computer program product is run on an electronic device, the electronic device is caused to execute the above-mentioned related steps to implement the resource allocation method in the above-mentioned embodiment.

[0118] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the resource allocation method in the above-mentioned method embodiments.

[0119] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0120] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0121] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0122] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0123] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0125] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A resource allocation method, characterized in that: include: Determining first resource allocation information of the object according to attribute information of the object; Based on the attribute information, determining a target rule set that matches the object from a condition tree, wherein the condition tree is constructed by a plurality of predefined rule sets; Based on the control threshold corresponding to the target rule set, the first resource allocation information is updated to obtain second resource allocation information; Based on the second resource allocation information, resources are allocated to the object.

2. The resource allocation method according to claim 1, wherein: The determining, according to the attribute information of the object, the first resource allocation information of the object includes: Discretizing the attribute information to obtain discrete information; Determining the index corresponding to the discrete information in a preset feature matrix; Based on the index, the first resource allocation information is determined from the preset feature matrix.

3. The resource allocation method according to claim 1, wherein: The method further comprises: Obtain multiple rule sets, each rule set includes at least two sub-rules, and each sub-rule corresponds to a conditional expression; Constructing combination logic corresponding to the multiple rule sets according to the execution priorities of the multiple rule sets, and using the combination logic corresponding to the multiple rule sets as a root node; For each rule set, constructing a first branch node corresponding to the root node based on the combination logic corresponding to at least two sub-rules in each rule set; Constructing a second branch node based on a conditional expression corresponding to each sub-rule, and constructing a child node corresponding to the second branch node based on a calculation result of the conditional expression; The conditional tree is obtained by connecting the root node, the first branch node, the second branch node, and the child node through a preset connection relationship.

4. The resource allocation method according to claim 1, wherein: The tree node of the condition tree includes a branch node, each branch node corresponds to each rule set, each rule set includes at least two sub-rules, each sub-rule corresponds to a preset attribute type, and determining a target rule set matching the object from the condition tree based on the attribute information includes: Locating a target branch node corresponding to the object in the condition tree according to the attribute type corresponding to the attribute information; If the attribute information matches the rule set corresponding to the target branch node, the rule set corresponding to the target branch node is determined as the target rule set.

5. The resource allocation method according to claim 1, wherein: The control threshold includes a first threshold and a second threshold, the first threshold is less than the second threshold, the first resource allocation information includes a resource allocation quota of the object and a first adjustment parameter corresponding to the resource allocation quota, and the updating of the first resource allocation information based on the control threshold corresponding to the target rule set to obtain the second resource allocation information includes: If the first adjustment parameter is less than the first threshold, updating the first adjustment parameter to the first threshold to obtain the second resource allocation information; If the first adjustment parameter is greater than the second threshold, the first adjustment parameter is updated to the second threshold to obtain the second resource allocation information.

6. The resource allocation method according to claim 1, wherein: The second resource allocation information includes a resource allocation quota of the object and a second adjustment parameter corresponding to the resource allocation quota. Allocating resources to the object based on the second resource allocation information includes: determining a target quota matching the object based on the second adjustment parameter and the resource allocation quota; Based on the target amount, resources are allocated to the object.

7. The resource allocation method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to a configuration request of a data source, obtaining a change frequency of data in the data source; Determining a monitoring period for the data source based on the change frequency; According to the monitoring period, the attribute information is obtained from the data source.

8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the resource allocation method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the resource allocation method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the resource allocation method according to any one of claims 1 to 7 is implemented.