CN107168776B - Event statistical method, device, equipment and storage medium - Google Patents

Event statistical method, device, equipment and storage medium Download PDF

Info

Publication number
CN107168776B
CN107168776B CN201710342802.4A CN201710342802A CN107168776B CN 107168776 B CN107168776 B CN 107168776B CN 201710342802 A CN201710342802 A CN 201710342802A CN 107168776 B CN107168776 B CN 107168776B
Authority
CN
China
Prior art keywords
structured
event
state
events
list
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.)
Active
Application number
CN201710342802.4A
Other languages
Chinese (zh)
Other versions
CN107168776A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710342802.4A priority Critical patent/CN107168776B/en
Publication of CN107168776A publication Critical patent/CN107168776A/en
Application granted granted Critical
Publication of CN107168776B publication Critical patent/CN107168776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Abstract

The invention discloses an event statistical method, an event statistical device, event statistical equipment and a storage medium. The method comprises the following steps: establishing a structured event list according to the relation between the structured events, wherein the structured events comprise at least two single events; updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured events; and determining the statistical result of the structured event according to the trigger state of the single event in the structured event list. By the technical scheme, the efficiency of structured event statistics can be improved, and the influence on the original code is avoided.

Description

Event statistical method, device, equipment and storage medium
Technical Field
The present invention relates to statistical technologies, and in particular, to an event statistical method, an event statistical apparatus, an event statistical device, and a storage medium.
Background
The structured event refers to an event combination formed by combining two or more events, and the use frequency of the current application by the user can be well mastered by counting the structured events, so that the application which is more interested by the user can be acquired.
In the prior art, a statistical method for a structured event is to change a code corresponding to a single event to be counted, so as to realize statistics for the single event, transmit a statistical result of the single event to a single event in a next structured event, change a code corresponding to the single event in the next structured event, so as to realize statistics for the single event in the next structured event, and so on until the structured event statistics is finished.
The problems existing in the prior art are as follows: because the statistics of the structured events needs to change the codes corresponding to the single events, namely, the original codes are changed, the original codes are easily influenced, the intrusion is very strong, the statistical codes and the service codes are easily mixed together, the differentiation is not easy, and the coupling is very high.
Disclosure of Invention
Embodiments of the present invention provide an event statistics method, apparatus, device, and storage medium, which can improve efficiency of structured event statistics and avoid an influence on an original code.
In a first aspect, an embodiment of the present invention provides an event statistics method, including:
establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events;
updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list;
and determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
Further, the trigger state comprises a triggered state and an untriggered state;
before each structured event statistics, the method further comprises the following steps:
initializing the triggering state of each single event in the structured event list into an un-triggering state;
updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list, including:
judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event;
if yes, updating the trigger state corresponding to the currently detected single event in the structured event list to be a triggered state; otherwise, resetting the trigger state of each single event in the structured event list to be an un-trigger state.
Further, the determining the statistical result of the structured event according to the trigger state of the single event in the structured event list includes:
judging whether the trigger states of the single event in the structured event list are all updated to be the triggered states;
and if all the structured events are updated to be in the triggered state, counting the completion times of the structured events plus 1.
Further, if all the update results are in the triggered state, counting the number of times of completion of the structured event plus 1, and then further including:
resetting the trigger state of each single event in the structured event list to an un-trigger state.
In a second aspect, an embodiment of the present invention further provides an event statistics apparatus, where the apparatus includes:
the list establishing module is used for establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events;
the updating module is used for updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured events;
and the determining module is used for determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
Further, the trigger state comprises a triggered state and an untriggered state;
further comprising:
the initialization module is used for initializing the triggering state of each single event in the structured event list into an un-triggering state before counting the structured events each time;
the update module includes:
the judging unit is used for judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event;
the state updating unit is used for updating the triggering state corresponding to the currently detected single event in the structured event list into a triggered state if the single event is detected;
a resetting unit, configured to reset the triggered state of each single event in the structured event list to an un-triggered state if not.
Further, the determining module comprises:
the judging unit is used for judging whether the triggering states of the single events in the structured event list are all updated to be triggering states;
and the counting unit is used for counting the completion times of the structured events plus 1 if all the structured events are updated to be the triggered states.
Further, the method also comprises the following steps:
and the resetting unit is used for resetting the triggering state of each single event in the structured event list to be an un-triggering state after counting the completion times of the structured events and adding 1 if all the events are updated to be the triggered states.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the event statistics method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the event statistics method according to any one of the embodiments of the present invention.
The embodiment of the invention establishes the structured event list according to the relation between the structured events, updates the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured events, determines the statistical result of the structured events according to the trigger state of the single event in the structured event list, and the statistical process runs independently of the program to be tested, avoids the intervention of the code of the program to be tested as much as possible, only detects the event, can improve the efficiency of the structured event statistics, is simple, convenient and reliable, and avoids the influence on the original code.
Drawings
FIG. 1 is a flow chart of an event statistics method according to a first embodiment of the present invention;
FIG. 2A is a flowchart of an event statistics method according to a second embodiment of the present invention;
FIG. 2B is a diagram illustrating a structured event according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an event statistics apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an event statistics method according to an embodiment of the present invention, where the present embodiment is applicable to an event statistics situation, and the method may be executed by an event statistics apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, establishing a structured event list according to the relation between the structured events, wherein the structured events comprise at least two single events.
The relationship between the structured events refers to a relationship between single events constituting the structured events, for example, the structured events may be that a user clicks a page a (single event a), then clicks a page B (single event B), and then clicks a page C (single event C), and the relationship between the structured events is a relationship between the single event a, the single event B, and the single event C.
The structured event list refers to a list in which single events are arranged according to the sequence in the structured events. For example, the structured event list may include a single event a, a single event B, and a single event C according to the sequence in the structured event list.
And S120, updating the trigger state corresponding to the single event in the structured event list based on the trigger condition of each single event in the structured events.
The triggering condition of the single event refers to an occurrence condition of the single event, and for example, if the user opens the page a, the single event of opening the page a is triggered.
Specifically, the trigger state of the single event in the structured event list is updated according to the trigger condition of the single event, for example, if the user opens the page a, the trigger state of the single event of opening the page a in the structured event list is updated, if the user next opens the page B, if the open page B is the next single event after the single event of opening the page a in the structured event list, the trigger state of the single event of opening the page B in the structured event list is updated.
S130, determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
Specifically, if the trigger states of the single event in the structured event list are all the triggered states, determining that the structured event occurs for 1 time, recording the times of the structured event, resetting the trigger state of the single event in the structured event list to be the non-triggered state, continuing to update the trigger state of the corresponding single event in the structured event list according to the trigger condition of the single event until the trigger states of the single event in the structured event list are all the triggered states, determining that the structured event occurs for 2 times, recording the times of the structured event, resetting the trigger state of the single event in the structured event list to be the non-triggered state, and repeatedly executing the steps to further realize the statistics of the structured event and obtain the statistical result.
According to the technical scheme of the embodiment of the invention, the structured event list is established according to the relation between the structured events, the trigger state of the corresponding single event in the structured event list is updated based on the trigger condition of each single event in the structured events, the statistical result of the structured events is determined according to the trigger state of the single event in the structured event list, the statistical process is independent of the program to be tested and runs, the code of the program to be tested is avoided to be intervened as much as possible, only the event is detected, the statistical efficiency of the structured events can be improved, the method is simple, convenient and reliable, and the influence on the original code is avoided.
Example two
Fig. 2A is a flowchart of an event statistics method according to a second embodiment of the present invention, which is optimized based on the second embodiment, in the present embodiment, the triggered state includes a triggered state and an un-triggered state; before each structured event statistics, the method further comprises the following steps: initializing the triggering state of each single event in the structured event list into an un-triggering state; updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list, including: judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event; if yes, updating the trigger state corresponding to the currently detected single event in the structured event list to be the triggered state; otherwise, the trigger state of each single event in the structured event list is reset to the non-trigger state.
Therefore, whether the currently detected single event is the single event in the non-triggering state with the highest ranking in the structured event list or not is judged, and the situation that the counted occurrence frequency of the structured event is not consistent with the actual situation can be prevented. The structured event statistics can be more accurately realized.
Correspondingly, the method provided by the embodiment specifically comprises the following steps:
s210, establishing a structured event list according to the relation between the structured events, wherein the structured events comprise at least two single events.
S220, initializing the triggering state of each single event in the structured event list into an un-triggering state.
Specifically, the trigger states of all the single events in the structured event list are set to be the non-trigger state, so that statistics can be performed subsequently according to the operation of the user.
S230, according to the triggering condition of the current single event, determining whether the current triggered single event matches the triggering sequence of the events in the structured event list, if yes, executing S240, and if no, executing S250.
Specifically, the structured event is a combined event constructed by arranging single events according to a certain order, and if the single event is a single event in an un-triggered state with the top order in the structured event list, it is indicated that the currently triggered single event is a single event constituting the structured event, and the currently triggered single event satisfies the arrangement order constituting the structured event. If the currently triggered single event is not the single event in the non-triggered state which is ranked the top in the structured event list, the currently triggered single event is not the single event constituting the structured event or the currently detected single event does not satisfy the arrangement order constituting the structured event.
S240, updating the trigger state corresponding to the currently detected single event in the structured event list to be the triggered state.
S250, resetting the triggering state of each single event in the structured event list to be an un-triggering state.
Specifically, the triggering state of each single event in the structured event list is completely reset to be the non-triggering state, so that the next round of statistics can be executed according to the operation of the user.
S260, determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
Optionally, the determining the statistical result of the structured event according to the trigger state of the single event in the structured event list includes:
judging whether the trigger states of the single event in the structured event list are all updated to be the triggered states;
and if all the structured events are updated to be in the triggered state, counting the completion times of the structured events plus 1.
Specifically, if the trigger states of the structured event are all triggered states, the number of times of completion of the structured event is counted and added by 1. The number of times of completion of the initialization statistical structured event is 0.
Optionally, if all the update results are updated to the triggered state, counting that 1 is added to the number of times of completion of the structured event, and then further including:
resetting the trigger state of each single event in the structured event list to an un-trigger state.
Specifically, after the number of times of completing the structured event is counted and 1 is added, the trigger state of a single event in the structured event list is reset to the initial state, and a new round of counting is started.
In one specific example, the process of structured event statistics is: step 1: establishing a structured event list according to the relation between single events in the structured events and storing the structured event list in a linked list, wherein each single event has two states of a triggered state and an un-triggered state, and each single event to be counted can receive the trigger state of the previous single event; step 2: starting to detect the triggering condition of a single event, receiving a single event A triggered by a user, and judging whether the single event A triggered by the user accords with a structure in a structured event list (the sequence of the single event is consistent); and step 3: if the single event A triggered by the user accords with the structure in the structured event list, updating the triggering state of the single event A into the triggered state, if the single event A triggered by the user does not accord with the structure in the structured event list, resetting the triggering states of all the single events in the structured event list into the non-triggering state, and repeatedly executing the step 2; and 4, step 4: triggering a single event B after a user triggers the single event A, judging whether the single event B triggered by the user is the next single event of the single event A in the structured event list, if so, updating the triggering state of the single event B to be the triggered state, if not, resetting the triggering states of all the single events in the structured event list to be the non-triggered state, and repeatedly executing the step 2; and 5: judging whether the trigger states of the single event in the structured event list are all updated to be the triggered states, if so, adding 1 to the statistics of the structured event; if not, repeating step 3 or step 4.
In another specific example, as shown in fig. 2B, there are 4 paths from the a page and the B page to the E page, which are the a page-C page-E page, the a page-C page-D page-E page, the B page-C page-E page, and the B page-C page-D page-E page, respectively, and if a structured event is to be added to count the structured event of the a page-C page-E page at this time, the process of counting the structured events of the a page-C page-E page is as follows: step 1, converting a structured event of an A page, a C page and an E page into a structured event list, and initializing the triggering states of the A page, the C page and the E page in the structured event list into an untethered state; step 2, setting dotting interfaces capable of receiving event trigger states in software codes of a page A, a page B, a page C, a page D and a page E; step 3, the user enters from the page A, namely the event of the page A is triggered, and then the triggering state of the page A is updated to be the triggered state; step 4, after the user enters the C page from the A page, updating the triggering state of the C page into a triggered state; step 5, if the user directly receives the E page from the C page, updating the trigger state of the E page to be the triggered state, and completing the statistics of the A page-C page-E page structured events; if the user goes from the page C to the page D, the page D does not conform to the page A, the page C and the page E of the structured event, so that the event cannot be counted, the triggering states of the page A, the page C and the page E are reset to be in a non-triggering state, and the step 3 is repeatedly executed.
According to the technical scheme of the embodiment, whether the currently triggered single event accords with the triggering sequence of the events in the structured event list is judged according to the triggering condition of the current single event by initializing the triggering state of the single event in the structured event list to be an un-triggered state; if yes, updating the trigger state corresponding to the currently detected single event in the structured event list to be the triggered state; otherwise, the triggering state of each single event in the structured event list is reset to be an un-triggering state, so that the condition that the counted occurrence frequency of the structured events is inconsistent with the actual situation is avoided. The statistical process is independent of the operation outside the program to be tested, avoids the intervention of the code of the program to be tested as much as possible, only detects the occurred event, and can achieve the purpose of more accurately realizing the statistics of the structured event.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an event statistics apparatus according to a third embodiment of the present invention. The present embodiment may be applicable to the event statistics, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device providing an event statistics function, as shown in fig. 3, where the event statistics apparatus specifically includes: a list creation module 310, an update module 320, and a determination module 330.
The list establishing module 310 is configured to establish a structured event list according to a relationship between structured events, where the structured events include at least two single events;
an updating module 320, configured to update the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list;
the determining module 330 is configured to determine a statistical result of the structured event according to the trigger state of the single event in the structured event list.
Optionally, the trigger state includes a triggered state and an un-triggered state;
further comprising:
the initialization module is used for initializing the triggering state of each single event in the structured event list into an un-triggering state before counting the structured events each time;
the update module includes:
the judging unit is used for judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event;
the state updating unit is used for updating the triggering state corresponding to the currently detected single event in the structured event list into a triggered state if the single event is detected;
a resetting unit, configured to reset the triggered state of each single event in the structured event list to an un-triggered state if not.
Optionally, the determining module includes:
the judging unit is used for judging whether the triggering states of the single events in the structured event list are all updated to be triggering states;
and the counting unit is used for counting the completion times of the structured events plus 1 if all the structured events are updated to be the triggered states.
Optionally, the method further includes:
and the resetting unit is used for resetting the triggering state of each single event in the structured event list to be an un-triggering state after counting the completion times of the structured events and adding 1 if all the events are updated to be the triggered states.
According to the technical scheme, the structured event list is established according to the relation between the structured events, the trigger state of each single event in the structured event list is updated based on the trigger condition of each single event in the structured events, the statistical result of the structured events is determined according to the trigger state of each single event in the structured event list, the statistical process is independent of the program to be tested and runs, the code of the program to be tested is prevented from being intervened as much as possible, only the event which occurs is detected, the efficiency of structured event statistics can be improved, and the method is simple, convenient and reliable and avoids the influence on the original code.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing the event statistics method provided by the embodiment of the present invention: establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events; updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list; and determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the event statistics method provided in all the inventive embodiments of the present application: establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events; updating the trigger state of the corresponding single event in the structured event list according to the detection result based on the trigger condition of each single event in the structured event; and determining the statistical result of the structured event according to the trigger state of the single event in the structured event list.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. An event statistics method, comprising:
establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events;
updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list;
determining a statistical result of the structured event according to the trigger state of the single event in the structured event list; wherein the trigger state comprises a triggered state and an un-triggered state;
before each structured event statistics, the method further comprises the following steps:
initializing the triggering state of each single event in the structured event list into an un-triggering state;
updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured event list, including:
judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event;
if yes, updating the trigger state corresponding to the currently detected single event in the structured event list to be a triggered state; otherwise, resetting the trigger state of each single event in the structured event list to be an un-trigger state.
2. The method according to claim 1, wherein the determining the statistical result of the structured event according to the trigger state of the single event in the structured event list comprises:
judging whether the trigger states of the single event in the structured event list are all updated to be the triggered states;
and if all the structured events are updated to be in the triggered state, counting the completion times of the structured events plus 1.
3. The method according to claim 2, wherein counting the number of times of completion of the structured event plus 1 if all the updates are in the triggered state further comprises:
resetting the trigger state of each single event in the structured event list to an un-trigger state.
4. An event statistics apparatus, comprising:
the list establishing module is used for establishing a structured event list according to the relation between structured events, wherein the structured events comprise at least two single events;
the updating module is used for updating the trigger state of the corresponding single event in the structured event list based on the trigger condition of each single event in the structured events;
the determining module is used for determining the statistical result of the structured event according to the trigger state of the single event in the structured event list;
wherein the trigger state comprises a triggered state and an un-triggered state;
further comprising:
the initialization module is used for initializing the triggering state of each single event in the structured event list into an un-triggering state before counting the structured events each time;
the update module includes:
the judging unit is used for judging whether the currently triggered single event accords with the triggering sequence of the events in the structured event list or not according to the triggering condition of the current single event;
the state updating unit is used for updating the triggering state corresponding to the currently detected single event in the structured event list into a triggered state if the single event is detected;
a resetting unit, configured to reset the triggered state of each single event in the structured event list to an un-triggered state if not.
5. The apparatus of claim 4, wherein the determining module comprises:
the judging unit is used for judging whether the triggering states of the single events in the structured event list are all updated to be triggering states;
and the counting unit is used for counting the completion times of the structured events plus 1 if all the structured events are updated to be the triggered states.
6. The apparatus of claim 5, further comprising:
and the resetting unit is used for resetting the triggering state of each single event in the structured event list to be an un-triggering state after counting the completion times of the structured events and adding 1 if all the events are updated to be the triggered states.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-3 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201710342802.4A 2017-05-16 2017-05-16 Event statistical method, device, equipment and storage medium Active CN107168776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710342802.4A CN107168776B (en) 2017-05-16 2017-05-16 Event statistical method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710342802.4A CN107168776B (en) 2017-05-16 2017-05-16 Event statistical method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107168776A CN107168776A (en) 2017-09-15
CN107168776B true CN107168776B (en) 2020-09-22

Family

ID=59816145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710342802.4A Active CN107168776B (en) 2017-05-16 2017-05-16 Event statistical method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107168776B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753337B (en) * 2017-11-02 2023-03-28 阿里巴巴集团控股有限公司 Mirror image construction method and device and server
CN110339571A (en) * 2018-04-08 2019-10-18 腾讯科技(深圳)有限公司 Event generation method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553378B1 (en) * 2000-03-31 2003-04-22 Network Associates, Inc. System and process for reporting network events with a plurality of hierarchically-structured databases in a distributed computing environment
CN102467411A (en) * 2010-11-19 2012-05-23 金蝶软件(中国)有限公司 Workflow processing and workflow agent method, device and system
CN102662773A (en) * 2012-03-13 2012-09-12 中冶南方工程技术有限公司 Structured document communication system between multiple processes
CN101951623B (en) * 2010-09-13 2014-11-05 中兴通讯股份有限公司 User behavior statistical method and device based on user events

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316185B (en) * 2007-06-01 2011-05-18 阿里巴巴集团控股有限公司 Method for positioning system resource bottleneck by analysis result based on log file
CN102043705A (en) * 2009-10-19 2011-05-04 阿里巴巴集团控股有限公司 Statistical method and apparatus for input behavior
CN101908065B (en) * 2010-07-27 2012-05-23 浙江大学 On-line attribute abnormal point detecting method for supporting dynamic update
CN103970646B (en) * 2013-01-29 2016-12-28 国际商业机器公司 A kind of automatic analysis method for the sequence of operation and system thereof
CN103927349B (en) * 2014-04-03 2018-01-02 华中科技大学 The load evaluation and overload decision method of a kind of flow data system
CN104639466B (en) * 2015-03-05 2018-04-10 北京航空航天大学 A kind of application network Bandwidth Dynamic priority support method based on Storm real-time streams Computational frames

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553378B1 (en) * 2000-03-31 2003-04-22 Network Associates, Inc. System and process for reporting network events with a plurality of hierarchically-structured databases in a distributed computing environment
CN101951623B (en) * 2010-09-13 2014-11-05 中兴通讯股份有限公司 User behavior statistical method and device based on user events
CN102467411A (en) * 2010-11-19 2012-05-23 金蝶软件(中国)有限公司 Workflow processing and workflow agent method, device and system
CN102662773A (en) * 2012-03-13 2012-09-12 中冶南方工程技术有限公司 Structured document communication system between multiple processes

Also Published As

Publication number Publication date
CN107168776A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN110191021B (en) Protocol testing method and device, electronic equipment and storage medium
CN108319575B (en) Page component checking method, device, server and storage medium
US10564889B2 (en) Method and apparatus for processing data based on physical host
CN114528044B (en) Interface calling method, device, equipment and medium
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN110297764B (en) Vulnerability test model training method and device
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN110532203B (en) NAND reset method, device, electronic equipment and storage medium
CN111949470A (en) Chip verification method and device, electronic equipment and storage medium
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
CN110674050A (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN107292142B (en) Business operation processing method, business operation processing device and business terminal
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN115758004A (en) Webpage table display method and device, computer readable medium and electronic equipment
CN113407102A (en) Virtual key display method, device, system and storage medium
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN109068170B (en) Storage method, device, terminal and storage medium for barrage message
CN111813407B (en) Game development method, game running device and electronic equipment
CN112035732A (en) Method, system, equipment and storage medium for expanding search results
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN111682991B (en) Bus error message processing method and device

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