[go: up one dir, main page]

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

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

Info

Publication number
CN107168776A
CN107168776A CN201710342802.4A CN201710342802A CN107168776A CN 107168776 A CN107168776 A CN 107168776A CN 201710342802 A CN201710342802 A CN 201710342802A CN 107168776 A CN107168776 A CN 107168776A
Authority
CN
China
Prior art keywords
event
structuring
list
structured
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710342802.4A
Other languages
Chinese (zh)
Other versions
CN107168776B (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

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Complex Calculations (AREA)

Abstract

本发明公开了一种事件统计方法、装置、设备及存储介质。该方法包括:根据结构化事件之间的关系建立结构化事件列表,其中,结构化事件包括至少两个单一事件;基于结构化事件中每个单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态;根据结构化事件列表中单一事件的触发状态确定结构化事件的统计结果。通过本发明的技术方案,能够提高结构化事件统计的效率,避免了对原有代码的影响。

The invention discloses an event statistics method, device, equipment and storage medium. The method includes: establishing a structured event list according to the relationship between the structured events, wherein the structured event includes at least two single events; based on the triggering situation of each single event in the structured event, updating the corresponding Trigger status of a single event; determine the statistical result of a structured event according to the trigger status of a single event in the structured event list. Through the technical solution of the invention, the efficiency of structured event statistics can be improved, and the influence on the original code can be avoided.

Description

一种事件统计方法、装置、设备及存储介质An event statistics method, device, equipment and storage medium

技术领域technical field

本发明涉及一种统计技术,尤其涉及一种事件统计方法、装置、设备及存储介质。The present invention relates to a statistical technology, in particular to an event statistical method, device, equipment and storage medium.

背景技术Background technique

结构化事件指的是由两个或者两个以上的事件组合而成的一个事件组合,对结构化事件进行统计能够很好的掌握用户对于当前应用的使用频率,进而能够获取到用户比较感兴趣的应用。A structured event refers to an event combination composed of two or more events. Statistical analysis of structured events can provide a good grasp of the user's usage frequency of the current application, and thus can obtain the information that the user is more interested in. Applications.

现有技术中对结构化事件的统计方法为先对需要进行统计的单个事件所对应的代码进行更改,进而实现针对单个事件的统计,再将上述单个事件的统计结果传给下一个结构化事件中的单个事件,并对下一个结构化事件中的单个事件所对应的代码进行更改,进而实现针对下一个结构化事件中的单个事件的统计,以此类推,直到结构化事件统计结束。The statistical method for structured events in the prior art is to first change the code corresponding to a single event that needs to be counted, and then realize the statistics for a single event, and then pass the statistical result of the above single event to the next structured event , and change the code corresponding to the single event in the next structured event, so as to achieve statistics for the single event in the next structured event, and so on, until the structured event statistics end.

现有技术存在的问题:由于对结构化事件进行统计需要改变单个事件对应的代码,也就是改动原有代码,因此很容易影响原有代码,侵入式非常强,也很容易将统计代码和业务代码混到一起,不容易区分,耦合性非常高。Problems in the existing technology: Since the statistics of structured events need to change the code corresponding to a single event, that is, to change the original code, it is easy to affect the original code, the intrusion is very strong, and it is easy to combine the statistical code with the business The codes are mixed together, it is not easy to distinguish, and the coupling is very high.

发明内容Contents of the invention

本发明实施例提供一种事件统计方法、装置、设备及存储介质,能够提高结构化事件统计的效率,避免了对原有代码的影响。Embodiments of the present invention provide an event statistics method, device, device, and storage medium, which can improve the efficiency of structured event statistics and avoid impacts on original codes.

第一方面,本发明实施例提供了一种事件统计方法,包括:In a first aspect, an embodiment of the present invention provides a method for event statistics, including:

根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件;establishing a structured event list according to a relationship between structured events, wherein the structured event includes at least two single events;

基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态;Based on the triggering situation of each single event in the structured events, update the trigger status of the corresponding single event in the structured event list;

根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。The statistical result of the structured event is determined according to the trigger state of a single event in the structured event list.

进一步的,所述触发状态包括已触发状态和未触发状态;Further, the triggered state includes a triggered state and an untriggered state;

在每次统计所述结构化事件之前,还包括:Before each counting of said structured events, it also includes:

初始化所述结构化事件列表中每个单一事件的触发状态为未触发状态;Initializing the triggered state of each single event in the structured event list as an untriggered state;

基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态,包括:Based on the triggering situation of each single event in the structured event, updating the triggering status of the corresponding single event in the structured event list includes:

根据当前单一事件的触发情况,判断当前触发的单一事件是否符合所述结构化事件列表中事件的触发顺序;According to the triggering situation of the current single event, it is judged whether the currently triggered single event conforms to the trigger sequence of the events in the structured event list;

若是,则将所述结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态;否则,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。If yes, update the trigger status corresponding to the currently detected single event in the structured event list to a triggered status; otherwise, reset the trigger status of each single event in the structured event list to an untriggered status .

进一步的,所述根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果,包括:Further, the determining the statistical result of the structured event according to the trigger state of a single event in the structured event list includes:

判断所述结构化事件列表中单一事件的触发状态是否全部更新为已触发状态;Judging whether the trigger status of a single event in the structured event list is all updated to the triggered status;

若全部更新为已触发状态,则统计所述结构化事件的完成次数加1。If all updates are in the triggered state, count the completion times of the structured event plus 1.

进一步的,所述若全部更新为已触发状态,则统计所述结构化事件的完成次数加1之后,还包括:Further, if all the updates are in the triggered state, after counting the number of completions of the structured event plus 1, it also includes:

将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。Reset the triggered state of each single event in the structured event list to the untriggered state.

第二方面,本发明实施例还提供了一种事件统计装置,该装置包括:In the second aspect, the embodiment of the present invention also provides an event statistics device, which includes:

列表建立模块,用于根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件;A list building module, configured to create a structured event list according to the relationship between structured events, wherein the structured events include at least two single events;

更新模块,用于基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态;An update module, configured to update the trigger status of a corresponding single event in the structured event list based on the trigger status of each single event in the structured event list;

确定模块,用于根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。A determination module, configured to determine the statistical result of the structured event according to the trigger state of a single event in the structured event list.

进一步的,所述触发状态包括已触发状态和未触发状态;Further, the triggered state includes a triggered state and an untriggered state;

还包括:Also includes:

初始化模块,用于在每次统计所述结构化事件之前,初始化所述结构化事件列表中每个单一事件的触发状态为未触发状态;An initialization module, configured to initialize the triggered state of each single event in the structured event list to an untriggered state before counting the structured events each time;

所述更新模块包括:The update modules include:

判断单元,用于根据当前单一事件的触发情况,判断当前触发的单一事件是否符合所述结构化事件列表中事件的触发顺序;A judging unit, configured to judge whether the currently triggered single event conforms to the trigger sequence of events in the structured event list according to the triggering situation of the current single event;

状态更新单元,用于若是,则将所述结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态;A status update unit, configured to update the trigger status corresponding to the currently detected single event in the structured event list to a triggered status if so;

重置单元,用于否则,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。The reset unit is used for otherwise, resetting the triggered state of each single event in the structured event list to the untriggered state.

进一步的,所述确定模块包括:Further, the determination module includes:

判断单元,用于判断所述结构化事件列表中单一事件的触发状态是否全部更新为已触发状态;A judging unit, configured to judge whether the trigger status of a single event in the structured event list is all updated to the triggered status;

统计单元,用于若全部更新为已触发状态,则统计所述结构化事件的完成次数加1。The statistics unit is configured to add 1 to the completion times of the structured events if all updates are in the triggered state.

进一步的,还包括:Further, it also includes:

重置单元,用于在所述若全部更新为已触发状态,则统计所述结构化事件的完成次数加1之后,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。A reset unit, configured to reset the trigger state of each single event in the structured event list to untriggered after the counting of the number of completions of the structured event is increased by 1 if all are updated to the triggered state. trigger state.

第三方面,本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如本发明实施例中任一所述的事件统计方法。In the third aspect, the embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program according to the present invention when executing the program. The event statistics method described in any one of the embodiments.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例中任一所述的事件统计方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the event statistics method as described in any one of the embodiments of the present invention is implemented.

本发明实施例通过根据结构化事件之间的关系建立结构化事件列表,基于结构化事件中每个单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态,根据结构化事件列表中单一事件的触发状态确定结构化事件的统计结果,统计过程独立于待测程序之外运行,尽量避免介入待测程序的代码,只对发生的事件进行检测,能够提高结构化事件统计的效率,简单方便可靠,避免了对原有代码的影响。In the embodiment of the present invention, a structured event list is established according to the relationship between structured events, and based on the triggering situation of each single event in the structured event, the trigger status of a corresponding single event in the structured event list is updated. The trigger state of a single event in the middle determines the statistical results of structured events. The statistical process runs independently of the program to be tested. Try to avoid intervening in the code of the program to be tested, and only detect the events that occur, which can improve the efficiency of structured event statistics. , simple, convenient and reliable, avoiding the impact on the original code.

附图说明Description of drawings

图1是本发明实施例一中的一种事件统计方法的流程图;FIG. 1 is a flow chart of an event statistics method in Embodiment 1 of the present invention;

图2A是本发明实施例二中的一种事件统计方法的流程图;FIG. 2A is a flowchart of an event statistics method in Embodiment 2 of the present invention;

图2B是本发明实施例二中的结构化事件示意图;Fig. 2B is a schematic diagram of structured events in Embodiment 2 of the present invention;

图3是本发明实施例三中的一种事件统计装置的结构示意图;3 is a schematic structural diagram of an event statistics device in Embodiment 3 of the present invention;

图4是本发明实施例四中的一种计算机设备的结构示意图。FIG. 4 is a schematic structural diagram of a computer device in Embodiment 4 of the present invention.

具体实施方式detailed description

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

实施例一Embodiment one

图1为本发明实施例一提供的一种事件统计方法的流程图,本实施例可适用于事件统计的情况,该方法可以由本发明实施例中的事件统计装置来执行,该装置可采用软件和/或硬件的方式实现,如图1所示,该方法具体包括如下步骤:Figure 1 is a flow chart of an event statistics method provided by Embodiment 1 of the present invention. This embodiment is applicable to event statistics. The method can be executed by the event statistics device in the embodiment of the present invention. The device can use software and/or hardware, as shown in Figure 1, the method specifically includes the following steps:

S110,根据结构化事件之间的关系建立结构化事件列表,其中,结构化事件包括至少两个单一事件。S110. Establish a structured event list according to the relationship between the structured events, where the structured event includes at least two single events.

其中,所述结构化事件之间的关系指的是构成结构化事件的单一事件之间的关系,例如可以是,结构化事件为用户先点击页面A(单一事件A),再点击页面B(单一事件B),之后点击页面C(单一事件C),结构化事件之间的关系也就是单一事件A、单一事件B和单一事件C之间的关系。Wherein, the relationship between the structured events refers to the relationship between the single events that constitute the structured event, for example, the structured event is that the user first clicks on page A (single event A), and then clicks on page B ( Single event B), and then click page C (single event C), the relationship between structured events is the relationship between single event A, single event B and single event C.

其中,结构化事件列表指的是将单一事件按照在结构化事件中的先后顺序排列的列表。例如可以是,按照在结构化事件中的先后顺序,结构化事件列表中的顺序为先是单一事件A,再是单一事件B,最后是单一事件C。Wherein, the structured event list refers to a list in which a single event is arranged in sequence in the structured event. For example, according to the sequence in the structured events, the sequence in the structured event list is first the single event A, then the single event B, and finally the single event C.

S120,基于所述结构化事件中每个单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态。S120. Based on the triggering situation of each single event in the structured events, update the triggering status of the corresponding single event in the structured event list.

其中,单一事件的触发情况指的是单一事件的发生情况,例如可以是,如果用户点开页面A,则打开页面A这一单一事件就被触发了。Wherein, the triggering of a single event refers to the occurrence of a single event. For example, if the user clicks on page A, the single event of opening page A is triggered.

具体的,根据单一事件的触发情况更新结构化事件列表中单一事件的触发状态,例如可以是,如果用户点开页面A,则更新结构化事件列表中打开页面A这一单一事件的触发状态,如果用户接下来点开页面B,若打开页面B为结构化事件列表中打开页面A这一单一事件之后的下一个单一事件,则更新结构化事件列表中打开页面B这一单一事件的触发状态。Specifically, the trigger status of a single event in the structured event list is updated according to the trigger status of the single event. For example, if the user clicks on page A, the trigger status of the single event of opening page A in the structured event list is updated. If the user clicks on page B next, if the opening of page B is the next single event after the single event of opening page A in the structured event list, update the trigger status of the single event of opening page B in the structured event list .

S130,根据结构化事件列表中单一事件的触发状态确定结构化事件的统计结果。S130. Determine the statistical result of the structured event according to the trigger state of a single event in the structured event list.

具体的,若结构化事件列表中单一事件的触发状态均为已触发状态,则确定结构化事件发生了1次,将结构化事件发生的次数进行记录,并将结构化事件列表中单一事件的触发状态重置为未触发状态,继续根据单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态,直至结构化事件列表中单一事件的触发状态均为已触发状态,则确定结构化事件发生了2次,将结构化事件发生的次数进行记录,并将结构化事件列表中单一事件的触发状态重置为未触发状态,重复执行上述步骤,进而实现对结构化事件的统计,获取统计结果。Specifically, if the trigger status of a single event in the structured event list is all triggered, then it is determined that the structured event has occurred once, record the number of occurrences of the structured event, and record the number of occurrences of the single event in the structured event list. Reset the trigger status to untriggered status, and continue to update the trigger status of the corresponding single event in the structured event list according to the trigger status of the single event until the trigger status of the single event in the structured event list is all triggered, then the structure is determined If a structured event occurs twice, record the number of occurrences of the structured event, reset the trigger state of a single event in the structured event list to the untriggered state, repeat the above steps, and then realize the statistics of the structured event. Get statistical results.

本发明实施例的技术方案,通过根据结构化事件之间的关系建立结构化事件列表,基于所述结构化事件中每个单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态,根据结构化事件列表中单一事件的触发状态确定结构化事件的统计结果,统计过程独立于待测程序之外运行,尽量避免介入待测程序的代码,只对发生的事件进行检测,能够提高结构化事件统计的效率,简单方便可靠,避免了对原有代码的影响。In the technical solution of the embodiment of the present invention, by establishing a structured event list according to the relationship between structured events, based on the triggering situation of each single event in the structured event, update the trigger status of the corresponding single event in the structured event list , determine the statistical results of structured events according to the trigger state of a single event in the structured event list, the statistical process runs independently of the program to be tested, try to avoid intervening in the code of the program to be tested, and only detect the events that occur, which can improve The efficiency of structured event statistics is simple, convenient and reliable, avoiding the impact on the original code.

实施例二Embodiment two

图2A为本发明实施例二中的一种事件统计方法的流程图,本实施例以上述实施例为基础进行优化,在本实施例中,触发状态包括已触发状态和未触发状态;在每次统计所述结构化事件之前,还包括:初始化所述结构化事件列表中每个单一事件的触发状态为未触发状态;基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态,包括:根据当前单一事件的触发情况,判断当前触发的单一事件是否符合结构化事件列表中事件的触发顺序;若是,则将结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态;否则,将结构化事件列表中每个单一事件的触发状态重置为未触发状态。FIG. 2A is a flow chart of an event statistics method in Embodiment 2 of the present invention. This embodiment is optimized based on the above-mentioned embodiment. In this embodiment, the trigger state includes a triggered state and an untriggered state; Before counting the structured events for the second time, it also includes: initializing the trigger state of each single event in the structured event list as an untriggered state; based on the trigger status of each single event in the structured event, updating the The trigger status of a single event in the structured event list, including: according to the triggering status of the current single event, judge whether the currently triggered single event conforms to the trigger sequence of events in the structured event list; The trigger status of the currently detected single event is updated to the triggered status; otherwise, the trigger status of each single event in the structured event list is reset to the untriggered status.

由此,判断当前检测到的单一事件是否是结构化事件列表中排序最靠前的未触发状态下的单一事件,这样可以防止出现统计出来的结构化事件的发生次数与实际不符的情况。能够达到更准确的实现对结构化事件的统计。Therefore, it is judged whether the currently detected single event is the highest-ranked single event in the untriggered state in the structured event list, which can prevent the situation that the counted number of occurrences of the structured event does not match the actual situation. It can achieve more accurate statistics on structured events.

相应的,本实施例提供的方法具体包括如下步骤:Correspondingly, the method provided in this embodiment specifically includes the following steps:

S210,根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件。S210. Establish a structured event list according to the relationship between the structured events, wherein the structured event includes at least two single events.

S220,初始化所述结构化事件列表中每个单一事件的触发状态为未触发状态。S220. Initialize the triggered state of each single event in the structured event list as an untriggered state.

具体的,将结构化事件列表中的所有的单一事件的触发状态均设置为未触发状态,以便后续根据用户的操作进行统计。Specifically, the trigger status of all single events in the structured event list is set to an untriggered status, so that subsequent statistics can be performed according to user operations.

S230,根据当前单一事件的触发情况,判断当前触发的单一事件是否符合所述结构化事件列表中事件的触发顺序,若是,则执行S240,若否,则执行S250。S230. According to the triggering situation of the current single event, judge whether the currently triggered single event conforms to the trigger sequence of events in the structured event list, if yes, execute S240, and if not, execute S250.

具体的,结构化事件是单一事件按照一定的顺序排列构建的组合型事件,若单一事件是结构化事件列表中排序最靠前的未触发状态下的单一事件,则说明当前触发的单一事件是构成结构化事件的单一事件,且当前触发的单一事件满足构成结构化事件的排列顺序。若当前触发的单一事件不是结构化事件列表中排序最靠前的未触发状态下的单一事件,则说明当前触发的单一事件不是构成结构化事件的单一事件或者当前检测到的单一事件不满足构成结构化事件的排列顺序。Specifically, a structured event is a combined event constructed by arranging a single event in a certain order. If a single event is a single event in the highest untriggered state in the structured event list, it means that the currently triggered single event is A single event that constitutes a structured event, and the currently triggered single event satisfies the arrangement sequence that constitutes a structured event. If the currently triggered single event is not the top untriggered single event in the structured event list, it means that the currently triggered single event is not a single event that constitutes a structured event or the currently detected single event does not satisfy the constitution The sort order of structured events.

S240,将所述结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态。S240. Update the trigger status corresponding to the currently detected single event in the structured event list to the triggered status.

S250,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。S250. Reset the triggered state of each single event in the structured event list to the untriggered state.

具体的,将结构化事件列表中每个单一事件的触发状态全部重置为未触发状态,以便于根据用户的操作执行下一轮统计。Specifically, reset the triggered state of each single event in the structured event list to the untriggered state, so as to perform the next round of statistics according to the user's operation.

S260,根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。S260. Determine the statistical result of the structured event according to the trigger state of a single event in the structured event list.

可选的,所述根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果,包括:Optionally, the determining the statistical result of the structured event according to the trigger state of a single event in the structured event list includes:

判断所述结构化事件列表中单一事件的触发状态是否全部更新为已触发状态;Judging whether the trigger status of a single event in the structured event list is all updated to the triggered status;

若全部更新为已触发状态,则统计所述结构化事件的完成次数加1。If all updates are in the triggered state, count the completion times of the structured event plus 1.

具体的,若结构化事件的触发状态均为已触发状态,则统计结构化事件的完成次数加1。初始化统计结构化事件的完成次数为0。Specifically, if the trigger states of the structured events are all triggered states, the number of completion times of the statistical structured events is increased by 1. The number of completions of the initialization statistics structured event is 0.

可选的,所述若全部更新为已触发状态,则统计所述结构化事件的完成次数加1之后,还包括:Optionally, after adding 1 to the number of completions of the structured event, if all the updates are in the triggered state, the counting further includes:

将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。Reset the triggered state of each single event in the structured event list to the untriggered state.

具体的,在统计结构化事件的完成次数加1之后,将结构化事件列表中单一事件的触发状态重置为初始状态,开始新一轮的统计。Specifically, after counting the number of completions of the structured event plus 1, the trigger state of a single event in the structured event list is reset to the initial state, and a new round of statistics is started.

在一个具体的例子中,结构化事件统计的过程为:步骤1:将要统计的结构化事件根据结构化事件中单一事件之间的关系建立结构化事件列表存于一个链表中,每个单一事件有已触发状态和未触发状态两种状态,需要统计的每个单一事件都能够接收上一个单一事件的触发状态;步骤2:开始检测单一事件的触发情况,接收到用户触发单一事件A,则判断用户触发的单一事件A是否符合结构化事件列表中的结构(单一事件顺序也要一致);步骤3:若用户触发的单一事件A符合结构化事件列表中的结构,则将单一事件A的触发状态更新为已触发状态,若用户触发的单一事件A不符合结构化事件列表中的结构,则将所述结构化事件列表中所有单一事件的触发状态重置为未触发状态,重复执行步骤2;步骤4:用户触发单一事件A后触发单一事件B,判断用户触发的单一事件B是否是结构化事件列表中单一事件A下一个单一事件,如果是,那么更新单一事件B的触发状态更新为已触发状态,如果不是,则将所述结构化事件列表中所有单一事件的触发状态重置为未触发状态,重复执行步骤2;步骤5:判断结构化事件列表中单一事件的触发状态是否全部更新为已触发状态,如果是,则此结构化事件为统计加1;如果否,重复执行步骤3或步骤4。In a specific example, the process of counting structured events is as follows: Step 1: Create a list of structured events based on the relationship between single events in the structured events and store them in a linked list, and each single event There are two states: triggered state and untriggered state, and each single event that needs to be counted can receive the trigger state of the previous single event; Step 2: start detecting the triggering of a single event, and receive the single event A triggered by the user, then Determine whether the single event A triggered by the user conforms to the structure in the structured event list (the order of the single events must also be consistent); Step 3: If the single event A triggered by the user conforms to the structure in the structured event list, then the single event A's The trigger status is updated to the triggered status. If the single event A triggered by the user does not conform to the structure in the structured event list, reset the trigger status of all single events in the structured event list to the untriggered status, and repeat the steps 2; Step 4: After the user triggers a single event A, trigger a single event B, determine whether the single event B triggered by the user is the next single event of the single event A in the structured event list, and if so, update the trigger status update of the single event B If not, reset the trigger status of all single events in the structured event list to untriggered status, and repeat step 2; step 5: determine whether the trigger status of the single event in the structured event list is All updates are triggered. If yes, this structured event is a statistical plus 1; if no, repeat step 3 or step 4.

在另一个具体的例子中,如图2B所示,从A页面、B页面到E页面的路径总共有4条,分别为A页面-C页面-E页面、A页面-C页面-D页面-E页面、B页面-C页面-E页面、B页面-C页面-D页面-E页面,如果这时候要添加一个结构化事件来统计A页面-C页面-E页面这个结构化事件,那么A页面-C页面-E页面结构化事件统计的过程为:步骤1、将A页面-C页面-E页面这个结构化事件转化为结构化事件列表,初始化结构化事件列表中A页面、C页面、E页面的触发状态为未触发状态;步骤2、在A页面、B页面、C页面、D页面和E页面软件代码中设置能够接收事件触发状态的打点接口;步骤3、用户从A页面进去,也就是触发A页面事件,那么将A页面的触发状态更新为已触发状态;步骤4、接着用户从A页面进入C页面,那么将C页面的触发状态更新为已触发状态;步骤5、若用户从C页面直接到E页面,那么将E页面的触发状态更新为已触发状态,完成了A页面-C页面-E页面结构化事件的统计;若用户从C页面到D页面,由于D页面不符合结构化事件A页面-C页面-E页面,所以不会被统计到此事件中,将A页面、C页面、E页面的触发状态重置为未触发状态,重复执行步骤3。In another specific example, as shown in Figure 2B, there are four paths from page A, page B to page E, which are page A-page C-page E, page A-page C-page D- E page, B page-C page-E page, B page-C page-D page-E page, if you want to add a structured event to count the structured event of A page-C page-E page at this time, then A The process of page-C page-E page structured event statistics is as follows: Step 1. Convert the structured event of page A-page C-page E into a structured event list, and initialize page A, page C, The trigger state of E page is untriggered state; step 2, set the dot interface capable of receiving the event trigger state in the software codes of page A, page B, page C, page D and page E; step 3, the user enters from page A, That is to say, if the event on page A is triggered, then the trigger status of page A is updated to the triggered status; step 4, then the user enters page C from page A, then the trigger status of page C is updated to the triggered status; step 5, if the user From page C directly to page E, update the trigger status of page E to the triggered status, and complete the statistics of structured events of page A-page C-page E; if the user goes from page C to page D, because page D is not It matches the structured event A page-C page-E page, so it will not be counted in this event. Reset the trigger status of A page, C page, and E page to the untriggered status, and repeat step 3.

本实施例的技术方案,通过初始化结构化事件列表中单一事件的触发状态为未触发状态,根据当前单一事件的触发情况,判断当前触发的单一事件是否符合结构化事件列表中事件的触发顺序;若是,则将结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态;否则,将结构化事件列表中每个单一事件的触发状态重置为未触发状态,避免出现统计出来的结构化事件的发生次数与实际不符的情况。统计过程独立于待测程序之外运行,尽量避免介入待测程序的代码,只对发生的事件进行检测,能够达到更准确的实现对结构化事件的统计。In the technical solution of this embodiment, by initializing the triggering state of a single event in the structured event list as an untriggered state, according to the triggering situation of the current single event, it is judged whether the currently triggered single event conforms to the triggering sequence of events in the structured event list; If so, update the trigger status corresponding to the currently detected single event in the structured event list to the triggered status; otherwise, reset the trigger status of each single event in the structured event list to the untriggered status to avoid statistics The number of occurrences of the structured events that come out does not match the actual situation. The statistical process runs independently of the program under test, avoiding intervention in the code of the program under test as much as possible, and only detects the events that occur, which can achieve more accurate statistics of structured events.

实施例三Embodiment Three

图3为本发明实施例三提供的一种事件统计装置的结构示意图。本实施例可适用于事件统计的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供事件统计功能的设备中,如图3所示,所述事件统计装置具体包括:列表建立模块310、更新模块320和确定模块330。FIG. 3 is a schematic structural diagram of an event statistics device provided by Embodiment 3 of the present invention. This embodiment is applicable to event statistics. The device can be implemented in software and/or hardware, and the device can be integrated into any device that provides event statistics functions. As shown in FIG. 3, the event statistics device specifically It includes: a list building module 310 , an updating module 320 and a determining module 330 .

其中,列表建立模块310,用于根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件;Wherein, the list establishment module 310 is configured to establish a structured event list according to the relationship between the structured events, wherein the structured events include at least two single events;

更新模块320,用于基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态;An update module 320, configured to update the trigger status of a corresponding single event in the structured event list based on the trigger status of each single event in the structured event list;

确定模块330,用于根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。The determination module 330 is configured to determine the statistical result of the structured event according to the trigger state of a single event in the structured event list.

可选的,所述触发状态包括已触发状态和未触发状态;Optionally, the triggered state includes a triggered state and an untriggered state;

还包括:Also includes:

初始化模块,用于在每次统计所述结构化事件之前,初始化所述结构化事件列表中每个单一事件的触发状态为未触发状态;An initialization module, configured to initialize the triggered state of each single event in the structured event list to an untriggered state before counting the structured events each time;

所述更新模块包括:The update modules include:

判断单元,用于根据当前单一事件的触发情况,判断当前触发的单一事件是否符合所述结构化事件列表中事件的触发顺序;A judging unit, configured to judge whether the currently triggered single event conforms to the trigger sequence of events in the structured event list according to the triggering situation of the current single event;

状态更新单元,用于若是,则将所述结构化事件列表中对应当前检测到的单一事件的触发状态更新为已触发状态;A status update unit, configured to update the trigger status corresponding to the currently detected single event in the structured event list to a triggered status if so;

重置单元,用于否则,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。The reset unit is used for otherwise, resetting the triggered state of each single event in the structured event list to the untriggered state.

可选的,所述确定模块包括:Optionally, the determination module includes:

判断单元,用于判断所述结构化事件列表中单一事件的触发状态是否全部更新为已触发状态;A judging unit, configured to judge whether the trigger status of a single event in the structured event list is all updated to the triggered status;

统计单元,用于若全部更新为已触发状态,则统计所述结构化事件的完成次数加1。The statistics unit is configured to add 1 to the completion times of the structured events if all updates are in the triggered state.

可选的,还包括:Optionally, also include:

重置单元,用于在所述若全部更新为已触发状态,则统计所述结构化事件的完成次数加1之后,将所述结构化事件列表中每个单一事件的触发状态重置为未触发状态。A reset unit, configured to reset the trigger state of each single event in the structured event list to untriggered after the counting of the number of completions of the structured event is increased by 1 if all are updated to the triggered state. trigger state.

本实施例的技术方案,通过根据结构化事件之间的关系建立结构化事件列表,基于结构化事件中每个单一事件的触发情况,更新结构化事件列表中对应单一事件的触发状态,根据结构化事件列表中单一事件的触发状态确定结构化事件的统计结果,统计过程独立于待测程序之外运行,尽量避免介入待测程序的代码,只对发生的事件进行检测,能够提高结构化事件统计的效率,简单方便可靠,避免了对原有代码的影响。In the technical solution of this embodiment, by establishing a structured event list according to the relationship between structured events, based on the triggering situation of each single event in the structured event, updating the trigger status of the corresponding single event in the structured event list, according to the structure The trigger status of a single event in the event list determines the statistical results of structured events. The statistical process runs independently of the program to be tested. Try to avoid intervening in the code of the program to be tested, and only detect the events that occur, which can improve the structured events. The efficiency of statistics is simple, convenient and reliable, and the impact on the original code is avoided.

实施例四Embodiment four

图4为本发明实施例四提供的一种计算机设备的结构示意图。图4示出了适于用来实现本发明实施方式的示例性计算机设备12的框图。图4显示的计算机设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 4 is a schematic structural diagram of a computer device provided by Embodiment 4 of the present invention. Figure 4 shows 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 an example, and should not limit the functions and scope of use of this embodiment of the present invention.

如图4所示,计算机设备12以通用计算设备的形式表现。计算机设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 4, computer device 12 takes the form of a general-purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16 , system memory 28 , bus 18 connecting various system components including system memory 28 and processing unit 16 .

总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. These architectures include, by way of example, 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.

计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12 and include both volatile and nonvolatile media, removable and non-removable media.

系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。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 and write to non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive for reading and writing to removable nonvolatile disks (e.g., "floppy disks") may be provided, as well as for removable nonvolatile optical disks (e.g., CD-ROM, DVD-ROM or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.

具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。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 or some combination of these examples may include the implementation of the network environment. Program modules 42 generally perform the functions and/or methodologies of the described embodiments of the invention.

计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与计算机设备12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and/or with Any device (eg, network card, modem, etc.) that enables the computing device 12 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 22 . Also, computer device 12 may communicate with one or more networks (eg, local area network (LAN), wide area network (WAN), and/or public networks, such as the Internet) via network adapter 20 . As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18 . It should be appreciated that although not shown, 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 system, etc.

处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的事件统计方法:根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件;基于所述结构化事件中每个单一事件的触发情况,更新所述结构化事件列表中对应单一事件的触发状态;根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the event statistics method provided by the embodiment of the present invention: establishing a structured event list according to the relationship between structured events , wherein the structured event includes at least two single events; based on the triggering situation of each single event in the structured event, update the trigger status of the corresponding single event in the structured event list; according to the structured The trigger state of a single event in the event list determines the statistical result of the structured event.

实施例五Embodiment five

本发明实施例五提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的事件统计方法:根据结构化事件之间的关系建立结构化事件列表,其中,所述结构化事件包括至少两个单一事件;基于所述结构化事件中每个单一事件的触发情况,并根据检测结果更新所述结构化事件列表中对应单一事件的触发状态;根据所述结构化事件列表中单一事件的触发状态确定所述结构化事件的统计结果。Embodiment 5 of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the event statistics method provided by all the invention embodiments of the present application is implemented: according to the Establishing a structured event list based on the relationship, wherein the structured event includes at least two single events; based on the triggering of each single event in the structured event, and updating the corresponding single event in the structured event list according to the detection result The trigger state of the event: determine the statistical result of the structured event according to the trigger state of a single event in the structured event list.

可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Any combination of one or more computer readable medium(s) may be utilized. 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。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.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural programming language—such as "C" or a similar programming language. 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 cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

1. a kind of event stochastic method, it is characterised in that including:
Structuring list of thing is set up according to the relation between structuring event, wherein, the structuring event includes at least two Individual single incident;
Based on the triggering situation of each single incident in the structuring event, correspondence in the structuring list of thing is updated single The triggering state of one event;
The statistical result of the structuring event is determined according to the triggering state of single incident in the structuring list of thing.
2. according to the method described in claim 1, it is characterised in that the triggering state includes triggering state and do not trigger shape State;
Before the structuring event is counted every time, in addition to:
The triggering state for initializing each single incident in the structuring list of thing is non-triggering state;
Based on the triggering situation of each single incident in the structuring event, correspondence in the structuring list of thing is updated single The triggering state of one event, including:
According to the triggering situation of current single incident, judge whether the single incident currently triggered meets the structuring event column The trigger sequence of event in table;
If so, then the triggering state of the currently detected single incident of correspondence in the structuring list of thing is updated to touch Hair-like state;Otherwise, the triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
3. method according to claim 2, it is characterised in that described according to single incident in the structuring list of thing Triggering state determine the statistical result of the structuring event, including:
Judge whether the triggering state of single incident in the structuring list of thing is all updated to triggering state;
If being all updated to triggering state, the completion number of times for counting the structuring event plus 1.
4. method according to claim 3, it is characterised in that if described be all updated to triggering state, count institute State structuring event completion number of times plus 1 after, in addition to:
The triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
5. a kind of event statistics device, it is characterised in that including:
Module is set up in list, for setting up structuring list of thing according to the relation between structuring event, wherein, the structure Change event includes at least two single incidents;
Update module, for the triggering situation based on each single incident in the structuring event, updates the structuring thing The triggering state of correspondence single incident in part list;
Determining module, for determining the structuring event according to the triggering state of single incident in the structuring list of thing Statistical result.
6. device according to claim 5, it is characterised in that the triggering state includes triggering state and do not trigger shape State;
Also include:
Initialization module, it is every in the structuring list of thing for before the structuring event is counted every time, initializing The triggering state of individual single incident is non-triggering state;
The update module includes:
Judging unit, for the triggering situation according to current single incident, judges whether the single incident currently triggered meets institute State the trigger sequence of event in structuring list of thing;
State updating unit, for if so, then by the currently detected single incident of correspondence in the structuring list of thing Triggering state is updated to triggering state;
Reset cell, for otherwise, the triggering state of each single incident in the structuring list of thing being reset to and not touched Hair-like state.
7. device according to claim 6, it is characterised in that the determining module includes:
Judging unit, for judging whether the triggering state of single incident in the structuring list of thing is all updated to touch Hair-like state;
Statistic unit, if for being all updated to triggering state, the completion number of times for counting the structuring event plus 1.
8. device according to claim 7, it is characterised in that also include:
Reset cell, if for being all updated to triggering state described, counting the completion number of times of the structuring event After plus 1, the triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the side as described in any in claim 1-4 is realized during the computing device described program Method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-4 is realized during execution.
CN201710342802.4A 2017-05-16 2017-05-16 An event statistics 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 An event statistics 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 An event statistics method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107168776A true CN107168776A (en) 2017-09-15
CN107168776B 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 An event statistics method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107168776B (en)

Cited By (2)

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

Citations (10)

* 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
CN101316185A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 Method for positioning system resource bottleneck by analysis result based on log file
CN101908065A (en) * 2010-07-27 2010-12-08 浙江大学 An Online Attribute Outlier Detection Method Supporting Dynamic Update
CN102043705A (en) * 2009-10-19 2011-05-04 阿里巴巴集团控股有限公司 Statistical method and apparatus for input behavior
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
CN103927349A (en) * 2014-04-03 2014-07-16 华中科技大学 Load evaluating and overload judging method of stream data system
CN103970646A (en) * 2013-01-29 2014-08-06 国际商业机器公司 Automatic analysis method and system for operation sequence
CN101951623B (en) * 2010-09-13 2014-11-05 中兴通讯股份有限公司 User behavior statistical method and device based on user events
CN104639466A (en) * 2015-03-05 2015-05-20 北京航空航天大学 Dynamic priority safeguard method for application network bandwidth based on Storm real-time flow computing framework

Patent Citations (10)

* 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
CN101316185A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 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
CN101908065A (en) * 2010-07-27 2010-12-08 浙江大学 An Online Attribute Outlier Detection Method Supporting Dynamic Update
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
CN103970646A (en) * 2013-01-29 2014-08-06 国际商业机器公司 Automatic analysis method and system for operation sequence
CN103927349A (en) * 2014-04-03 2014-07-16 华中科技大学 Load evaluating and overload judging method of stream data system
CN104639466A (en) * 2015-03-05 2015-05-20 北京航空航天大学 Dynamic priority safeguard method for application network bandwidth based on Storm real-time flow computing framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘强,等;: "一种基于相关度统计的告警事件关联算法", 《计算机应用与软件》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753337A (en) * 2017-11-02 2019-05-14 阿里巴巴集团控股有限公司 A kind of mirror image construction method, device and server
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

Also Published As

Publication number Publication date
CN107168776B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN102419729B (en) Parallel test execution
CN111459798A (en) Test methods, devices, media and electronic equipment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN108595220A (en) Processing method, equipment and the computer readable storage medium of application component
US10095608B2 (en) Application test automation transmitting data via phone/voice calls
CN110647472A (en) Crash information statistics method, device, computer equipment and storage medium
US9852037B2 (en) Efficiency of cycle-reproducible debug processes in a multi-core environment
CN101482836A (en) Device and method for processing system log
CN112463574B (en) Software testing method, device, system, equipment and storage medium
CN114205156A (en) Aspect technology-oriented packet detection method, device, electronic device and medium
CN110888731A (en) Route data acquisition method, device, equipment and storage medium
CN107168776A (en) Event statistical method, device, equipment and storage medium
CN104024991B (en) Different event models are supported using single input source
CN108734033B (en) A method and device for realizing secure interaction between systems
US20110219457A1 (en) System and method for incapacitating a hardware keylogger
US7840948B2 (en) Automation of keyboard accessibility testing
CN114518984A (en) Reporting method and device of embedded point information, storage medium and terminal equipment
CN110427293A (en) APPLICATION PROCESSING METHODS, APPARATUS, APPARATUS AND MEDIA
CN114138863A (en) Troubleshooting method, device, electronic device and storage medium
CN112416695B (en) Global variable monitoring method, device, equipment and storage medium
CN114706371A (en) Method, device, electronic device and storage medium for diagnosing non-dormancy of vehicle network
CN115277188B (en) Method, device, equipment and storage medium for detecting network security
CN114780013B (en) Touch screen operation recognition method, device, terminal equipment and medium
CN110505247A (en) Attack detection method, device, electronic equipment and storage medium
CN110263337A (en) Input behavior recognition method, device, equipment and medium

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