CN116303820A - Label generation method, label generation device, computer equipment and medium - Google Patents

Label generation method, label generation device, computer equipment and medium Download PDF

Info

Publication number
CN116303820A
CN116303820A CN202310154112.1A CN202310154112A CN116303820A CN 116303820 A CN116303820 A CN 116303820A CN 202310154112 A CN202310154112 A CN 202310154112A CN 116303820 A CN116303820 A CN 116303820A
Authority
CN
China
Prior art keywords
query
tag
statement
sub
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310154112.1A
Other languages
Chinese (zh)
Inventor
余辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology 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 Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202310154112.1A priority Critical patent/CN116303820A/en
Publication of CN116303820A publication Critical patent/CN116303820A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • 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/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • G06F16/24556Aggregation; Duplicate elimination
    • 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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • 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)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to the field of computer data processing, and in particular, to a method and apparatus for generating a label, a computer device, and a medium. According to the method, the log information of the target system is received, the corresponding basic information and the behavior information are written into the dynamic table according to the sequence of time generation in the log information, the tag query statement set under the current time is obtained, each query statement in the tag query statement set is used for querying the dynamic table to obtain the query result of the corresponding query statement, the data value corresponding to the tag in the corresponding query result is determined according to the tag correspondingly defined by each query statement, the received basic information and the behavior information are stored in a grouping mode according to the sequence of time generation, the readability and the standardability of the data in the basic information and the behavior information are improved, the query result is obtained by judging whether the dynamic table accords with the query statement or not, the corresponding data value is given to the corresponding tag according to different query results, and the accuracy of the tag result is improved.

Description

Label generation method, label generation device, computer equipment and medium
Technical Field
The present invention relates to the field of computer data processing, and in particular, to a method and apparatus for generating a label, a computer device, and a medium.
Background
The label generation can guide the development and maintenance of the application by collecting user information, and the existing label generation methods are roughly divided into two types, one label corresponds to one program or one label corresponds to one method. In the label generating method, the reusability and the universality of the labels are low, and the number of programs and the number of methods are increased along with the continuous increase of the labels, so that the workload of developers and maintenance personnel is increased gradually, and the label generating accuracy is reduced.
Therefore, in the field of computer data processing, how to improve the accuracy of label generation is a problem to be solved.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a tag generation method, apparatus, computer device, and medium, so as to solve the problem of low accuracy of tag generation in the existing tag generation method.
In a first aspect, an embodiment of the present invention provides a tag generation method, where the tag generation method includes:
receiving log information of a target system, wherein the log information comprises basic information, behavior information and generation time generated after a user operates in the target system;
writing the corresponding basic information and behavior information into a dynamic table according to the sequence of the generation time;
acquiring a tag query statement set in the current time, and querying the dynamic table by using each query statement in the tag query statement set to obtain a query result of a corresponding query statement;
and determining the data value corresponding to the label in the corresponding query result according to the label defined by each query statement.
In a second aspect, an embodiment of the present invention provides a tag generating apparatus, including:
the information receiving module is used for receiving log information of a target system, wherein the log information comprises basic information, behavior information and generation time generated after a user operates in the target system;
the information processing module is used for writing the corresponding basic information and behavior information into a dynamic table according to the sequence of the generation time;
the statement inquiry module is used for acquiring a tag inquiry statement set at the current time, and inquiring the dynamic table by using each inquiry statement in the tag inquiry statement set to obtain an inquiry result of the corresponding inquiry statement;
and the label generating module is used for determining a data value corresponding to the label in the corresponding query result according to the label correspondingly defined by each query statement.
In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor implementing the tag generation method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the tag generation method according to the first aspect.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the method comprises the steps of receiving log information of a target system, wherein the log information comprises basic information, behavior information and generation time generated after a user operates the target system, writing the corresponding basic information and behavior information into a dynamic table according to the sequence of the generation time, acquiring a tag query statement set at the current time, querying the dynamic table by using each query statement in the tag query statement set to acquire a query result of the corresponding query statement, determining a data value corresponding to the tag in the corresponding query result according to the tag correspondingly defined by each query statement, and storing the received basic information and the received behavior information in a grouping mode according to the sequence of the generation time, so that the readability and standardability of data in the basic information and the behavior information are improved, and judging whether the dynamic table accords with the query statement to acquire the query result or not to give the corresponding data value to the corresponding tag according to different query results, so that the accuracy of the tag result is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present 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 schematic diagram of an application environment of a tag generating method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a label generating method according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a label generating apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the invention. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that the sequence numbers of the steps in the following embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not be construed as limiting the implementation process of the embodiments of the present invention.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
The label generating method provided by the embodiment of the invention can be applied to an application environment as shown in fig. 1, wherein a client communicates with a server. The clients include, but are not limited to, palm top computers, desktop computers, notebook computers, ultra-mobile personal computer (UMPC), netbooks, cloud computing devices, personal digital assistants (personal digital assistant, PDA), and other computing devices. The server may be implemented by a stand-alone server or a server cluster formed by a plurality of servers.
Referring to fig. 2, a flowchart of a tag generation method according to an embodiment of the present invention may be applied to the client in fig. 1, where the tag generation method may include the following steps:
in step S201, log information of the target system is received, where the log information includes basic information, behavior information, and generation time generated after the user operates in the target system.
In the development and use process of the application, the log information can provide data support in the aspects of quickly positioning the root of a problem, carrying out data statistics, performance analysis and the like by recording information of multiple aspects of user operation information, collecting operation environment data, tracking data change information, tracking program execution process information and the like, so as to guide development and maintenance work of the application and improve development and maintenance efficiency of the application.
In this embodiment, first, log information of a target system is received, where the log information includes basic information, behavior information and generation time that are correspondingly generated after a user operates in the target system. The basic information can be basic information representing multiple aspects such as user identity, user preference, user demand, user state and the like, the behavior information can be behavior information representing multiple aspects such as demand expression, information acquisition, information utilization and the like which are represented when a user seeks required information, the generation time can be corresponding basic information and the time when the behavior information is acquired, and the user portrait can be depicted and analyzed by recording the basic information, the behavior information and the generation time of the user in a period of time in log information to serve as a label generation basis of the user.
The step of receiving the log information of the target system, wherein the log information comprises basic information, behavior information and generation time generated after the user operates in the target system, the basic information, the behavior information and the generation time generated after the user operates in the target system in a period of time are recorded in the log information, and an information basis is provided for label generation of the user.
Step S202, corresponding basic information and behavior information are written into the dynamic table according to the sequence of the generation time.
The dynamic table can be used for temporarily storing data contents such as dynamic data and transition data, and can also be used for grouping, sorting, de-duplication and the like of the data contents by means of the temporary table.
In this embodiment, the generation time is the time when the corresponding basic information and behavior information are collected, and the dynamic table is used to store the basic information and behavior information in the log information, and write the corresponding basic information and behavior information into the dynamic table according to the order of the generation time, so as to store the received basic information and behavior information in a grouping manner, and improve the readability and normalization of the data in the basic information and behavior information.
Optionally, writing the corresponding basic information and behavior information into the dynamic table according to the order of the generation time includes:
according to the sequence of the generation time, determining basic information and behavior information corresponding to each generation time;
aiming at basic information and behavior information corresponding to any generation time, respectively writing the basic information and the behavior information corresponding to each window into a dynamic table according to a preset window sequence;
traversing all the generation times according to the sequence of the generation times, and writing the corresponding basic information and behavior information into the dynamic table.
After the basic information and the behavior information corresponding to each generation time are determined according to the sequence of the generation time, the basic information and the behavior information corresponding to any generation time are respectively written into a dynamic table according to a preset window sequence, so that the readability and normalization of data in the basic information and the behavior information are further improved. And traversing all the generation times according to the sequence of the generation times, writing the corresponding basic information and behavior information into the dynamic table, and completing the conversion from the basic information and the behavior information into the dynamic table.
According to the method and the device, after the basic information and the behavior information corresponding to each generation time are determined according to the sequence of the generation time, the basic information and the behavior information corresponding to each window are written into the dynamic table according to the preset window sequence for the basic information and the behavior information corresponding to any generation time, so that the readability and the standardization of data in the basic information and the behavior information are improved, and the label generation accuracy is improved.
The step of writing the corresponding basic information and behavior information into the dynamic table according to the sequence of the generation time, and storing the received basic information and behavior information in groups according to the sequence of the generation time, so that the readability and normalization of the data in the basic information and the behavior information are improved, and the accuracy of label generation is further improved.
Step S203, a tag query statement set at the current time is obtained, and each query statement in the tag query statement set is used for querying the dynamic table to obtain a query result of the corresponding query statement.
The label inquiry statement set comprises a plurality of inquiry statements, and each inquiry statement comprises a corresponding inquiry statement field, a preset inquiry condition and a label defined by the inquiry statement field and the preset inquiry condition.
Specifically, when each query statement in the tag query statement set is used for querying the dynamic table, for any query statement, a preset query condition in the query statement is used for querying the dynamic table, so as to obtain a query result of the corresponding query statement.
The query result may be that the dynamic table meets the corresponding preset query condition or does not meet the corresponding preset query condition, so that the corresponding query result can be obtained by judging whether the dynamic table meets the preset query condition, analysis and classification of information in the dynamic table are completed, and query results corresponding to all query sentences are used as a basis for generating the labels, so that the label generating accuracy is improved.
Optionally, before acquiring the tag query statement set at the current time, the method further includes:
acquiring user identity authentication information, a tag type, a tag code and a tag value, and inquiring statement fields according to the user identity authentication information, the tag type, the tag code and the tag value;
acquiring preset query conditions, and corresponding defined labels of the query statement fields and the preset query conditions, and acquiring query statements according to the query statement fields, the query conditions and the corresponding defined labels;
repeatedly executing the steps of obtaining preset query conditions, obtaining query sentences according to the query sentence fields, the query conditions and the labels correspondingly defined by the preset query conditions, and obtaining a plurality of query sentences;
and forming a preset label query statement set according to the plurality of query statements.
Wherein, before acquiring the tag query statement set at the current time, a query statement needs to be established. In this embodiment, each query sentence includes a corresponding query sentence field, a preset query condition, and a label defined by the corresponding query sentence field and the preset query condition. The query statement field comprises user identity authentication information, a tag type, a tag code and a tag value, and the query statement field and preset query conditions are combined to correspondingly define the tag.
Specifically, when a query statement is established, a query statement field is obtained according to the obtained user identity authentication information, the label type, the label code and the label value, a preset query condition is obtained, and the query statement field and the label defined by the preset query condition correspond to each other, so that the query statement is obtained according to the query statement field, the query condition and the label defined by the corresponding relationship. And repeatedly executing the establishment process of the query sentences for a plurality of times to obtain a plurality of query sentences so as to form a preset label query sentence set.
In this embodiment, a query statement is constructed by a corresponding query statement field, a preset query condition, and a label defined by the corresponding query statement field and the preset query condition, so as to obtain a label query statement set, and provide a query basis for label generation.
Optionally, the preset query condition includes a plurality of query sub-conditions;
using each query statement in the tag query statement set to query the dynamic table, and obtaining a query result of the corresponding query statement comprises:
for any query statement in the tag query statement set, respectively querying the dynamic table according to each query sub-condition in the query statement to obtain a query result corresponding to each query sub-condition, wherein the query result is in accordance with the corresponding query sub-condition or not in accordance with the corresponding query sub-condition;
traversing all query sentences in the label query sentence set to obtain a query result of each query sub-condition in the corresponding query sentence.
The preset query condition may include a plurality of query sub-conditions, and correspondingly, the query statement field and the label defined by the preset query condition include a plurality of query statement fields and the sub-label defined by the preset query sub-condition.
Correspondingly, when each query statement in the tag query statement set is used for querying the dynamic table to obtain a query result of the corresponding query statement, for any query statement in the tag query statement set, the dynamic table is queried according to each query sub-condition in the query statement to obtain a query result of each query sub-condition, and the query result meets the corresponding query sub-condition or does not meet the corresponding query sub-condition.
Traversing all query sentences in the label query sentence set to obtain a query result corresponding to each query sub-condition in the query sentences, and taking the query result as a data basis to improve the rationality of label generation.
The preset query conditions in the embodiment comprise a plurality of query sub-conditions, the query result corresponding to each query sub-condition is obtained through each query sub-condition query dynamic table, and the query results of all the query sub-conditions are used as the basis of label generation, so that the rationality of label generation is improved.
The step of obtaining the label query statement set under the current time, using each query statement in the label query statement set to query the dynamic table to obtain the query result of the corresponding query statement, using the preset query condition in the query statement to query the dynamic table, and judging whether the dynamic table meets the preset query condition to obtain the corresponding query result, thereby completing the analysis and classification of the information in the dynamic table and improving the accuracy of label generation.
Step S204, according to the label defined by each query statement, determining the data value corresponding to the label in the corresponding query result.
Each query sentence comprises a corresponding query sentence field, a preset query condition, and a label defined by the query sentence field and the preset query condition, and according to each group of query sentence fields and the preset query condition, a label defined correspondingly can be determined, so that the label defined correspondingly for each query result can be determined.
For the same query statement, a corresponding query result is obtained by judging whether the dynamic table accords with a corresponding preset query condition, and different data values are given to the labels correspondingly defined by different query results, so that the label value of the dynamic table relative to the query statement can be obtained after judging whether the dynamic table accords with the corresponding preset query condition.
Therefore, by traversing all query sentences, the tag value of the dynamic table relative to each query sentence can be obtained, and tag data can be generated according to all the tag values.
Optionally, determining, according to the label defined by each query statement, the data value corresponding to the label in the corresponding query result includes:
for any query statement in the tag query statement set, determining a data value corresponding to a tag in a query result corresponding to each query sub-condition according to the sub-tag correspondingly defined by each query sub-condition in the query statement;
traversing all query sentences in the label sentence collection to obtain a plurality of data values, and obtaining a label result according to the plurality of data values.
When the preset query condition comprises a plurality of query sub-conditions, the query statement field and the label defined by the preset query condition correspond to the query sub-conditions comprise a plurality of query statement fields and the sub-label defined by the preset query sub-conditions.
For any query sub-condition in any query statement in the tag query statement set, a sub-tag corresponding to the definition of the corresponding query result can be determined. After the corresponding query result is obtained by judging whether the dynamic table accords with the corresponding preset query sub-condition, the data values of the sub-tags defined by different query results are different. Therefore, the data values of all the sub-labels defined by the query statement can be obtained by traversing all the query sub-conditions corresponding to the query statement, and then traversing all the query statement to obtain the data values of all the sub-labels defined by each query statement, so as to obtain the label result according to the data values of all the sub-labels defined by all the query statement.
According to the embodiment, whether the dynamic table accords with the query result corresponding to the preset query sub-condition or not is determined, the data value corresponding to the label in the query result corresponding to each query sub-condition, the label result is obtained according to the data values of all the sub-labels correspondingly defined by all the query sentences, and the rationality of the query result is improved.
Optionally, according to the sub-tag defined by each query sub-condition in the query statement, determining the data value corresponding to the tag in the query result corresponding to each query sub-condition includes:
for any query sub-condition, if the query result of the corresponding query sub-condition is in accordance with the corresponding query sub-condition, determining the data value corresponding to the tag in the query result of the corresponding query sub-condition as a first preset value, and if the query result of the corresponding query sub-condition is not in accordance with the corresponding query sub-condition, determining the data value corresponding to the tag in the query result of the corresponding query sub-condition as a second preset value;
traversing all the query sub-conditions, and determining the data value corresponding to the label in the query result corresponding to each query sub-condition.
The query result of the corresponding query sub-condition meets the corresponding query sub-condition or does not meet the corresponding query sub-condition aiming at any query sub-condition.
If the query result of the corresponding query sub-condition is in accordance with the corresponding query sub-condition, determining the data value corresponding to the tag in the query result of the corresponding query sub-condition as a first preset value, and if the query result of the corresponding query sub-condition is not in accordance with the corresponding query sub-condition, determining the data value corresponding to the tag in the query result of the corresponding query sub-condition as a second preset value, so as to determine different data values of the corresponding defined sub-tag according to different query results of the same query sub-condition, thereby improving the accuracy of tag generation.
According to the method and the device, different data values of the corresponding defined sub-tags are determined according to different query results of the same query sub-condition, so that the accuracy of tag generation is improved.
The step of determining the data value corresponding to the label in the corresponding query result according to the label defined by each query statement, and after judging whether the dynamic table accords with the corresponding preset query condition, endowing different data values to the labels defined by different query results, thereby improving the accuracy of label generation.
According to the embodiment, the log information comprises basic information, behavior information and generation time generated after a user operates in a target system, the corresponding basic information and behavior information are written into a dynamic table according to the sequence of the generation time, a tag query statement set under the current time is obtained, each query statement in the tag query statement set is used for querying the dynamic table to obtain a query result of the corresponding query statement, a data value corresponding to the tag in the corresponding query result is determined according to the tag correspondingly defined by each query statement, the received basic information and behavior information are stored in a grouping mode according to the sequence of the generation time, the readability and the standardability of the data in the basic information and the behavior information are improved, the query result is obtained by judging whether the dynamic table accords with the query statement or not, the corresponding data value is given to the corresponding tag according to different query results, and the accuracy of the tag result is improved.
Corresponding to the label generating method of the above embodiment, fig. 3 is a block diagram of a label generating apparatus according to a second embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown.
Referring to fig. 3, the tag generating apparatus includes:
an information receiving module 31, configured to receive log information of a target system, where the log information includes basic information, behavior information, and generation time generated after a user operates in the target system;
an information processing module 32, configured to write corresponding basic information and behavior information into the dynamic table according to the order of the generation time;
the statement query module 33 is configured to obtain a tag query statement set at a current time, query the dynamic table by using each query statement in the tag query statement set, and obtain a query result of a corresponding query statement;
the tag generation module 34 is configured to determine a data value corresponding to the tag in the corresponding query result according to the tag defined by each query statement.
Optionally, the tag generating apparatus further includes:
the information acquisition module is used for acquiring user identity authentication information, label types, label codes and label values, and inquiring statement fields according to the user identity authentication information, the label types, the label codes and the label values;
the first statement generation module is used for acquiring preset query conditions, and corresponding defined labels of the query statement fields and the preset query conditions, and obtaining query statements according to the query statement fields, the query conditions and the corresponding defined labels;
the second sentence generating module is used for repeatedly executing the steps of obtaining preset query conditions, obtaining the query sentences according to the query sentence fields, the query conditions and the labels correspondingly defined by the query sentence fields and the preset query conditions, and obtaining a plurality of query sentences;
the statement collection module is used for forming a preset label query statement set according to a plurality of query statements.
Optionally, the information processing module 32 includes:
the information dividing sub-module is used for determining basic information and behavior information corresponding to each generation time according to the sequence of the generation times;
the first information processing sub-module is used for writing the basic information and the behavior information corresponding to each window into the dynamic table according to a preset window sequence aiming at the basic information and the behavior information corresponding to any generation time;
and the second information processing sub-module is used for traversing all the generation times according to the sequence of the generation times and writing the corresponding basic information and behavior information into the dynamic table.
Optionally, the preset query conditions include a plurality of query sub-conditions, and the sentence query module 33 includes:
the first statement inquiry sub-module is used for inquiring the dynamic table according to each inquiry sub-condition in the label inquiry statement set to obtain an inquiry result corresponding to each inquiry sub-condition, wherein the inquiry result is in accordance with the corresponding inquiry sub-condition or not in accordance with the corresponding inquiry sub-condition;
and the second statement inquiry sub-module is used for traversing all inquiry statements in the label inquiry statement set to obtain inquiry results of each inquiry sub-condition in the corresponding inquiry statement.
Optionally, the tag generating module 34 includes:
the first data value determining sub-module is used for determining the data value corresponding to the label in the query result corresponding to each query sub-condition according to the sub-label correspondingly defined by each query sub-condition in the query statement aiming at any query statement in the label query statement set;
the second data value determining sub-module is used for traversing all query sentences in the label sentence collection to obtain a plurality of data values, and obtaining a label result according to the plurality of data values.
Optionally, the first data value determining submodule includes:
the first data value determining unit is used for determining that the data value corresponding to the label in the query result of the corresponding query sub-condition is a first preset value if the query result of the corresponding query sub-condition is in accordance with the corresponding query sub-condition, and determining that the data value corresponding to the label in the query result of the corresponding query sub-condition is a second preset value if the query result of the corresponding query sub-condition is not in accordance with the corresponding query sub-condition;
and the second data value determining unit is used for traversing all the query sub-conditions and determining the data value corresponding to the label in the query result corresponding to each query sub-condition.
It should be noted that, because the content of information interaction and execution process between the modules and the embodiment of the method of the present invention are based on the same concept, specific functions and technical effects thereof may be referred to in the method embodiment section, and details thereof are not repeated herein.
Fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. As shown in fig. 4, the computer device of this embodiment includes: at least one processor (only one shown in fig. 4), a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing the computer program to perform the steps of any of the various tag generation method embodiments described above.
The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a computer device and is not intended to limit the computer device, and that a computer device may include more or fewer components than shown, or may combine certain components, or different components, such as may also include a network interface, a display screen, an input device, and the like.
The processor may be a 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. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory includes a readable storage medium, an internal memory, etc., where the internal memory may be the memory of the computer device, the internal memory providing an environment for the execution of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may be an external storage device of the computer device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. that are provided on the computer device. Further, the memory may also include both internal storage units and external storage devices of the computer device. The memory is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs such as program codes of computer programs, and the like. The memory may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above-described embodiment, and may be implemented by a computer program to instruct related hardware, and 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 the method embodiment described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The present invention may also be implemented as a computer program product for implementing all or part of the steps of the method embodiments described above, when the computer program product is run on a computer device, causing the computer device to execute the steps of the method embodiments described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/computer device and method may be implemented in other manners. For example, the apparatus/computer device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A tag generation method, characterized in that the tag generation method comprises:
receiving log information of a target system, wherein the log information comprises basic information, behavior information and generation time generated after a user operates in the target system;
writing the corresponding basic information and behavior information into a dynamic table according to the sequence of the generation time;
acquiring a tag query statement set in the current time, and querying the dynamic table by using each query statement in the tag query statement set to obtain a query result of a corresponding query statement;
and determining the data value corresponding to the label in the corresponding query result according to the label defined by each query statement.
2. The tag generation method of claim 1, wherein writing the corresponding basic information and behavior information into the dynamic table in the order of the generation time includes:
according to the sequence of the generation time, determining basic information and behavior information corresponding to each generation time;
aiming at basic information and behavior information corresponding to any generation time, respectively writing the basic information and the behavior information corresponding to each window into a dynamic table according to a preset window sequence;
traversing all the generation times according to the sequence of the generation times, and writing the corresponding basic information and behavior information into a dynamic table.
3. The tag generation method according to claim 1, further comprising, prior to the acquiring the set of tag query statements at the current time:
acquiring user identity authentication information, a tag type, a tag code and a tag value, and inquiring statement fields according to the user identity authentication information, the tag type, the tag code and the tag value;
acquiring preset query conditions, and labels defined by the query statement fields and the preset query conditions, and acquiring query statements according to the query statement fields, the query conditions and the labels defined correspondingly;
repeatedly executing the steps of obtaining preset query conditions, and obtaining query sentences according to the query sentence fields, the query conditions and the labels correspondingly defined by the query sentence fields and the preset query conditions to obtain a plurality of query sentences;
and forming a preset label query statement set according to the plurality of query statements.
4. The tag generation method of claim 3, wherein the preset query condition includes a plurality of query sub-conditions;
and querying the dynamic table by using each query statement in the tag query statement set to obtain a query result of the corresponding query statement, wherein the step of obtaining the query result comprises the following steps:
for any query statement in the tag query statement set, querying the dynamic table according to each query sub-condition in the query statement to obtain a query result corresponding to each query sub-condition, wherein the query result is in accordance with the corresponding query sub-condition or not in accordance with the corresponding query sub-condition;
traversing all query sentences in the label query sentence set to obtain a query result of each query sub-condition in the corresponding query sentence.
5. The tag generation method according to claim 4, wherein the determining the data value corresponding to the tag in the corresponding query result according to the tag defined by each query statement includes:
for any query statement in the tag query statement set, determining a data value corresponding to a tag in a query result corresponding to each query sub-condition according to the sub-tag correspondingly defined by each query sub-condition in the query statement;
traversing all query sentences in the label sentence collection to obtain a plurality of data values, and obtaining a label result according to the plurality of data values.
6. The method of claim 5, wherein determining the data value corresponding to the tag in the query result corresponding to each query sub-condition according to the sub-tag defined corresponding to each query sub-condition in the query statement comprises:
for any query sub-condition, if the query result corresponding to the query sub-condition is in accordance with the corresponding query sub-condition, determining that the data value corresponding to the tag in the query result corresponding to the query sub-condition is a first preset value, and if the query result corresponding to the query sub-condition is not in accordance with the corresponding query sub-condition, determining that the data value corresponding to the tag in the query result corresponding to the query sub-condition is a second preset value;
traversing all the query sub-conditions, and determining the data value corresponding to the label in the query result corresponding to each query sub-condition.
7. A tag generation apparatus, characterized in that the tag generation apparatus comprises:
the information receiving module is used for receiving log information of a target system, wherein the log information comprises basic information, behavior information and generation time generated after a user operates in the target system;
the information processing module is used for writing the corresponding basic information and behavior information into a dynamic table according to the sequence of the generation time;
the statement inquiry module is used for acquiring a tag inquiry statement set at the current time, and inquiring the dynamic table by using each inquiry statement in the tag inquiry statement set to obtain an inquiry result of the corresponding inquiry statement;
and the label generating module is used for determining a data value corresponding to the label in the corresponding query result according to the label correspondingly defined by each query statement.
8. The tag generation apparatus according to claim 7, wherein the tag generation apparatus further comprises:
the information acquisition module is used for acquiring user identity authentication information, a tag type, a tag code and a tag value, and inquiring statement fields according to the user identity authentication information, the tag type, the tag code and the tag value;
the first statement generation module is used for acquiring preset query conditions, the query statement fields and the labels correspondingly defined by the preset query conditions, and obtaining query statements according to the query statement fields, the query conditions and the labels correspondingly defined;
the second sentence generating module is used for repeatedly executing the steps of obtaining preset query conditions, obtaining the query sentences according to the query sentence fields, the query conditions and the labels correspondingly defined by the preset query conditions, and obtaining a plurality of query sentences;
and the statement collection module is used for forming a preset label query statement set according to the plurality of query statements.
9. A computer device, characterized in that it comprises a processor, a memory and a computer program stored in the memory and executable on the processor, which processor implements the label generating method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the label generation method according to any one of claims 1 to 6.
CN202310154112.1A 2023-02-17 2023-02-17 Label generation method, label generation device, computer equipment and medium Pending CN116303820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310154112.1A CN116303820A (en) 2023-02-17 2023-02-17 Label generation method, label generation device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310154112.1A CN116303820A (en) 2023-02-17 2023-02-17 Label generation method, label generation device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN116303820A true CN116303820A (en) 2023-06-23

Family

ID=86835319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310154112.1A Pending CN116303820A (en) 2023-02-17 2023-02-17 Label generation method, label generation device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN116303820A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407048A (en) * 2023-12-14 2024-01-16 江西飞尚科技有限公司 Flow configuration method and system of plug-in data processing software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407048A (en) * 2023-12-14 2024-01-16 江西飞尚科技有限公司 Flow configuration method and system of plug-in data processing software
CN117407048B (en) * 2023-12-14 2024-03-12 江西飞尚科技有限公司 Flow configuration method and system of plug-in data processing software

Similar Documents

Publication Publication Date Title
CN111104426B (en) Data query method and system
CN110737689B (en) Data standard compliance detection method, device, system and storage medium
CN109933502B (en) Electronic device, user operation record processing method and storage medium
CN112947986B (en) Multi-version code sign-on control method, device, client and storage medium
CN112181386B (en) Code construction method, device and terminal based on software continuous integration
CN111460011A (en) Page data display method and device, server and storage medium
CN108446989B (en) Method for determining commission charge and terminal equipment
CN116303820A (en) Label generation method, label generation device, computer equipment and medium
CN113010116A (en) Data processing method and device, terminal equipment and readable storage medium
CN110245074B (en) Log record generation method and device, storage medium and server
CN109241511B (en) Electronic report generation method and equipment
WO2018205391A1 (en) Method, system and apparatus for evaluating accuracy of information retrieval, and computer-readable storage medium
CN109740130B (en) Method and device for generating file
CN111045983B (en) Nuclear power station electronic file management method, device, terminal equipment and medium
CN115310127A (en) Data desensitization method and device
CN111198900B (en) Data caching method and device for industrial control network, terminal equipment and medium
CN113609128A (en) Method and device for generating database entity class, terminal equipment and storage medium
CN109543079B (en) Data query method and device, computing equipment and storage medium
CN109284278B (en) Calculation logic migration method based on data analysis technology and terminal equipment
CN118132551A (en) Management method, positioning method, device, equipment and medium for data storage address
CN116483735B (en) Method, device, storage medium and equipment for analyzing influence of code change
CN112214220B (en) Method, apparatus and device for integrated system
CN112328960B (en) Optimization method and device for data operation, electronic equipment and storage medium
CN113157538B (en) Spark operation parameter determination method, device, equipment and storage medium
US11120085B2 (en) Individual deviation analysis by warning pattern detection

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