Target object search method and server cluster operation and maintenance method
Generating target logical expressions by customizing logical relationships solves the problem of inflexible selection of cluster logical relationships, achieving more flexible cluster search and operation, and improving user experience.
Patent Information
- Application Number
- CN202010335011.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-24
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2040-04-24
AI Technical Summary
In the prior art, the selection of cluster logical relationships is not flexible enough, and the user cannot independently select the logical relationship between tags, which reduces the user experience.
It provides a search method for target objects. By detecting the trigger operation of options, obtaining target options and generating target logical expressions based on user-defined target logical relationship information, thereby searching out target objects that conform to logical expressions from multiple objects, supporting a combination of logic and, or, non-relationships.
It realizes a flexible combination of logical relationships, improves user experience, and can filter and operate clusters more accurately to meet complex search needs.
Smart Images

Figure CN113553478B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to a method, apparatus, electronic device, and storage device for searching a target object. The present application also relates to a method for searching a target cluster and a method for operating and maintaining a server cluster. Background Art
[0002] Users can perform batch service upgrades on target clusters by filtering by service templates and versions. Due to the large number of clusters, which can reach hundreds or even thousands, clusters can be filtered by tag filtering to facilitate users to quickly filter out target clusters. When filtering tags, there are multiple selection requirements for logical relationships between tag items. For example, select clusters that "simultaneously" contain tag A and tag B; or select clusters that contain tag A or tag B; or select clusters that contain tag A and tag B and remove tag C (for example, a cluster that contains both tianji service and pangu service and whose operating system is not 5U). Filter clusters according to the preset logical relationships and select the corresponding cluster to complete the upgrade.
[0003] The selection of logical relationships in the existing technology has some shortcomings: it is not flexible enough and only supports a unique logical relationship, such as all "and" or all "not". Users cannot independently select the logical relationship between tags, which reduces the user experience.
[0004] In summary, the existing technology has the problem that the selection of logical relationships is not flexible enough. Summary of the Invention
[0005] The present application provides a method, apparatus, electronic device and storage device for searching a target object, which solves the problem of insufficient flexibility in selecting logical relationships in the prior art.
[0006] This application provides a method for searching a target object, comprising:
[0007] Detecting a trigger operation for an option; wherein the option includes label information of an object;
[0008] Obtaining a target option according to the trigger operation on the option;
[0009] According to the target options and the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options and the target logical relationship information, and the target logical relationship information is user-defined target logical relationship information;
[0010] According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0011] Optionally, the target logical relationship information includes at least one of the following:
[0012] Logical and relation information, logical or relation information, logical non-relation information.
[0013] Optionally, also include:
[0014] Displays a selection panel containing options;
[0015] Detecting a trigger operation for turning on a mode for inputting a logical expression in a logical expression input box;
[0016] According to the trigger operation, a mode for inputting a logical expression in the logical expression input box is turned on.
[0017] Optionally, the method further includes: displaying the target logical expression in a logical expression input box.
[0018] Optionally, displaying the target logical expression in a logical expression input box includes:
[0019] Displaying the logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box;
[0020] Obtain target logical relationship information between target options;
[0021] The default logical relationship information between the target options is modified to the target logical relationship information between the target options.
[0022] Optionally, the logical expression containing the target options and the default logical relationship between the target options is displayed in the logical expression input box, including:
[0023] Detect triggering actions for selecting target options;
[0024] According to the trigger operation for selecting the target option, the target option is displayed in the logical expression input box;
[0025] When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is displayed in front of the target option.
[0026] Optionally, also include:
[0027] Detect the triggering action for deleting the target option in the logical expression input box;
[0028] According to the trigger operation for the target option in the delete logic expression input box, the target option and the logical relationship information corresponding to the target option are deleted.
[0029] Optionally, displaying the target logical expression in a logical expression input box includes:
[0030] Get the sub-logical expression entered through the interactive panel;
[0031] Detecting a trigger operation for displaying a target logical expression in a logical expression input box; the target logical expression is composed of at least one sub-logical expression;
[0032] According to a trigger operation for displaying the target logical expression in the logical expression input box, the sub-logical expressions are combined into a target logical expression, and the target logical expression is displayed in the logical expression input box.
[0033] Optionally, when there are multiple sub-logical expressions, obtaining the sub-logical expressions input through the interactive panel includes:
[0034] A plurality of sub-logical expressions input into the sub-logical expression input box through the interactive panel are obtained, wherein each sub-logical expression input box corresponds to a sub-logical expression.
[0035] Optionally, also include:
[0036] A preset number of sub-logical expression input boxes are displayed on the interactive panel.
[0037] Optionally, also include:
[0038] Detect the trigger operation for adding a sub-logical expression input box;
[0039] According to the trigger operation of adding a sub-logical expression input box, a sub-logical expression input box is added to the interaction panel.
[0040] The present application also provides a target object search device, comprising:
[0041] A trigger operation detection unit, configured to detect a trigger operation on an option; wherein the option includes label information of an object;
[0042] Obtaining a target option according to the trigger operation on the option;
[0043] A target logic expression obtaining unit is configured to obtain a target logic expression based on the target logic relationship information between the target options; the target logic expression includes the target logic relationship information between the target options, and the target logic relationship information is user-defined target logic relationship information;
[0044] The target object search unit is used to search for a target object that meets the target logical expression from multiple objects according to the target logical expression.
[0045] The present application also provides an electronic device, comprising:
[0046] processor; and
[0047] The memory is used to store a program of a method for searching a target object. After the device is powered on and the program of the method for searching a target object of the terminal device is run by the processor, the following steps are performed:
[0048] Detecting a trigger operation for an option; wherein the option includes label information of an object;
[0049] Obtaining a target option according to the trigger operation on the option;
[0050] According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information;
[0051] According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0052] The present application also provides a storage device storing a program of a method for searching a target object, wherein the program is executed by a processor to perform the following steps:
[0053] Detecting a trigger operation for an option; wherein the option includes label information of an object;
[0054] Obtaining a target option according to the trigger operation on the option;
[0055] According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information;
[0056] According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0057] This application also provides a target cluster search method, including:
[0058] Detect trigger operations on cluster tag information;
[0059] Obtaining target label information according to the triggering operation on the label information of the cluster;
[0060] Obtaining a target logical expression based on the target tag information and the target logical relationship information between the target tag information; the target logical expression includes the target logical relationship information between the target tag information and the target tag information, and the target logical relationship information is user-defined target logical relationship information;
[0061] According to the target logical expression, a target cluster that meets the target logical expression is searched from multiple clusters.
[0062] This application provides an operation and maintenance method for a server cluster, including:
[0063] Detecting a triggering operation for tag information of a server cluster; wherein the triggering operation for the tag information is determined based on environmental information of the target server cluster;
[0064] Obtaining target tag information according to the triggering operation on the tag information of the server cluster;
[0065] Obtaining a target logical expression based on the target tag information and the target logical relationship information between the target tag information; the target logical expression includes the target logical relationship information between the target tag information and the target tag information, and the target logical relationship information is user-defined target logical relationship information;
[0066] According to the target logical expression, searching for a target server cluster that meets the target logical expression from multiple server clusters;
[0067] Send an instruction to execute a specified operation and maintenance operation to the target server cluster.
[0068] Compared with the prior art, this application has the following advantages:
[0069] The present application provides a method for searching a target object, which obtains a target logical expression based on target options and target logical relationship information between target options; the target logical expression includes target options and target logical relationship information between target options, and the target logical relationship information is user-defined target logical relationship information; according to the target logical expression, a target object that meets the target logical expression is searched from multiple objects. The target object search method provided by the present application, the target logical relationship information is user-defined target logical relationship information, so the target logical relationship information not only contains a unique "logical and relationship" or "logical or relationship", but also can contain a combination of "logical and relationship" and "logical or relationship", as well as "logical negation relationship". Compared with the prior art, the logical relationship of the data combination is more flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1a This is a schematic diagram of an application scenario embodiment of a target object search method provided in this application.
[0071] Figure 1 This is a flowchart of a target object search method provided in the first embodiment of the present application.
[0072] Figure 2 This is a schematic diagram of a selection panel after selecting a target option provided in the first embodiment of the present application.
[0073] Figure 3 This is a schematic diagram of a mode for enabling logical expression input in a logical expression input box provided by the first embodiment of the present application.
[0074] Figure 4 This is a schematic diagram showing the logical relationship between target options provided by the prior art and the separate display of the target options.
[0075] Figure 5 This is a schematic diagram of displaying a target logical expression in a logical expression input box provided by the first embodiment of the present application.
[0076] Figure 6 This is a schematic diagram provided by the first embodiment of the present application for displaying a logical expression containing "logical negation" in a logical expression input box.
[0077] Figure 7 This is a schematic diagram of automatically displaying default logical relationship information in front of a target option, provided by the first embodiment of the present application.
[0078] Figure 8 This is a schematic diagram of deleting the target option and the logical relationship information corresponding to the target option as a whole, provided by the first embodiment of the present application.
[0079] Figure 9 This is a schematic diagram of adding a sub-logical relationship expression input box on the exchange panel provided by the first embodiment of the present application.
[0080] Figure 10 This is a schematic diagram provided by the first embodiment of the present application for directly displaying a logical expression in a logical expression input box.
[0081] Figure 11 This is a schematic diagram of a method of inputting sub-logical expressions through an interactive panel provided in the first embodiment of the present application.
[0082] Figure 12 This is a schematic diagram of a target object search device provided in the second embodiment of the present application. DETAILED DESCRIPTION
[0083] The following description sets forth numerous specific details to facilitate a thorough understanding of the present invention. However, the present invention can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without departing from the scope of the present invention. Therefore, the present invention is not limited to the specific implementations disclosed below.
[0084] In order to enable those skilled in the art to better understand the present application, a specific application scenario embodiment of the present application is first described in detail. Figure 1a As shown in FIG, it is a schematic diagram of an embodiment of an application scenario of a target object search method provided by this application. Figure 1a Including server cluster 109-1 and server cluster 109-n; Figure 1a The system also includes a cluster management server 100 for managing the cluster; Figure 1a The cluster user 108 - 1 and the cluster user 108 - n are also included for initiating management instructions.
[0085] For example, in Figure 1a In the example, cluster user 108 - 1 desires to perform a batch service upgrade on a target server cluster and the environment information of the target server cluster, for example, specifying a service version as a lower first version.
[0086] During the specific implementation process, cluster user 108-1 can use client application 107-1 on client device 106-1 to send a search instruction for the target cluster to cluster management server 109 via network 105. For example, if there are a large number of cluster users, up to hundreds or even thousands, in order to facilitate users to quickly filter out the target cluster, the target cluster can be searched for through option filtering operations to complete the upgrade. After receiving the search instruction, cluster management server 100 first detects the trigger operation for the option through a trigger operation detection unit; wherein the option includes the label information of the object; then, through the target option acquisition unit, based on the trigger operation for the option, the target option is obtained; then, through the target logical expression acquisition unit, it is used to obtain a target logical expression based on the target logical relationship information between the target option and the target option; the target logical expression includes the target logical relationship information between the target option and the target option, and the target logical relationship information is user-defined target logical relationship information; finally, through the target object search unit, based on the target logical expression, the target object that meets the target logical expression, i.e., the target cluster, is searched from multiple objects. After obtaining the target cluster, the cluster management server 100 sends a designated service upgrade instruction to the target cluster via the network 105 ; after receiving the upgrade instruction, the target cluster upgrades the designated service of the target cluster. After the upgrade is completed, the version of the designated service is a higher second version.
[0087] The first embodiment of the present application provides a method for searching a target object. Figure 1 Provide explanation.
[0088] like Figure 1 As shown, in step S101, a trigger operation for an option is detected; wherein the option includes label information of an object.
[0089] like Figure 2 As shown, for the triggering operation of the option, the user can click the selection box before option C. The above clicking operation of the user is the triggering operation for the option.
[0090] like Figure 1 As shown, in step S102, the target option is obtained according to the triggering operation on the option.
[0091] The target option refers to the tag information used when searching for the target object.
[0092] like Figure 2 If the user clicks the selection box before option C and the selection box before option D, the target options obtained are option C and option D.
[0093] like Figure 1 As shown, in step S103, a target logical expression is obtained based on the target options and the target logical relationship information between the target options; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information.
[0094] The target logical relationship information includes at least one of the following:
[0095] Logical and relation information, logical or relation information, logical non-relation information.
[0096] Since the target logical relationship information is user-defined target logical relationship information, the target logical relationship information not only contains a unique "logical and relationship" or "logical or relationship", but can also contain a combination of "logical and relationship" and "logical or relationship", as well as "logical negation relationship". Compared with the existing technology, the logical relationship of the data combination is more flexible.
[0097] like Figure 1 As shown, in step S104, according to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0098] For example, if the object is a cluster and the target logical expression is "all options! pangu service", the target cluster whose label is not pangu service is searched from all clusters.
[0099] As an implementation manner, the first embodiment of the present application may further include the following steps:
[0100] Displays a selection panel containing options;
[0101] Detecting a trigger operation for turning on a mode for inputting a logical expression in a logical expression input box;
[0102] According to the trigger operation, a mode for inputting a logical expression in the logical expression input box is turned on.
[0103] like Figure 3 As shown, by clicking fx in 3-1, the mode of inputting logical expressions in the logical expression input box is enabled, as shown in 3-2.
[0104] As an implementation manner, the first embodiment of the present application may further include: displaying the target logical expression in the logical expression input box.
[0105] In the prior art, the logical relationship between target options is displayed separately from the target options, such as Figure 4 As shown, this application displays the target logical expression in the logical expression input box, effectively and naturally combines the logical relationship between the target options with the target options, and improves the user experience.
[0106] Displaying the target logical expression in the logical expression input box includes:
[0107] Displaying the logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box;
[0108] Obtain target logical relationship information between target options;
[0109] The default logical relationship information between the target options is modified to the target logical relationship information between the target options.
[0110] like Figure 5 As shown, if the default logical relationship is "logical AND", when the user clicks option C, option D, option E and option F, first, option C, option D and option E, as well as the default logical relationship information "&" between option C and option D, as well as the default logical relationship information "&" between option D and option E, and the default logical relationship information "&" between option E and option F are displayed in the logical expression input box, and then the target logical relationship "!" between option E and option F is obtained, and the default logical relationship between option E and option F is modified to the target logical relationship "!". The modified logical expression is shown in 5-1.
[0111] The following is an example of displaying a logical expression containing "logical negation" in the logical expression input box.
[0112] like Figure 6 The logical expression displayed in the logical expression input box means that all options except Option C and Option D are selected. Through non-logical relationships, it not only meets the needs but also avoids filling all options except Option C and Option D in the logical expression input box.
[0113] In a specific implementation, displaying the logical expression including the target options and the default logical relationship between the target options in the logical expression input box may include the following steps:
[0114] Detect triggering actions for selecting target options;
[0115] According to the trigger operation for selecting the target option, the target option is displayed in the logical expression input box;
[0116] When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is displayed in front of the target option.
[0117] When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is automatically displayed in front of the target option, avoiding the user from manually entering the logical relationship expression, and reducing the learning cost.
[0118] For example, Figure 7 As shown, when the user clicks option C, the system detects the trigger operation for option C. According to the trigger operation for option C, the target option C is displayed in the logical expression input box, as shown in 7-1. Then, the user clicks option D, and the system detects the trigger operation for option D. According to the trigger operation for option D, the target option D is displayed in the logical expression input box, and the default logical relationship information "&" is displayed in front of the target option, as shown in 7-2.
[0119] As an implementation manner, the first embodiment of the present application may further include:
[0120] Detect the triggering action for deleting the target option in the logical expression input box;
[0121] According to the trigger operation for the target option in the delete logic expression input box, the target option and the logical relationship information corresponding to the target option are deleted.
[0122] When deleting, the target option and the logical relationship information corresponding to the target option are deleted as a whole. The user does not need to delete the target option and the logical relationship information corresponding to the target option separately, which improves the user experience. Figure 8 shown.
[0123] As an implementation method, in order to input a more complex logical expression in the logical expression input box, multiple sub-logical expressions constituting the target logical expression can be input through the interactive panel, and then the logical expressions are combined into the target logical expression, and the target logical expression is displayed in the logical expression input box.
[0124] Displaying the target logical expression in the logical expression input box includes:
[0125] Get the sub-logical expression entered through the interactive panel;
[0126] Detecting a trigger operation for displaying a target logical expression in a logical expression input box; the target logical expression is composed of at least one sub-logical expression;
[0127] According to a triggering operation for displaying the target logical expression in the logical expression input box, the sub-logical expressions are combined into a target logical expression, and the target logical expression is displayed in the logical expression input box.
[0128] When there are multiple sub-logical expressions, obtaining the sub-logical expressions input through the interactive panel includes:
[0129] A plurality of sub-logical expressions input into the sub-logical expression input box through the interactive panel are obtained, wherein each sub-logical expression input box corresponds to a sub-logical expression.
[0130] The first embodiment of the present application may further include:
[0131] A preset number of sub-logical expression input boxes are displayed on the interactive panel.
[0132] For example, two sub-logical expression input boxes can be displayed on the interaction panel.
[0133] The first embodiment of the present application also includes:
[0134] Detect the trigger operation for adding a sub-logical expression input box;
[0135] According to the trigger operation of adding a sub-logical expression input box, a sub-logical expression input box is added to the interaction panel.
[0136] For example, Figure 9As shown, the two preset sub-logical expression input boxes can only enter two sub-logical relationship expressions. If the user needs to enter three sub-logical relationship expressions, he can click "Add relationship combination" and the third sub-logical relationship expression input box will be displayed on the interactive panel.
[0137] The above describes two methods: displaying a logical expression directly in the logical expression input box and entering a sub-logical expression through the interactive panel. To more clearly illustrate the two input methods, the following examples illustrate the complete input process of each method.
[0138] Method 1: Display the logical expression directly in the logical expression input box
[0139] like Figure 10 As shown, 10-1 is the default state; when "fx" is clicked, the logical expression input is enabled and the process proceeds to 10-2; the user selects option C, which is entered into the logical expression input box, as shown in 10-3; then, option D is selected, and the logical relationship "&" and option D are entered into the logical expression input box, as shown in 10-4.
[0140] Method 2: Enter sub-logical expressions through the interactive panel
[0141] like Figure 11 As shown in Figure 11-1, sub-logical expressions are entered through the interactive panel. Click OK in the floating layer to combine the sub-logical expressions into the target logical expression, and the target logical expression is displayed in the logical expression input box, as shown in Figure 11-2.
[0142] Corresponding to the target object search method provided in the first embodiment of the present application, the second embodiment of the present application further provides a target object search device.
[0143] like Figure 12 As shown, the target object search device includes:
[0144] The trigger operation detection unit 1201 is used to detect a trigger operation for an option; wherein the option includes label information of an object;
[0145] A target option obtaining unit 1202 is configured to obtain a target option according to the triggering operation on the option;
[0146] The target logic expression obtaining unit 1203 is configured to obtain a target logic expression based on the target logic relationship information between the target options; the target logic expression includes the target logic relationship information between the target options, and the target logic relationship information is user-defined target logic relationship information;
[0147] The target object searching unit 1204 is configured to search for a target object that meets the target logical expression from multiple objects according to the target logical expression.
[0148] Optionally, the target logical relationship information includes at least one of the following:
[0149] Logical and relation information, logical or relation information, logical non-relation information.
[0150] Optionally, the device is further used for:
[0151] Displays a selection panel containing options;
[0152] Detecting a trigger operation for turning on a mode for inputting a logical expression in a logical expression input box;
[0153] According to the trigger operation, a mode for inputting a logical expression in the logical expression input box is turned on.
[0154] Optionally, the device further includes: a target logical expression display unit, configured to display the target logical expression in a logical expression input box.
[0155] Optionally, the target logical expression display unit is specifically used to:
[0156] Displaying the logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box;
[0157] Obtain target logical relationship information between target options;
[0158] The default logical relationship information between the target options is modified to the target logical relationship information between the target options.
[0159] Optionally, the target logical expression display unit is specifically used to:
[0160] Detect triggering actions for selecting target options;
[0161] According to the trigger operation for selecting the target option, the target option is displayed in the logical expression input box;
[0162] When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is displayed in front of the target option.
[0163] Optionally, the device further includes: a deleting unit,
[0164] Used to detect the trigger action for deleting the target option in the logical expression input box;
[0165] According to the trigger operation for the target option in the delete logic expression input box, the target option and the logical relationship information corresponding to the target option are deleted.
[0166] Optionally, the target logical expression display unit is specifically used to:
[0167] Get the sub-logical expression entered through the interactive panel;
[0168] Detecting a trigger operation for displaying a target logical expression in a logical expression input box; the target logical expression is composed of at least one sub-logical expression;
[0169] According to a trigger operation for displaying the target logical expression in the logical expression input box, the sub-logical expressions are combined into a target logical expression, and the target logical expression is displayed in the logical expression input box.
[0170] Optionally, the target logical expression display unit is specifically used to:
[0171] When there are multiple sub-logical expressions, multiple sub-logical expressions are input into the sub-logical expression input box through the interactive panel, where each sub-logical expression input box corresponds to one sub-logical expression.
[0172] Optionally, the device further comprises: a sub-logical expression input box display unit,
[0173] Used to display a preset number of sub-logical expression input boxes on the interactive panel.
[0174] Optionally, the device further comprises: a sub-logical expression input box adding unit,
[0175] Used to detect the trigger operation for adding a sub-logical expression input box;
[0176] According to the trigger operation of adding a sub-logical expression input box, a sub-logical expression input box is added to the interaction panel.
[0177] It should be noted that for the detailed description of the device provided in the second embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.
[0178] Corresponding to the target object search method provided in the first embodiment of the present application, the third embodiment of the present application further provides an electronic device.
[0179] The electronic device comprises:
[0180] processor; and
[0181] The memory is used to store a program of a method for searching a target object. After the device is powered on and the program of the method for searching a target object of the terminal device is run by the processor, the following steps are performed:
[0182] Detecting a trigger operation for an option; wherein the option includes label information of an object;
[0183] Obtaining a target option according to the trigger operation on the option;
[0184] According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information;
[0185] According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0186] Optionally, the target logical relationship information includes at least one of the following:
[0187] Logical and relation information, logical or relation information, logical non-relation information.
[0188] Optionally, the electronic device further performs the following steps:
[0189] Displays a selection panel containing options;
[0190] Detecting a trigger operation for turning on a mode for inputting a logical expression in a logical expression input box;
[0191] According to the trigger operation, a mode for inputting a logical expression in the logical expression input box is turned on.
[0192] Optionally, the electronic device further performs the following step: displaying the target logical expression in a logical expression input box.
[0193] Optionally, displaying the target logical expression in a logical expression input box includes:
[0194] Displaying the logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box;
[0195] Obtain target logical relationship information between target options;
[0196] The default logical relationship information between the target options is modified to the target logical relationship information between the target options.
[0197] Optionally, the logical expression containing the target options and the default logical relationship between the target options is displayed in the logical expression input box, including:
[0198] Detect triggering actions for selecting target options;
[0199] According to the trigger operation for selecting the target option, the target option is displayed in the logical expression input box;
[0200] When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is displayed in front of the target option.
[0201] Optionally, the electronic device further performs the following steps:
[0202] Detect the triggering action for deleting the target option in the logical expression input box;
[0203] According to the trigger operation for the target option in the delete logic expression input box, the target option and the logical relationship information corresponding to the target option are deleted.
[0204] Optionally, displaying the target logical expression in a logical expression input box includes:
[0205] Get the sub-logical expression entered through the interactive panel;
[0206] Detecting a trigger operation for displaying a target logical expression in a logical expression input box; the target logical expression is composed of at least one sub-logical expression;
[0207] According to a trigger operation for displaying the target logical expression in the logical expression input box, the sub-logical expressions are combined into a target logical expression, and the target logical expression is displayed in the logical expression input box.
[0208] Optionally, when there are multiple sub-logical expressions, obtaining the sub-logical expressions input through the interactive panel includes:
[0209] A plurality of sub-logical expressions input into the sub-logical expression input box through the interactive panel are obtained, wherein each sub-logical expression input box corresponds to a sub-logical expression.
[0210] Optionally, the electronic device further performs the following steps:
[0211] A preset number of sub-logical expression input boxes are displayed on the interactive panel.
[0212] Optionally, the electronic device further performs the following steps:
[0213] Detect the trigger operation for adding a sub-logical expression input box;
[0214] According to the trigger operation of adding a sub-logical expression input box, a sub-logical expression input box is added to the interaction panel.
[0215] It should be noted that for the detailed description of the electronic device provided in the third embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.
[0216] Corresponding to the target object search method provided in the first embodiment of the present application, the fourth embodiment of the present application further provides a storage device storing a program of the target object search method, the program being executed by a processor to perform the following steps:
[0217] Detecting a trigger operation for an option; wherein the option includes label information of an object;
[0218] Obtaining a target option according to the trigger operation on the option;
[0219] According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information;
[0220] According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
[0221] It should be noted that for the detailed description of the storage device provided in the fourth embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.
[0222] A fifth embodiment of the present application provides a method for searching a target cluster, including:
[0223] Detect trigger operations on cluster tag information;
[0224] Obtaining target label information according to the triggering operation on the label information of the cluster;
[0225] Obtaining a target logical expression based on the target tag information and the target logical relationship information between the target tag information; the target logical expression includes the target logical relationship information between the target tag information and the target tag information, and the target logical relationship information is user-defined target logical relationship information;
[0226] According to the target logical expression, a target cluster that meets the target logical expression is searched from multiple clusters.
[0227] It should be noted that, for the target cluster search method provided in the fifth embodiment of the present application, reference may be made to the relevant description of the first embodiment of the present application, which will not be repeated here.
[0228] A sixth embodiment of the present application provides an operation and maintenance method for a server cluster, including:
[0229] Detecting a triggering operation for tag information of a server cluster; wherein the triggering operation for the tag information is determined based on environmental information of the target server cluster;
[0230] Obtaining target tag information according to the triggering operation on the tag information of the server cluster;
[0231] Obtaining a target logical expression based on the target tag information and the target logical relationship information between the target tag information; the target logical expression includes the target logical relationship information between the target tag information and the target tag information, and the target logical relationship information is user-defined target logical relationship information;
[0232] According to the target logical expression, searching for a target server cluster that meets the target logical expression from multiple server clusters;
[0233] Send an instruction to execute a specified operation and maintenance operation to the target server cluster.
[0234] It should be noted that, for the operation and maintenance method of the server cluster provided in the sixth embodiment of the present application, reference can be made to the relevant description of the first embodiment of the present application, which will not be repeated here.
[0235] Although the present application is disclosed as above with the preferred embodiments, it is not intended to limit the present application. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0236] In a typical configuration, a computing device includes one or more processors (CPUs), memory-mapped input / output interfaces, network interfaces, and memory.
[0237] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0238] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0239] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A method for searching a target object, characterized in that: include: Detecting a trigger operation for an option; wherein the option includes label information of an object; Obtaining a target option according to the trigger operation on the option; Displaying a logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box, wherein any default logical relationship information is located in the corresponding target option and corresponds to a plurality of optional logical relationship information; Obtaining target logical relationship information between target options, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; Detecting a trigger operation for deleting a target option in the logical expression input box, and deleting the target option and logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; According to the target options and the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options and the target logical relationship information, and the target logical relationship information is user-defined target logical relationship information; According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
2. The method according to claim 1, characterized in that The target logical relationship information includes at least one of the following: Logical and relation information, logical or relation information, logical non-relation information.
3. The method according to claim 1, characterized in that Also includes: Displays a selection panel containing options; Detecting a trigger operation for turning on a mode for inputting a logical expression in a logical expression input box; According to the trigger operation, a mode for inputting a logical expression in the logical expression input box is turned on.
4. The method according to claim 1, wherein The logic expression containing the target options and the default logical relationship between the target options is displayed in the logic expression input box, including: Detect triggering actions for selecting target options; According to the trigger operation for selecting the target option, the target option is displayed in the logical expression input box; When the target option is not the first target option displayed in the logical expression input box, the default logical relationship information is displayed in front of the target option.
5. The method according to claim 1, characterized in that Also includes: Get the sub-logical expression entered through the interactive panel; Detecting a trigger operation for displaying a target logical expression in a logical expression input box; The target logical expression is composed of at least one sub-logical expression; According to a trigger operation for displaying the target logical expression in the logical expression input box, the sub-logical expressions are combined into a target logical expression, and the target logical expression is displayed in the logical expression input box.
6. The method according to claim 5, characterized in that When there are multiple sub-logical expressions, obtaining the sub-logical expressions input through the interactive panel includes: A plurality of sub-logical expressions input into the sub-logical expression input box through the interactive panel are obtained, wherein each sub-logical expression input box corresponds to a sub-logical expression.
7. The method according to claim 6, characterized in that Also includes: A preset number of sub-logical expression input boxes are displayed on the interactive panel.
8. The method according to claim 7, characterized in that Also includes: Detect the trigger operation for adding a sub-logical expression input box; According to the trigger operation of adding a sub-logical expression input box, a sub-logical expression input box is added to the interaction panel.
9. A device for searching a target object, characterized in that: include: A trigger operation detection unit, configured to detect a trigger operation on an option; wherein the option includes label information of an object; a target option obtaining unit, configured to obtain a target option according to the triggering operation on the option; a target logical expression display unit, configured to display a logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box, wherein any default logical relationship information is located in the corresponding target option and corresponds to a plurality of optional logical relationship information; and obtain target logical relationship information between the target options, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; a deletion unit, configured to detect a trigger operation for deleting a target option in the logical expression input box, and delete the target option and the logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; A target logic expression obtaining unit is configured to obtain a target logic expression based on the target logic relationship information between the target options; the target logic expression includes the target logic relationship information between the target options, and the target logic relationship information is user-defined target logic relationship information; The target object search unit is used to search for a target object that meets the target logical expression from multiple objects according to the target logical expression.
10. An electronic device, characterized in that: include: processor; as well as The memory is used to store a program of a method for searching a target object. After the device is powered on and the program of the method for searching a target object of the terminal device is run by the processor, the following steps are performed: Detecting a trigger operation for an option; wherein the option includes label information of an object; Obtaining a target option according to the trigger operation on the option; Displaying a logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box, wherein any default logical relationship information is located in the corresponding target option and corresponds to a plurality of optional logical relationship information; Obtaining target logical relationship information between target options, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; Detecting a trigger operation for deleting a target option in the logical expression input box, and deleting the target option and logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information; According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
11. A storage device, characterized in that: A program storing a method for searching a target object is executed by a processor to perform the following steps: Detecting a trigger operation for an option; wherein the option includes label information of an object; Obtaining a target option according to the trigger operation on the option; Displaying a logical expression including the target option and the default logical relationship information between the target options in a preset logical expression input box, wherein any default logical relationship information is located in the corresponding target option and corresponds to a plurality of optional logical relationship information; Obtaining target logical relationship information between target options, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; Detecting a trigger operation for deleting a target option in the logical expression input box, and deleting the target option and logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; According to the target logical relationship information between the target options, a target logical expression is obtained; the target logical expression includes the target logical relationship information between the target options, and the target logical relationship information is user-defined target logical relationship information; According to the target logical expression, a target object that meets the target logical expression is searched from multiple objects.
12. A method for searching a target cluster, characterized in that: include: Detect trigger operations on cluster tag information; Obtaining target label information according to the triggering operation on the label information of the cluster; Displaying a logical expression including the target tag information and the default logical relationship information between the target tag information in a preset logical expression input box, wherein any default logical relationship information is located in a corresponding target option and corresponds to a plurality of optional logical relationship information; Obtaining target logical relationship information between target tag information, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; Detecting a trigger operation for deleting a target option in the logical expression input box, and deleting the target option and logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; Obtaining a target logical expression according to the target label information and target logical relationship information between the target label information; The target logic expression includes target label information and target logic relationship information between the target label information, and the target logic relationship information is user-defined target logic relationship information; According to the target logical expression, a target cluster that meets the target logical expression is searched from multiple clusters.
13. A server cluster operation and maintenance method, characterized in that: include: Detecting a triggering operation for tag information of a server cluster; wherein the triggering operation for the tag information is determined based on environmental information of the target server cluster; Obtaining target tag information according to the triggering operation on the tag information of the server cluster; Displaying a logical expression including the target tag information and the default logical relationship information between the target tag information in a preset logical expression input box, wherein any default logical relationship information is located in a corresponding target option and corresponds to a plurality of optional logical relationship information; Obtaining target logical relationship information between target tag information, wherein the target logical relationship information is obtained by a selection operation on the plurality of optional logical relationship information; Detecting a trigger operation for deleting a target option in the logical expression input box, and deleting the target option and logical relationship information corresponding to the target option according to the trigger operation for deleting the target option in the logical expression input box; Modify the default logical relationship information between the target tag information to the target logical relationship information between the target tag information; Obtaining a target logical expression based on the target tag information and the target logical relationship information between the target tag information; the target logical expression includes the target logical relationship information between the target tag information and the target tag information, and the target logical relationship information is user-defined target logical relationship information; According to the target logical expression, a target server cluster that meets the target logical expression is searched from multiple server clusters; and an instruction for executing a specified operation and maintenance operation is sent to the target server cluster.
Citation Information
Patent Citations
Sorting method and device
CN103793381A
Label-based data search method and device, medium and electronic device
CN110096501A