Configuration data processing method and device, equipment, medium and product
By obtaining and processing the data source information of the configuration items, determining the weight of the configuration data and generating new configuration items, the unified and accurate configuration management problems in data center operation and maintenance are solved, and real-time update and accuracy of configuration data are achieved. .
Patent Information
- Application Number
- CN202411153404.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-31
AI Technical Summary
In the operation and maintenance of data centers, the configuration management of decentralized business resource objects and computing resource objects lacks uniformity and accuracy, resulting in untimely update of configuration data and unable to meet the needs of operation and maintenance work.
By acquiring configuration items and their data source information, the first configuration weight and target weight of configuration data are determined, and a new configuration item is generated and stored in the database to ensure the accuracy of configuration data and real-time updates.
It improves the accuracy and consistency of configuration data, realizes real-time update of configuration data in the database, and meets the data support needs of operation and maintenance work.
Smart Images

Figure CN119226286A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, equipment, medium and product for processing configuration data. Background Art
[0002] With the continuous development and widespread application of data center operation and maintenance, many business resource objects, computing resource objects, etc. are scattered and stored in multiple platforms, resulting in a diversified consumption source of configuration management. In order to enhance the accuracy and consistency of the overall resource object configuration and meet the actual needs of operation and maintenance, an efficient configuration data processing method is urgently needed to build a unified and accurate configuration management library to ensure the accuracy and real-time update of configuration data, thereby providing strong data support for operation and maintenance. Summary of the invention
[0003] Embodiments of the present invention provide a method, apparatus, device, medium and product for processing configuration data, which can improve the accuracy of configuration data.
[0004] In a first aspect, an embodiment of the present invention provides a method for processing configuration data, including:
[0005] Acquire at least one configuration item and data source information of each configuration item; wherein the at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data;
[0006] For each configuration item, determining a first configuration weight of each configuration data in the configuration item based on the data source information;
[0007] For each configuration data, determining a target weight of the configuration data based on a first configuration weight in each configuration item;
[0008] A new configuration item is generated based on the target weight of each configuration data, and the new configuration item is stored in a database; wherein each configuration data in the new configuration item carries a target weight.
[0009] In a second aspect, an embodiment of the present invention further provides a device for processing configuration data, the device comprising:
[0010] A configuration item acquisition module, used to acquire at least one configuration item and data source information of each configuration item; wherein the at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data;
[0011] A first configuration weight determination module, configured to determine, for each configuration item, a first configuration weight of each configuration data in the configuration item based on the data source information;
[0012] A target weight determination module, configured to determine, for each configuration data, a target weight of the configuration data based on a first configuration weight in each configuration item;
[0013] A new configuration item generation module is used to generate a new configuration item based on the target weight of each configuration data, and store the new configuration item in a database; wherein each configuration data in the new configuration item carries a target weight.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for processing configuration data as described in any one of the embodiments of the present invention is implemented.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for processing configuration data as described in any one of the embodiments of the present invention.
[0016] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for processing configuration data as described in any one of the embodiments of the present invention.
[0017] The embodiment of the present invention discloses a method, device, equipment, medium and product for processing configuration data, including: obtaining at least one configuration item and data source information of each configuration item; wherein at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data; for each configuration item, determining the first configuration weight of each configuration data in the configuration item based on the data source information; for each configuration data, determining the target weight of the configuration data based on the first configuration weight in each configuration item; generating a new configuration item based on the target weight of each configuration data, and storing the new configuration item in a database; wherein each configuration data in the new configuration item carries the target weight. The above technical scheme specifically considers that the first configuration weight of each configuration data in the configuration item is determined according to the data source information, and the first configuration weight of the configuration data can be accurately determined; at the same time, it also considers that the target weight of the configuration data is determined according to the first configuration weight in each configuration item, and the target weight of the configuration data is accurately determined; finally, a new configuration item is generated according to the target weight of each configuration data, and the new configuration item is stored in the database, and the new configuration item is obtained by processing the configuration data, and the new configuration item is stored in the database, which can ensure that the configuration data in the database is updated in real time. Compared with the prior art, the technical solution provided by this embodiment can accurately determine the first configuration weight and the target weight of the configuration data, thereby improving the accuracy of the configuration data; and at the same time can ensure that the configuration data in the database is updated in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A flowchart of a method for processing configuration data provided by an embodiment of the present invention;
[0020] Figure 2 A flowchart of a method for processing configuration data provided by an embodiment of the present invention;
[0021] Figure 3 A flowchart of a method for processing configuration data provided by an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of the structure of a configuration data processing device provided by an embodiment of the present invention;
[0023] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0025] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. The purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0026] Figure 1A flowchart of a method for processing configuration data provided by an embodiment of the present invention. This embodiment is applicable to the case of processing configuration data. The method can be executed by a configuration data processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc. Specifically, it includes the following steps:
[0027] S110: Obtain at least one configuration item and data source information of each configuration item.
[0028] In this embodiment, the configuration item includes multiple configuration data, and the configuration item can be understood as a configuration group composed of configuration data. The data source information of the configuration item may include a data source name. Among them, at least one configuration item carries the same unique identifier. And for each configuration item, the value corresponding to the same configuration data may be the same or different.
[0029] For example, suppose three configuration items are obtained, and their unique identifiers are pc1. The data source name of the first configuration item pc1 is source 1, and the configuration data are code1, code2, and code3, respectively. The values corresponding to the configuration data are value1, value2, and value3, respectively. The data source name of the second configuration item pc1 is source 1, and the configuration data are code1, code2, and code3, respectively. The values corresponding to the configuration data are value1, value4, and value3, respectively. The data source name of the third configuration item pc1 is source 2, and the configuration data are code1, code2, and code3, respectively. The values corresponding to the configuration data are value1, value2, and value5, respectively. It can be seen that the values corresponding to the same configuration data for these three configuration items may be the same or different. For example, for the configuration data code1, the corresponding value is value1, and for the configuration data code2, the corresponding values are value2, value4, and value2, respectively.
[0030] Furthermore, after obtaining at least one configuration item and data source information of each configuration item, the following operations may be performed: standardizing the configuration data in at least one configuration item; and adding the data source information to the corresponding configuration item in the form of a label.
[0031] Optionally, standardizing the configuration data can be understood as processing the configuration data into unified structured data. In addition, the data source name in the data source information is added as a label to the corresponding configuration item. In this embodiment, standardizing the configuration data can eliminate the differences between the configuration data and ensure the structural consistency of the configuration data; and adding the data source information as a label to the corresponding configuration item can clarify the data source of the configuration item and ensure the information integrity of the configuration item.
[0032] Exemplarily, the above three configuration items can be expressed as:
[0033] 1) Source 1: Configuration item pc1{code1: value1; code2: value2; code3: value3};
[0034] 2) Source 1: Configuration item pc1{code1: value1; code2: value4; code3: value3};
[0035] 3) Source 2: Configuration item pc1{code1: value1; code2: value2; code3: value5}.
[0036] S120: For each configuration item, determine a first configuration weight of each configuration data in the configuration item based on the data source information.
[0037] In this embodiment, the types of configuration data may include configuration data and relational data. Configuration data may be understood as data that has no relationship with other systems, such as memory, CPU, host name, business attributes, etc.; relational data may be understood as configuration data that belongs to a certain system and has a relationship with other configuration data.
[0038] Continuing with the above description, the data source information may further include: the priority of configuration data is higher than that of relational data, or the priority of configuration data is lower than that of relational data.
[0039] In this embodiment, for each configuration item, the first configuration weight of each configuration data in the configuration item is determined based on the data source information, and one implementation method can be described as: determining a weight rule according to the data source information; determining the first configuration weight of each configuration data in the configuration item based on the weight rule.
[0040] The weight rule may be determined according to the priority of the configuration data and the relational data, and ensures that the sum of the first configuration weights of the configuration data in each configuration item is 1.
[0041] In this embodiment, the weight rule is determined according to the priority of configuration data and relational data, which improves the accuracy of the weight rule, and the first configuration weight of each configuration data in the configuration item is determined based on the weight rule, which can accurately determine the first configuration weight of the configuration data.
[0042] S130: For each configuration data, determine a target weight of the configuration data based on the first configuration weight in each configuration item.
[0043] In this embodiment, for determining the target weight of the configuration data based on the first configuration weight in each configuration item, one implementation method can be described as: determining the maximum value of the first configuration weight in each configuration item as the target weight of the configuration data. In addition, determining the data source information corresponding to the target weight as the data source information of the configuration data, and determining the value of the configuration data corresponding to the target weight as the value of the configuration data.
[0044] Exemplarily, based on the above three configuration items, it is assumed that the first configuration weights of the configuration data code1, code2, and code3 in the first configuration item are 0.4, 0.4, and 0.2 respectively; the first configuration weights of the configuration data code1, code2, and code3 in the second configuration item are 0.4, 0.5, and 0.1 respectively; and the first configuration weights of the configuration data code1, code2, and code3 in the third configuration item are 0.3, 0.4, and 0.3 respectively. Then, for each configuration data code1, code2, and code3, the maximum value of the first configuration weight in each configuration item is determined as the target weight of the configuration data, and the data source information corresponding to the target weight is determined as the data source information of the configuration data, and the value of the configuration data corresponding to the target weight is determined as the value of the configuration data.
[0045] Continuing with the above description, for the configuration data code1, 0.4 is determined as the target weight of the configuration data code1, the data source information is source 1, and the value of code1 is value1; for the configuration data code2, 0.5 is determined as the target weight of the configuration data code2, the data source information is source 1, and the value of code2 is value4; for the configuration data code3, 0.3 is determined as the target weight of the configuration data code3, the data source information is source 2, and the value of code3 is value5.
[0046] In this embodiment, the maximum value of the first configuration weight in each configuration item is used as the target weight of the configuration data, and the data source information corresponding to the target weight is used as the data source information of the configuration data, so that the target weight and data source information of the configuration data can be accurately determined.
[0047] S140: Generate new configuration items based on the target weights of the configuration data, and store the new configuration items in a database.
[0048] Among them, each configuration data in the new configuration item carries a target weight.
[0049] In this embodiment, for generating new configuration items based on the target weights of each configuration data and storing the new configuration items in a database, one implementation method can be described as: generating new configuration items based on the target weights of each configuration data and data source information, and storing the new configuration items in a database. Each configuration data in the new configuration item also carries data source information.
[0050] Exemplarily, a new configuration item is generated according to the target weight and data source information of each configuration data code1, code2, and code3. The new configuration item can be expressed as: new configuration item pc1{code1: value1, 0.4, source 1; code2: value4, 0.5, source 1; code3: value5, 0.3, source 2}, and the new configuration item pc1 is stored in the database.
[0051] Following the above description, new configuration items are generated according to the target weights and data source information of each configuration data, and the new configuration items are stored in the database, thereby ensuring the real-time update of the configuration data in the database.
[0052] The technical solution of this embodiment obtains at least one configuration item and the data source information of each configuration item; for each configuration item, the first configuration weight of each configuration data in the configuration item is determined based on the data source information; for each configuration data, the target weight of the configuration data is determined based on the first configuration weight in each configuration item; a new configuration item is generated based on the target weight of each configuration data, and the new configuration item is stored in a database. The above technical solution specifically considers that the first configuration weight of each configuration data in the configuration item is determined according to the data source information, and the first configuration weight of the configuration data can be accurately determined; at the same time, it also considers that the target weight of the configuration data is determined according to the first configuration weight in each configuration item, and the target weight of the configuration data is accurately determined; finally, a new configuration item is generated according to the target weight of each configuration data, and the new configuration item is stored in the database, and the new configuration item is obtained by processing the configuration data, and the new configuration item is stored in the database, which can ensure that the configuration data in the database is updated in real time. The technical solution provided by this embodiment can accurately determine the first configuration weight and target weight of the configuration data, thereby improving the accuracy of the configuration data; at the same time, it can ensure that the configuration data in the database is updated in real time.
[0053] Figure 2A flowchart of a method for processing configuration data provided by an embodiment of the present invention. Based on the above embodiment, the method includes the following steps:
[0054] S210: Obtain at least one configuration item and data source information of each configuration item.
[0055] S220: For each configuration item, determine a weight rule according to data source information.
[0056] The data source information includes: the priority of configuration data is higher than that of relational data, or the priority of configuration data is lower than that of relational data.
[0057] In this embodiment, for determining the weight rule based on the data source information, one implementation method can be described as: if the data source information is that the priority of configuration data is higher than that of relational data, then the determined weight rule is that the weight of the configuration data is greater than the weight of the relational data; if the data source information is that the priority of configuration data is lower than that of relational data, then the determined weight rule is that the weight of the configuration data is less than the weight of the relational data.
[0058] Furthermore, for each configuration item, there is corresponding data source information. Assuming there are three configuration items, their corresponding data source information is: the priority of configuration data is higher than that of relational data, the priority of configuration data is lower than that of relational data, and the priority of configuration data is lower than that of relational data. Then the weight rules corresponding to these three configuration items are: the weight of configuration data is greater than the weight of relational data, the weight of configuration data is less than the weight of relational data, and the weight of configuration data is less than the weight of relational data.
[0059] Following the above description, the weight rule is determined according to the priority of the configuration data and the relational data, thereby improving the accuracy of the weight rule.
[0060] S230: Determine a first configuration weight of each configuration data in the configuration item based on a weight rule.
[0061] Exemplarily, on the basis of the weight rules corresponding to the above three configuration items, for the first configuration item, the first configuration weight of each configuration data in the configuration item is set, and the condition that the weight of the configuration data is greater than the weight of the relational data is satisfied; for the second configuration item, the first configuration weight of each configuration data in the configuration item is set, and the condition that the weight of the configuration data is less than the weight of the relational data is satisfied; for the third configuration item, the first configuration weight of each configuration data in the configuration item is set, and the condition that the weight of the configuration data is less than the weight of the relational data is satisfied.
[0062] Furthermore, the method of setting the first configuration weight of each configuration data in the configuration item may be randomly set, but it needs to satisfy the weight rule.
[0063] S240: Determine whether the configuration item has been stored in the database based on the unique identifier.
[0064] In this embodiment, each configuration item carries a unique identifier, and can be searched in the database based on the unique identifier of the configuration item. If the configuration item is found, it indicates that the configuration item has been stored in the database. If the configuration item is not found, it indicates that the configuration item is not stored in the database.
[0065] S250: If the configuration items have been stored in the database, for each configuration data, determine a target weight of the configuration data based on the acquired first configuration weights in each configuration item and the stored second configuration weights in the configuration items.
[0066] The second configuration weight in the stored configuration item may be understood as the second configuration weight of the configuration data in the configuration item stored in the database.
[0067] In this embodiment, for determining the target weight of the configuration data based on the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item, one implementation method can be described as: determining the maximum value of the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item as the target weight of the configuration data.
[0068] Exemplarily, assume that there are three acquired configuration items pc1, and based on the above embodiment, the first configuration weights of each configuration data code1, code2, code3 in the first configuration item are 0.4, 0.4, 0.2 respectively; the first configuration weights of each configuration data code1, code2, code3 in the second configuration item are 0.4, 0.5, 0.1 respectively; the first configuration weights of each configuration data code1, code2, code3 in the third configuration item are 0.3, 0.4, 0.3 respectively. Assume that the stored configuration item is pc1{code1: value2, 0.5, source 1; code2: value4, 0.4, source 2; code3: value5, 0.1, source 2}, wherein the second configuration weights in the stored configuration items are 0.5, 0.4, 0.1 respectively.
[0069] Continuing with the above description, for the configuration data code1, 0.5 is determined as the target weight of the configuration data code1, the data source information is source 1, and the value of code1 is value2; for the configuration data code2, 0.5 is determined as the target weight of the configuration data code2, the data source information is source 1, and the value of code2 is value4; for the configuration data code3, 0.3 is determined as the target weight of the configuration data code3, the data source information is source 2, and the value of code3 is value5.
[0070] In this embodiment, when the configuration item has been stored in the database, the maximum value of the configuration weight in the acquired configuration item and the configuration weight in the stored configuration item is used as the target weight of the configuration data, thereby ensuring the accuracy of the target weight of the configuration data.
[0071] S260: Generate new configuration items based on the target weights of the configuration data, and replace the configuration items originally stored in the database with the new configuration items.
[0072] In this embodiment, a new configuration item is generated based on the target weight and data source information of each configuration data. Exemplarily, the new configuration item can be expressed as: new configuration item pc1{code1: value2, 0.5, source 1; code2: value4, 0.5, source 1; code3: value5, 0.3, source 2}, and the configuration item pc1{code1: value2, 0.5, source 1; code2: value4, 0.4, source 2; code3: value5, 0.1, source 2} originally stored in the database is replaced with the above new configuration item pc1.
[0073] Optionally, after replacing the configuration items originally stored in the database with new configuration items, the following steps may also be included:
[0074] a1) In response to a configuration item query operation triggered by a user, display a new configuration item;
[0075] Exemplarily, when a user queries the configuration item pc1 from the database, the new configuration item pc1 will be intuitively displayed, which is convenient for the user to view and perform subsequent operations.
[0076] b1) in response to a user's adjustment operation on a target weight of at least one configuration data in a new configuration item, obtaining an adjusted configuration item;
[0077] In this embodiment, the user may think that the target weight of the configuration data is not the optimal weight value, so the target weight is adjusted. For example, the target weight 0.3 of the configuration data code3 in the new configuration item pc1{code1: value2, 0.5, source 1; code2: value4, 0.5, source 1; code3: value5, 0.3, source 2} is adjusted to 0.4, thereby obtaining the adjusted configuration item pc1{code1: value2, 0.5, source 1; code2: value4, 0.5, source 1; code3: value5, 0.4, source 2}.
[0078] c1) Replace the new configuration items in the database with the adjusted configuration items.
[0079] In accordance with the above description, this solution can quickly respond to the user's configuration item query operation and the target weight adjustment operation, and replace the new configuration item in the database with the adjusted configuration item, thereby ensuring the real-time update of the configuration data in the database.
[0080] The technical solution of this embodiment is to obtain at least one configuration item and data source information of each configuration item; for each configuration item, determine a weight rule according to the data source information; determine a first configuration weight of each configuration data in the configuration item based on the weight rule; determine whether the configuration item has been stored in the database based on the unique identifier; if the configuration item has been stored in the database, then for each configuration data, determine a target weight of the configuration data based on the first configuration weight in each obtained configuration item and the second configuration weight in the stored configuration item; generate a new configuration item based on the target weight of each configuration data, and replace the configuration item originally stored in the database with the new configuration item. The above technical solution determines the weight rule according to the data source information, and determines the first configuration weight of each configuration data in the configuration item based on the weight rule, which can accurately determine the first configuration weight of the configuration data; then, it determines whether the configuration item has been stored in the database according to the unique identifier, which can quickly and accurately determine whether the configuration item has been stored in the database; at the same time, the target weight of the configuration data is determined according to the first configuration weight in each configuration item obtained and the second configuration weight in the stored configuration item, which can accurately determine the target weight of the configuration data; finally, a new configuration item is generated based on the target weight of each configuration data, and the configuration item originally stored in the database is replaced with the new configuration item, thereby ensuring the real-time update of the configuration data in the database. The technical solution provided by this embodiment can quickly and accurately determine whether the configuration item has been stored in the database, and can accurately determine the first configuration weight and target weight of the configuration data, thereby improving the accuracy of the configuration data and ensuring the real-time update of the configuration data in the database.
[0081] Figure 3A flowchart of a method for processing configuration data provided by an embodiment of the present invention. Based on the above embodiment, the method includes the following steps:
[0082] S310: Obtain at least one configuration item and data source information of each configuration item.
[0083] S320: Standardize the configuration data in at least one configuration item, and add the data source information to the corresponding configuration item in the form of a label.
[0084] S330. If the data source information indicates that the priority of configuration data is higher than that of relational data, the determined weight rule is that the weight of configuration data is greater than the weight of relational data; if the data source information indicates that the priority of configuration data is lower than that of relational data, the determined weight rule is that the weight of configuration data is less than the weight of relational data.
[0085] S340: Determine a first configuration weight of each configuration data in the configuration item based on a weight rule.
[0086] S350: Determine whether the configuration item has been stored in the database based on the unique identifier.
[0087] S360. If the configuration item has been stored in the database, then for each configuration data, the maximum value of the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item is determined as the target weight of the configuration data, and a new configuration item is generated based on the target weight of each configuration data and the data source information, and the configuration item originally stored in the database is replaced by the new configuration item.
[0088] S370. If the configuration item is not stored in the database, then for each configuration data, the maximum value of the first configuration weight in each configuration item is determined as the target weight of the configuration data, and the data source information corresponding to the target weight is determined as the data source information of the configuration data. A new configuration item is generated based on the target weight and data source information of each configuration data, and the new configuration item is stored in the database.
[0089] S380: In response to a configuration item query operation triggered by the user, display a new configuration item.
[0090] S390: In response to the user's adjustment operation on the target weight of at least one configuration data in the new configuration item, an adjusted configuration item is obtained, and the new configuration item in the database is replaced with the adjusted configuration item.
[0091] The technical solution of this embodiment can quickly and accurately determine whether the configuration item has been stored in the database, and can accurately determine the first configuration weight and target weight of the configuration data, thereby improving the accuracy of the configuration data and ensuring real-time updating of the configuration data in the database.
[0092] Figure 4 A schematic diagram of a configuration data processing device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device comprises:
[0093] The configuration item acquisition module 410 is used to acquire at least one configuration item and data source information of each configuration item; wherein the at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data;
[0094] A first configuration weight determination module 420, configured to determine, for each configuration item, a first configuration weight of each configuration data in the configuration item based on the data source information;
[0095] A target weight determination module 430 is used to determine, for each configuration data, a target weight of the configuration data based on the first configuration weight in each configuration item;
[0096] The new configuration item generation module 440 is used to generate a new configuration item based on the target weight of each configuration data, and store the new configuration item in a database; wherein each configuration data in the new configuration item carries a target weight.
[0097] Optionally, the device further includes: a configuration item processing module, configured to:
[0098] Performing standardization processing on the configuration data in the at least one configuration item respectively;
[0099] The data source information is added to the corresponding configuration item in the form of a tag.
[0100] Optionally, the types of the configuration data include configuration data and relational data; the data source information includes: the priority of the configuration data is higher than that of the relational data, or the priority of the configuration data is lower than that of the relational data.
[0101] Optionally, the first configuration weight determination module 420 may specifically include:
[0102] A weight rule determining unit, configured to determine a weight rule according to the data source information;
[0103] The first configuration weight determination unit is used to determine a first configuration weight of each configuration data in the configuration item based on the weight rule.
[0104] Optionally, the weight rule determination unit may be specifically used to:
[0105] If the data source information is that the priority of configuration data is higher than that of relational data, the weight rule determined is that the weight of configuration data is greater than the weight of relational data;
[0106] If the data source information indicates that the priority of configuration data is lower than that of relational data, the weight rule determined is that the weight of configuration data is less than that of relational data.
[0107] Optionally, the target weight determination module 430 may be specifically used to:
[0108] The maximum value of the first configuration weights in each configuration item is determined as the target weight of the configuration data.
[0109] Optionally, the target weight determination module 430 may be further configured to:
[0110] The data source information corresponding to the target weight is determined as the data source information of the configuration data.
[0111] Optionally, the new configuration item generating module 440 may be specifically used for:
[0112] A new configuration item is generated based on the target weight and data source information of each of the configuration data, and the new configuration item is stored in a database; wherein each configuration data in the new configuration item also carries data source information.
[0113] Optionally, the target weight determination module 430 may specifically include:
[0114] a configuration item determination unit, configured to determine whether the configuration item has been stored in a database based on the unique identifier;
[0115] a target weight determination unit, configured to determine, for each configuration data, a target weight of the configuration data based on the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item if the configuration item has been stored in the database;
[0116] Accordingly, the new configuration item generation module 440 can be used to:
[0117] The configuration item originally stored in the database is replaced with the new configuration item.
[0118] Optionally, the target weight determination unit may be specifically used to:
[0119] A maximum value of the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item is determined as the target weight of the configuration data.
[0120] Optionally, the device further includes:
[0121] A new configuration item display module, used to display the new configuration item in response to a configuration item query operation triggered by a user;
[0122] a configuration item adjustment module, configured to obtain an adjusted configuration item in response to a user's adjustment operation on a target weight of at least one configuration data in the new configuration item;
[0123] The configuration item replacement module is used to replace the new configuration item in the database with the adjusted configuration item.
[0124] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.
[0125] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0126] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0127] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0128] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a method for processing configuration data.
[0129] In some embodiments, the method for processing configuration data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for processing configuration data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for processing configuration data in any other appropriate manner (e.g., by means of firmware).
[0130] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0131] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0132] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0133] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the 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, voice input, or tactile input).
[0134] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0135] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0136] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the configuration data processing method provided in any embodiment of the present application.
[0137] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0138] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for processing configuration data, characterized in that: include: Acquire at least one configuration item and data source information of each configuration item; wherein the at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data; For each configuration item, determining a first configuration weight of each configuration data in the configuration item based on the data source information; For each configuration data, determining a target weight of the configuration data based on a first configuration weight in each configuration item; A new configuration item is generated based on the target weight of each configuration data, and the new configuration item is stored in a database; wherein each configuration data in the new configuration item carries a target weight.
2. The method according to claim 1, characterized in that After obtaining at least one configuration item and data source information of each configuration item, the method further includes: performing standardization processing on the configuration data in the at least one configuration item respectively; The data source information is added to the corresponding configuration item in the form of a tag.
3. The method according to claim 1, characterized in that The types of the configuration data include configuration data and relational data; the data source information includes: the priority of the configuration data is higher than that of the relational data, or the priority of the configuration data is lower than that of the relational data.
4. The method according to claim 3, characterized in that Determining a first configuration weight of each configuration data in the configuration item based on the data source information includes: Determine a weight rule according to the data source information; A first configuration weight of each configuration data in the configuration item is determined based on the weight rule.
5. The method according to claim 4, characterized in that Determining a weight rule according to the data source information includes: If the data source information is that the priority of configuration data is higher than that of relational data, the weight rule determined is that the weight of configuration data is greater than the weight of relational data; If the data source information indicates that the priority of configuration data is lower than that of relational data, the weight rule determined is that the weight of configuration data is less than that of relational data.
6. The method according to claim 1, characterized in that Determining a target weight of the configuration data based on a first configuration weight in each configuration item includes: The maximum value of the first configuration weights in each configuration item is determined as the target weight of the configuration data.
7. The method according to claim 1, characterized in that Determining a target weight of the configuration data based on a first configuration weight in each configuration item includes: The data source information corresponding to the target weight is determined as the data source information of the configuration data.
8. The method according to claim 7, characterized in that Generating new configuration items based on the target weights of the configuration data, and storing the new configuration items in a database, including: A new configuration item is generated based on the target weight and data source information of each of the configuration data, and the new configuration item is stored in a database; wherein each configuration data in the new configuration item also carries data source information.
9. The method according to claim 1, characterized in that: For each configuration data, determining a target weight of the configuration data based on a first configuration weight in each configuration item includes: Determining whether the configuration item has been stored in a database based on the unique identifier; If the configuration items are already stored in the database, for each configuration data, determining a target weight of the configuration data based on the first configuration weights in the acquired configuration items and the second configuration weights in the stored configuration items; Accordingly, the new configuration item is stored in the database, including: The configuration item originally stored in the database is replaced with the new configuration item.
10. The method according to claim 9, characterized in that Determining a target weight of the configuration data based on the first configuration weights in the acquired configuration items and the second configuration weights in the stored configuration items includes: A maximum value of the first configuration weight in each acquired configuration item and the second configuration weight in the stored configuration item is determined as the target weight of the configuration data.
11. The method according to claim 1, characterized in that: After storing the new configuration item in the database, the method further includes: In response to a configuration item query operation triggered by a user, displaying the new configuration item; In response to a user's adjustment operation on a target weight of at least one configuration data in the new configuration item, obtaining an adjusted configuration item; The new configuration item in the database is replaced by the adjusted configuration item.
12. A configuration data processing device, characterized in that: include: A configuration item acquisition module, used to acquire at least one configuration item and data source information of each configuration item; wherein the at least one configuration item carries the same unique identifier, and the configuration item includes multiple configuration data; A first configuration weight determination module, configured to determine, for each configuration item, a first configuration weight of each configuration data in the configuration item based on the data source information; A target weight determination module, configured to determine, for each configuration data, a target weight of the configuration data based on a first configuration weight in each configuration item; A new configuration item generation module is used to generate a new configuration item based on the target weight of each configuration data, and store the new configuration item in a database; wherein each configuration data in the new configuration item carries a target weight.
13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the configuration data processing method according to any one of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for processing configuration data as described in any one of claims 1 to 11 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the configuration data processing method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Weighted determination in configuration management systems
CN101410801A
Fusion method and device of aviation multi-source data, electronic equipment and storage medium
CN116089907A
Weighted Determination in Configuration Management Systems
US20070239700A1
Generating a trust factor for data in non-relational or relational databases
US20180060370A1
