CN116308394A - Label association method, apparatus, electronic device and computer readable storage medium - Google Patents

Label association method, apparatus, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN116308394A
CN116308394A CN202310577123.0A CN202310577123A CN116308394A CN 116308394 A CN116308394 A CN 116308394A CN 202310577123 A CN202310577123 A CN 202310577123A CN 116308394 A CN116308394 A CN 116308394A
Authority
CN
China
Prior art keywords
user
target
tag
cloud resource
extraction rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310577123.0A
Other languages
Chinese (zh)
Other versions
CN116308394B (en
Inventor
柯敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Fulian Foshan Innovation Center Co ltd
Original Assignee
Industrial Fulian Foshan Innovation Center Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial Fulian Foshan Innovation Center Co ltd filed Critical Industrial Fulian Foshan Innovation Center Co ltd
Priority to CN202310577123.0A priority Critical patent/CN116308394B/en
Publication of CN116308394A publication Critical patent/CN116308394A/en
Application granted granted Critical
Publication of CN116308394B publication Critical patent/CN116308394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a label association method, a device, electronic equipment and a computer readable storage medium, and relates to the technical field of computers, wherein the label association method comprises the following steps: acquiring an instance name of a target cloud resource instance, wherein the target cloud resource instance is a cloud resource instance to be subjected to label association; extracting a target user of the target cloud resource instance from the instance name; acquiring a target label matched with the target user, wherein the target label is used for indicating that a sending object of a notification message of the target cloud resource instance is the target user; and associating the target cloud resource instance with the target tag. According to the cloud platform notification method and device, the notification message of the cloud resource instance can be automatically transmitted to the user of the cloud resource instance, the user can process the notification message in time, and the cloud platform can be enabled to operate more stably and efficiently.

Description

Label association method, apparatus, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a tag association method, a tag association device, an electronic device, and a computer readable storage medium.
Background
Today, cloud on enterprises becomes a key of digital transformation, in order to ensure customer account and transaction safety, real name authentication needs to be completed on a cloud platform account, a plurality of cloud manufacturers limit the account number applied by an account real name authentication main body, therefore, a situation that a plurality of employees share one account may exist, in order to ensure the security of a cloud platform, enterprises can assign special cloud platform operation and maintenance personnel to manage cloud resource examples applied by each enterprise employee in the enterprises, and when a certain cloud resource example is notified, an alarm and the like occur, the cloud platform operation and maintenance personnel can find out specific users of the cloud resource examples and notify the users.
However, notifying specific users of cloud resource instances by cloud platform operators consumes too much time, resulting in difficulty in timely processing of relevant notifications of cloud resource instances.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a tag association method, a tag association device, electronic equipment and a computer readable storage medium, which can automatically transmit notification messages of cloud resource examples to users of the cloud resource examples, are convenient for the users to timely process the notification messages, and can enable a cloud platform to operate more stably and efficiently.
In order to solve the technical problem, the present invention provides a tag association method, including: acquiring an instance name of a target cloud resource instance, wherein the target cloud resource instance is a cloud resource instance to be subjected to label association; extracting a target user of the target cloud resource instance from the instance name; acquiring a target label matched with the target user, wherein the target label is used for indicating that a sending object of a notification message of the target cloud resource instance is the target user; and associating the target cloud resource instance with the target tag.
By adopting the technical scheme, the user labels of the cloud resource examples are automatically associated with the cloud resource examples, so that the user of the cloud resource actual strength is automatically determined, notification messages of the cloud resource examples can be automatically sent to the user of the cloud resource examples, on one hand, the workload of operation and maintenance personnel is reduced to reduce the operation and maintenance cost, on the other hand, notification messages such as alarms of the cloud resource examples can be quickly transmitted to the resource actual user, the notification messages can be conveniently processed in time, and the cloud platform can be operated more stably and efficiently.
In some embodiments, extracting the target user of the target cloud resource instance in the instance name includes: acquiring a user extraction rule list; selecting a current user extraction rule from the user extraction rule list according to a preset sequence; and if the target user is not successfully extracted through the current user extraction rule, selecting the current user extraction rule from the user extraction rule list according to a preset sequence again until the target user is successfully extracted or the user extraction rule list is traversed.
In some embodiments, selecting the current user extraction rule from the list of user extraction rules in a preset order includes: acquiring the weight of each user extraction rule in the user extraction rule list; determining the selected priority of each user extraction rule according to the weight of each user extraction rule; determining the current user extraction rule according to the order of the priority of the user extraction rules from high to low; wherein, the selected priority of the user extraction rule is positively correlated with the extraction success times of the user extraction rule.
By adopting the technical scheme, the user extraction rules are selected in the order of the selected priority from high to low by taking the successful extraction times as the selected priority, so that the proper user extraction rules are easier to select, and the user extraction speed is improved.
In some embodiments, after the user extraction rule list is traversed, the method further comprises: if the target user is not successfully extracted through the user extraction rule list, outputting a prompt for indicating that the target user is not successfully extracted to a user; if the target user input by the user is received, generating a new user extraction rule based on the target user and the instance name; adding the new user extraction rule to the list of user extraction rules.
By adopting the technical scheme, new user extraction rules can be automatically generated, so that the labor burden is further reduced, and the labor resources are saved.
In some embodiments, obtaining a target tag that matches the target user includes: acquiring a user tag list; and in the user tag list, if the sub-user name of the user tag exists as the target user, the user tag is taken as the target tag.
By adopting the technical scheme, the user tag list is maintained, so that the user tags can be conveniently shared.
In some embodiments, obtaining a list of user tags includes: monitoring whether a newly created child user exists or not; if the newly created sub-user is monitored, generating a new user tag based on the newly created sub-user, wherein the name of the sub-user of the new user tag is the name of the newly created sub-user.
By adopting the technical scheme, when the cloud platform adds the sub-users, new user labels corresponding to the sub-users can be automatically created, so that the labor burden is further reduced, and the labor resources are saved.
In some embodiments, the user tag list includes user tags of a plurality of tenants; monitoring whether there are newly created child users, including: and monitoring whether newly created sub-users exist in the plurality of tenants.
By adopting the technical scheme, the user tag list can be shared among multiple tenants, so that under the condition that a user owns multiple accounts, the user can receive notification messages of cloud resource instances under multiple accounts only by logging in the main account once, complicated multiple logging operations are not needed, and the operation is simpler and more convenient.
An embodiment of the present application provides a tag association apparatus, including: the system comprises an acquisition module, a label association module and a label association module, wherein the acquisition module is used for acquiring an instance name of a target cloud resource instance; the extraction module is used for extracting target users of the target cloud resource instance from the instance names; the matching module is used for acquiring a target label matched with the target user, and the target label is used for indicating that the sending object of the notification message of the target cloud resource instance is the target user; and the association module is used for associating the target cloud resource instance with the target tag.
An embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory is configured to store instructions, and the processor is configured to invoke the instructions in the memory, so that the electronic device executes the tag association method described above.
An embodiment of the present application provides a computer readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform the tag association method described above.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of steps of a tag association method according to an embodiment of the present application.
FIG. 2 is a flowchart of the sub-steps of step 102 provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a tag association apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Today, cloud on enterprises becomes a key of digital transformation, in order to ensure customer account and transaction security, real name authentication needs to be completed on cloud platform accounts, and a plurality of cloud manufacturers limit the number of accounts applied by an account real name authentication main body, for example, a certain cloud manufacturer requires that an individual can authenticate at most three cloud accounts, and an enterprise can authenticate at most ten cloud accounts in real name, under the background, the following situations may occur.
(1) Multiple enterprise employees of the same enterprise share a cloud platform account. In this case, each enterprise employee receives relevant notification information of all cloud resource instances under the account name of the cloud platform, for example, the cloud platform account includes a cloud resource instance a and a cloud resource instance B, the user of the cloud resource instance a is userA, and the userA receives notification information of the cloud resource instance B in addition to relevant notification information such as an alarm of the cloud resource instance a.
In the above situation, on one hand, enterprise staff may receive dirty messages which need not to be processed, so that customer experience is poor, and on the other hand, relevant information of the cloud resource instance is revealed, and security is lowered.
(2) In order to improve the security of information related to cloud resource instances, enterprises can assign special cloud platform operation and maintenance personnel to manage cloud resources applied by other personnel in the enterprises. In this case, the operation and maintenance personnel need to manage the numerous resources in a distinguishing way, and if there is an emergency problem such as a host security event, the cloud platform will notify the cloud platform operation and maintenance personnel of the enterprise first, and then notify the operation and maintenance personnel of the user of the cloud resource instance.
However, the manual notification mechanism can increase the workload of operation and maintenance personnel, and the time consumed for notifying the cloud instance by the cloud platform operation and maintenance personnel to a specific user is too long, so that the related notification of the cloud resource instance is difficult to process in time.
(3) The same enterprise employee has cloud resources under multiple accounts. For the situation that the same enterprise employee has cloud resources under a plurality of accounts, in order to realize information notification, a cloud platform manager needs to input a plurality of account information of the enterprise employee to acquire notification information of cloud resource instances of the enterprise employee under the plurality of account information, and the operation is complex.
In view of the foregoing, an embodiment of the present application provides a tag association method, which includes: acquiring an instance name of a target cloud resource instance, wherein the target cloud resource instance is a cloud resource instance to be subjected to label association; extracting a target user of the target cloud resource instance from the instance name; acquiring a target label matched with a target user, wherein the target label is used for indicating that a sending object of a notification message of a target cloud resource instance is the target user; and associating the target cloud resource instance with the target tag.
According to the cloud resource instance notification method and device, the user labels of the resource instances are automatically associated with the cloud resource instances, so that notification messages of the cloud resource instances can be automatically sent to users of the cloud resource instances, on one hand, the information security of the cloud resource instances is improved, the workload of operation and maintenance personnel is reduced, the operation and maintenance cost is reduced, on the other hand, notification messages such as alarms of the cloud resource instances can be quickly transmitted to actual users of the resources, the alarm problem can be conveniently and timely handled, the cloud platform can be enabled to operate more stably and efficiently, and in addition, complicated multiple login operations are not needed under the condition that one user has multiple accounts, and the operation is simpler and more convenient.
The tag association method can be applied to one or more electronic devices. The electronic device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware includes, but is not limited to, a processor, a micro-program controller (Microprogrammed Control Unit, MCU), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, and the like. The electronic device may be a portable electronic device (e.g., a cell phone, tablet computer), a personal computer, a server, etc.
FIG. 1 is a flow chart of steps of an embodiment of a tag association method of the present application. The order of the steps in the flow diagrams may be changed, and some steps may be omitted, according to different needs.
Referring to fig. 1, the tag association method may include the following steps.
Step 101, obtaining an instance name of a target cloud resource instance.
The target cloud resource instance is a cloud resource instance to be subjected to tag association.
Cloud resource instances can be understood as cloud computing resources on a cloud host, including computing resources such as CPUs, memory, operating systems, network bandwidth, disks, and the like.
Each cloud resource instance has a corresponding instance name, and the instance names include: the name of the user of the cloud resource instance can adopt the naming mode of 'host usage-department-user', and the actual naming mode can be set according to requirements.
Step 102, extracting target users of the target cloud resource instance from the instance name.
In some embodiments, the instance name may be input into a pre-trained user name extraction model to obtain a target user of the target cloud resource instance.
However, extracting the model by machine learning as described above requires a large amount of data to support, and thus, in other embodiments, referring to FIG. 2, step 102 may include:
in step 201, a list of user extraction rules is obtained.
The user extraction rule list includes a user extraction rule (MatchRule) that can be used to extract a user name from an instance name. The user extraction rule may be a regular expression.
The regular expression can be recorded in an instance name of the cloud resource instance, and the position of the user is used.
For example, reference may be made to Table 1, table 1 being an illustration of the rules of human extraction.
TABLE 1
Figure SMS_1
In some embodiments, the list of user extraction rules may include, in addition to the user extraction rules:
1. record number (Id). The record number is the number of the current user extraction rule, for example, the new user extraction rule is added, and the record number of the new user extraction rule is the last user extraction rule plus "1".
2. Account number unique identification (Uin). The account unique identifier characterizes the account identifier of the tenant account, and records which tenant account the user extraction rule comes from the cloud platform.
3. A counter (Count). The counter records the number of references to the user extraction rule, i.e., the number of successful extraction of the user name by the user extraction rule. The Count of the newly added user extraction rule may be set to "1", and the Count may be incremented by "1" each time the user extraction rule successfully extracts the user name.
Illustratively, in the user extraction rule list, the content included in each record may be as shown with reference to table 2.
TABLE 2
Figure SMS_2
It will be appreciated that each of the above-described records includes content that is merely exemplary, and that more or fewer fields may be included in each record during actual use.
Step 202, selecting a current user extraction rule from the user extraction rule list according to a preset sequence.
In some embodiments, one user extraction rule may be selected from the list of user extraction rules in a random order as the current user extraction rule.
In other embodiments, the current user extraction rule may be determined in order of the priority of each user extraction rule in the list of user extraction rules from high to low. Wherein the selected priority of the user extraction rule is positively correlated with the number of times of extraction success of the user extraction rule.
Further, obtaining the selected priority of the user extraction rule includes: acquiring the weight of each user extraction rule in the user extraction rule list; and determining the selected priority of each user extraction rule according to the weight of each user extraction rule.
The weight of the user extraction rule is the counter value of the user extraction rule, namely Count, and in each user extraction rule, the larger the Count is, the higher the selected priority of the user extraction rule is.
For example, the list of user extraction rules may be referred to as shown in Table 3 below.
TABLE 3 Table 3
Figure SMS_3
The priority of the user extraction rules is sequentially from high to low: 2- >1- >3.
That is, the user extraction rule with the preference Id of 2 extracts the user name; if the extraction is unsuccessful, selecting a user extraction rule with Id of 1 to extract a user name; if the extraction is unsuccessful, the user name is extracted using the extraction rule of Id 3.
According to the embodiment, the number of times of successful extraction is used as the selected priority, the user name is extracted by selecting the user extraction rule in order of the selected priority, and the speed of successful extraction of the user name can be improved.
Step 203, whether the user name is successfully extracted by the current user extraction rule. If the user name was successfully extracted, step 204 is performed, and if the user name was not successfully extracted, step 202 is re-entered until the user name was successfully extracted or the list of user extraction rules is traversed.
And 204, taking the extracted user name as a target user.
For example, the extracted user name is "Zhang San", and "Zhang Sano" is regarded as the target user.
The above is a process of extracting the target user by using the user extraction rule in the user extraction rule list, and in the case where there is no suitable user extraction rule in the user extraction rule list, for example, in the case where a new tenant account first opens cloud resources, there may be no user extraction rule in the user extraction rule list, so that the user cannot be extracted accurately.
In view of this, in some embodiments, after the user extraction rule list is traversed, if none of the target users is successfully extracted by the user extraction rule list, the target users may be extracted by a user name extraction model.
In other embodiments, after the user extraction rule list is traversed, if none of the target users are successfully extracted by the user extraction rule list, outputting a prompt to indicate to the user that none of the target users are successfully extracted; if the target user input is received, the electronic device can generate a new user extraction rule based on the target user and the instance name; adding the new user extraction rule to the list of user extraction rules.
Wherein generating new user extraction rules based on the target user and the instance name may include: based on the location of the target user recorded in the instance name, a new user extraction rule is generated.
For example, referring to table 4 below, table 4 is a schematic representation of the user extraction rule based on where the name of the target user is located.
TABLE 4 Table 4
Figure SMS_4
Step 103, obtaining a target label matched with the target user.
The target tag may indicate that the sending object of the notification message of the target cloud resource instance is the target user. The target label may be a key-value pair, the key representing a child user (user), the value being the name of the target user. The child users are users in the tenant. For example, the tenant is an enterprise, and the child user is an enterprise employee in the tenant.
In some embodiments, step 103 may comprise: the electronic device generates a target tag based on the target user.
In other embodiments, step 103 may include: acquiring a user tag list; in the user tag list, if a child user with a user tag is a target user, the user tag is taken as a target tag. The user tag list includes a plurality of user tags. Each user label is a key value pair, the keys are sub-users, and the values are sub-user names.
Further, in some embodiments, obtaining the list of user tags may include: monitoring whether a newly created child user exists or not; if the newly created sub-user is monitored, a new user tag is generated based on the newly created sub-user, and the name of the sub-user of the new user tag is the name of the newly created sub-user.
For example, the electronic device may pre-initialize key value pairs of a plurality of user tags, wherein the initialized user tag values are set to null values; then, setting the value in the key value pair as the name of a child user in the cloud platform, so that one child user name in the cloud platform corresponds to one user tag; if the newly created child user is monitored, the initialized user tag value is changed from a null value to the name of the newly created child user.
In some embodiments, if there is no target tag in the user tag list that matches the target user, the user may manually add a new target tag in the user tag list.
Further, the user tag list may include user tags of multiple tenants. The user tag list is shared by multiple tenants. Wherein, monitoring whether there are newly created child users may include: and monitoring whether newly created sub-users exist in the plurality of tenants.
The embodiment realizes the sharing of the user tag list in the plurality of tenants, can realize the sharing of the sub-user information of the plurality of tenants, and can successfully identify a certain user when cloud resources exist in the plurality of tenants and transmit a plurality of corresponding cloud resource notification messages to the user.
For example, a certain employee has cloud resources in multiple tenants, the employee can log in the primary account, after the electronic device confirms that the primary account is successfully logged in, the user tag corresponding to the primary account is confirmed, and after receiving a notification message of a cloud resource instance associated with the user tag, the notification message is sent to the primary account, so that the employee can acquire the cloud resource notification message under the multiple tenants without inputting the account information of the employee under the multiple tenants, the user operation is simplified, and the user experience is improved.
Step 104, associating the target cloud resource instance with the target tag.
For example, maintaining an association table, each record in the table including an identification of a cloud resource instance and a user tag associated with the cloud resource instance, step 104 may include: and storing the identification of the target cloud resource instance and the target label in an association table.
After the electronic equipment receives the notification message of the cloud resource instance, searching a user tag associated with the cloud resource instance; determining a user of the cloud resource instance based on a user tag associated with the cloud resource instance; a communication address, such as an IP address, a mailbox, a phone number, etc., of the user of the cloud resource instance is determined, and then a notification message of the cloud resource instance is transmitted to the user of the cloud resource instance through the communication address.
According to the cloud resource instance management method and device, the user labels of the cloud resource instance are automatically associated with the cloud resource instance to automatically determine the user of the cloud resource instance, so that human resources can be saved.
In addition, the notification message of the cloud resource instance can be automatically sent to the user of the cloud resource instance, on one hand, the information security of the cloud resource instance is improved, the workload of operation and maintenance personnel is reduced to reduce the operation and maintenance cost, on the other hand, the notification message such as the alarm of the cloud resource instance can be quickly transmitted to the resource actual user, the alarm problem can be conveniently and timely handled, and the cloud platform can be enabled to operate more stably and efficiently.
In addition, under the condition that a user has a plurality of accounts, the user can receive notification messages from cloud resource instances under the plurality of accounts only by logging in the main account once, and complicated multi-login operation is not needed, so that the operation is simpler and more convenient.
Based on the same ideas of the tag association method in the above embodiment, the present application also provides a tag association apparatus that can be used to perform the above tag association method. For ease of illustration, only those portions of the label associated device embodiments are shown in the schematic structural drawings that relate to the embodiments of the present application, and those skilled in the art will appreciate that the illustrated structures are not limiting of the device and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
As shown in fig. 3, the tag association apparatus includes an acquisition module 301, an extraction module 302, a matching module 303, and an association module 304. In some embodiments, the modules described above may be programmable software instructions stored in memory and executable by a processor call. It will be appreciated that in other embodiments, the modules may be program instructions or firmware (firmware) that are resident in the processor.
The acquiring module 301 is configured to acquire an instance name of a target cloud resource instance, where the target cloud resource instance is a cloud resource instance to be subjected to tag association;
an extracting module 302, configured to extract, from the instance name, a target user of the target cloud resource instance;
a matching module 303, configured to obtain a target tag that is matched with the target user, where the target tag is used to indicate that a sending object of the notification message of the target cloud resource instance is the target user;
and the association module 304 is configured to associate the target cloud resource instance with the target tag.
Fig. 4 is a schematic diagram of an embodiment of an electronic device of the present application.
The electronic device 100 comprises a memory 20, a processor 30 and a computer program 40 stored in the memory 20 and executable on the processor 30. The steps of the label association method embodiment described above, such as steps 101 through 104 shown in fig. 1, are implemented when the processor 30 executes the computer program 40.
By way of example, the computer program 40 may likewise be partitioned into one or more modules/units that are stored in the memory 20 and executed by the processor 30. The one or more modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 40 in the electronic device 100. For example, it may be divided into an acquisition module 301, an extraction module 302, a matching module 303, and an association module 304 shown in fig. 3.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 100 and is not meant to be limiting of the electronic device 100, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device 100 may also include input-output devices, network access devices, buses, etc.
The processor 30 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor, a single-chip microcomputer or the processor 30 may be any conventional processor or the like.
The memory 20 may be used to store computer programs 40 and/or modules/units, and the processor 30 implements various functions of the electronic device 100 by running or executing the computer programs and/or modules/units stored in the memory 20, as well as invoking data stored in the memory 20. The memory 20 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data) created according to the use of the electronic device 100, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include nonvolatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other nonvolatile solid state storage device.
The modules/units integrated with the electronic device 100 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
In several embodiments provided in the present application, it should be understood that the disclosed electronic device and method may be implemented in other manners. For example, the above-described embodiments of the electronic device are merely illustrative, and for example, the division of the units is merely a logical function division, and there may be other manners of division when actually implemented.
In addition, each functional unit in each embodiment of the present application may be integrated in the same processing unit, or each unit may exist alone physically, or two or more units may be integrated in the same unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
In addition, the label associating method, the label associating device, the electronic device and the computer readable storage medium provided by the embodiment of the invention are described in detail, and specific examples are adopted to illustrate the principle and the implementation of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A method of tag association, the method comprising:
acquiring an instance name of a target cloud resource instance, wherein the target cloud resource instance is a cloud resource instance to be subjected to label association;
extracting a target user of the target cloud resource instance from the instance name;
acquiring a target label matched with the target user, wherein the target label is used for indicating that a sending object of a notification message of the target cloud resource instance is the target user;
and associating the target cloud resource instance with the target tag.
2. The tag association method of claim 1, wherein the extracting the target user of the target cloud resource instance in the instance name comprises:
acquiring a user extraction rule list;
selecting a current user extraction rule from the user extraction rule list according to a preset sequence;
and if the target user is not successfully extracted through the current user extraction rule, selecting the current user extraction rule from the user extraction rule list again according to a preset sequence until the target user is successfully extracted or the user extraction rule list is traversed.
3. The tag association method of claim 2, wherein the selecting the current user extraction rule from the list of user extraction rules in a preset order comprises:
acquiring the weight of each user extraction rule in the user extraction rule list;
determining the selected priority of each user extraction rule according to the weight of each user extraction rule;
determining the current user extraction rule according to the order of the priority of the user extraction rules from high to low; wherein, the selected priority of the user extraction rule is positively correlated with the extraction success times of the user extraction rule.
4. The tag association method of claim 2, wherein after the user extraction rule list is traversed, the method further comprises:
if the target user is not successfully extracted through the user extraction rule list, outputting a prompt for indicating that the target user is not successfully extracted to a user;
if the target user input by the user is received, generating a new user extraction rule based on the target user and the instance name;
adding the new user extraction rule to the list of user extraction rules.
5. The tag association method according to any one of claims 1 to 4, wherein the acquiring a target tag matched with the target user includes:
acquiring a user tag list;
and in the user tag list, if the sub-user name of the user tag exists as the target user, the user tag is taken as the target tag.
6. The tag association method of claim 5, wherein the obtaining a list of user tags comprises:
monitoring whether a newly created child user exists or not;
if the newly created sub-user is monitored, generating a new user tag based on the newly created sub-user, wherein the name of the sub-user of the new user tag is the name of the newly created sub-user.
7. The label association method of claim 6, wherein the list of user labels includes user labels of a plurality of tenants; the monitoring whether there are newly created sub-users includes:
and monitoring whether newly created sub-users exist in the plurality of tenants.
8. A tag association apparatus, the apparatus comprising:
the system comprises an acquisition module, a label association module and a label association module, wherein the acquisition module is used for acquiring an instance name of a target cloud resource instance;
the extraction module is used for extracting target users of the target cloud resource instance from the instance names;
the matching module is used for acquiring a target label matched with the target user, and the target label is used for indicating that the sending object of the notification message of the target cloud resource instance is the target user;
and the association module is used for associating the target cloud resource instance with the target tag.
9. An electronic device comprising a processor and a memory, wherein the memory is configured to store instructions, the processor configured to invoke the instructions in the memory, to cause the electronic device to perform the tag association method of any of claims 1-7.
10. A computer readable storage medium storing computer instructions which, when run on an electronic device, cause the electronic device to perform the tag association method of any one of claims 1 to 7.
CN202310577123.0A 2023-05-22 2023-05-22 Label association method, apparatus, electronic device and computer readable storage medium Active CN116308394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310577123.0A CN116308394B (en) 2023-05-22 2023-05-22 Label association method, apparatus, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310577123.0A CN116308394B (en) 2023-05-22 2023-05-22 Label association method, apparatus, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116308394A true CN116308394A (en) 2023-06-23
CN116308394B CN116308394B (en) 2023-08-04

Family

ID=86827226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310577123.0A Active CN116308394B (en) 2023-05-22 2023-05-22 Label association method, apparatus, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116308394B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110096871A (en) * 2010-02-23 2011-08-31 삼성전자주식회사 Apparatus for combining cloud instance with resource of a plurality of device, and the resource providing method
US20140165136A1 (en) * 2012-12-10 2014-06-12 Hitachi, Ltd. Management server, tenant pattern validation method, and computer system
WO2016018438A1 (en) * 2014-07-31 2016-02-04 Hewlett Packard Development Company, L.P. Cloud resource pool
CN108847949A (en) * 2018-08-13 2018-11-20 北京奇虎科技有限公司 Message informing method, device, electronic equipment and storage medium based on cloud platform
CN109981322A (en) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 The method and apparatus of cloud resource management based on label
CN110716809A (en) * 2019-10-21 2020-01-21 北京百度网讯科技有限公司 Method and device for scheduling cloud resources
CN112231167A (en) * 2019-12-17 2021-01-15 北京京东尚科信息技术有限公司 Cloud resource monitoring method, device, equipment and storage medium
CN112256439A (en) * 2020-12-08 2021-01-22 富通云腾科技有限公司 Service directory dynamic updating system and method based on cloud computing resource pool
CN112306508A (en) * 2020-10-13 2021-02-02 武汉木仓科技股份有限公司 Configuration information file updating method and device and processing equipment
CN113869316A (en) * 2021-09-10 2021-12-31 深圳前海微众银行股份有限公司 Information notification method, device, equipment and computer storage medium
CN113987300A (en) * 2021-09-26 2022-01-28 阿里巴巴(中国)有限公司 Label generation method and device
US11240203B1 (en) * 2018-12-07 2022-02-01 Amazon Technologies, Inc. Network segmentation by automatically generated security groups
CN114691456A (en) * 2022-03-11 2022-07-01 阿里巴巴(中国)有限公司 Service alarm method and device
CN115495142A (en) * 2022-09-26 2022-12-20 华润数字科技有限公司 Cloud resource arranging method and device, computer equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110096871A (en) * 2010-02-23 2011-08-31 삼성전자주식회사 Apparatus for combining cloud instance with resource of a plurality of device, and the resource providing method
US20140165136A1 (en) * 2012-12-10 2014-06-12 Hitachi, Ltd. Management server, tenant pattern validation method, and computer system
WO2016018438A1 (en) * 2014-07-31 2016-02-04 Hewlett Packard Development Company, L.P. Cloud resource pool
CN109981322A (en) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 The method and apparatus of cloud resource management based on label
CN108847949A (en) * 2018-08-13 2018-11-20 北京奇虎科技有限公司 Message informing method, device, electronic equipment and storage medium based on cloud platform
US11240203B1 (en) * 2018-12-07 2022-02-01 Amazon Technologies, Inc. Network segmentation by automatically generated security groups
CN110716809A (en) * 2019-10-21 2020-01-21 北京百度网讯科技有限公司 Method and device for scheduling cloud resources
CN112231167A (en) * 2019-12-17 2021-01-15 北京京东尚科信息技术有限公司 Cloud resource monitoring method, device, equipment and storage medium
CN112306508A (en) * 2020-10-13 2021-02-02 武汉木仓科技股份有限公司 Configuration information file updating method and device and processing equipment
CN112256439A (en) * 2020-12-08 2021-01-22 富通云腾科技有限公司 Service directory dynamic updating system and method based on cloud computing resource pool
CN113869316A (en) * 2021-09-10 2021-12-31 深圳前海微众银行股份有限公司 Information notification method, device, equipment and computer storage medium
CN113987300A (en) * 2021-09-26 2022-01-28 阿里巴巴(中国)有限公司 Label generation method and device
CN114691456A (en) * 2022-03-11 2022-07-01 阿里巴巴(中国)有限公司 Service alarm method and device
CN115495142A (en) * 2022-09-26 2022-12-20 华润数字科技有限公司 Cloud resource arranging method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN116308394B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
US10339298B2 (en) Weak password support in a multi-user environment
CN110852374B (en) Data detection method, device, electronic equipment and storage medium
US20190342753A1 (en) Device configuration method, apparatus and system
CN112636957B (en) Early warning method and device based on log, server and storage medium
US20220414372A1 (en) Scene detection method and apparatus, electronic device and computer storage medium
CN112235303B (en) Account logout method and device and computer equipment
CN112199652A (en) Login method, terminal, server, system, medium and equipment of application program
CN106656985B (en) Backup account login method, device and system
WO2021249090A1 (en) Group operation processing method, apparatus and system, device, and storage medium
CN116069838A (en) Data processing method, device, computer equipment and storage medium
CN116308394B (en) Label association method, apparatus, electronic device and computer readable storage medium
US20230224332A1 (en) Security broker for edge computing environment
CN110753034B (en) Authority management method and related device
CN110661789B (en) Address resetting method, device, equipment and computer readable storage medium
CN114398994A (en) Method, device, equipment and medium for detecting business abnormity based on image identification
CN113890753A (en) Digital identity management method, device, system, computer equipment and storage medium
CN107885618B (en) Data monitoring method, device, equipment and storage medium based on network game
CN113360916A (en) Risk detection method, device, equipment and medium for application programming interface
CN113783828A (en) Business system monitoring method and device
WO2018205941A1 (en) Information processing method, apparatus and system
EP3709190A1 (en) Data retrieval flexibility
CN115878339A (en) Message notification method, device, computer equipment and computer readable storage medium
CN117648686A (en) Data security supervision method, device and medium
CN114205452A (en) Information processing method, apparatus and computer readable storage medium
CN114265744A (en) Monitoring method and device for enterprise digital assets, storage medium and terminal

Legal Events

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