Alarm prompt method and device, storage medium and electronic equipment

HK40073881BActive Publication Date: 2026-07-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-10-26
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing technologies use a single alarm rule, resulting in poor real-time alarm notifications that cannot meet the real-time alarm requirements of game applications.

Method used

By obtaining the current crash data reported by user accounts, the crash item field is extracted and a crash index field is constructed. Matching crash information is searched in the crash information caching system, and alarm information is generated and pushed when the alarm conditions are met. Redis database storage and asynchronous communication mechanism are used to improve real-time performance and flexibility.

Benefits of technology

It enables real-time alerts for game applications, improving the real-time nature of alerts and the ability to flexibly configure alert rules, and solving the problem of poor real-time performance caused by single alert rules.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application discloses an alarm prompting method and device, a storage medium and an electronic device. The method comprises the following steps: obtaining current crash data reported by each user account for logging in a target game application; extracting a crash item field from the current crash data, and constructing a crash index field corresponding to the current crash data based on the crash item field; searching for crash information matched with the crash index field in a crash information cache system; generating crash alarm prompt information in the case that the found crash information reaches an alarm prompt condition stored in an alarm information cache system, and the crash information has not triggered the crash alarm prompt information; and pushing the crash alarm prompt information through a target push channel. The application solves the technical problem of poor real-time alarm prompt caused by the single alarm rule used in the alarm mode provided in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computers, and more specifically, to an alarm notification method and apparatus, a storage medium, and an electronic device. Background Technology

[0002] Nowadays, many game app users are very concerned about the performance of their games. Frequent crashes can easily affect the gaming experience. Therefore, to facilitate timely alerts when a game crashes, a common monitoring method is to set alert values ​​for three dimensions: average crash rate per user, crash rate, and number of affected users. When the detected data reaches the alert value, an alert is triggered to draw attention to the issue.

[0003] However, the alarm rules used in the alarm methods provided in the relevant technologies are relatively simple, and only a single alarm trigger threshold is set, which leads to poor real-time alarm notification.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides an alarm notification method, apparatus, storage medium, and electronic device to at least solve the technical problem of poor real-time alarm notification caused by the single alarm rule used in the alarm methods provided in the related art.

[0006] According to one aspect of the present invention, an alarm notification method is provided, comprising: acquiring current crash data reported by various user accounts used to log in to a target game application; extracting a crash item field from the current crash data and constructing a crash index field corresponding to the current crash data based on the crash item field; searching for crash information matching the crash index field in a crash information caching system; generating crash alarm notification information when the found crash information meets the alarm notification conditions stored in the alarm information caching system and the crash information has not yet triggered a crash alarm notification; and pushing the crash alarm notification information through a target push channel.

[0007] According to another aspect of the present invention, an alarm notification device is also provided, comprising: a first acquisition unit, configured to acquire current crash data reported by various user accounts used to log in to a target game application; a construction unit, configured to extract a crash item field from the current crash data and construct a crash index field corresponding to the current crash data based on the crash item field; a search unit, configured to search for crash information matching the crash index field in a crash information caching system; a generation unit, configured to generate crash alarm notification information when the found crash information meets the alarm notification conditions stored in the alarm information caching system and the crash information has not yet triggered a crash alarm notification; and a push unit, configured to push the crash alarm notification information through a target push channel.

[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described alarm notification method when it is run.

[0009] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described alarm notification method through the computer program.

[0010] In this embodiment of the invention, the following methods are employed: acquiring current crash data reported by each user account used to log in to the target game application; extracting a crash item field from the current crash data and constructing a crash index field corresponding to the current crash data based on the crash item field; searching for crash information matching the crash index field in the crash information caching system; generating a crash alarm message when the found crash information meets the alarm prompt conditions stored in the alarm information caching system and the crash information has not yet triggered a crash alarm message; and pushing the crash alarm message through the target push channel. By searching for crash information associated with the current crash data in the crash information caching system and generating the crash alarm message when the found crash information meets the alarm prompt conditions stored in the alarm information caching system and the crash information has not yet triggered a crash alarm message, the method achieves the goal of real-time push of alarm information, thereby improving the real-time performance of alarm prompts and enabling flexible configuration of alarm rules. This solves the technical problem of poor real-time performance of alarm prompts caused by the single alarm rules used in the alarm methods provided in related technologies. Attached Figure Description

[0011] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0012] Figure 1 This is a schematic diagram of an application environment for an optional alarm notification method according to an embodiment of the present invention;

[0013] Figure 2 This is a schematic diagram of an application environment for another optional alarm notification method according to an embodiment of the present invention;

[0014] Figure 3 This is a flowchart of an optional alarm notification method according to an embodiment of the present invention;

[0015] Figure 4 This is a schematic diagram of the alarm rule setting interface for an optional alarm notification method according to an embodiment of the present invention;

[0016] Figure 5 This is a schematic diagram of the project access configuration interface for an optional alarm notification method according to an embodiment of the present invention;

[0017] Figure 6 This is a schematic diagram of a crash data display interface for an optional alarm notification method according to an embodiment of the present invention;

[0018] Figure 7 This is a schematic diagram of a crash details display interface for an optional alarm notification method according to an embodiment of the present invention;

[0019] Figure 8 This is a schematic diagram of a crash monitoring alarm interface for an optional alarm notification method according to an embodiment of the present invention;

[0020] Figure 9 This is a flowchart of another optional alarm notification method according to an embodiment of the present invention;

[0021] Figure 10 This is a schematic diagram of the structure of an optional alarm notification device according to an embodiment of the present invention;

[0022] Figure 11 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0023] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] According to one aspect of the present invention, an alarm notification method is provided. Optionally, as an optional implementation, the alarm notification method may be applied to, but is not limited to, situations such as... Figure 1 The environment shown includes: a terminal device 102 for user interaction, a network 104, and a server 106. User 108 can interact with terminal device 102, which runs an alarm notification application client. Terminal device 102 includes a human-computer interaction screen 1022, a processor 1024, and a memory 1026. The human-computer interaction screen 1022 displays current crash data reported by each user account logging into the target game application, and also displays crash alarm notification information. The processor 1024 acquires the current crash data reported by each user account logging into the target game application. The memory 1026 stores the crash data and the crash alarm notification information.

[0026] In addition, server 106 includes database 1062 and processing engine 1064. Database 1062 stores current crash data reported by each user account logged into the target game application, and stores crash alarm messages. Processing engine 1064, upon receiving crash data, searches for crash information associated with the current crash data in the crash information caching system; if the found crash information meets the alarm message conditions stored in the alarm information caching system, and the crash information has not yet triggered a crash alarm message, it generates a crash alarm message; and pushes the crash alarm message through the target push channel.

[0027] The specific process is as follows: assuming... Figure 1 The terminal device 102 shown runs an alarm notification application client. User 108 operates the human-computer interaction screen 1022 to operate the alarm notification application client. For example, in step S102, the current crash data reported by each user account used to log in to the target game application is obtained. Then, step S104 is executed to send the current crash data to the server 106 via network 104. As in steps S106-S112, the current crash data reported by each user account used to log in to the target game application is received; the crash information associated with the current crash data is searched in the crash information caching system; if the found crash information meets the alarm notification conditions stored in the alarm information caching system, and the crash information has not yet triggered a crash alarm notification, a crash alarm notification is generated; the crash alarm notification is pushed through the target push channel. And as in step S114, the terminal device 102 is notified via network 104 to return the aforementioned crash alarm notification.

[0028] As another optional implementation, the alarm notification method described above in this application can be applied to... Figure 2 The application environment shown. For example... Figure 2 As shown, user 202 and user device 204 can interact with each other. User device 204 includes memory 206 and processor 208. In this embodiment, user device 204 can, but is not limited to, referencing and executing the operations performed by terminal device 102 to obtain crash alarm information.

[0029] Optionally, the terminal devices 102 and 204 may be, but are not limited to, mobile phones, tablets, laptops, PCs, etc., and the network 104 may be, but is not limited to, a wireless network or a wired network. The wireless network includes Wi-Fi and other networks that enable wireless communication. The wired network may include, but is not limited to, wide area networks (WANs), metropolitan area networks (MANs), and local area networks (LANs). The server 106 may be, but is not limited to, any hardware device capable of computation.

[0030] Alternatively, as an alternative implementation method, such as Figure 3 As shown, the alarm notification methods mentioned above include:

[0031] S302, Obtain the current crash data reported by each user account used to log in to the target game application;

[0032] S304, extract the crash item field from the current crash data, and construct the crash index field corresponding to the current crash data based on the crash item field;

[0033] S306, Search for crash information that matches the crash index field in the crash information cache system;

[0034] S308, If the found crash information meets the alarm prompt conditions stored in the alarm information cache system, and the crash information has not yet triggered a crash alarm prompt, generate a crash alarm prompt.

[0035] S310 pushes crash alert messages through the target push channel.

[0036] In step S302, in practical application, the current crash data reported by each user account used to log in to the target game application is obtained. The target game application can be, but is not limited to, various online or offline games, PC games or mobile games, etc. The current crash data reported by each user account can be the current crash data associated with multiple game player accounts. The crash data can be game anomaly data within the target time period, specifically including but not limited to crash trend data on a daily basis, daily cumulative real-time crash rate, crash data ranking, and crash details, etc., etc., without limitation. In this embodiment, various information about the target game application can be added through the alarm notification system; such as... Figure 4 As shown, the alarm notification system allows you to add information such as project name, region name, operator, platform name, service name, account name and password, and modification time.

[0037] In step S302, in practical application, the crash item field may include, but is not limited to, the names of one or more game applications, which can be Chinese or English strings. Based on the names of the aforementioned game applications, a crash index field corresponding to the name is constructed. Here, the crash index field can be an abbreviation of the Chinese or English name of the game application. For example, if the current crash data includes crash data with game application names AAgame1 and AAgame2, then the crash item fields can be "AAgame1" and "AAgame2", and the corresponding crash index fields can be "g1" and "g2".

[0038] In step S306, in practical applications, the crash information caching system can include, but is not limited to, an information system built on a Remote Directory Server (Redis) database. The Redis database is a key-value distributed database system, where the key is the keyword; the key-value distributed storage system is a system that retrieves values ​​based on keywords. For example, the key can be the aforementioned crash index fields "g1" and "g2", and the value can be crash information associated with the current crash data. The crash data corresponding to the game application names AAgame1 and AAgame2 for "g1" and "g2" can include, but is not limited to, the crash rate or crash trend change rate of the target game application currently logged in by the user, etc., without further limitation.

[0039] In step S308, in practical application, when the found crash information meets the alarm prompt conditions stored in the alarm information cache system, and the crash information has not yet triggered a crash alarm prompt, the crash alarm prompt is generated. Here, the alarm prompt conditions can be set according to the corresponding rules as needed. That is, for example, when the crash rate of the target game application included in the crash information reaches the target threshold, but has not yet triggered a crash alarm prompt, the crash alarm prompt can be generated.

[0040] In step S310, in practical applications, the target push channel can include, but is not limited to, email, official accounts, or client applications. No limitation is made here. For example, when the found crash information meets the alarm prompt conditions stored in the alarm information caching system, and the crash information has not yet triggered a crash alarm prompt, after generating the crash alarm prompt, the crash alarm prompt is pushed via email or the game platform's official account.

[0041] In this embodiment of the invention, the following methods are employed: acquiring current crash data reported by each user account used to log in to the target game application; searching for crash information associated with the current crash data in the crash information cache system; generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt; and pushing the crash alarm information through the target push channel. By searching for crash information associated with the current crash data in the crash information cache system and generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt, the method achieves the goal of real-time push of alarm information. This improves the real-time performance of alarm prompts and allows for flexible configuration of alarm rules, thereby solving the technical problem of poor real-time performance of alarm prompts caused by the single alarm rules used in the alarm methods provided in related technologies.

[0042] In one embodiment, step S304 includes: extracting a crash index field from the current crash data; searching for crash information matching the crash index field in the crash information caching system; if the crash information is found, acquiring the crash information; if the crash information is not found, acquiring current crash information from the current crash data and acquiring historical crash information from historical crash data previously acquired from the current crash data; and storing the current crash information and the historical crash information as crash information associated with the current crash data in the crash information caching system.

[0043] In this embodiment, the crash index field can be, but is not limited to, a key in a key-value distributed operating system; the key-value distributed storage system is a system that retrieves values ​​based on keys. Here, the key-value distributed storage system can be combined with the aforementioned Redis data information system, i.e., an alarm information caching system. In practical applications, the above index field can be a unique identifier for different projects (different game applications).

[0044] The system searches for the crash information that matches the crash index field in the crash information cache system. In other words, it searches for the crash information of the corresponding project in the crash information cache system based on the unique identifier of the different projects.

[0045] It should be noted that historical crash information may include, but is not limited to, crash information from the hour preceding the current time and crash information from this time yesterday. If the aforementioned crash information is not found in the alarm information cache system based on the index field, the current crash information is retrieved from the current crash data, and historical crash information is retrieved from the historical crash data obtained before the current crash data. The current crash information and the historical crash information are then stored as crash information associated with the current crash data in the crash information cache system. In other words, when crash information is found based on the index field, the current crash information, along with crash information from the hour preceding the current time and crash information from this time yesterday, can be stored in the crash information cache system.

[0046] In one embodiment, step S306 includes: comparing the crash information with the alarm prompting conditions, wherein the alarm prompting conditions include multiple alarm conditions configured with comparison priorities; if the crash information matches at least one alarm condition, determining that the crash information has reached the alarm prompting conditions; searching for the alarm status of the crash information in the alarm information caching system; if the alarm status indicates that no alarm has been triggered, determining that the crash information has not yet triggered the crash alarm prompting information; and generating the crash alarm prompting information.

[0047] In this embodiment, the alarm notification conditions may include, but are not limited to, whether the crash rate in the crash information of the target game application exceeds a critical point, whether the crash rate of the target game application at the current moment has increased by at least 100% compared to the previous hour, and whether the crash rate of the target game application at the current moment has increased by at least 100% compared to this time yesterday; these are not limited here. If the crash information satisfies any one of the three alarm conditions—whether the crash rate in the crash information exceeds a critical point, whether the crash rate at the current moment has increased by at least 100% compared to the previous hour, or whether the crash rate at the current moment has increased by at least 100% compared to this time yesterday—then it is determined that the crash information has met the alarm notification conditions. Then, the alarm status of the crash information is searched in the alarm information caching system. If the alarm status indicates that no alarm has been triggered, it is determined that the crash information has not yet triggered the crash alarm notification; and the crash alarm notification is generated.

[0048] In one embodiment, before comparing the crash information with the alarm conditions, the method further includes configuring the alarm conditions, wherein the alarm conditions include at least one of the following: the crash rate of the target game application in the current sub-period of the current period exceeds a first threshold; the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous sub-period adjacent to the current sub-period of the current period is greater than a second threshold; and the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous historical sub-period corresponding to the current sub-period of the previous period is greater than a third threshold. In this embodiment, as shown... Figure 5 As shown, the above alarm conditions can be set by creating new alarm rules. For example, you can set the following thresholds: the average fluctuation of crash users in the same period of the previous 7 days must be greater than a first threshold; the crash rate (crash users / connected users) must be greater than a second threshold; the number of responding users must be greater than a third threshold, etc. The first, second, and third thresholds can be flexibly configured according to the needs of the game project. In addition, you can select the recipients of alarm notification information, so you can push alarm system information to customers of the target game application in a targeted manner.

[0049] In one embodiment, after searching for the alarm status of the crash information in the alarm information caching system, the method further includes: if the alarm status indicates that an alarm has been triggered, ignoring the current crash data. That is, if an alarm status is found in the alarm caching system, no further alarm notifications will be pushed. If an alarm has already been triggered, to avoid message backlog and excessive disruption to users logged into the target game application, the alarm notification can be ignored this time, and no further alarms will be triggered.

[0050] In one embodiment, generating the crash alarm message includes: obtaining continuous crash data of the target game application within a continuous time period prior to the current crash data, based on the crash information; generating a real-time crash trend chart of the target game application based on the continuous crash data; and adding the real-time crash trend chart to the crash alarm message. In this embodiment, as... Figure 6 As shown, this is the continuous crash data of the target game application obtained within a one-month period from October 16, 2020 to November 16, 2020. Based on the continuous crash data within this one-month period, we can obtain... Figure 6The chart displays a real-time crash trend graph; below the graph are the five most frequent issues and related information. Each issue's corresponding column shows the first and last reported times of the fault, the number of crashes caused by this fault, the number of users affected, and the version number of the terminal device affected. Clicking on any fault's link will display... Figure 7 The fault details page shown is the stack information; this information page can display the abnormal process or thread, user ID, device type, fault occurrence time and reporting time, software development kit (SDK) version, CPU architecture, system version number, system application identification ID, etc.

[0051] In one embodiment, step S308 includes at least one of the following: pushing the crash alarm notification to the management account of the target game application via email, wherein the target push channel includes email; or pushing the crash alarm notification to the management account of the target game application via a session window of an instant messaging client, wherein the target push channel includes the session window of the instant messaging client. In this embodiment, the crash alarm notification can be pushed via email or an instant messaging client (such as a WeChat mini-program or official account).

[0052] In this embodiment, the aforementioned crash alert information can also be pushed through an alerting platform associated with the target game application. For example... Figure 8 As shown, the aforementioned crash alert information is pushed through the AA platform associated with the target game application. This platform displays the alert cause, crash data, and the most frequent crashes from the previous day. The crash data includes the game name, server name, operating region, yesterday's crash data growth rate, the average weekly crash data growth rate, and the average monthly crash data growth rate.

[0053] In one embodiment, before step S302, the method further includes: obtaining the running data of the user account of the target game application in multiple consecutive running cycles; and determining the running data as the current crash data when the running data reaches a crash condition, wherein the crash condition includes one of the following: the difference between the crash amount of the running data in the (i+1)th running cycle and the crash amount of the running data in the i-th running cycle is greater than a first target threshold, the number of user accounts in the running data whose crash amount is greater than a second target threshold is greater than a third target threshold, and i is an integer greater than or equal to 1 and less than or equal to N, and N is the number of the multiple running cycles.

[0054] In this embodiment, the aforementioned crash conditions may include, but are not limited to, whether the crash rate in the target game application's crash information exceeds a critical point, whether the crash rate of the target game application at the current moment has increased by 100% or more compared to the previous hour, and whether the crash rate of the target game application at the current moment has increased by 100% or more compared to this time yesterday. Through the above technical means, real-time crash information of the target game application can be accurately obtained.

[0055] Currently, the existing alarm platforms have the following problems:

[0056] 1. The alarm rules are simplistic, primarily setting alarm values ​​based on three dimensions: the average number of crashes per user over the previous week, the crash rate, and the number of affected users. Specifically, it compares whether the average number of crashes per user over the same period in the previous seven days exceeds a first preset value; whether the crash rate (crash users / connected users) exceeds a second preset value; and whether the number of affected users exceeds a third preset value. These three dimensions are used to alert project members. However, the crash information obtained solely from these three dimensions is only an average over a short period and cannot meet the current project's real-time alarm requirements.

[0057] 2. Recipients cannot be customized. Currently, recipients must be selected from relevant roles within the project for crash alerts; they cannot be customized as needed. Selecting relevant roles means that the role must be a member of the project. Setting up members on the alert platform requires first adding the user's instant messaging account to the project. For crash alerts that need to notify relevant personnel and higher levels, multiple member accounts need to be added. However, with a customized approach, when notifying relevant personnel, it's not necessary to add each member's instant messaging account to the project, reducing unnecessary steps and saving system computing resources.

[0058] 3. Existing alarm platforms may fail to issue alarms in real time. This is because crash information is merely an average over a short period; therefore, when a current crash triggers an alarm threshold, the average value may not yet meet the triggering conditions.

[0059] To address the aforementioned technical problems, based on the above embodiments, in one application embodiment, an alarm notification method is provided, comprising: providing an application program interface (API) through an alarm notification platform to connect multiple game applications with real-time alarm requirements, such as... Figure 4 As shown, it can connect to different game applications such as AAA, BBB, and CCC, and then store the real-time crash data of these different game applications through a Redis cache database. Figure 6As shown, a real-time graph displaying crash information and the issues caused by the crash can be generated by selecting the time period of the crash. In the graph, the number of launches represents the number of times the game application is launched; the number of crashes represents the current number of crashes; the user crash rate is the number of users experiencing crashes divided by the total number of users; the number of affected users represents the accounts involved in the game application due to the crash; and the number of connected users represents the current number of users actually connected to the network online.

[0060] By clicking Figure 6 A link to a specific crash issue can lead to, for example... Figure 7 The details page displays detailed information indicating the location of the crash stack and the code segment where the crash occurred, making it easier for developers to locate the problem.

[0061] Users can monitor the game crash system by configuring game product information. In the event of a surge or widespread crash (e.g., a crash rate exceeding 3% indicates a widespread crash; a crash rate more than doubling compared to the previous hour and exceeding 1% indicates a surge), users will be promptly notified via email and official WeChat account. The notification will show that the crash rate of a specific game on a particular region and platform has reached or exceeded the warning threshold, displaying crash data and identifying common causes of the crashes. Users can view relevant crash information or click links to view crash details, notify relevant personnel for repairs, avoid delays, and minimize the impact of game application crashes.

[0062] Based on the above embodiments, in one application embodiment, such as Figure 9As shown, the above alarm notification method includes the following steps: Step S902a, obtain the current crash information; Step S902b, obtain the crash information of the previous hour; Step S902c, obtain the crash information of this time yesterday; then proceed to Step S904a, search the cache in the Redis crash cache mechanism; Step S904b, determine whether there is a cache related to the crash information in the Redis information system. If there is, proceed to Step S904c and return the result of the above cache. If not, proceed to Step S904d and obtain the crash information data related to the game project corresponding to the above crash information; Step S904e, fill the cache with the crash information data related to the game project corresponding to the crash information. After obtaining the aforementioned crash information, proceed to step S906 to determine if it meets rule 1 (i.e., the crash rate exceeds the critical point). If it does, proceed to the Redis alarm caching mechanism, executing step S912a to identify caches without crash information in the Redis alarm system, then proceed to S912b to obtain the trend of crash information for the latest 10 hours; S912c to push the aforementioned crash information via email or official WeChat account; S912d to populate the aforementioned crash information into the cache; and S914 to end the alarm process. If, in step S906, it is determined that rule 1 is not met, proceed to step S908 to determine if rule 2 is met (whether the crash rate is more than double that of the previous hour). If so, repeat steps S912a-S912d, and finally execute step S914. In step S906, if it is determined that rule 2 is not met, proceed to step S910 to determine whether rule 3 is met (whether the crash rate is more than double that of the current time yesterday). If it is, repeat steps S912a-S912d above, and finally execute step S914; if it is not met, execute step S914.

[0063] Based on the above embodiments, in one application embodiment, the alarm notification method includes:

[0064] 1. First, obtain the current crash information (crash information at this moment, crash information from the previous hour, and crash information from this moment yesterday). Then, construct a key (index field) based on the relevant information of the searched project (game application). The Redis caching system is a key-value storage system. The key is a unique key-value pair that is customized to classify the project and is used to store and retrieve values ​​in the Redis cache.

[0065] This function checks if a key-value pair is in the Redis cache. In a key-value storage system, if the key exists, the value (the crash information corresponding to the indexed field) can be retrieved directly using the key. If the cache contains the corresponding crash information, the result is returned directly. Otherwise, an asynchronous communication mechanism is used to retrieve the crash data and populate the Redis cache. Furthermore, it can retrieve crash information from the previous hour and crash information from the same time yesterday from the Redis cache. The asynchronous call mechanism means that the relevant data is retrieved and returned immediately without waiting for the call result. Populating the Redis cache can be done based on the result of the asynchronous function call, using the `set` method to fill the Redis cache system.

[0066] 2. Based on the obtained crash information, apply alert rules in priority order. These rules can include: a) crash rate exceeding a critical point; b) crash rate more than double that of the previous hour; c) crash rate more than double that of the same time yesterday. If any of these alert rules are met, check the Redis cache for previous alerts. If no previous alerts are found, retrieve the latest 10-hour crash trend and populate the crash information. This population is for easier future retrieval. Retrieving data every time would result in frequent API access and unnecessary computational overhead. By populating the Redis cache, data is retrieved only once, reducing unnecessary data retrieval and computational overhead on the server.

[0067] Afterwards, send an alert email and push notification to the user regarding the crash. If an alert has already been issued, this step can be omitted to avoid message backlog and excessive user disruption; the real-time crash alert cache validity period can be set to one hour.

[0068] In this embodiment of the invention, the following methods are employed: acquiring current crash data reported by each user account used to log in to the target game application; searching for crash information associated with the current crash data in the crash information cache system; generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt; and pushing the crash alarm information through the target push channel. By searching for crash information associated with the current crash data in the crash information cache system and generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt, the method achieves the goal of real-time push of alarm information. This improves the real-time performance of alarm prompts and allows for flexible configuration of alarm rules, thereby solving the technical problem of poor real-time performance of alarm prompts caused by the single alarm rules used in the alarm methods provided in related technologies.

[0069] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0070] According to another aspect of the present invention, an alarm notification device for implementing the above-described alarm notification method is also provided. For example... Figure 10 As shown, the device includes:

[0071] The first acquisition unit 1002 is used to acquire the current crash data reported by each user account used to log in to the target game application;

[0072] Construction unit 1004 is used to extract the crash item field from the current crash data and construct the crash index field corresponding to the current crash data based on the crash item field;

[0073] The lookup unit 1006 is used to search for crash information that matches the crash index field in the crash information caching system;

[0074] The generation unit 1008 is used to generate the crash alarm message when the found crash information meets the alarm prompt conditions stored in the alarm information caching system, and the crash information has not yet triggered the crash alarm message.

[0075] The push unit 1010 is used to push the crash alarm message through the target push channel.

[0076] In this embodiment of the invention, current crash data reported by each user account used to log in to the target game application is obtained. The target game application can be, but is not limited to, various online or offline games, PC games or mobile games, etc. The current crash data reported by each user account can be current crash data associated with multiple game player accounts. The crash data can be game anomaly data within a target time period, specifically including but not limited to crash trend data on a daily basis, daily cumulative real-time crash rate, crash data ranking, and crash details, etc. Various information about the target game application can be added through the alarm notification system; such as... Figure 4 As shown, the alarm notification system allows you to add information such as project name, region name, operator, platform name, service name, account name and password, and modification time.

[0077] In this embodiment of the invention, the crash information caching system may include, but is not limited to, an information system built on a (Remote Directory Server, or Redis) database. The crash information associated with the current crash data may include, but is not limited to, the crash rate or crash trend change rate of the target game application currently logged in by the user, etc., and is not limited thereto.

[0078] In this embodiment of the invention, when the found crash information meets the alarm prompt conditions stored in the alarm information caching system, and the crash information has not yet triggered a crash alarm prompt, the crash alarm prompt is generated. Here, the alarm prompt conditions can be set according to the corresponding rules as needed. That is, for example, when the crash rate of the target game application included in the crash information reaches the target threshold, but has not yet triggered a crash alarm prompt, the crash alarm prompt can be generated.

[0079] In this embodiment of the invention, the target push channel may include, but is not limited to, email, official accounts, or client applications. No limitation is made here. For example, when the found crash information meets the alarm prompt conditions stored in the alarm information caching system, and the crash information has not yet triggered a crash alarm prompt, after generating the crash alarm prompt, the crash alarm prompt is pushed via email or the game platform's official account.

[0080] In one embodiment, the alarm notification device further includes:

[0081] The second acquisition unit is used to acquire current crash information from the current crash data and historical crash information from historical crash data acquired before the current crash data when no crash information matching the crash index field is found in the crash information caching system.

[0082] The storage unit is used to store the current crash information and the historical crash information as crash information associated with the current crash data in the crash information caching system.

[0083] In one embodiment, the generation unit 1008 includes:

[0084] The first comparison module is used to compare the crash information with the alarm prompt conditions, wherein the alarm prompt conditions include multiple alarm conditions configured with comparison priorities.

[0085] The first determining module is used to determine that the crash information meets the alarm prompting condition when the crash information matches at least one alarm condition;

[0086] The second search module is used to search for the alarm status of the crash information in the alarm information caching system.

[0087] The second determining module is used to determine that the crash information has not yet triggered the crash alarm prompt information when the alarm status indication has not yet been triggered.

[0088] The first generation module is used to generate the crash alarm message.

[0089] In one embodiment, the alarm notification device further includes:

[0090] A configuration unit is configured to configure the alarm conditions, wherein the alarm conditions include at least one of the following: the crash rate of the target game application in the current sub-period of the current period exceeds a first threshold; the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous sub-period adjacent to the current sub-period of the current period is greater than a second threshold; and the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous historical sub-period corresponding to the current sub-period of the current period is greater than a third threshold.

[0091] In one embodiment, the alarm notification device further includes:

[0092] A filtering unit is used to ignore the current crash data when the alarm status indicates that an alarm has been triggered.

[0093] In one embodiment, the first generation module includes:

[0094] The first acquisition subunit is used to acquire, based on the crash information, continuous crash data acquired by the target game application within a continuous time period prior to the current crash data;

[0095] The first generation subunit is used to generate a real-time crash trend chart of the target game application based on the continuous crash data.

[0096] The first addition sub-unit is used to add the real-time crash trend chart to the crash alarm message.

[0097] In one embodiment, the push unit 1010 includes:

[0098] The first push module is used to push the crash alarm message to the management account of the target game application via email, wherein the target push channel includes email;

[0099] The second push module is used to push the crash alarm message to the management account of the target game application through the session window of the instant messaging client, wherein the target push channel includes the session window of the instant messaging client.

[0100] In one embodiment, the alarm notification device further includes:

[0101] The second acquisition unit is used to acquire the running data of the user account of the target game application in multiple consecutive running cycles;

[0102] The determining unit is configured to determine the running data as the current crash data when the running data reaches the crash condition, wherein the crash condition includes one of the following: the difference between the number of crashes in the (i+1)th running cycle and the number of crashes in the i-th running cycle is greater than a first target threshold; the number of user accounts in the running data whose number of crashes is greater than a second target threshold is greater than a third target threshold; i is an integer greater than or equal to 1 and less than or equal to N; and N is the number of the plurality of running cycles.

[0103] In this embodiment of the invention, the following methods are employed: acquiring current crash data reported by each user account used to log in to the target game application; searching for crash information associated with the current crash data in the crash information cache system; generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt; and pushing the crash alarm information through the target push channel. By searching for crash information associated with the current crash data in the crash information cache system and generating crash alarm information when the found crash information meets the alarm prompt conditions stored in the alarm information cache system and the crash information has not yet triggered a crash alarm prompt, the method achieves the goal of real-time push of alarm information. This improves the real-time performance of alarm prompts and allows for flexible configuration of alarm rules, thereby solving the technical problem of poor real-time performance of alarm prompts caused by the single alarm rules used in the alarm methods provided in related technologies.

[0104] According to another aspect of the present invention, an electronic device for implementing the above-described alarm notification method is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses the electronic device as a client as an example for illustration. Figure 11 As shown, the electronic device includes a memory 1102 and a processor 1104. The memory 1102 stores a computer program, and the processor 1104 is configured to execute the steps of any of the above method embodiments via the computer program.

[0105] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0106] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0107] S1, Obtain the current crash data reported by each user account used to log in to the target game application;

[0108] S2, extract the crash item field from the current crash data, and construct the crash index field corresponding to the current crash data based on the crash item field;

[0109] S3, Search the crash information cache system for crash information that matches the crash index field and is associated with the current crash data;

[0110] S4. If the found crash information meets the alarm prompt conditions stored in the alarm information cache system, and the crash information has not yet triggered a crash alarm prompt, generate a crash alarm prompt.

[0111] S5 pushes crash alert messages through the target push channel.

[0112] Alternatively, as those skilled in the art will understand, Figure 11 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 11 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 11 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 11 The different configurations shown.

[0113] The memory 1102 can be used to store software programs and modules, such as the program instructions / modules corresponding to the alarm notification method and device in this embodiment of the invention. The processor 1104 executes various functional applications and data processing by running the software programs and modules stored in the memory 1102, thereby realizing the alarm notification method described above. The memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1102 may further include memory remotely located relative to the processor 1104, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1102 may be used, but is not limited to, for information such as current crash data and crash alarm notifications reported by various user accounts of the target game application. As an example, such as Figure 11 As shown, the memory 1102 may include, but is not limited to, the first acquisition unit 1002, construction unit 1004, search unit 1006, generation unit 1008, and push unit 1010 of the alarm notification device. Furthermore, it may include, but is not limited to, other module units of the alarm notification device, which will not be elaborated in this example.

[0114] Optionally, the transmission device 1106 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1106 is a radio frequency (RF) module, used for wireless communication with the Internet.

[0115] In addition, the aforementioned electronic device also includes: a display 1108 for displaying the current crash data and crash alarm information reported by each of the aforementioned user accounts; and a connection bus 1110 for connecting the various module components in the aforementioned electronic device.

[0116] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0117] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned alarm notification method. The computer program is configured to execute the steps of any of the above method embodiments at runtime.

[0118] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0119] S1, Obtain the current crash data reported by each user account used to log in to the target game application;

[0120] S2, extract the crash item field from the current crash data, and construct the crash index field corresponding to the current crash data based on the crash item field;

[0121] S3, Search the crash information cache system for crash information that matches the crash index field and is associated with the current crash data;

[0122] S4. If the found crash information meets the alarm prompt conditions stored in the alarm information cache system, and the crash information has not yet triggered a crash alarm prompt, generate a crash alarm prompt.

[0123] S5 pushes crash alert messages through the target push channel.

[0124] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0125] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0126] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0127] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0128] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0129] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0130] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0131] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An alarm notification method, characterized in that, include: Obtain the current crash data reported by each user account used to log in to the target game application, the crash information in the previous sub-cycle adjacent to the current sub-cycle in the current cycle, and the crash information in the historical sub-cycle corresponding to the current sub-cycle in the previous cycle before the current cycle; Extract the crash item field from the current crash data, and construct the crash index field corresponding to the current crash data based on the crash item field; Search the crash information cache system for crash information that matches the crash index field, wherein the crash information includes crash information within the current sub-cycle; If the crash information in the current sub-cycle is found, the crash information in the current sub-cycle is compared with a first threshold to obtain a first comparison result; if the first comparison result indicates that the crash information in the current sub-cycle has reached the first threshold, it is determined that the crash information matching the crash index field has reached the alarm prompt condition. If the first comparison result indicates that the crash information matching the crash index field has not reached the first threshold, the first difference between the crash information in the current sub-cycle and the crash information in the previous sub-cycle adjacent to the current sub-cycle is compared with the second threshold to obtain a second comparison result; if the second comparison result indicates that the first difference has reached the second threshold, it is determined that the crash information matching the crash index field has reached the alarm prompt condition. If the second comparison result indicates that the first difference has not reached the second threshold, the second difference between the crash information in the current sub-cycle and the crash information in the historical sub-cycle corresponding to the current sub-cycle in the previous cycle is compared with the third threshold to obtain a third comparison result; if the third comparison result indicates that the second difference has reached the third threshold, it is determined that the crash information matching the crash index field has reached the alarm prompt condition. If the found crash information that matches the crash index field meets the alarm prompt condition stored in the alarm information caching system, and the crash information that matches the crash index field has not yet triggered a crash alarm prompt, then the crash alarm prompt is generated. The crash alert message is pushed through the target push channel.

2. The method according to claim 1, characterized in that, After searching for crash information matching the crash index field in the crash information caching system, the process also includes: If no crash information matching the crash index field is found in the crash information caching system, the current crash information is obtained from the current crash data, and the historical crash information is obtained from the historical crash data obtained before the current crash data. The current crash information and the historical crash information are stored as crash information associated with the current crash data in the crash information cache system.

3. The method according to claim 2, characterized in that, If the found crash information matching the crash index field meets the alarm prompt conditions stored in the alarm information caching system, and the crash information matching the crash index field has not yet triggered a crash alarm prompt, generating the crash alarm prompt includes: Search the alarm status of the crash information in the alarm information caching system; If the alarm status indicator has not yet triggered an alarm, it is determined that the crash information has not yet triggered the crash alarm notification message; Generate the crash alarm message.

4. The method according to claim 3, characterized in that, Before searching for the alarm status of the crash information in the alarm information caching system, the process also includes: Configure the alarm prompting conditions, wherein the alarm prompting conditions include at least one of the following: the crash rate of the target game application in the current sub-period of the current period exceeds a first threshold; the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous sub-period adjacent to the current sub-period of the current period is greater than a second threshold; and the difference between the crash rate of the target game application in the current sub-period of the current period and the crash rate of the target game application in the previous historical sub-period corresponding to the current sub-period of the current period is greater than a third threshold.

5. The method according to claim 3, characterized in that, After retrieving the alarm status of the crash information in the alarm information caching system, the process further includes: If the alarm status indicates that an alarm has been triggered, ignore the current crash data.

6. The method according to claim 3, characterized in that, The generation of the crash alarm message includes: Based on the crash information, obtain the continuous crash data acquired by the target game application within a continuous time period prior to the current crash data; A real-time crash trend chart of the target game application is generated based on the continuous crash data; Add the real-time crash trend chart to the crash alert message.

7. The method according to any one of claims 1 to 6, characterized in that, The crash alert message pushed through the target push channel includes at least one of the following: The crash alert message is pushed to the management account of the target game application via email, wherein the target push channel includes email; The crash alert message is pushed to the management account of the target game application through the session window of the instant messaging client, wherein the target push channel includes the session window of the instant messaging client.

8. The method according to claim 1, characterized in that, Before obtaining the current crash data reported by each user account used to log in to the target game application, the method further includes: Obtain the running data of the user account of the target game application over multiple consecutive running cycles; When the running data reaches the crash condition, the running data is determined as the current crash data, wherein the crash condition includes one of the following: the difference between the crash amount of the running data in the (i+1)th running cycle and the crash amount of the running data in the ith running cycle is greater than a first target threshold; the number of user accounts in the running data whose crash amount is greater than a second target threshold is greater than a third target threshold; i is an integer greater than or equal to 1 and less than or equal to N; and N is the number of the plurality of running cycles.

9. An alarm notification device, characterized in that, include: The first acquisition unit is used to acquire the current crash data reported by each user account used to log in to the target game application, the crash information in the previous sub-cycle adjacent to the current sub-cycle in the current cycle, and the crash information in the historical sub-cycle corresponding to the current sub-cycle in the previous cycle before the current cycle. A construction unit is used to extract a crash item field from the current crash data and construct a crash index field corresponding to the current crash data based on the crash item field; A lookup unit is used to search for crash information that matches the crash index field in the crash information caching system, wherein the crash information includes crash information within the current sub-cycle; The generation unit is configured to, when finding crash information within the current sub-cycle, compare the crash information within the current sub-cycle with a first threshold to obtain a first comparison result; if the first comparison result indicates that the crash information within the current sub-cycle reaches the first threshold, determine that the crash information matching the crash index field meets the alarm prompt condition; if the first comparison result indicates that the crash information matching the crash index field does not reach the first threshold, compare the first difference between the crash information within the current sub-cycle and the crash information within the adjacent previous sub-cycle with a second threshold to obtain a second comparison result; if the second comparison result indicates that the first difference reaches the second threshold, determine that the crash information matching the crash index field meets the alarm prompt condition. The segment-matched crash information meets the alarm prompting condition; if the second comparison result indicates that the first difference has not reached the second threshold, the second difference between the crash information in the current sub-cycle and the crash information in the historical sub-cycle corresponding to the current sub-cycle in the previous cycle is compared with the third threshold to obtain a third comparison result; if the third comparison result indicates that the second difference has reached the third threshold, it is determined that the crash information matching the crash index field meets the alarm prompting condition; if the found crash information matching the crash index field meets the alarm prompting condition stored in the alarm information caching system, and the crash information matching the crash index field has not yet triggered a crash alarm prompting message, the crash alarm prompting message is generated; The push unit is used to push the crash alarm notification information through the target push channel.

10. The apparatus according to claim 9, characterized in that, The device further includes: The second acquisition unit is used to acquire current crash information from the current crash data and historical crash information from historical crash data acquired before the current crash data when no crash information matching the crash index field is found in the crash information caching system. A storage unit is used to store the current crash information and the historical crash information as crash information associated with the current crash data in the crash information caching system.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 8.

12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.