CN110020348B - Early warning method and device for circled events - Google Patents

Early warning method and device for circled events Download PDF

Info

Publication number
CN110020348B
CN110020348B CN201710851716.6A CN201710851716A CN110020348B CN 110020348 B CN110020348 B CN 110020348B CN 201710851716 A CN201710851716 A CN 201710851716A CN 110020348 B CN110020348 B CN 110020348B
Authority
CN
China
Prior art keywords
event
circled
early warning
information
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710851716.6A
Other languages
Chinese (zh)
Other versions
CN110020348A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710851716.6A priority Critical patent/CN110020348B/en
Publication of CN110020348A publication Critical patent/CN110020348A/en
Application granted granted Critical
Publication of CN110020348B publication Critical patent/CN110020348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses a method and a device for early warning of circled events, relates to the technical field of networks, and mainly aims to realize the early warning function of the circled events when user data are collected by using a non-buried point circled technology. The method of the invention comprises the following steps: judging whether early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting; if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period, wherein the second preset time period is later than the first preset time period; and if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event. The method and the device are used for early warning the circled events.

Description

Early warning method and device for circled events
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for early warning of a circled event.
Background
With the rapid development of the internet, the non-embedded point technology gradually becomes an important means for collecting user behaviors by websites. Different from the prior embedded point technology, the non-embedded point technology does not need to deploy complex codes in a website, and the corresponding circled event can be formed by circled selection of webpage elements at the front end of a webpage. When the user interacts with the webpage element, the user behavior can be acquired by recording the triggering condition of the circled event. Because the acquisition result directly influences the subsequent analysis work, if the circled position of the circled event is not accurate enough, or the website is subjected to version change and the like, the circled event cannot be triggered to cause failure due to the position change of the circled webpage elements, and the acquisition result of the data in the website is not accurate enough. Therefore, the accuracy of the circled events is an important link for ensuring the accuracy of the subsequent acquisition of user data in the technical field of non-buried points
At present, when user behavior data are collected by using a non-buried point technology, because the non-buried point technology does not need a higher technical level compared with a buried point technology, a person who deploys a circled event is not a professional technician generally, so that the deployment position of the circled event is possibly not accurate enough, or the circled event cannot be adjusted in time according to webpage version change or webpage upgrade in time, so that the circled event is invalid, and the collected data is not accurate enough. Therefore, how to perform effective early warning on the circled event in practical application so as to avoid the situation that the circled event is invalid becomes a problem to be solved urgently in the industry.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for early warning a circled event, and mainly aims to realize early warning of the circled event in a process of collecting user data by using the circled event.
In order to solve the above technical problem, in a first aspect, the present invention provides a method for warning a circled event, where the method includes:
judging whether early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting;
if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period, wherein the second preset time period is later than the first preset time period;
and if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event.
Optionally, before determining whether there is the early warning information corresponding to the first preset time period, the method further includes:
acquiring a user name and an early warning receiving address according to preset user information, wherein the user information corresponds to a selection event list of a user one by one, and the selection event list comprises selection events determined by the user;
the judging whether the early warning information corresponding to the first preset time period exists comprises the following steps:
judging whether early warning information corresponding to the user name and the first preset time period exists or not;
the outputting of the early warning report corresponding to the circled event comprises:
and sending an early warning report corresponding to the circled event to the early warning receiving address.
Optionally, the determining whether the circled event is triggered within a second preset time period includes:
acquiring the event name of the circled event from the configuration information of the circled event;
and inquiring whether trigger data corresponding to the selection event exist in the second preset time period or not in a database according to the event name, wherein the event name of the selection event and the corresponding trigger data are stored in the database.
Optionally, after determining whether the circled event is triggered within a second preset time period, the method further includes:
and if the selection event is triggered within the second preset time period, outputting a report that the selection event is normal.
Optionally, the early warning information at least includes the circled event and corresponding attribute information,
and after the early warning information exists, the method further comprises the following steps:
generating an event statistical information table according to the early warning information, wherein the event statistical information table stores attribute information of the circled events in the early warning information, and the attribute information comprises event names, non-triggering durations and final triggering time;
the outputting of the early warning report corresponding to the circled event comprises:
and generating an early warning report corresponding to the circled event according to the event name, the non-triggering duration and the final triggering time of the attribute information in the event statistical information table, and outputting the early warning report.
Optionally, before outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the event statistical information table exists or not;
if the event statistical information table is determined to exist, inquiring whether an event record corresponding to the selected event exists in the event statistical information table;
if the event record exists in the event statistical information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after the attribute information is updated;
and if the event record does not exist in the event statistical information table, updating the trigger information of the selection event according to the trigger information of the selection event in the database, and generating the early warning report according to the selection event after the attribute information is updated.
Optionally, after determining whether the event statistics table exists, the method further includes:
and if the event statistical information table does not exist, adding a to-be-recovered identifier for the circled event.
Optionally, if the event record exists in the event statistics information table, the updating the attribute information corresponding to the circled event, and the generating the early warning report according to the circled event after the attribute information is updated includes:
adding a preset time length to the un-triggered time length in the attribute information of the circled event so as to update the attribute information of the circled event, wherein the preset time length is the same as the time length of the second preset time period;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Optionally, if the event record does not exist in the event statistics information table, updating the trigger information of the circled event according to the trigger information of the circled event in the database, and generating the early warning report according to the circled event after the attribute information is updated includes:
acquiring the last trigger time corresponding to the selection event from a database;
calculating the non-triggering duration of the circled event according to the final triggering time;
updating attribute information of the circled event according to the non-trigger time and the last trigger time;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Optionally, the obtaining the last trigger time corresponding to the circled event from the database includes:
judging whether trigger data of the selection event exist in the database or not;
if yes, determining the final trigger time of the selection event according to the trigger data of the selection event;
and if not, determining the creation time of the circled event as the final trigger time.
Optionally, after the determining whether there is the early warning information corresponding to the first preset time period, the method further includes:
and if the early warning information does not exist, adding a to-be-recovered identifier to the circled event so as to recover the attribute information of the circled event.
Optionally, before outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the circled event has a mark to be recovered;
if yes, restoring the attribute information of the selection event according to the trigger information corresponding to the selection event in the database;
and generating an early warning report corresponding to the circled event according to the attribute information of the recovered circled event.
Optionally, before outputting the early warning report corresponding to the circled event, the method further includes:
generating an un-triggered event set according to a plurality of circled events which are not triggered in the second preset time period;
grouping a plurality of circled events in the triggerless event set according to the triggerless duration;
matching corresponding preset event processing suggestions for the grouped selection events according to the length of the triggerless events, wherein the preset event processing suggestions are suggestions for performing different processing on the selection events with different lengths of the triggerless events, which are provided for a user;
calculating the number of grouping and selecting events and the proportion of the grouping and selecting events in the non-triggering event set;
generating an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped circled events, the proportion of the circled events in the triggerless event set and the matched preset event processing suggestion;
the outputting of the early warning report corresponding to the circled event comprises:
and outputting the early warning report corresponding to the triggerless event set.
In a second aspect, the present invention further provides an early warning device for a circled event, including:
the first judgment unit is used for judging whether the early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting;
a second judging unit, configured to judge whether the circled event is triggered within a second preset time period if the first judging unit judges that the early warning information exists, where the second preset time period is later than the first preset time period;
and the output unit is used for outputting an early warning report corresponding to the circled event if the second judging unit judges that the circled event is not triggered within the second preset time period.
Optionally, the apparatus further comprises:
the system comprises an acquisition unit, a pre-setting unit and a pre-warning receiving unit, wherein the acquisition unit is used for acquiring a user name and a pre-warning receiving address according to preset user information, the user information corresponds to a selection event list of a user one by one, and the selection event list comprises selection events determined by the user;
the first judging unit is specifically configured to judge whether there is the early warning information corresponding to the user name and the first preset time period acquired by the acquiring unit;
the output unit is specifically configured to send an early warning report corresponding to the circled event to the early warning receiving address acquired by the acquisition unit.
Optionally, the second judging unit includes:
the acquisition module is used for acquiring the event name of the circled event from the configuration information of the circled event;
and the query module is used for querying whether trigger data corresponding to the selection circled event exists in the second preset time period or not in a database according to the event name acquired by the acquisition module, and the event name of the selection circled event and the corresponding trigger data are stored in the database.
Optionally, the apparatus further comprises:
the output unit is further configured to output a report that the circled event is normal if the circled event is triggered within the second preset time period.
Optionally, the early warning information at least includes the circled event and corresponding attribute information,
and, the apparatus further comprises:
the first generation unit is used for generating an event statistical information table according to the early warning information, wherein the event statistical information table stores attribute information of the circled events in the early warning information, and the attribute information comprises event names, non-trigger time lengths and final trigger time;
the output unit includes:
the generation module is used for generating an early warning report corresponding to the circled event according to the event name, the non-triggering duration and the final triggering time of the attribute information in the event statistical information table;
and the output module is used for outputting the early warning report generated by the generation module.
Optionally, the apparatus further comprises:
a third judging unit, configured to judge whether the event statistic information table exists;
the query unit is used for querying whether an event record corresponding to the circled event exists in the event statistical information table if the third judgment unit determines that the event statistical information table exists;
the first updating unit is used for updating the attribute information corresponding to the circled event if the event record exists in the event statistical information table inquired by the inquiring unit, and generating the early warning report according to the circled event after the attribute information is updated;
and the second updating unit is used for updating the trigger information of the selection circled event according to the trigger information of the selection circled event in the database if the event record does not exist in the event statistical information table inquired by the inquiring unit, and generating the early warning report according to the selection circled event after the attribute information is updated.
Optionally, the apparatus further comprises:
and the adding unit is used for adding the identifier to be recovered to the circled event if the event statistical information table is determined not to exist.
Optionally, the first updating unit includes:
the adding module is used for adding a preset time length to the un-triggered time length in the attribute information of the circled event so as to update the attribute information of the circled event, and the preset time length is the same as the time length of the second preset time period;
and the generating module is used for generating an early warning report corresponding to the circled event according to the attribute information of the circled event updated by the adding module.
Optionally, the second updating unit includes:
the acquisition module is used for acquiring the final trigger time corresponding to the selection event from a database;
the calculating module is used for calculating the non-triggering duration of the selection event according to the last triggering time acquired by the acquiring module;
the updating module is used for updating the attribute information of the circled event according to the non-triggering time calculated by the calculating module and the last triggering time acquired by the acquiring module;
and the generating module is used for generating an early warning report corresponding to the circled event according to the circled event attribute information updated by the updating module.
Optionally, the obtaining module includes:
the judging submodule is used for judging whether trigger data of the selection circling event exist in the database or not;
the first determining submodule is used for determining the final trigger time of the selection circling event according to the trigger data of the selection circling event if the judging submodule judges that the trigger data exists;
and the second determining submodule is used for determining the creation time of the selection circling event as the final trigger time if the judging submodule judges that the trigger data does not exist.
Optionally, the adding unit is further configured to add, if the early warning information does not exist, an identifier to be recovered to the circled event, so as to recover the attribute information of the circled event.
Optionally, the apparatus further comprises:
a fourth judging unit, configured to judge whether the circled event has an identifier to be recovered;
the recovery unit is used for recovering the attribute information of the circled event according to the trigger information corresponding to the circled event in the database if the fourth judgment unit judges that the circled event has the identifier to be recovered;
and the second generating unit is used for generating an early warning report corresponding to the circled event according to the attribute information of the circled event recovered by the recovering unit.
Optionally, the apparatus further comprises:
a third generating unit, configured to generate an un-triggered event set according to a plurality of circled events that are not triggered within the second preset time period;
the grouping unit is used for grouping a plurality of circled events in the triggerless event set generated by the third generation unit according to the triggerless duration;
the matching unit is used for matching corresponding preset event processing suggestions for the grouping selection events obtained by the grouping unit according to the non-trigger time length, and the preset event processing suggestions are suggestions for performing different processing on the selection events with different non-trigger time lengths, which are provided for a user;
the calculating unit is used for calculating the number of the grouping and selection events obtained by the grouping unit and the proportion of the grouping and selection events in the non-triggering event set;
a fourth generating unit, configured to generate an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped selection events calculated by the calculating unit, a ratio of the selection events to the triggerless event set, and a preset event processing suggestion matched by the matching unit;
the output unit is further specifically configured to output the early warning report corresponding to the triggerless event set generated by the fourth generation unit.
In order to achieve the above object, according to a third aspect of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the above-mentioned pre-warning method for the circled event.
In order to achieve the above object, according to a fourth aspect of the present invention, a processor for executing a program is provided, wherein the program executes the method for warning the circled event.
By means of the technical scheme, the method and the device for early warning the circled events provided by the invention firstly judge whether the early warning information corresponding to a first preset time period exists or not, determine whether the triggerless circled events exist or not according to the information, judge whether the triggerless circled events in the early warning information are triggered or not in a second preset period which is later than the first preset time period or not after the early warning information exists, and output the early warning report corresponding to the circled events when the second preset time period does not trigger the circled events.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of an early warning method for a circled event according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another pre-warning method for a circled event according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating an early warning apparatus for a circled event according to an embodiment of the present invention;
fig. 4 shows a block diagram of another pre-warning device for circled events according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to improve the accuracy and richness of the pre-warning process of the circled event, the embodiment of the invention provides a pre-warning method of the circled event, as shown in fig. 1, the method comprises the following steps:
101. and judging whether the early warning information corresponding to the first preset time period exists or not. And if the circled event is not triggered, generating the early warning information for prompting.
In the embodiment of the present invention, the first preset time may be understood as a time range before the current actual time, for example, any time range such as yesterday, last week, or last month, and may be specifically determined according to actual needs. Meanwhile, a certain relationship exists between the preset first time period and the output frequency of the early warning report in the embodiment of the invention. For example, when the frequency of the warning report according to the embodiment of the present invention is output once a day, the corresponding first preset time period may be determined as the time range of the previous day before the current time. In order to make the description more clear and concise, in the embodiment of the present invention, it is assumed that the output frequency of the warning report is once a day, and the corresponding first preset time period can be understood as a time range of yesterday and whole day.
In order to collect user behaviors, a webpage element needing to be collected can be selected by using a non-buried point technology at the front end to form a selection event, and then the interaction times of a user on the webpage element are determined according to the triggering condition of the selection event. In actual use, the selection range of the selection event sometimes does not accurately cover the webpage elements, and the selection event is not triggered all the time and is in a failure state if the selection is wrong or the webpage is changed; meanwhile, the situation that the set selection event is not scientific enough so that the setting of some selection events is not significant exists. Therefore, it is necessary to timely find the failed circled event and the meaningless circled event, and perform early warning after finding. In the embodiment of the present invention, the early warning information is information for counting the triggerless selection events, and may be understood as information that is set in the system and is generated at a fixed time for prompting the triggerless selection events, or may be understood as a record that is set in the system separately and records the triggerless selection events, or an early warning report according to the embodiment of the present invention. Of course, the specific situation may be selected according to the actual need, and is not limited herein. It should be noted that it is ensured that the acquired warning information includes an un-triggered date and time, so as to determine when the un-triggered circled event occurs according to the date and time. Therefore, in order to determine whether there is an un-triggered circled event, it may be determined whether there is an un-triggered circled event by determining whether there is warning information of the un-triggered circled event within a first preset time period by the method described in this step.
102. And if the early warning information exists, judging whether the circled event is triggered within a second preset time period.
Since the first preset time period in the present embodiment has been described in step 101 as the time range of yesterday for the entire day, the second preset time period later than the first preset time period in this step can be understood as the time range of the entire day of the day. Therefore, after the judgment in step 101 in this step, when it is judged that there is the warning information corresponding to yesterday, it is necessary to further judge the trigged selection event, and judge whether the selection event is triggered today, and a specific judgment manner may be to query in a preset database or in a preset trigger log, although the manner of judging whether the selection event is triggered in the second preset time period in this step may be selected according to actual situations, and is not limited specifically here.
103. And if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event.
According to the method in this step, when it is determined that the circled event is not triggered today, it may be determined that the circled event is not triggered yesterday, and is not triggered today, which indicates that the circled event may be a failed circled event, or that the setting of the circled event is not significant enough, and the circled event needs to be pre-warned for subsequent processing. Therefore, in this step, when it is determined that the circled event is not triggered within the second preset time period, it is necessary to perform an early warning on the circled event and output an early warning report. The early warning report according to the embodiment of the present invention may be generated according to the related information of the circled event, for example, the early warning report may include related information such as the name, the serial number, and the non-triggered condition of the circled event, so as to ensure that the related personnel receiving the early warning report can process the circled event in time. Of course, the content and the type of data related to the warning report in the embodiment of the present invention may be set according to the need, and are not limited herein. Meanwhile, the mode of outputting the early warning report can also be selected according to the needs, such as outputting voice information or sending an early warning mail, and the like, and the mode is not particularly limited and can be selected according to the needs.
Compared with the prior art, the method for early warning the circled events determines whether the circled events need early warning by judging whether the circled events in the early warning information corresponding to the first preset time period are triggered within the second preset time period, and outputs the early warning report corresponding to the circled events when the circled events are determined not to be triggered within the second preset time period, so that the early warning function of the circled events is realized, the output function of the early warning report of the circled events which are not triggered within the first preset time period and the second preset time period is ensured when the circled events fail, and the effect of early warning the circled events is achieved.
Further, as a refinement and an extension of the embodiment shown in fig. 1, the embodiment of the present invention further provides another method for warning a circled event, as shown in fig. 2, the specific steps include:
201. and acquiring a user name and an early warning receiving address according to preset user information.
In the embodiment of the present invention, the user is actually the acquiring party for acquiring the behavior data of the web page user, and the method in the embodiment of the present invention is an early warning technique invented for more accurately acquiring the subsequent behavior data of the user, so in the embodiment of the present invention, the information of the acquiring party needs to be acquired, wherein the information of the acquiring party and the circled event table set by the acquiring party have a corresponding relationship, and the circled event table contains the circled event circled by the acquiring party, so that the circled event table can be determined by the name of the user in the user information, and the circled event needing to be determined is determined in the circled event table. Meanwhile, the user information contains an early warning receiving address, so that the address information of the acquisition party for receiving the early warning report is acquired from the user information, and the early warning report generated finally is sent to the early warning address. Therefore, according to the method in the step, the problem that when a plurality of collecting parties respectively collect user data in different webpages, corresponding selection events can be obtained according to different user names, so that the judgment error of the selection events is avoided, and the condition that the early warning report is sent wrongly can be avoided according to the early warning receiving addresses corresponding to different user names, so that the accuracy of the early warning method in the embodiment of the invention is improved.
202. And judging whether the early warning information corresponding to the user name and the first preset time period exists or not.
In the embodiment of the present invention, the sending frequencies of the early warning information, the first preset time period, the second preset time period, and the early warning report are the same as those described in steps 101 and 102 in the foregoing embodiment, and no further description is given here, and similarly, in order to enable the embodiment of the present invention to be described more clearly and accurately, in the embodiment of the present invention, the output frequency of the early warning report is assumed to be once a day, the corresponding first preset time period is set to be the time range of the whole day of the last day, and the corresponding second preset time period is set to be the time range of the whole day of the day. Therefore, after the user name of the user is acquired in step 201, it is necessary to determine whether or not the warning information corresponding to the user name exists in the warning information corresponding to yesterday in step.
After the determination according to the method of this step, step 203 is executed if it is determined that the warning information does not exist, and step 204 is executed if it is determined that the warning information exists.
203. And if the early warning information does not exist, adding a to-be-recovered identifier to the circled event so as to recover the attribute information of the circled event.
The method includes the steps that early warning information is used for prompting a non-triggered circled event, when it is determined that yesterday early warning information corresponding to a user name does not exist, it is indicated that the prompting information of the circled event corresponding to the user is not inquired, when the user performs non-buried point circled selection, the situation that the circled event of the user is not triggered normally occurs, the triggering situation is only mostly triggered or mostly not triggered, and when it is determined that the non-triggered circled event is not subjected to early warning prompting information currently, it is indicated that the circled event of the current user has the situation that the early warning information is missing, so that a to-be-recovered identifier needs to be added to the circled event corresponding to the user, and data recovery is performed on the circled event of the missing early warning information in the process of generating an early warning report subsequently.
Further, the early warning information according to the embodiment of the present invention may also be used to prompt a circled event whose triggering frequency is less than a preset triggering threshold, and the specific triggering threshold may be set according to actual needs, which is not limited herein.
204. And if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period.
According to the method in this step, the specific implementation manner may be: first, the event name of the circled event is obtained from the configuration information of the circled event. The configuration information may be information stored when the user performs selection, or configuration information acquired from a system log, and may be specifically selected according to needs.
Then, according to the event name, whether yesterday trigger data corresponding to the selection event exists or not is inquired in a database, and it should be noted that the database in the embodiment of the present invention is a database for storing the selection event, and the event name of the selection event and the corresponding trigger data are stored in the database. Therefore, it can be queried in the database by the event name whether yesterday trigger data corresponding to the circled event exists, so as to determine whether the circled event is triggered yesterday.
The early warning method provided by the embodiment of the invention not only judges whether the circled event needs early warning, but also generates a corresponding early warning report according to the attribute information of the circled event, so that after the early warning information is determined to exist, the method provided by the embodiment of the invention can also generate an event statistical information table according to the early warning information. The event statistical information table stores the circled events in the early warning information and the attribute information corresponding to the circled events, the attribute information may further include event names, non-trigger durations, last trigger times and other related information, and the early warning content in the early warning report in the embodiment of the present invention may be selected from the attribute information in the circled events.
Therefore, according to the method in the step, the accuracy of judging whether the circled event is triggered within the second preset time can be ensured by inquiring the trigger data through the database, and meanwhile, the accuracy of the judgment result can be further improved by inquiring the trigger data by using the event name, so that the accuracy of the early warning method in the embodiment of the invention is further improved.
After the judgment of the step, because the judgment result has two conditions, one is that the circled event is triggered in the second preset time period, the circled event is actually effective, and no early warning is needed; and when the circled event is not triggered within a second preset time period, the circled event is proved to be likely to be invalid, or the circled event without great setting significance is proved to be necessary to be warned. Thus, when it is determined that the selection event is not triggered within the second preset time, step 205 is executed; when it is determined that the selection event is triggered within the second preset time, step 213 is performed.
205. Judging whether an event statistical information table exists or not;
because the circled events needing to be early-warned need to be determined firstly before the early-warning report is generated, the circled events needing to be early-warned exist in the circled events contained in the early-warning information based on the inventive concept of the embodiment of the present invention. In step 204, since the corresponding event statistical table is generated according to the selection event that is not triggered within the first preset time period, it is necessary to first determine whether the event statistical table exists in this step.
Since in some special cases there are cases where the event statistics cannot be queried, for example: data loss, etc. Therefore, after the determination in this step, if it is determined that the event statistics information table exists, step 206 is executed; if the event statistics table does not exist, go to step 209.
206. And if the event statistical information table is determined to exist, inquiring whether an event record corresponding to the selected event exists in the event statistical information table.
When the event statistical table is determined to exist, whether an event record corresponding to the circled event exists needs to be further inquired in the event statistical table so as to determine whether the circled event needs to recover the attribute information of the circled event when an early warning report is subsequently generated. Specifically, there are two cases in the query result, one is that the event record is queried, step 207 is executed; otherwise, step 208 is performed.
207. And if the event record exists in the event statistical information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after the attribute information is updated.
The early warning report is generated according to the attribute information of the circled event, and part of the information in the attribute information needs to be updated according to a certain time interval, for example, the length of time that is not triggered in the attribute information needs to be updated according to a real-time state, so as to ensure the accuracy of the content in the generated early warning report.
Specifically, the step may include: firstly, a preset time length is added to the non-triggering time length in the attribute information of the circled event, the preset time length corresponds to a second preset time period, for example, as described in the embodiment of the present invention, if the second preset time period is assumed to be the current whole day, the preset time length is one day, that is, one day is added on the basis of the original non-triggering time length to obtain a new non-triggering time length, and the new non-triggering time length is used to replace the original non-triggering time length. And then, generating an early warning report of the circled event according to the updated non-trigger time length and other attribute information.
208. And if the event record does not exist in the event statistical information table, updating the trigger information of the selection event according to the trigger information of the selection event in the database, and generating the early warning report according to the selection event after the attribute information is updated.
When the event record corresponding to the selected event is not searched in the event statistic information table, the problem that the selected event may have data missing is explained, so that the attribute information of the selected event is incomplete and needs to be recovered from other standby records. The trigger data corresponding to the circled event can be acquired from the database, and the data capable of recovering the attribute information of the circled event can be acquired from the trigger data.
Specifically, the step may include: firstly, the last trigger time corresponding to the selection event is obtained from a database. The total number of times this circled event has not been triggered since the last trigger time to the present is then calculated based on the last trigger time. And then, adding the calculated time when the trigger is not triggered and the last trigger time acquired before into the attribute information of the circled event so as to update the attribute information of the circled event. And finally, generating an early warning report corresponding to the circled event according to the updated circled event attribute information. Further, there may be a case where the selection by pass event is not triggered all the time, and in this case, the triggering data of the selection by pass event is not stored in the database. Therefore, when obtaining the trigger time of the circled event, the method may specifically further include: firstly, judging whether trigger data of the selection event exist in the database. If the trigger data of the selection event exists, it is determined that the selection event is triggered, and the corresponding last trigger time also exists in the trigger data. If the trigger data corresponding to the selection event does not exist, it indicates that the selection event has not been triggered, and therefore, the corresponding trigger data does not exist, and accordingly, the creation time of the selection event can be determined as the last trigger time.
209. And if the event statistical information table does not exist, adding a to-be-recovered identifier for the circled event.
According to the method provided by the embodiment of the invention, the early warning information is acquired after the early warning information is judged to exist, and a corresponding event statistical information table is generated according to the early warning information. Therefore, in this step, when it is determined that the event statistic information table does not exist, it indicates that there is a high possibility that the attribute information of the circled event is missing, and it is necessary to add a corresponding to-be-recovered identifier to the circled event, so that the attribute information of the circled event is recovered in the subsequent step.
210. And judging whether the circled event has a mark to be recovered.
After the method of step 201 and 209 is performed, when it is determined that the pre-warning needs to be performed on the circled event, it is further determined whether the attribute information of the circled event is accurate and whether the attribute information is missing before the pre-warning report is generated, and therefore, according to the method of this step, it is determined whether the circled event has the identifier to be recovered.
After the judgment of the method in this step, when it is determined that the circled event has the identifier to be recovered, it indicates that there may be data loss in the attribute information of the circled event, then step 211 is executed, and then step 212 is executed; when it is determined that the circled event has no identifier to be recovered, it indicates that the attribute information of the circled event is accurate, and step 212 is directly performed without performing step 211.
211. If the fact that the to-be-recovered mark exists in the selection event is determined, recovering the attribute information of the selection event according to the trigger information corresponding to the selection event in the database, and generating an early warning report corresponding to the selection event according to the recovered attribute information of the selection event.
When the circled event is determined to have the identifier to be recovered, it is indicated that the attribute information of the circled event is missing and needs to be recovered. Specifically, the recovery can be performed through the trigger data in the database, and then the early warning report corresponding to the circled event is generated from the recovered attribute information. The recovered main information may be related trigger information such as the time length of non-triggering and the time of final triggering. The types and contents recovered in the attribute information are not limited, and can be selected by the user according to the contents in the early warning report. Of course, according to the method described in the embodiment of the present invention, in the recovered attribute information, the length of the non-trigger time and the last trigger time are required to be recovered.
Therefore, according to the method in the step, whether the mark to be recovered exists is judged before the early warning report is sent, and the attribute information of the circled event of the mark to be recovered is recovered, so that the problem that the content of the early warning report is inaccurate due to data loss in the attribute information can be avoided, and the accuracy of early warning is improved. In addition, the attribute information is recovered according to the trigger information in the database, so that the accuracy of the recovered data can be further ensured, and the overall accuracy of the early warning is further improved.
212. And sending an early warning report corresponding to the circled event to the early warning receiving address.
The step can be specifically as follows: and generating an early warning report corresponding to the circled event according to the event name, the non-trigger duration and the last trigger time of the attribute information in the event statistical information table generated in the step 204, and outputting the early warning report. It should be noted that, in the embodiment of the present invention, the content in the early warning report may be set as needed, and according to different report contents, the type and the number of the corresponding attribute information required for generating the early warning report may also be changed correspondingly.
Furthermore, when each data acquisition party sets a circle selection event, the circle selection events corresponding to each user are generally multiple, but the circle selection events which are not triggered are not only one, and the situation that multiple circle selection events need early warning may exist; meanwhile, if the multiple circle events are respectively subjected to early warning, the problems of too frequent early warning and low early warning efficiency can also exist, and the problem that related personnel process too complicated content when processing early warning reports is caused. Therefore, when there are multiple circled events that are not triggered in the early warning information in step 202, in order to simplify the frequency of outputting the early warning report and improve the early warning efficiency, the early warning reports of the multiple circled events may be combined to obtain the early warning report corresponding to the multiple circled events.
Therefore, the method in this step may further specifically be: first, an un-triggered event set is generated from a number of circled events that are not triggered today. And then grouping a plurality of circled events in the triggerless event set according to the triggerless duration to obtain grouped circled events. And meanwhile, matching corresponding preset event processing suggestions for the grouped selection events according to the length of the triggerless event, wherein the event processing suggestions are preset and are used for providing suggestions for different processing of the selection events with different lengths of the triggerless event for the user, such as suggestions for continuously viewing, suggestions for checking the selection configuration, suggestions for deleting and the like. Then, the number of grouping and selecting events and the proportion of the grouping and selecting events in the non-triggering event set are calculated. And finally, generating an early warning report corresponding to the triggerless event set according to the triggerless time length, the number of grouped circled events, the proportion of the circled events in the triggerless event set and the matched preset event processing suggestion.
Furthermore, the number of the triggerless selection events in the first preset time period, the number of the triggerless selection events in the second preset time period, the change condition of the triggerless selection events and other related information can be added into the early warning report, so that the content of the early warning report is richer, and the early warning effect is further improved.
213. And if the selection event is triggered within the second preset time period, outputting a report that the selection event is normal.
When the selection event is determined to be triggered today, it is indicated that it may be an accidental reason that the selection event is not triggered yesterday, and the selection event does not need to be pre-warned, so that the current normal information of the selection event can be output.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides an early warning device for a circled event, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: a first determining unit 31, a second determining unit 32 and an output unit 33, wherein
The first determining unit 31 may be configured to determine whether there is warning information corresponding to a first preset time period, where if the circled event is not triggered, the warning information is generated to prompt.
The second determining unit 32 may be configured to determine whether the circled event is triggered within a second preset time period if the first determining unit 31 determines that the warning information exists, where the second preset time period is later than the first preset time period.
The output unit 33 may be configured to output an early warning report corresponding to the circled event if the second determining unit 32 determines that the circled event is not triggered within the second preset time period.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides another event circled early warning device, which is used to implement the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes: a first determining unit 401, a second determining unit 402 and an output unit 403, wherein
The first determining unit 401 may be configured to determine whether there is warning information corresponding to a first preset time period, where if the circled event is not triggered, the warning information is generated to prompt.
The second determining unit 402 may be configured to determine whether the circled event is triggered within a second preset time period if the first determining unit 401 determines that the warning information exists, where the second preset time period is later than the first preset time period.
An output unit 403, configured to output an early warning report corresponding to the circled event if the second determining unit 402 determines that the circled event is not triggered within the second preset time period.
Further, the apparatus further comprises:
the obtaining unit 404 may be configured to obtain a user name and an early warning receiving address according to preset user information, where the user information corresponds to a selection event table of a user one to one, and the selection event table includes selection events determined by the user.
The first determining unit 401 may be specifically configured to determine whether there is the early warning information corresponding to the user name and the first preset time period acquired by the acquiring unit 404.
The output unit 403 may be specifically configured to send an early warning report corresponding to the circled event to the early warning receiving address acquired by the acquisition unit 404.
Further, the second determining unit 402 includes:
the obtaining module 4021 may be configured to obtain an event name of the circled event from the configuration information of the circled event.
The querying module 4022 may be configured to query, according to the event name acquired by the acquiring module 4021, whether trigger data corresponding to the circled event exists in the second preset time period, where the event name of the circled event and the corresponding trigger data are stored in the database.
Further, the output unit 403 may be further configured to output a report that the circled event is normal if the circled event is triggered within the second preset time period.
Further, the early warning information at least comprises the circled event and corresponding attribute information,
and, the apparatus further comprises:
the first generating unit 405 may be configured to generate an event statistics information table according to the early warning information, where the event statistics information table stores attribute information of the circled event in the early warning information, and the attribute information includes an event name, an un-triggered time length, and a last-triggered time length.
The output unit 403 includes:
the generating module 4031 may be configured to generate an early warning report corresponding to the circled event according to the event name, the non-trigger duration, and the last trigger time of the attribute information in the event statistics information table.
An output module 4032 may be configured to output the early warning report generated by the generation module 4031.
Further, the apparatus further comprises:
the third determining unit 406 may be configured to determine whether the event statistic information table generated by the first generating unit 405 exists.
The querying unit 407 is configured to query whether an event record corresponding to the circled event exists in the event statistics table if the third determining unit 406 determines that the event statistics table exists.
The first updating unit 408 may be configured to update the attribute information corresponding to the circled event if the event record exists in the event statistics information table queried by the querying unit 407, and generate the early warning report according to the circled event after the attribute information is updated.
The second updating unit 409 may be configured to update the trigger information of the circled event according to the trigger information of the circled event in the database if the event record does not exist in the event statistic information table queried by the querying unit 407, and generate the early warning report according to the circled event after the attribute information is updated.
Further, the apparatus further comprises:
the adding unit 410 may be configured to add an identifier to be recovered to the circled event if the third determining unit 406 determines that the event statistic information table does not exist.
Further, the first updating unit 408 includes:
the adding module 4081 may be configured to add a preset duration to the un-triggered duration in the attribute information of the circled event, so as to update the attribute information of the circled event, where the preset duration is the same as the duration of the second preset time period.
The generating module 4082 may be configured to generate an early warning report corresponding to the circled event according to the attribute information of the circled event updated by the adding module 4081.
Further, the second updating unit 409 includes:
the obtaining module 4091 may be configured to obtain the last trigger time corresponding to the circled event from a database.
The calculating module 4092 may be configured to calculate the non-trigger duration of the circled event according to the last trigger time acquired by the acquiring module 4091.
The updating module 4093 may be configured to update the attribute information of the circled event according to the non-trigger duration calculated by the calculating module 4092 and the last trigger time acquired by the acquiring module 4091.
The generating module 4094 may be configured to generate an early warning report corresponding to the circled event according to the circled event attribute information updated by the updating module 4093.
Further, the obtaining module 4091 includes:
the determining sub-module 40911 may be configured to determine whether trigger data of the circled event exists in the database.
The first determining sub-module 40912 may be configured to determine, if the determining sub-module 40911 determines that the trigger data exists, the last trigger time of the selection by round event according to the trigger data of the selection by round event.
The second determining sub-module 40913 may be configured to determine, if the determining sub-module 40911 determines that the trigger data does not exist, the creation time of the circled event as the last trigger time.
Further, the adding unit 410 may be further configured to add, if the early warning information does not exist, an identifier to be recovered to the circled event, so as to recover the attribute information of the circled event.
Further, the apparatus further comprises:
the fourth determining unit 411 may be configured to determine whether the circled event has a to-be-recovered flag.
The recovering unit 412 may be configured to, if the fourth determining unit 411 determines that the circled event has the identifier to be recovered, recover the attribute information of the circled event according to the trigger information corresponding to the circled event in the database.
The second generating unit 413 may be configured to generate an early warning report corresponding to the circled event according to the attribute information of the circled event recovered by the recovering unit 412, and send the early warning report to the output unit 403 so as to output the early warning report.
Further, the apparatus further comprises:
the third generating unit 414 may be configured to generate an un-triggered event set from the multiple circled events that are judged by the second judging unit 402 to be un-triggered within the second preset time period.
The grouping unit 415 may be configured to group multiple round-robin events in the set of triggerless events generated by the third generating unit 414 according to a triggerless duration.
The matching unit 416 may be configured to match, according to the non-trigger time length, the corresponding preset event processing suggestion for the grouped selection events obtained by the grouping unit 415, where the preset event processing suggestion is a suggestion provided to the user to perform different processing on selection events with different non-trigger time lengths.
The calculating unit 417 may be configured to calculate the number of packet gating events obtained by the grouping unit 415 and a ratio of the packet gating events to the set of non-trigger events.
The fourth generating unit 418 may be configured to generate an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped select events calculated by the calculating unit 417, a ratio of select events to the triggerless event set, and a preset event processing suggestion matched by the matching unit 416.
The output unit 403 may be further specifically configured to output the early warning report corresponding to the set of triggerless events generated by the fourth generating unit 418.
By means of the technical scheme, the embodiment of the invention provides an early warning method and device for a circled event. Compared with the prior art, the method and the device have the advantages that whether the circled event needs to be pre-warned or not is determined by judging whether the circled event in the pre-warning information corresponding to the first preset time period is triggered within the second preset time period or not, and the pre-warning report corresponding to the circled event is output when the circled event is determined to be not triggered within the second preset time period, so that the pre-warning function of the circled event is realized, the output function of the pre-warning report of the circled event which is not triggered within the first preset time period and the second preset time period is ensured when the circled event fails, and the effect of pre-warning the circled event is achieved. Furthermore, when the event statistical information table is judged to exist, the attribute information of the circled events is updated according to whether the circled events exist in the event statistical information table or not, so that the accuracy of the attribute information of the circled events can be ensured, the content of the early warning report can be more accurate, the influence of overdue attribute information is avoided, and the overall accuracy of early warning is improved. Moreover, the triggering data is inquired through the database, so that the accuracy of judging whether the circled event is triggered within the second preset time can be ensured, the triggering data is inquired by using the event name, the accuracy of the judgment result can be further improved, and the accuracy of the early warning method provided by the embodiment of the invention is further improved.
In addition, when the two conditions that the event statistical information table corresponding to the selection event of the user does not exist and the to-be-recovered mark is added to the selection event when the early warning information corresponding to the first preset time does not exist are determined, whether the to-be-recovered mark exists or not is judged before the early warning report is sent, and the attribute information of the selection event of the to-be-recovered mark is recovered, so that the problem that the content of the early warning report is inaccurate due to data loss in the attribute information can be avoided, and the accuracy of early warning is improved. In addition, the attribute information is recovered according to the trigger information in the database, so that the accuracy of the recovered data can be further ensured, and the overall accuracy of the early warning is further improved. In addition, when a plurality of collecting parties respectively need to collect user data in different webpages, corresponding selection events are obtained according to different user names, so that the influence between different selection events corresponding to different users can be avoided, and the condition that an early warning report is sent wrongly can be avoided according to early warning receiving addresses corresponding to different user names, so that the accuracy of the early warning method provided by the embodiment of the invention is improved. And when a plurality of selection events exist in the selection events corresponding to the user and are not triggered, generating a corresponding selection event set by the plurality of selection events and generating an integral early warning report according to the selection event set, so that the problem of low early warning efficiency caused by multiple early warnings can be solved, and the early warning efficiency is improved. Furthermore, the preset processing suggestions are distributed to the grouping and selection events of different groups according to the triggering conditions of the grouping and selection events, so that the early warning content is richer, the subsequent processing mode of the selection events in the early warning report is simplified, and the early warning effect of the early warning method of the selection events is further improved.
The early warning device for the circled event comprises a processor and a memory, wherein the first judging unit, the second judging unit, the output unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the early warning function of the circled event is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the early warning method of the circled event when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the early warning method of the circled event is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: judging whether early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting; if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period, wherein the second preset time period is later than the first preset time period; and if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event.
Further, before determining whether there is the warning information corresponding to the first preset time period, the method further includes:
acquiring a user name and an early warning receiving address according to preset user information, wherein the user information corresponds to a selection event list of a user one by one, and the selection event list comprises selection events determined by the user;
the judging whether the early warning information corresponding to the first preset time period exists comprises the following steps:
judging whether early warning information corresponding to the user name and the first preset time period exists or not;
the outputting of the early warning report corresponding to the circled event comprises:
and sending an early warning report corresponding to the circled event to the early warning receiving address.
Further, the determining whether the circled event is triggered within a second preset time period includes:
acquiring the event name of the circled event from the configuration information of the circled event;
and inquiring whether trigger data corresponding to the selection event exist in the second preset time period or not in a database according to the event name, wherein the event name of the selection event and the corresponding trigger data are stored in the database.
Further, after determining whether the circled event is triggered within a second preset time period, the method further includes:
and if the selection event is triggered within the second preset time period, outputting a report that the selection event is normal.
Further, the early warning information at least comprises the circled event and corresponding attribute information,
and after the early warning information exists, the method further comprises the following steps:
generating an event statistical information table according to the early warning information, wherein the event statistical information table stores attribute information of the circled events in the early warning information, and the attribute information comprises event names, non-triggering durations and final triggering time;
the outputting of the early warning report corresponding to the circled event comprises:
and generating an early warning report corresponding to the circled event according to the event name, the non-triggering duration and the final triggering time of the attribute information in the event statistical information table, and outputting the early warning report.
Further, before outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the event statistical information table exists or not;
if the event statistical information table is determined to exist, inquiring whether an event record corresponding to the selected event exists in the event statistical information table;
if the event record exists in the event statistical information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after the attribute information is updated;
and if the event record does not exist in the event statistical information table, updating the trigger information of the selection event according to the trigger information of the selection event in the database, and generating the early warning report according to the selection event after the attribute information is updated.
Further, after determining whether the event statistics table exists, the method further includes:
and if the event statistical information table does not exist, adding a to-be-recovered identifier for the circled event.
Further, if the event record exists in the event statistics information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after updating the attribute information includes:
adding a preset time length to the un-triggered time length in the attribute information of the circled event so as to update the attribute information of the circled event, wherein the preset time length is the same as the time length of the second preset time period;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Further, if the event record does not exist in the event statistics information table, updating the trigger information of the circled event according to the trigger information of the circled event in the database, and generating the early warning report according to the circled event after the attribute information is updated includes:
acquiring the last trigger time corresponding to the selection event from a database;
calculating the non-triggering duration of the circled event according to the final triggering time;
updating attribute information of the circled event according to the non-trigger time and the last trigger time;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Further, obtaining the last trigger time corresponding to the circled event from the database includes:
judging whether trigger data of the selection event exist in the database or not;
if yes, determining the final trigger time of the selection event according to the trigger data of the selection event;
and if not, determining the creation time of the circled event as the final trigger time.
Further, after the determining whether the early warning information corresponding to the first preset time period exists, the method further includes:
and if the early warning information does not exist, adding a to-be-recovered identifier to the circled event so as to recover the attribute information of the circled event.
Further, before the outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the circled event has a mark to be recovered;
if yes, restoring the attribute information of the selection event according to the trigger information corresponding to the selection event in the database;
and generating an early warning report corresponding to the circled event according to the attribute information of the recovered circled event.
Further, before outputting the early warning report corresponding to the circled event, the method further includes:
generating an un-triggered event set according to a plurality of circled events which are not triggered in the second preset time period;
grouping a plurality of circled events in the triggerless event set according to the triggerless duration;
matching corresponding preset event processing suggestions for the grouped selection events according to the length of the triggerless events, wherein the preset event processing suggestions are suggestions for performing different processing on the selection events with different lengths of the triggerless events, which are provided for a user;
calculating the number of grouping and selecting events and the proportion of the grouping and selecting events in the non-triggering event set;
generating an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped circled events, the proportion of the circled events in the triggerless event set and the matched preset event processing suggestion;
the outputting of the early warning report corresponding to the circled event comprises:
and outputting the early warning report corresponding to the triggerless event set.
The device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps: judging whether early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting; if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period, wherein the second preset time period is later than the first preset time period; and if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event.
Further, before determining whether there is the warning information corresponding to the first preset time period, the method further includes:
acquiring a user name and an early warning receiving address according to preset user information, wherein the user information corresponds to a selection event list of a user one by one, and the selection event list comprises selection events determined by the user;
the judging whether the early warning information corresponding to the first preset time period exists comprises the following steps:
judging whether early warning information corresponding to the user name and the first preset time period exists or not;
the outputting of the early warning report corresponding to the circled event comprises:
and sending an early warning report corresponding to the circled event to the early warning receiving address.
Further, the determining whether the circled event is triggered within a second preset time period includes:
acquiring the event name of the circled event from the configuration information of the circled event;
and inquiring whether trigger data corresponding to the selection event exist in the second preset time period or not in a database according to the event name, wherein the event name of the selection event and the corresponding trigger data are stored in the database.
Further, after determining whether the circled event is triggered within a second preset time period, the method further includes:
and if the selection event is triggered within the second preset time period, outputting a report that the selection event is normal.
Further, the early warning information at least comprises the circled event and corresponding attribute information,
and after the early warning information exists, the method further comprises the following steps:
generating an event statistical information table according to the early warning information, wherein the event statistical information table stores attribute information of the circled events in the early warning information, and the attribute information comprises event names, non-triggering durations and final triggering time;
the outputting of the early warning report corresponding to the circled event comprises:
and generating an early warning report corresponding to the circled event according to the event name, the non-triggering duration and the final triggering time of the attribute information in the event statistical information table, and outputting the early warning report.
Further, before outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the event statistical information table exists or not;
if the event statistical information table is determined to exist, inquiring whether an event record corresponding to the selected event exists in the event statistical information table;
if the event record exists in the event statistical information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after the attribute information is updated;
and if the event record does not exist in the event statistical information table, updating the trigger information of the selection event according to the trigger information of the selection event in the database, and generating the early warning report according to the selection event after the attribute information is updated.
Further, after determining whether the event statistics table exists, the method further includes:
and if the event statistical information table does not exist, adding a to-be-recovered identifier for the circled event.
Further, if the event record exists in the event statistics information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after updating the attribute information includes:
adding a preset time length to the un-triggered time length in the attribute information of the circled event so as to update the attribute information of the circled event, wherein the preset time length is the same as the time length of the second preset time period;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Further, if the event record does not exist in the event statistics information table, updating the trigger information of the circled event according to the trigger information of the circled event in the database, and generating the early warning report according to the circled event after the attribute information is updated includes:
acquiring the last trigger time corresponding to the selection event from a database;
calculating the non-triggering duration of the circled event according to the final triggering time;
updating attribute information of the circled event according to the non-trigger time and the last trigger time;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
Further, obtaining the last trigger time corresponding to the circled event from the database includes:
judging whether trigger data of the selection event exist in the database or not;
if yes, determining the final trigger time of the selection event according to the trigger data of the selection event;
and if not, determining the creation time of the circled event as the final trigger time.
Further, after the determining whether the early warning information corresponding to the first preset time period exists, the method further includes:
and if the early warning information does not exist, adding a to-be-recovered identifier to the circled event so as to recover the attribute information of the circled event.
Further, before the outputting the early warning report corresponding to the circled event, the method further includes:
judging whether the circled event has a mark to be recovered;
if yes, restoring the attribute information of the selection event according to the trigger information corresponding to the selection event in the database;
and generating an early warning report corresponding to the circled event according to the attribute information of the recovered circled event.
Further, before outputting the early warning report corresponding to the circled event, the method further includes:
generating an un-triggered event set according to a plurality of circled events which are not triggered in the second preset time period;
grouping a plurality of circled events in the triggerless event set according to the triggerless duration;
matching corresponding preset event processing suggestions for the grouped selection events according to the length of the triggerless events, wherein the preset event processing suggestions are suggestions for performing different processing on the selection events with different lengths of the triggerless events, which are provided for a user;
calculating the number of grouping and selecting events and the proportion of the grouping and selecting events in the non-triggering event set;
generating an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped circled events, the proportion of the circled events in the triggerless event set and the matched preset event processing suggestion;
the outputting of the early warning report corresponding to the circled event comprises:
and outputting the early warning report corresponding to the triggerless event set.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (16)

1. A pre-warning method for a circled event is characterized by comprising the following steps:
judging whether early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting;
if the early warning information exists, judging whether the selection circling event is triggered within a second preset time period, wherein the second preset time period is later than the first preset time period;
and if the circled event is not triggered within the second preset time period, outputting an early warning report corresponding to the circled event.
2. The method of claim 1, wherein prior to determining whether there is pre-warning information corresponding to the first preset time period, the method further comprises:
acquiring a user name and an early warning receiving address according to preset user information, wherein the user information corresponds to a selection event list of a user one by one, and the selection event list comprises selection events determined by the user;
the judging whether the early warning information corresponding to the first preset time period exists comprises the following steps:
judging whether early warning information corresponding to the user name and the first preset time period exists or not;
the outputting of the early warning report corresponding to the circled event comprises:
and sending an early warning report corresponding to the circled event to the early warning receiving address.
3. The method of claim 1, wherein the determining whether the circled event is triggered within a second preset time period comprises:
acquiring the event name of the circled event from the configuration information of the circled event;
and inquiring whether trigger data corresponding to the selection event exist in the second preset time period or not in a database according to the event name, wherein the event name of the selection event and the corresponding trigger data are stored in the database.
4. The method of claim 1, wherein after determining whether the circled event is triggered within a second preset time period, the method further comprises:
and if the selection event is triggered within the second preset time period, outputting a report that the selection event is normal.
5. The method of claim 1, wherein the pre-warning information includes at least the circled event and corresponding attribute information,
and after the early warning information exists, the method further comprises the following steps:
generating an event statistical information table according to the early warning information, wherein the event statistical information table stores attribute information of the circled events in the early warning information, and the attribute information comprises event names, non-triggering durations and final triggering time;
the outputting of the early warning report corresponding to the circled event comprises:
and generating an early warning report corresponding to the circled event according to the event name, the non-triggering duration and the final triggering time of the attribute information in the event statistical information table, and outputting the early warning report.
6. The method of claim 1, wherein prior to outputting an early warning report corresponding to the circled event, the method further comprises:
judging whether an event statistical information table exists or not;
if the event statistical information table is determined to exist, inquiring whether an event record corresponding to the selected event exists in the event statistical information table;
if the event record exists in the event statistical information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after the attribute information is updated;
and if the event record does not exist in the event statistical information table, updating the trigger information of the selection event according to the trigger information of the selection event in the database, and generating the early warning report according to the selection event after the attribute information is updated.
7. The method of claim 6, wherein after determining whether the table of event statistics exists, the method further comprises:
and if the event statistical information table does not exist, adding a to-be-recovered identifier for the circled event.
8. The method according to claim 6, wherein if the event record exists in the event statistics information table, updating attribute information corresponding to the circled event, and generating the early warning report according to the circled event after updating the attribute information comprises:
adding a preset time length to the un-triggered time length in the attribute information of the circled event so as to update the attribute information of the circled event, wherein the preset time length is the same as the time length of the second preset time period;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
9. The method of claim 6, wherein if the event record does not exist in the event statistics information table, updating the trigger information of the circled event according to the trigger information of the circled event in the database, and generating the early warning report according to the circled event after updating the attribute information comprises:
acquiring the last trigger time corresponding to the selection event from a database;
calculating the non-triggering duration of the circled event according to the final triggering time;
updating attribute information of the circled event according to the non-trigger time and the last trigger time;
and generating an early warning report corresponding to the circled event according to the updated circled event attribute information.
10. The method of claim 9, wherein obtaining the last trigger time corresponding to the circled event from a database comprises:
judging whether trigger data of the selection event exist in the database or not;
if yes, determining the final trigger time of the selection event according to the trigger data of the selection event;
and if not, determining the creation time of the circled event as the final trigger time.
11. The method of claim 1, wherein after the determining whether there is warning information corresponding to a first preset time period, the method further comprises:
and if the early warning information does not exist, adding a to-be-recovered identifier to the circled event so as to recover the attribute information of the circled event.
12. The method of claim 7 or 11, wherein prior to said outputting an early warning report corresponding to said circled event, the method further comprises:
judging whether the circled event has a mark to be recovered;
if yes, restoring the attribute information of the selection event according to the trigger information corresponding to the selection event in the database;
and generating an early warning report corresponding to the circled event according to the attribute information of the recovered circled event.
13. The method of claim 1, wherein prior to outputting the early warning report corresponding to the circled event, the method further comprises:
generating an un-triggered event set according to a plurality of circled events which are not triggered in the second preset time period;
grouping a plurality of circled events in the triggerless event set according to the triggerless duration;
matching corresponding preset event processing suggestions for the grouped selection events according to the length of the triggerless events, wherein the preset event processing suggestions are suggestions for performing different processing on the selection events with different lengths of the triggerless events, which are provided for a user;
calculating the number of grouping and selecting events and the proportion of the grouping and selecting events in the non-triggering event set;
generating an early warning report corresponding to the triggerless event set according to the triggerless duration, the number of grouped circled events, the proportion of the circled events in the triggerless event set and the matched preset event processing suggestion;
the outputting of the early warning report corresponding to the circled event comprises:
and outputting the early warning report corresponding to the triggerless event set.
14. An early warning device for a circled event, comprising:
the first judgment unit is used for judging whether the early warning information corresponding to a first preset time period exists or not, wherein if the circled event is not triggered, the early warning information is generated for prompting;
a second judging unit, configured to judge whether the circled event is triggered within a second preset time period if the first judging unit judges that the early warning information exists, where the second preset time period is later than the first preset time period;
and the output unit is used for outputting an early warning report corresponding to the circled event if the second judging unit judges that the circled event is not triggered within the second preset time period.
15. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the pre-warning method for the circled event according to any one of claims 1 to 13.
16. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for warning of circled events according to any one of claims 1 to 13 when running.
CN201710851716.6A 2017-09-19 2017-09-19 Early warning method and device for circled events Active CN110020348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710851716.6A CN110020348B (en) 2017-09-19 2017-09-19 Early warning method and device for circled events

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710851716.6A CN110020348B (en) 2017-09-19 2017-09-19 Early warning method and device for circled events

Publications (2)

Publication Number Publication Date
CN110020348A CN110020348A (en) 2019-07-16
CN110020348B true CN110020348B (en) 2021-08-06

Family

ID=67186278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710851716.6A Active CN110020348B (en) 2017-09-19 2017-09-19 Early warning method and device for circled events

Country Status (1)

Country Link
CN (1) CN110020348B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020332B (en) * 2017-07-25 2021-06-04 北京国双科技有限公司 Event generation method and device based on circled elements

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019676A (en) * 2012-11-16 2013-04-03 北京奇虎科技有限公司 Software management method and system
US8429243B1 (en) * 2007-12-13 2013-04-23 Google Inc. Web analytics event tracking system
CN106294614A (en) * 2016-08-01 2017-01-04 华为技术有限公司 Method and apparatus for access service
CN106933472A (en) * 2017-05-20 2017-07-07 南京西桥科技有限公司 A kind of user behavior data acquisition system and its control method based on mobile phone A PP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429243B1 (en) * 2007-12-13 2013-04-23 Google Inc. Web analytics event tracking system
CN103019676A (en) * 2012-11-16 2013-04-03 北京奇虎科技有限公司 Software management method and system
CN106294614A (en) * 2016-08-01 2017-01-04 华为技术有限公司 Method and apparatus for access service
CN106933472A (en) * 2017-05-20 2017-07-07 南京西桥科技有限公司 A kind of user behavior data acquisition system and its control method based on mobile phone A PP

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IOS无埋点值RN页面的数据收集;zerygao;《https://www.jianshu.com/p/0e1f2d357e39?from=jiantop.com》;20170326;全文 *

Also Published As

Publication number Publication date
CN110020348A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
AU2016351091B2 (en) Method and device for processing service calling information
CN108089893B (en) Method and device for determining redundant resources, terminal equipment and storage medium
CN110162526B (en) Method, device and equipment for inquiring data records in block chain type account book
CN108363657B (en) Method, equipment and medium for monitoring integrity of embedded data acquisition of APP client
CN107181604B (en) Generation method of alarm association rule, alarm compression method and device
CN105095393A (en) Method and device for data storage
CN104731816A (en) Method and device for processing abnormal business data
CN106897342B (en) Data verification method and equipment
CN109634682B (en) Configuration file updating method and device for application program
CN110647562B (en) Data query method and device, electronic equipment and storage medium
CN106445938B (en) Data detection method and device
CN107633015A (en) A kind of data processing method, device and equipment
CN107066519A (en) A kind of task detection method and device
CN110535686B (en) Abnormal event processing method and device
CN106878365B (en) data synchronization method and device
CN110750533A (en) Data storage method, device and equipment based on multiple service attributes
CN110020348B (en) Early warning method and device for circled events
CN107330031B (en) Data storage method and device and electronic equipment
CN107016028B (en) Data processing method and apparatus thereof
CN106708648A (en) Text data storage checking method and system
CN109068286B (en) Information analysis method, medium and equipment
CN109039695B (en) Service fault processing method, device and equipment
CN115659045A (en) User operation identification method and device, storage medium and electronic equipment
CN112988776B (en) Method, device and equipment for updating text parsing rule and readable storage medium
CN114281549A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant