CN114827168A - Alarm aggregation reporting method and device, computer equipment and storage medium - Google Patents
Alarm aggregation reporting method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114827168A CN114827168A CN202210492860.6A CN202210492860A CN114827168A CN 114827168 A CN114827168 A CN 114827168A CN 202210492860 A CN202210492860 A CN 202210492860A CN 114827168 A CN114827168 A CN 114827168A
- Authority
- CN
- China
- Prior art keywords
- alarm
- time
- preset
- aggregation
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1051—Group master selection mechanisms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
- H04L41/0622—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on time
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及告警技术领域,尤其涉及一种告警聚合上报方法、装置、计算机设备及存储介质。Embodiments of the present invention relate to the technical field of alarms, and in particular, to a method, apparatus, computer equipment, and storage medium for aggregated reporting of alarms.
背景技术Background technique
随着互联网技术的发展,微服务架构逐渐成为互联网架构中的主流,与之相对应的,适应微服务架构的告警服务架构也在不断演化,现有技术中的告警服务存在的主要问题是告警泛滥,告警泛滥指的是短时间内产生海量告警,而告警泛滥一方面会使得严重告警会被一般告警淹没,导致运维人员发现不了故障;另一方面还会增加发送海量告警信息的成本,因此降低了告警的整体有效性。With the development of Internet technology, the microservice architecture has gradually become the mainstream of the Internet architecture. Correspondingly, the alarm service architecture adapted to the microservice architecture is also evolving. The main problem of the alarm service in the existing technology is alarm Flooding, alarm flooding refers to the generation of a large number of alarms in a short period of time. On the one hand, the flooding of alarms will cause serious alarms to be overwhelmed by general alarms, so that the operation and maintenance personnel cannot find the fault; on the other hand, it will also increase the cost of sending massive alarm information. The overall effectiveness of the alert is thus reduced.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种告警聚合上报方法、装置、计算机设备及存储介质,旨在解决现有告警整体有效性较低的问题。Embodiments of the present invention provide a method, device, computer equipment and storage medium for aggregated reporting of alarms, aiming to solve the problem of low overall effectiveness of existing alarms.
第一方面,本发明实施例提供了一种告警聚合上报方法,其包括:In a first aspect, an embodiment of the present invention provides an alarm aggregation reporting method, which includes:
定时查询预设数据库中是否存在主节点;Regularly query whether there is a master node in the preset database;
若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间;If the master node does not exist in the preset database, select a slave node from a plurality of slave nodes as the master node through the optimistic locking mechanism of the preset database, and use the effective locking mechanism of the master node. The lease time is set to the preset lease time;
若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件;If the master node exists in the preset database, regularly query whether the master node satisfies the lease renewal condition;
若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置;If the master node satisfies the lease renewal condition, obtain the current time, and reset the valid lease time according to the current time and the preset lease time;
在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。If the master node receives the alarm information within the valid lease period, the master node aggregates the alarm information according to the alarm policy within the preset alarm aggregation time to obtain aggregated information, and reports the aggregated information to the relevant personnel.
第二方面,本发明实施例还提供了一种告警聚合上报装置,其包括:In a second aspect, an embodiment of the present invention further provides an alarm aggregation reporting device, which includes:
第一查询单元,用于定时查询预设数据库中是否存在主节点;a first query unit, used for regularly querying whether there is a master node in the preset database;
选择单元,用于若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间;The selection unit is configured to select a slave node from a plurality of slave nodes as the master node through the optimistic locking mechanism of the preset database if the master node does not exist in the preset database, and select all slave nodes as the master node. The valid lease time of the master node is set to the preset lease time;
第二查询单元,用于若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件;a second query unit, configured to periodically query whether the master node satisfies the lease renewal condition if the master node exists in the preset database;
设置单元,用于若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置;a setting unit, configured to obtain the current time if the master node satisfies the lease renewal condition, and reset the valid lease time according to the current time and the preset lease time;
聚合上报单元,用于在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。The aggregation reporting unit is configured to, if the master node receives alarm information within the valid lease period, aggregate the alarm information according to an alarm policy within a preset alarm aggregation time to obtain aggregated information, and aggregate all the alarm information. The aggregated information is reported to the relevant personnel.
第三方面,本发明实施例还提供了一种计算机设备,其包括存储器及处理器,所述存储器上存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法。In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the computer program.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序当被处理器执行时可实现上述方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program can implement the foregoing method when executed by a processor.
本发明实施例提供了一种告警聚合上报方法、装置、计算机设备及存储介质。其中,所述方法包括:定时查询预设数据库中是否存在主节点;若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间;若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件;若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置;在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。本发明实施例的技术方案,先从多个节点中选择出一个从节点作为主节点,并对主节点设置有效租期时间;然后在主节点的有效租期时间内通过告警策略对接收到的告警信息进行聚合,可减少告警次数,提高告警的整体有效性。Embodiments of the present invention provide a method, apparatus, computer equipment, and storage medium for alarm aggregation reporting. Wherein, the method includes: regularly querying whether a master node exists in a preset database; if the master node does not exist in the preset database, selecting from a plurality of slave nodes through an optimistic locking mechanism of the preset database Select a slave node as the master node, and set the effective lease period time of the master node to the preset lease period time; if the master node exists in the preset database, regularly query whether the master node is Satisfy the lease renewal condition; if the master node satisfies the lease renewal condition, obtain the current time, and reset the valid lease period time according to the current time and the preset lease period time; If the master node receives the alarm information within the valid lease period, it aggregates the alarm information according to the alarm policy within the preset alarm aggregation time to obtain aggregated information, and reports the aggregated information to the relevant personnel. In the technical solution of the embodiment of the present invention, a slave node is selected from a plurality of nodes as the master node, and a valid lease period is set for the master node; Aggregating alarm information can reduce the number of alarms and improve the overall effectiveness of alarms.
附图说明Description of drawings
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention, which are of great significance to the art For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例提供的一种告警聚合上报方法的流程示意图;FIG. 1 is a schematic flowchart of an alarm aggregation reporting method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种告警聚合上报装置的示意性框图;以及FIG. 2 is a schematic block diagram of an apparatus for reporting alarm aggregation provided by an embodiment of the present invention; and
图3为本发明实施例提供的一种计算机设备的示意性框图。FIG. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the terms "comprising" and "comprising" indicate the presence of the described features, integers, steps, operations, elements and/or components, but do not exclude one or The presence or addition of a number of other features, integers, steps, operations, elements, components, and/or sets thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It is also to be understood that the terminology used in this specification of the present invention is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should further be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
请参阅图1,图1是本发明实施例提供的告警聚合上报方法的流程示意图。本发明实施例的告警聚合上报方法可应用于终端上,例如智能手机、手提电脑、台式电脑、笔记本电脑等智能终端设备,通过安装于所述服务器上的软件来实现所述告警聚合上报方法,从而减少告警次数,提高告警的整体有效性。下面对所述告警聚合上报方法进行详细说明。如图1所示,该方法包括以下步骤S100-S140。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an alarm aggregation reporting method provided by an embodiment of the present invention. The alarm aggregation reporting method according to the embodiment of the present invention can be applied to terminals, such as smart terminal devices such as smart phones, laptops, desktop computers, and notebook computers, and the alarm aggregation reporting method is implemented by software installed on the server. This reduces the number of alarms and improves the overall effectiveness of the alarms. The following describes the alarm aggregation reporting method in detail. As shown in FIG. 1, the method includes the following steps S100-S140.
S100、定时查询预设数据库中是否存在主节点。S100, regularly query whether there is a master node in the preset database.
在本发明实施例中,在将告警信息进行聚合得到聚合信息,并将聚合信息上报之前,需要先定时查询预设数据库中是否存在主节点,其中,所述预设数据库为TDSQL数据库。需要说明的是,在本发明实施例中,查询TDSQL数据库中是否存在主节点,即查询所述主节点的数量是否为0或者所述主节点的租期是否到期。In this embodiment of the present invention, before aggregating alarm information to obtain aggregated information and reporting the aggregated information, it is necessary to regularly query whether a master node exists in a preset database, where the preset database is a TDSQL database. It should be noted that, in this embodiment of the present invention, querying whether there is a master node in the TDSQL database, that is, querying whether the number of the master nodes is 0 or whether the lease period of the master node has expired.
S110、若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间。S110. If the master node does not exist in the preset database, select a slave node from a plurality of slave nodes as the master node through the optimistic locking mechanism of the preset database, and assign the master node to the master node. The valid lease time for is set to the preset lease time.
在本发明实施例中,若所述预设数据库中不存在所述主节点,表明所述主节点的数量为0或者所述主节点的租期已到期,则通过TDSQL数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点。具体地,若所述TDSQL数据库中不存在所述主节点,则每个从节点均会将IP地址及端口信息发送至所述TDSQL数据库,以在所述TDSQL数据库中进行注册,而所述TDSQL数据库通过乐观锁机制只允许一个从节点注册成功,并通过返回值的通知从节点是否注册成功。可理解地,在实际应用中,若所述从节点接收到的返回值为Master,表明该从节点注册成功,则将该从节点作为所述主节点;若所述从节点接收到的返回值为Slave,表明该从节点注册识别,则将该从节点继续作为所述从节点。从多个从节点中选择出一个从节点作为所述主节点之后,还需将所述主节点的有效租期时间设置为预设租期时间,其中,预设租期时间为60s。In the embodiment of the present invention, if the master node does not exist in the preset database, indicating that the number of master nodes is 0 or the lease period of the master node has expired, the optimistic locking mechanism of the TDSQL database is used. One slave node is selected from a plurality of slave nodes as the master node. Specifically, if the master node does not exist in the TDSQL database, each slave node will send the IP address and port information to the TDSQL database for registration in the TDSQL database, and the TDSQL The database allows only one slave node to register successfully through the optimistic locking mechanism, and informs the slave node whether the registration is successful through the return value. Understandably, in practical applications, if the return value received by the slave node is Master, indicating that the slave node is successfully registered, the slave node is used as the master node; if the return value received by the slave node is the master node; If it is Slave, indicating that the slave node is registered and identified, the slave node will continue to be the slave node. After a slave node is selected from a plurality of slave nodes as the master node, the effective lease period time of the master node needs to be set as a preset lease period time, wherein the preset lease period time is 60s.
需要说明的是,在本发明实施例中,在对所述主节点进行有效租期时间设置之后,多个所述从节点还会定时查询所述主节点的租期是否超过所述预设租期时间;若所述主节点的租期超过所述预设租期时间,表明预设数据库中不存在所述主节点,则返回执行所述定时查询预设数据库中是否存在主节点的步骤,以重新选择新的所述主节点。It should be noted that, in this embodiment of the present invention, after the effective lease time is set on the master node, multiple slave nodes will also periodically query whether the lease period of the master node exceeds the preset lease If the lease period of the master node exceeds the preset lease period time, indicating that the master node does not exist in the preset database, then return to executing the step of regularly querying whether there is a master node in the preset database, to re-select the new primary node.
S120、若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件。S120. If the master node exists in the preset database, regularly query whether the master node satisfies the lease renewal condition.
在本发明实施例中,若所述预设数据库中存在所述主节点,表明所述主节点的数量不为0且所述主节点的租期未到期,则定时查询所述主节点是否满足续租条件,其中,所述续租条件为所述主节点的有效租期时间小于预设续租时间阈值。需要说明的是,在本发明实施例中,所述预设续租时间阈值的值与所述定时查询续租时间有关,例如,若定时查询续租时间为10s,则预设续租时间需设置大于10s,即需要保证在所述主节点的租期未到期之前对所述主节点进行续租。In this embodiment of the present invention, if the master node exists in the preset database, indicating that the number of master nodes is not 0 and the lease period of the master node has not expired, the master node is periodically queried whether The lease renewal condition is satisfied, wherein the lease renewal condition is that the effective lease period time of the master node is less than the preset lease renewal time threshold. It should be noted that, in this embodiment of the present invention, the value of the preset lease renewal time threshold is related to the lease renewal time of the regular query. For example, if the lease renewal time of the regular query is 10s, the preset lease renewal time requires If the setting is greater than 10s, it is necessary to ensure that the lease of the master node is renewed before the lease period of the master node expires.
S130、若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置。S130. If the master node satisfies the lease renewal condition, obtain the current time, and reset the valid lease time according to the current time and the preset lease time.
在本发明实施例中,若所述主节点满足所述续租条件,则获取当前时间,并在所述当前时间的基础上加上所述预设租期时间得到所述主节点的所述有效租期时间。具体地,例如,若假设当前时间为2022年4月1日12时12分,所预设租期时间为60s,即为1分钟,则所述预设租期时间为2022年4月1日12时13分。In this embodiment of the present invention, if the master node satisfies the lease renewal condition, the current time is obtained, and the preset lease time is added to the current time to obtain the master node's Valid lease period time. Specifically, for example, if it is assumed that the current time is 12:12 on April 1, 2022, and the preset lease period is 60s, that is, 1 minute, then the preset lease period is April 1, 2022 12:13.
S140、在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。S140. If the master node receives alarm information within the valid lease period, the master node aggregates the alarm information according to an alarm policy within a preset alarm aggregation time to obtain aggregated information, and reports the aggregated information to the relevant personnel.
在本发明实施例中,在所述有效租期时间内若所述主节点接收到告警信息,则根据预设的策略标识对告警策略进行识别,可理解地,所述主节点可接收来自所述从节点发送的所述告警信息,也可直接接收来自业务服务发送的所述告警信息;若所述告警策略为第一告警策略,则在预设告警聚合时间内根据所述第一告警策略对所述告警信息进行聚合以得到聚合信息,其中,所述预设告警聚合时间为60s,所述第一告警策略为默认告警策略;若所述告警策略为第二告警策略,则在预设告警聚合时间内根据所述第二告警策略对所述告警信息进行聚合以得到所述聚合信息,其中,所述第二告警策略为阈值告警策略,该策略适用于告警的紧急程度不高,需要持续关注一段时间内的告警信息的告警场景;若所述告警策略为第三告警策略,则在预设告警聚合时间内根据所述第三告警策略对所述告警信息进行聚合以得到所述聚合信息,其中,所述第三告警策略为倍数告警策略,该策略适用于告警的紧急程度适中的应用场景。需要说明的是,在本发明实施例中,所述聚合信息报告报警次数,最后一次告警时间及告警原因等信息。In this embodiment of the present invention, if the master node receives alarm information within the valid lease period, the master node identifies the alarm policy according to a preset policy identifier. Understandably, the master node can receive information from all The alarm information sent by the slave node can also be directly received from the service service; if the alarm policy is the first alarm policy, the first alarm policy is used within the preset alarm aggregation time according to the first alarm policy. Aggregate the alarm information to obtain aggregated information, wherein the preset alarm aggregation time is 60s, and the first alarm policy is the default alarm policy; if the alarm policy is the second alarm policy, the preset alarm policy is set in the preset alarm policy. The alarm information is aggregated according to the second alarm policy within the alarm aggregation time to obtain the aggregated information, wherein the second alarm policy is a threshold alarm policy, and the policy is suitable for alarms whose urgency is not high and needs to be Continue to pay attention to the alarm scenario of the alarm information within a period of time; if the alarm policy is the third alarm policy, aggregate the alarm information according to the third alarm policy within the preset alarm aggregation time to obtain the aggregation information, wherein the third alarm strategy is a multiple alarm strategy, and the strategy is suitable for application scenarios where the urgency of the alarm is moderate. It should be noted that, in this embodiment of the present invention, the aggregated information reports information such as the number of alarms, the time of the last alarm, and the cause of the alarm.
进一步地,所述第一告警策略具体为判断所述告警信息是否为第一次接收;若所述告警信息为第一次接收,则将接收到所述告警信息的时间作为开始告警时间,例如为2022年4月1日12时30分,并将告警次数设置为1;若所述告警信息非第一次接收且在预设告警聚合时间内,则更新所述告警次数,并将所述告警次数与第一告警次数阈值进行比较,其中,所述第一告警次数阈值N1为5;若所述告警次数不大于所述第一告警次数阈值,则将接收到的所述告警信息上报给所述相关人员;反之,若所述告警次数大于所述第一告警次数阈值,则将接收到的所述告警信息进行保存,即保存2022年4月1日12时30分至2022年4月1日12时31分这一时间段内所述告警次数大于所述第一告警次数阈值所对应的所述告警信息;所述预设告警聚合时间60s到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间,例如为2022年4月1日12时31分,并计算所述告警结束时间与所述预设告警聚合时间内最后一次所述告警信息时间之间的差值以得到时间差值,若假设时间差值为10s,预设时间阈值为20s,当所述时间差值10s小于预设时间阈值20s时,表明告警还在继续,则对所述预设告警聚合时间进行重新赋值为120s,并将从所述告警结束时间开始且在所述预设告警聚合时间段内的接收到的所述告警信息进行保存,即保存的是2022年4月1日12时31分至2022年4月1日12时32分这一时间段内接收到的所述告警信息;将所述告警结束时间作为所述开始告警时间,并返回执行所述预设告警聚合时间到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间的步骤;循环执行,直至所述时间差值不小于所述预设时间阈值,例如,所述时间差值为25s大于所述预设时间阈值20s,则对未上报的所有所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。可理解地,所述第二告警策略需上报N1加1次告警。Further, the first alarm strategy is specifically to determine whether the alarm information is received for the first time; if the alarm information is received for the first time, the time when the alarm information is received is used as the start alarm time, for example It is 12:30 on April 1, 2022, and the number of alarms is set to 1; if the alarm information is not received for the first time and within the preset alarm aggregation time, the number of alarms is updated, and the number of alarms is set to 1. The number of alarms is compared with the first threshold of the number of alarms, where the first threshold of number of alarms N1 is 5; if the number of alarms is not greater than the threshold of the first number of alarms, the received alarm information is reported to The relevant personnel; on the contrary, if the number of alarms is greater than the threshold of the first number of alarms, the received alarm information will be saved, that is, from 12:30 on April 1, 2022 to April 2022 During the period of 12:31 on the 1st, the number of alarms is greater than the alarm information corresponding to the first threshold of the number of alarms; after the preset alarm aggregation time of 60s arrives, it will start from the start alarm time The time after the preset alarm aggregation time is taken as the alarm end time, for example, at 12:31 on April 1, 2022, and the alarm end time and the last alarm in the preset alarm aggregation time are calculated. If the time difference is 10s and the preset time threshold is 20s, when the time difference of 10s is less than the preset time threshold of 20s, it means that the alarm continues, then The preset alarm aggregation time is reassigned to 120s, and the alarm information received from the alarm end time and within the preset alarm aggregation time period is saved, that is, 2022 is saved. The alarm information received during the period from 12:31 on April 1, 2022 to 12:32 on April 1, 2022; the alarm end time is taken as the start alarm time, and the execution returns After the preset alarm aggregation time arrives, the time from the start alarm time and after the preset alarm aggregation time is taken as the alarm end time; the cycle is executed until the time difference is not less than the preset alarm aggregation time. Time threshold, for example, if the time difference is 25s greater than the preset time threshold of 20s, then aggregate all the unreported alarm information to obtain aggregated information, and report the aggregated information to relevant personnel. Understandably, the second alarm strategy needs to report N1 plus 1 alarm.
进一步地,所述第二告警策略具体为在预设告警聚合时间内对接收到的所述告警信息的次数进行统计以得到总告警次数;若所述总告警次数大于第二告警次数阈值,则对所述告警信息进行聚合以得到所述聚合信息,其中,所述第二告警次数阈值为5,并将所述聚合信息上报给相关人员。可理解地,所述第二告警策略只需上报一次告警。Further, the second alarm policy is specifically to count the number of times of the received alarm information within the preset alarm aggregation time to obtain the total number of alarms; if the total number of alarms is greater than the second threshold of the number of alarms, then The alarm information is aggregated to obtain the aggregated information, wherein the second threshold of the number of alarms is 5, and the aggregated information is reported to relevant personnel. Understandably, the second alarm policy only needs to report an alarm once.
进一步地,所述第三告警策略具体为在预设告警聚合时间内从接收到第一次所述告警信息时开始统计告警次数;若所述告警次数为第三告警次数阈值的倍数,其中,所述第三告警次数阈值为10,具体地,当所述告警次数为10时,由于10是所述第三告警次数阈值10的倍数,则对第1次至第10次之间的所述告警信息进行聚合,并将所述聚合信息上报给相关人员,依次类推,当所述告警次数为20时,则对第11次至第20次之间的所述告警信息,并将所述聚合信息上报给相关人员。可理解地,若假设在预设告警聚合时间内所述告警次数总共为22次,则第21次及第22次的所述告警信息将不上传,所述第三告警策略只需上报2次告警,也即上传第三告辞阈值的倍数次告警。Further, the third alarm policy is specifically to count the number of alarms from the first time the alarm information is received within the preset alarm aggregation time; if the number of alarms is a multiple of the threshold of the third number of alarms, wherein, The third alarm times threshold is 10. Specifically, when the alarm times is 10, since 10 is a multiple of the third alarm times threshold of 10, The alarm information is aggregated, and the aggregated information is reported to the relevant personnel, and so on. When the number of alarms is 20, the alarm information between the 11th and the 20th time is aggregated The information is reported to the relevant personnel. Understandably, if it is assumed that the total number of alarms is 22 within the preset alarm aggregation time, the 21st and 22nd alarm information will not be uploaded, and the third alarm policy only needs to be reported twice. Alarms, that is, uploading alarms that are multiples of the third farewell threshold.
图2是本发明实施例提供的一种告警聚合上报装置200的示意性框图。如图2所示,对应于以上告警聚合上报方法,本发明还提供一种告警聚合上报装置200。该告警聚合上报装置200包括用于执行上述告警聚合上报方法的单元,该装置可以被配置于服务器中。具体地,请参阅图2,该告警聚合上报装置200包括第一查询单元201、选择单元202、第二查询单元203、设置单元204以及聚合上报单元205。FIG. 2 is a schematic block diagram of an alarm
其中,所述第一查询单元201用于定时查询预设数据库中是否存在主节点;所述选择单元202用于若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间;所述第二查询单元203用于若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件;所述设置单元204用于若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置;所述聚合上报单元205用于在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。Wherein, the
在某些实施例,例如本实施例中,所述聚合上报单元205包括识别单元2051、第一聚合单元2052、第二聚合单元2053以及第三聚合单元2054。In some embodiments, such as this embodiment, the
其中,所述识别单元2051用于根据预设的策略标识对告警策略进行识别;所述第一聚合单元2052用于若所述告警策略为第一告警策略,则在预设告警聚合时间内根据所述第一告警策略对所述告警信息进行聚合以得到聚合信息;所述第二聚合单元2053用于若所述告警策略为第二告警策略,则在预设告警聚合时间内根据所述第二告警策略对所述告警信息进行聚合以得到所述聚合信息;所述第三聚合单元2054用于若所述告警策略为第三告警策略,则在预设告警聚合时间内根据所述第三告警策略对所述告警信息进行聚合以得到所述聚合信息。Wherein, the identifying unit 2051 is configured to identify the alarm policy according to the preset policy identifier; the first aggregation unit 2052 is configured to, if the alarm policy is the first alarm policy, according to the preset alarm aggregation time The first alarm policy aggregates the alarm information to obtain aggregated information; the second aggregation unit 2053 is configured to, if the alarm policy is the second alarm policy, perform the aggregation according to the The second alarm policy aggregates the alarm information to obtain the aggregated information; the third aggregation unit 2054 is configured to, if the alarm policy is the third alarm policy, perform the aggregation according to the third alarm policy within the preset alarm aggregation time. The alarm policy aggregates the alarm information to obtain the aggregated information.
在某些实施例,例如本实施例中,所述第一聚合单元2052包括判断单元20521、设置子单元20522、更新单元20523、上报单元20524、第一保存单元20525、第一计算单元20526、第二保存单元20527、返回执行单元20528以及第一聚合子单元20529。In some embodiments, such as this embodiment, the first aggregation unit 2052 includes a determination unit 20521, a setting subunit 20522, an update unit 20523, a reporting unit 20524, a first storage unit 20525, a first calculation unit 20526, a first Two saving unit 20527, return execution unit 20528 and first aggregation sub-unit 20529.
其中,所述判断单元20521用于判断所述告警信息是否为第一次接收;所述设置子单元20522用于若所述告警信息为第一次接收,则将接收到所述告警信息的时间作为开始告警时间,并将告警次数设置为1;所述更新单元20523用于若所述告警信息非第一次接收且在预设告警聚合时间内,则更新所述告警次数,并将所述告警次数与第一告警次数阈值进行比较;所述上报单元20524用于若所述告警次数不大于所述第一告警次数阈值,则将接收到的所述告警信息上报给所述相关人员;所述第一保存单元20525用于若所述告警次数大于所述第一告警次数阈值,则将接收到的所述告警信息进行保存;所述计算单元20526用于所述预设告警聚合时间到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间,并计算所述告警结束时间与所述预设告警聚合时间内最后一次所述告警信息时间之间的差值以得到时间差值;所述第二保存单元20527用于若所述时间差值小于预设时间阈值,则对所述预设告警聚合时间进行重新赋值,并将从所述告警结束时间开始且在所述预设告警聚合时间段内的接收到的所述告警信息进行保存;所述返回执行单元20528用于将所述告警结束时间作为所述开始告警时间,并返回执行所述预设告警聚合时间到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间的步骤;所述第一聚合子单元20529用于若所述时间差值不小于所述预设时间阈值,则对未上报的所有所述告警信息进行聚合以得到聚合信息。The determining unit 20521 is used to determine whether the alarm information is received for the first time; the setting subunit 20522 is used to determine the time when the alarm information is received if the alarm information is received for the first time As the start alarm time, and set the number of alarms to 1; the updating unit 20523 is configured to update the number of alarms if the alarm information is not received for the first time and within the preset alarm aggregation time, and set the number of alarms to 1. The alarm times are compared with the first alarm times threshold; the reporting unit 20524 is configured to report the received alarm information to the relevant personnel if the alarm times is not greater than the first alarm times threshold; The first storage unit 20525 is configured to save the received alarm information if the alarm count is greater than the first alarm count threshold; the calculation unit 20526 is configured to store the alarm information after the preset alarm aggregation time arrives , the time after the preset alarm aggregation time from the start alarm time is taken as the alarm end time, and the time between the alarm end time and the last alarm information time in the preset alarm aggregation time is calculated. The second saving unit 20527 is configured to reassign the preset alarm aggregation time if the time difference is less than the preset time threshold, and will end the alarm from the alarm The received alarm information within the preset alarm aggregation time period is saved; the return execution unit 20528 is configured to use the alarm end time as the start alarm time, and return to execute the After the preset alarm aggregation time arrives, the time from the start alarm time and after the preset alarm aggregation time is taken as the alarm end time; the first aggregation subunit 20529 is used for if the time difference is is not less than the preset time threshold, then aggregate all the alarm information that has not been reported to obtain aggregated information.
在某些实施例,例如本实施例中,所述第二聚合单元2053包括第二计算单元20531及第二聚合子单元20532。In some embodiments, such as this embodiment, the second aggregation unit 2053 includes a second computing unit 20531 and a second aggregation sub-unit 20532.
其中,所述第二计算单元20531用于在预设告警聚合时间内对接收到的所述告警信息的次数进行统计以得到总告警次数;所述第二聚合子单元20532用于若所述总告警次数大于第二告警次数阈值,则对所述告警信息进行聚合以得到所述聚合信息。Wherein, the second calculation unit 20531 is used to count the times of the received alarm information within the preset alarm aggregation time to obtain the total number of alarms; the second aggregation sub-unit 20532 is used to calculate the total number of alarms if the total If the number of alarms is greater than the second threshold of the number of alarms, the alarm information is aggregated to obtain the aggregated information.
在某些实施例,例如本实施例中,所述第三聚合单元2054包括第三计算单元20541及第三聚合子单元20542。In some embodiments, such as this embodiment, the third aggregation unit 2054 includes a third computing unit 20541 and a third aggregation sub-unit 20542 .
其中,所述第三计算单元20541用于在预设告警聚合时间内从接收到第一次所述告警信息时开始统计告警次数;所述第三聚合子单元20542用于若所述告警次数为第三告警次数阈值的倍数,则对所述告警信息进行聚合以得到所述聚合信息。Wherein, the third calculation unit 20541 is used to count the number of alarms from the first time the alarm information is received within the preset alarm aggregation time; the third aggregation subunit 20542 is used to count the number of alarms if the number of alarms is The multiple of the third alarm times threshold, the alarm information is aggregated to obtain the aggregated information.
在某些实施例,例如本实施例中,所述告警聚合上报装置200还包括第三查询单元206及返回单元207。In some embodiments, such as this embodiment, the alarm
其中,所述第三查询单元206用于定时查询所述主节点的租期是否超过所述预设租期时间;所述返回单元207用于若所述主节点的租期超过所述预设租期时间,则返回执行所述定时查询预设数据库中是否存在主节点的步骤。Wherein, the third query unit 206 is used for regularly querying whether the lease period of the master node exceeds the preset lease period time; the returning unit 207 is used for if the lease period of the master node exceeds the preset lease period If the lease period time is set, then return to the step of executing the regular query of whether there is a master node in the preset database.
本发明实施例的告警聚合上报装置200的具体实现方式与上述告警聚合上报方法相对应,在此不再赘述。The specific implementation manner of the alarm
上述告警聚合上报装置可以实现为一种计算机程序的形式,该计算机程序可以在如图3所示的计算机设备上运行。The above-mentioned alarm aggregation reporting apparatus may be implemented in the form of a computer program, and the computer program may be executed on the computer device as shown in FIG. 3 .
请参阅图3,图3是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备300为服务器,具体地,服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(ContentDeliveryNetwork,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。Please refer to FIG. 3 , which is a schematic block diagram of a computer device provided by an embodiment of the present application. The
参阅图3,该计算机设备300包括通过系统总线301连接的处理器302、存储器和网络接口305,其中,存储器可以包括存储介质303和内存储器304。Referring to FIG. 3 , the
该存储介质303可存储操作系统3031和计算机程序3032。该计算机程序3032被执行时,可使得处理器302执行一种告警聚合上报方法。The
该处理器302用于提供计算和控制能力,以支撑整个计算机设备300的运行。The
该内存储器304为存储介质303中的计算机程序3032的运行提供环境,该计算机程序3032被处理器302执行时,可使得处理器302执行一种告警聚合上报方法。The
该网络接口305用于与其它设备进行网络通信。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备300的限定,具体的计算机设备300可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The
其中,所述处理器302用于运行存储在存储器中的计算机程序3032,以实现如下步骤:定时查询预设数据库中是否存在主节点;若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间;若所述预设数据库中存在所述主节点,则定时查询所述主节点是否满足续租条件;若所述主节点满足所述续租条件,则获取当前时间,并根据所述当前时间及所述预设租期时间对所述有效租期时间进行重新设置;在所述有效租期时间内若所述主节点接收到告警信息,则在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息,并将所述聚合信息上报给相关人员。Wherein, the
在某些实施例,例如本实施例中,处理器302在实现所述在预设告警聚合时间内根据告警策略对所述告警信息进行聚合以得到聚合信息步骤时,具体实现如下步骤:根据预设的策略标识对告警策略进行识别;若所述告警策略为第一告警策略,则在预设告警聚合时间内根据所述第一告警策略对所述告警信息进行聚合以得到聚合信息;若所述告警策略为第二告警策略,则在预设告警聚合时间内根据所述第二告警策略对所述告警信息进行聚合以得到所述聚合信息;若所述告警策略为第三告警策略,则在预设告警聚合时间内根据所述第三告警策略对所述告警信息进行聚合以得到所述聚合信息。In some embodiments, such as this embodiment, when implementing the step of aggregating the alarm information according to an alarm policy within a preset alarm aggregation time to obtain aggregated information, the
在某些实施例,例如本实施例中,处理器302在实现所述在预设告警聚合时间内根据所述第一告警策略对所述告警信息进行聚合以得到聚合信息步骤时,具体实现如下步骤:判断所述告警信息是否为第一次接收;若所述告警信息为第一次接收,则将接收到所述告警信息的时间作为开始告警时间,并将告警次数设置为1;若所述告警信息非第一次接收且在预设告警聚合时间内,则更新所述告警次数,并将所述告警次数与第一告警次数阈值进行比较;若所述告警次数不大于所述第一告警次数阈值,则将接收到的所述告警信息上报给所述相关人员;若所述告警次数大于所述第一告警次数阈值,则将接收到的所述告警信息进行保存;所述预设告警聚合时间到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间,并计算所述告警结束时间与所述预设告警聚合时间内最后一次所述告警信息时间之间的差值以得到时间差值;若所述时间差值小于预设时间阈值,则对所述预设告警聚合时间进行重新赋值,并将从所述告警结束时间开始且在所述预设告警聚合时间段内的接收到的所述告警信息进行保存;将所述告警结束时间作为所述开始告警时间,并返回执行所述预设告警聚合时间到达之后,将从所述开始告警时间开始经过所述预设告警聚合时间后的时间作为告警结束时间的步骤;若所述时间差值不小于所述预设时间阈值,则对未上报的所有所述告警信息进行聚合以得到聚合信息。In some embodiments, such as this embodiment, when the
在某些实施例,例如本实施例中,处理器302在实现所述在预设告警聚合时间内根据所述第二告警策略对所述告警信息进行聚合以得到所述聚合信息步骤时,具体实现如下步骤:在预设告警聚合时间内对接收到的所述告警信息的次数进行统计以得到总告警次数;若所述总告警次数大于第二告警次数阈值,则对所述告警信息进行聚合以得到所述聚合信息。In some embodiments, such as this embodiment, when the
在某些实施例,例如本实施例中,处理器302在实现所述在预设告警聚合时间内根据所述第三告警策略对所述告警信息进行聚合以得到所述聚合信息步骤时,具体实现如下步骤:在预设告警聚合时间内从接收到第一次所述告警信息时开始统计告警次数;若所述告警次数为第三告警次数阈值的倍数,则对所述告警信息进行聚合以得到所述聚合信息。In some embodiments, such as this embodiment, when the
在某些实施例,例如本实施例中,处理器302在实现所述若所述预设数据库中不存在所述主节点,则通过所述预设数据库的乐观锁机制从多个从节点中选择出一个从节点作为所述主节点,并将所述主节点的有效租期时间设置为预设租期时间的步骤之后,具体实现还包括如下步骤:定时查询所述主节点的租期是否超过所述预设租期时间;若所述主节点的租期超过所述预设租期时间,则返回执行所述定时查询预设数据库中是否存在主节点的步骤。In some embodiments, such as this embodiment, the
应当理解,在本申请实施例中,处理器302可以是中央处理单元(CentralProcessing Unit,CPU),该处理器302还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the
本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质为计算机可读存储介质。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。It can be understood by those skilled in the art that all or part of the processes in the methods for implementing the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the above-described method embodiments.
因此,本发明还提供一种存储介质。该存储介质可以为计算机可读存储介质。该存储介质存储有计算机程序。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述告警聚合上报方法的实施例的流程步骤。Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above-mentioned method for aggregated alarm reporting.
所述存储介质可以是U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的计算机可读存储介质。The storage medium may be various computer-readable storage media that can store program codes, such as a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的。例如,各个单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。The steps in the method of the embodiment of the present invention may be adjusted, combined and deleted in sequence according to actual needs. Units in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,终端,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or a 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, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,尚且本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, even if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或取代,这些修改或取代都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or substitutions should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210492860.6A CN114827168B (en) | 2022-05-07 | 2022-05-07 | Alarm aggregation reporting method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210492860.6A CN114827168B (en) | 2022-05-07 | 2022-05-07 | Alarm aggregation reporting method, device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114827168A true CN114827168A (en) | 2022-07-29 |
| CN114827168B CN114827168B (en) | 2024-11-08 |
Family
ID=82511809
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210492860.6A Active CN114827168B (en) | 2022-05-07 | 2022-05-07 | Alarm aggregation reporting method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114827168B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115190002A (en) * | 2022-09-13 | 2022-10-14 | 北京六方云信息技术有限公司 | Alarm processing method, device, terminal equipment and storage medium |
| CN115664938A (en) * | 2022-12-26 | 2023-01-31 | 北京天维信通科技有限公司 | Nonlinear statistical alarm method and device based on IRC platform and electronic equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101951621A (en) * | 2010-09-16 | 2011-01-19 | 新邮通信设备有限公司 | Alarm storm prevention and control method and device |
| US20140081925A1 (en) * | 2012-09-19 | 2014-03-20 | Tilmann Haeberle | Managing Incident Reports |
| CN105871581A (en) * | 2015-11-13 | 2016-08-17 | 乐视云计算有限公司 | Method and device for processing of alarm information in cloud calculation |
| US9984140B1 (en) * | 2015-02-05 | 2018-05-29 | Amazon Technologies, Inc. | Lease based leader election system |
| CN113297236A (en) * | 2020-11-10 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, device and system for electing main node in distributed consistency system |
-
2022
- 2022-05-07 CN CN202210492860.6A patent/CN114827168B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101951621A (en) * | 2010-09-16 | 2011-01-19 | 新邮通信设备有限公司 | Alarm storm prevention and control method and device |
| US20140081925A1 (en) * | 2012-09-19 | 2014-03-20 | Tilmann Haeberle | Managing Incident Reports |
| US9984140B1 (en) * | 2015-02-05 | 2018-05-29 | Amazon Technologies, Inc. | Lease based leader election system |
| CN105871581A (en) * | 2015-11-13 | 2016-08-17 | 乐视云计算有限公司 | Method and device for processing of alarm information in cloud calculation |
| CN113297236A (en) * | 2020-11-10 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, device and system for electing main node in distributed consistency system |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115190002A (en) * | 2022-09-13 | 2022-10-14 | 北京六方云信息技术有限公司 | Alarm processing method, device, terminal equipment and storage medium |
| CN115190002B (en) * | 2022-09-13 | 2022-11-22 | 北京六方云信息技术有限公司 | Alarm processing method, device, terminal equipment and storage medium |
| CN115664938A (en) * | 2022-12-26 | 2023-01-31 | 北京天维信通科技有限公司 | Nonlinear statistical alarm method and device based on IRC platform and electronic equipment |
| CN115664938B (en) * | 2022-12-26 | 2023-04-21 | 北京天维信通科技有限公司 | Nonlinear statistical alarm method and device based on IRC platform and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114827168B (en) | 2024-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106844165B (en) | Alarm method and device | |
| CN110659142A (en) | Message queue processing method and device, electronic device, storage medium | |
| KR101871383B1 (en) | Method and system for using a recursive event listener on a node in hierarchical data structure | |
| CN110673973B (en) | Exception determination method and device for application programming interface API | |
| CN110362455B (en) | Data processing method and data processing device | |
| CN110162270B (en) | Data storage method, storage node and medium based on distributed storage system | |
| US9658908B2 (en) | Failure symptom report device and method for detecting failure symptom | |
| CN114827168A (en) | Alarm aggregation reporting method and device, computer equipment and storage medium | |
| CN110945896B (en) | A kind of abnormal power consumption prompting method, server and terminal | |
| CN113326181A (en) | Fuzzy test method, device and storage medium for stateful network protocol | |
| CN112764956B (en) | Database exception handling system, database exception handling method and device | |
| US20240095019A1 (en) | Out-of-band updating method and system of expander | |
| CN114363935A (en) | Network element detection method and device, storage medium and electronic equipment | |
| CN111639053A (en) | Authorization file expiration alarm prompting method and device and computer equipment | |
| CN110311963B (en) | Message pushing method and device, computer equipment and computer readable storage medium | |
| CN114564365B (en) | Data processing method, device, electronic device and storage medium | |
| CN115438020A (en) | Database resource scheduling method, device, equipment and medium | |
| CN111258845A (en) | Detection of event storms | |
| CN112148508B (en) | Information processing method and related device | |
| CN117675866A (en) | Data processing methods, devices, equipment and media based on Bayesian inference | |
| CN111506446B (en) | Interface fault detection method and server | |
| CN114979012A (en) | Network flow current limiting method, system, device and computer storage medium | |
| CN115617617A (en) | Equipment status monitoring method and device | |
| CN111431764B (en) | Node determination method, device, system and medium | |
| WO2018201864A1 (en) | Method, device, and equipment for database performance diagnosis, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |