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
structuring
event
triggering state
thing
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.)
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; 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

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 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

A kind of event stochastic method, device, equipment and storage medium
Technical field
The present invention relates to a kind of statistical technique, more particularly to a kind of event stochastic method, device, equipment and storage medium.
Background technology
Structuring event refers to a composition of matter by two or more composition of matter, to structure Change event carries out statistics and can be good at grasping frequency of use of the user for current application, and then can get user and compare Application interested.
In the prior art to the statistical method of structuring event corresponding to the individual event that is first counted to needs Code is modified, and then realizes the statistics for individual event, then the statistical result of above-mentioned individual event is transmitted to next Individual event in structuring event, and the code corresponding to the individual event in next structuring event is modified, And then the statistics for the individual event being directed in next structuring event is realized, by that analogy, until structuring event statistics knot Beam.
The problem of prior art is present:Need to change individual event corresponding generation due to carrying out structuring event statistics Code, that is, original code is changed, therefore be easy to influence original code, intrusive mood is very strong, is also easy to statistics codes Mixed together with service code, it is not easy to distinguish, coupling is very high.
The content of the invention
The embodiment of the present invention provides a kind of event stochastic method, device, equipment and storage medium, it is possible to increase structuring thing The efficiency of part statistics, it is to avoid influence to original code.
In a first aspect, the embodiments of the invention provide a kind of event stochastic method, including:
Structuring list of thing is set up according to the relation between structuring event, wherein, the structuring event is included extremely Few two single incidents;
Based on the triggering situation of each single incident in the structuring event, update right in the structuring list of thing Answer the triggering state of single incident;
The statistics knot of the structuring event is determined according to the triggering state of single incident in the structuring list of thing Really.
Further, the triggering state includes triggering state and non-triggering 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, update right in the structuring list of thing The triggering state of single incident is answered, including:
According to the triggering situation of current single incident, judge whether the single incident currently triggered meets the structuring thing The trigger sequence of event in part list;
If so, then the triggering state of the currently detected single incident of correspondence in the structuring list of thing is updated to Triggering state;Otherwise, the triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
Further, the triggering state according to single incident in the structuring list of thing determines the structuring The statistical result of 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.
Further, if described be all updated to triggering state, the completion number of times for counting the structuring event plus 1 Afterwards, in addition to:
The triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
Second aspect, the embodiment of the present invention additionally provides a kind of event statistics device, and the device includes:
Module is set up in list, for setting up structuring list of thing according to the relation between structuring event, wherein, it is described Structuring event includes at least two single incidents;
Update module, for the triggering situation based on each single incident in the structuring event, updates the structure Change the triggering state of correspondence single incident in list of thing;
Determining module, for determining the structuring according to the triggering state of single incident in the structuring list of thing The statistical result of event.
Further, the triggering state includes triggering state and non-triggering state;
Also include:
Initialization module, for before the structuring event is counted every time, initializing the structuring list of thing In the triggering state of each single incident be 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 accords with Close the trigger sequence of event in the structuring list of thing;
State updating unit, for if so, then by the currently detected single thing of correspondence in the structuring list of thing The triggering state of part is updated to triggering state;
Reset cell, for otherwise, the triggering state of each single incident in the structuring list of thing to be reset to Non- triggering state.
Further, 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 Triggering state;
Statistic unit, if for being all updated to triggering state, the completion number of times for counting the structuring event adds 1。
Further, in addition to:
Reset cell, if for being all updated to triggering state described, counting the completion of the structuring event After number of times adds 1, the triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
The third aspect, the embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, realized during the computing device described program as the present invention is real Apply any described event stochastic method in example.
Fourth aspect, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer Program, realizes the event stochastic method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention according to the relation between structuring event by setting up structuring list of thing, based on structuring The triggering situation of each single incident in event, updates the triggering state of correspondence single incident in structuring list of thing, according to The triggering state of single incident determines the statistical result of structuring event in structuring list of thing, and statistic processes is independently of to be measured Run outside program, avoid intervening the code of program to be measured as far as possible, only the event to generation is detected, it is possible to increase structuring The efficiency of event statistics, it is simple and convenient reliable, it is to avoid the influence to original code.
Brief description of the drawings
Fig. 1 is a kind of flow chart of event stochastic method in the embodiment of the present invention one;
Fig. 2A is a kind of flow chart of event stochastic method in the embodiment of the present invention two;
Fig. 2 B are the structuring event schematic diagrames in the embodiment of the present invention two;
Fig. 3 is a kind of structural representation of event statistics device in the embodiment of the present invention three;
Fig. 4 is a kind of structural representation of computer equipment in the embodiment of the present invention four.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for event stochastic method that the embodiment of the present invention one is provided, and the present embodiment is applicable to thing The situation of part statistics, this method can be performed by the event statistics device in the embodiment of the present invention, and the device can use software And/or the mode of hardware is realized, as shown in figure 1, this method specifically includes following steps:
S110, structuring list of thing is set up according to the relation between structuring event, wherein, structuring event is included extremely Few two single incidents.
Wherein, the relation between the structuring event refers to constituting the pass between the single incident of structuring event System, for example, can be that structuring event is that user first clicks on page A (single incident A), then click on page B (single incident B), Click on page C (single incident C) afterwards, i.e. relation single incident A, single incident B between structuring event and single Relation between event C.
Wherein, structuring list of thing is referred to single incident according to the sequencing arrangement in structuring event List.For example can be that, according to the sequencing in structuring event, the order in structuring list of thing is single before this Event A, then be single incident B, it is finally single incident C.
S120, based on the triggering situation of each single incident in the structuring event, updates in structuring list of thing The triggering state of correspondence single incident.
Wherein, the triggering situation of single incident refers to single incident a situation arises, for example, can be, if user's point Page A is opened, then this single incident of opening page A is just triggered.
Specifically, the triggering state of single incident in structuring list of thing is updated according to the triggering situation of single incident, For example can be, if user's point opens page A, to update and touching for this single incident of page A is opened in structuring list of thing Hair-like state, if next point opens page B to user, if opening page B, to open page A in structuring list of thing, this is single Next single incident after event, then update the triggering shape that this single incident of page B is opened in structuring list of thing State.
S130, the statistical result of structuring event is determined according to the triggering state of single incident in structuring list of thing.
If specifically, the triggering state of single incident is triggering state in structuring list of thing, it is determined that structure Change event be there occurs 1 time, and the number of times that structuring event occurs is recorded, and by single incident in structuring list of thing Triggering state resets to non-triggering state, continues the triggering situation according to single incident, updates correspondence in structuring list of thing The triggering state of single incident, until the triggering state of single incident is triggering state in structuring list of thing, then really Determine structuring event to there occurs 2 times, the number of times that structuring event occurs is recorded, and will be single in structuring list of thing The triggering state of event resets to non-triggering state, repeats above-mentioned steps, and then realizes the statistics to structuring event, obtains Take statistical result.
The technical scheme of the embodiment of the present invention, by setting up structuring event column according to the relation between structuring event Table, based on the triggering situation of each single incident in the structuring event, updates the single thing of correspondence in structuring list of thing The triggering state of part, the statistical result of structuring event is determined according to the triggering state of single incident in structuring list of thing, Statistic processes is run independently of outside program to be measured, avoids intervening the code of program to be measured as far as possible, and only the event to generation is carried out Detection, it is possible to increase the efficiency of structuring event statistics, it is simple and convenient reliable, it is to avoid the influence to original code.
Embodiment two
Fig. 2A is a kind of flow chart of event stochastic method in the embodiment of the present invention two, and the present embodiment is with above-described embodiment Based on optimize, in the present embodiment, triggering state includes triggering state and non-triggering state;It is described in each statistics Before structuring event, in addition to:The triggering state of each single incident in the structuring list of thing is initialized not touch Hair-like state;Based on the triggering situation of each single incident in the structuring event, update right in the structuring list of thing The triggering state of single incident is answered, including:According to the triggering situation of current single incident, judge that the single incident currently triggered is The no trigger sequence for meeting event in structuring list of thing;If so, then that correspondence in structuring list of thing is currently detected The triggering state of single incident be updated to triggering state;Otherwise, by structuring list of thing each single incident touch Hair-like state resets to non-triggering state.
Thus, whether judge currently detected single incident is to sort in structuring list of thing most forward not trigger Single incident under state, can so prevent the feelings that the frequency of the structuring event come out does not conform to the actual conditions Condition.The statistics more accurately realized to structuring event can be reached.
Accordingly, the method that the present embodiment is provided specifically includes following steps:
S210, structuring list of thing is set up according to the relation between structuring event, wherein, the structuring event package Include at least two single incidents.
S220, the triggering state for initializing each single incident in the structuring list of thing is non-triggering state.
Specifically, the triggering state of all single incidents in structuring list of thing is disposed as not triggering shape State, so that the operation subsequently according to user is counted.
S230, according to the triggering situation of current single incident, judges whether the single incident currently triggered meets the knot The trigger sequence of event in structure list of thing, if so, S240 is then performed, if it is not, then performing S250.
The combined event of structure is arranged in a certain order specifically, structuring event is single incident, if single Event is the single incident sorted under most forward non-triggering state in structuring list of thing, then illustrate currently to trigger is single Event is the single incident for constituting structuring event, and the arrangement of the single incident satisfaction composition structuring event currently triggered is suitable Sequence.If the single incident currently triggered is not the single thing sorted under most forward non-triggering state in structuring list of thing Part, then it is not the single incident or currently detected single thing for constituting structuring event to illustrate the single incident currently triggered Part is unsatisfactory for constituting putting in order for structuring event.
S240, the triggering state of the currently detected single incident of correspondence in the structuring list of thing is updated to Triggering state.
S250, non-triggering state is reset to by the triggering state of each single incident in the structuring list of thing.
Specifically, be non-triggering state by the triggering state reset all of each single incident in structuring list of thing, In order to perform next round statistics according to the operation of user.
S260, the system of the structuring event is determined according to the triggering state of single incident in the structuring list of thing Count result.
Optionally, the triggering state according to single incident in the structuring list of thing determines the structuring thing The statistical result of part, 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.
Specifically, if the triggering state of structuring event is triggering state, the completion time of statistical framework event Number Jia 1.The completion number of times for initializing statistical framework event is 0.
Optionally, if it is described all be updated to triggering state, count the structuring event completion number of times plus 1 it Afterwards, in addition to:
The triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
Specifically, after the completion number of times of statistical framework event adds 1, by single incident in structuring list of thing Triggering state resets to original state, starts the statistics of a new round.
In a specific example, the process of structuring event statistics is:Step 1:The structuring event that will be counted Structuring list of thing is set up according to the relation between single incident in structuring event to be stored in a chained list, each single thing Part have triggering state and non-triggering state two states, it is necessary to statistics each single incident can receive one it is single The triggering state of event;Step 2:Start the triggering situation of detection single incident, receive user triggering single incident A, then sentence Whether the single incident A of disconnected user's triggering meets the structure in structuring list of thing (single incident order is also consistent);Step Rapid 3:If the single incident A of user's triggering meets the structure in structuring list of thing, by single incident A triggering state more It is newly triggering state, if the single incident A of user's triggering does not meet the structure in structuring list of thing, by the structure The triggering state for changing all single incidents in list of thing resets to non-triggering state, repeats step 2;Step 4:User touches Send out and single incident B is triggered after single incident A, whether judge single incident B that user triggers is single in structuring list of thing The next single incidents of event A, if it is then the triggering state for updating single incident B is updated to triggering state, if not It is that the triggering state of all single incidents in the structuring list of thing is then reset into non-triggering state, step is repeated Rapid 2;Step 5:Judge whether the triggering state of single incident in structuring list of thing is all updated to triggering state, if It is that then this structuring event Jia 1 for statistics;If not, repeating step 3 or step 4.
In another specific example, as shown in Figure 2 B, a total of 4 from the path of the A pages, the B pages to the E pages, Respectively the A pages-C page-E pages, the A page-C page-D page-E pages, the B page-C page-E pages ,-C pages of the B pages Face-D the page-E the pages, if at this time to add a structuring event to count the A page-C page-E pages this structures Change event, then the process of the A page-C page-E page structure event statistics is:Step 1, by the A page-C page-E pages This structuring event is converted into the A pages in structuring list of thing, initialisation structures list of thing, the C pages, the E pages Triggering state is non-triggering state;Step 2, in the A pages, the B pages, the C pages, the D pages and E page software codes set can Reception event triggering state gets interface ready;Step 3, user enter from the A pages, that is, triggering A page events, then by A The triggering state of the page is updated to triggering state;Step 4, then user enter the C pages from the A pages, then by touching for the C pages Hair-like state is updated to triggering state;If step 5, user are from the C pages directly to the E pages, then by the triggering state of the E pages more It is newly triggering state, completes the statistics of the A page-C page-E page structure events;If user is from the C pages to the D pages, Because the D pages do not meet the structuring event A page-C page-E pages, so will not be counted in this event, by the A pages, C The page, the triggering state of the E pages reset to non-triggering state, repeat step 3.
The technical scheme of the present embodiment, the triggering state by single incident in initialisation structures list of thing is not touch Hair-like state, according to the triggering situation of current single incident, judges whether the single incident currently triggered meets structuring event column The trigger sequence of event in table;If so, then by the triggering shape of the currently detected single incident of correspondence in structuring list of thing State is updated to triggering state;Otherwise, the triggering state of each single incident in structuring list of thing is reset to and do not triggered State, it is to avoid the situation that the frequency of the structuring event come out does not conform to the actual conditions occur.Statistic processes is independently for the treatment of Run outside ranging sequence, avoid intervening the code of program to be measured as far as possible, only the event to generation is detected, can be reached more accurate Statistics of the true realization to structuring event.
Embodiment three
Fig. 3 is a kind of structural representation for event statistics device that the embodiment of the present invention three is provided.The present embodiment is applicable In the situation of event statistics, the device can realize that the device can be integrated in any offer thing by the way of software and/or hardware In the equipment of part statistical function, as shown in figure 3, the event statistics device is specifically included:List sets up module 310, updates mould Block 320 and determining module 330.
Wherein, module 310 is set up in list, for setting up structuring list of thing according to the relation between structuring event, Wherein, the structuring event includes at least two single incidents;
Update module 320, for the triggering situation based on each single incident in the structuring event, updates the knot The triggering state of correspondence single incident in structure list of thing;
Determining module 330, for determining the knot according to the triggering state of single incident in the structuring list of thing The statistical result of structure event.
Optionally, the triggering state includes triggering state and non-triggering state;
Also include:
Initialization module, for before the structuring event is counted every time, initializing the structuring list of thing In the triggering state of each single incident be 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 accords with Close the trigger sequence of event in the structuring list of thing;
State updating unit, for if so, then by the currently detected single thing of correspondence in the structuring list of thing The triggering state of part is updated to triggering state;
Reset cell, for otherwise, the triggering state of each single incident in the structuring list of thing to be reset to Non- triggering state.
Optionally, 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 Triggering state;
Statistic unit, if for being all updated to triggering state, the completion number of times for counting the structuring event adds 1。
Optionally, in addition to:
Reset cell, if for being all updated to triggering state described, counting the completion of the structuring event After number of times adds 1, the triggering state of each single incident in the structuring list of thing is reset into non-triggering state.
The technical scheme of the present embodiment, by setting up structuring list of thing, base according to the relation between structuring event The triggering situation of each single incident in structuring event, updates the triggering shape of correspondence single incident in structuring list of thing State, the statistical result of structuring event is determined according to the triggering state of single incident in structuring list of thing, and statistic processes is only Stand on outside program to be measured and run, avoid intervening the code of program to be measured as far as possible, only the event to generation is detected, Neng Gouti The efficiency of highly structured event statistics, it is simple and convenient reliable, it is to avoid the influence to original code.
Example IV
Fig. 4 is a kind of structural representation for computer equipment that the embodiment of the present invention four is provided.Fig. 4 is shown suitable for being used for Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 4 is shown is only one Example, should not carry out any limitation to the function of the embodiment of the present invention and using range band.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by The usable medium that computer equipment 12 is accessed, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read-write not Movably, non-volatile magnetic media (Fig. 4 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 4, can with There is provided for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 can include the production of at least one program Product, the program product has one group of (for example, at least one) program module, and these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42, can be stored in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs The realization of network environment is potentially included in each or certain combination in module and routine data, these examples.Program mould Block 42 generally performs function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, the equipment communication interacted with the computer equipment 12 can be also enabled a user to one or more, and/or with making Obtain any equipment (such as network interface card, modulatedemodulate that the computer equipment 12 can be communicated with one or more of the other computing device Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network Network, such as internet) communication.As illustrated, network adapter 20 is led to by other modules of bus 18 and computer equipment 12 Letter.It should be understood that although not shown in the drawings, can combine computer equipment 12 use other hardware and/or software module, including But it is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive And data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, thus perform various function application and Data processing, for example, realize the event stochastic method that the embodiment of the present invention is provided:Built according to the relation between structuring event Vertical structuring list of thing, wherein, the structuring event includes at least two single incidents;Based in the structuring event The triggering situation of each single incident, updates the triggering state of correspondence single incident in the structuring list of thing;According to institute The triggering state for stating single incident in structuring list of thing determines the statistical result of the structuring event.
Embodiment five
The embodiment of the present invention five provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey The event stochastic method provided such as all inventive embodiments of the application is provided when sequence is executed by processor:According to structuring event it Between relation set up structuring list of thing, wherein, the structuring event include at least two single incidents;Based on the knot The triggering situation of each single incident in structure event, and correspondence list in the structuring list of thing is updated according to testing result The triggering state of one event;The structuring event is determined according to the triggering state of single incident in the structuring list of thing Statistical result.
Any combination of one or more computer-readable media can be used.Computer-readable medium can be calculated Machine readable signal medium or computer-readable recording medium.Computer-readable recording medium for example can be --- but do not limit In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than combination.Calculate The more specifically example (non exhaustive list) of machine readable storage medium storing program for executing includes:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access memory (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded execution system, device or device and use or in connection.
Computer-readable signal media can be included in a base band or as the data-signal of carrier wave part propagation, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium beyond computer-readable recording medium, the computer-readable medium can send, propagate or Transmit for being used or program in connection by instruction execution system, device or device.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but do not limit In --- wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that the present invention is operated Program code, described program design language includes object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, as independent software kit execution, a portion Divide part execution or the execution completely on remote computer or server on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can be by the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (is for example carried using Internet service Come for business by Internet connection).
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by 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 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 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 Event statistical 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 浙江大学 On-line attribute abnormal point detecting method for 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 浙江大学 On-line attribute abnormal point detecting method for 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
RU2535480C2 (en) Method and apparatus for keystroke estimation on touch screen
CN112507735B (en) Training method and device of machine translation model and electronic equipment
CN109697066A (en) Realize the method and system of tables of data splicing and automatic training machine learning model
US20210216594A1 (en) Method and apparatus for backtracking common scenario dialog in multi-round dialog
EP3923556A1 (en) Method and apparatus for testing dialogue platform, and storage medium
CN106888236A (en) Conversation managing method and session management device
CN110225104A (en) Data capture method, device and terminal device
WO2021089008A1 (en) Method and device for predicting intermolecular binding activity
EP3171274A1 (en) Resource leak detecting method, device, and system
CN111078579A (en) Monkey testing method and device and terminal equipment
US7840948B2 (en) Automation of keyboard accessibility testing
CN103677806A (en) Method and system for managing a system
CN107885661A (en) The terminal transparency method of testing and system of Mobile solution, equipment, medium
CN107168776A (en) Event statistical method, device, equipment and storage medium
CN109240916B (en) Information output control method, information output control device and computer readable storage medium
CN109828902B (en) Interface parameter determining method and device, electronic equipment and storage medium
CN111813407B (en) Game development method, game running device and electronic equipment
CN111367799A (en) Method, device, medium and electronic equipment for positioning source code breakdown position
CN109696614B (en) Circuit test optimization method and device
CN103561022A (en) Voice service access method, related device and voice service system
CN114969759A (en) Asset safety assessment method, device, terminal and medium for industrial robot system
CN114201729A (en) Method, device and equipment for selecting matrix operation mode and storage medium
CN105930224A (en) Dump operation control method, device and terminal
CN106203538A (en) Method and device for disassembling single characters of electronic handwriting
CN108710484A (en) It is a kind of to pass through the method for speech modification license plate number, storage medium 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