CN102981941B - One kind of alarm and alarm processing means processing method - Google Patents

One kind of alarm and alarm processing means processing method Download PDF

Info

Publication number
CN102981941B
CN102981941B CN 201210445117 CN201210445117A CN102981941B CN 102981941 B CN102981941 B CN 102981941B CN 201210445117 CN201210445117 CN 201210445117 CN 201210445117 A CN201210445117 A CN 201210445117A CN 102981941 B CN102981941 B CN 102981941B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201210445117
Other languages
Chinese (zh)
Other versions
CN102981941A (en )
Inventor
商越
李峰
张建边
陈彬
Original Assignee
大唐软件技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明提供了一种告警处理方法及告警处理装置,以解决需求变化时需要重新编写告警程序的问题。 The present invention provides a method of processing alarms and alarm processing means to solve the problem of the need to rewrite the program alarms needs change. 其中,一种告警处理方法包括:分析业务需求,生成告警业务字段;采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件;根据配置文件生成空动态对象;接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象;对所述告警动态对象进行告警处理。 Wherein An alarm processing method comprising: analyzing traffic demand, traffic field to generate an alarm; dynamic configuration using the predefined rules of the alarm service description fields, obtained profile; generating a dynamic object space based on the profile; receiving alarm data, the received alarm data to fill the empty dynamic objects, dynamic objects to receive alarms; alarm the alarm processing dynamic object. 本发明在进行告警之前进行可动态扩展对象化的处理,并且告警处理采用统一的处理框架,统一了告警版本,进而可以对统一的版本进行统一维护。 Processing dynamically extensible objects of the present invention prior to an alarm, and the alarm processing unified processing framework, the unified version of the alarm, and thus can maintain uniform unified version.

Description

一种告警处理方法及告警处理装置 One kind of alarm and alarm processing means processing method

技术领域 FIELD

[0001] 本发明涉及告警技术,特别是涉及一种告警处理方法及告警处理装置。 [0001] The present invention relates to an alarm technology, particularly to a processing method and a warning alarm processing apparatus.

背景技术 Background technique

[0002] 为了及时发现目标对象工作情况的异常,通常在目标对象的工作数据不符合要求标准时,进行告警。 When [0002] In order to detect abnormal operation of the target object, usually working data in the target object does not meet the required standard, an alarm. 在各个网络管理系统中,为了缩短从告警产生到显示给用户的时间,大都把告警看做一种流,使用一组程序对告警做流式的处理。 In various network management systems, in order to shorten the time the alarm is generated from the display to the user, most of the alarm seen with a fluid, using a set of program stream to make the alarm processing. 但是不同的网络管理系统对于告警的侧重点不同,告警中的业务字段也就不同,即使是相同的网络管理系统,由于不同的客户对于告警的需求不同,也会导致告警业务字段有非常大的差异,因此处理告警的程序经常需要根据告警业务字段的变更做频繁大量的修改。 But different NMS alarms for different emphases, the alarm in the fields of business is different, even the same NMS, due to the different customer demand for different alarms, alarms can lead to a very big business field difference, so the program handle alarms often need to do a lot of frequently modified according to changing alarm business field. 而不同的告警需要不同的处理程序,导致了程序版本过多。 The different alarms require different processing procedures, resulting in too many versions of the program. 而对于每个告警处理程序,需要根据告警的不同,单独进行维护, 无法进行统一的维护,版本演进困难。 For each alarm handler, according to different alarms, maintenance alone can not maintain a unified version Evolution difficult.

[0003] 在客户需要对特定告警做特殊处理的时候,每当需求发生变化,就需要人工撰写代码或脚本来过滤与匹配特定的告警,工作量非常大。 [0003] When the customer needs to do special treatment for particular alarm, whenever requirements change, you need to manually write code or script to match the specific filtering and alarm, the workload is very large.

发明内容 SUMMARY

[0004] 本发明提供一种告警处理方法及告警处理装置,以解决需求变化时需要重新编写告警程序的问题。 [0004] The present invention provides a method of processing alarms and alarm processing means to solve the problem of the need to rewrite the program alarms needs change.

[0005] 为了解决上述问题,本发明公开了一种告警处理方法,包括: [0005] In order to solve the above problems, the present invention discloses an alarm processing method comprising:

[0006] 分析业务需求,生成告警业务字段; [0006] Analysis of service requirements, service field to generate an alarm;

[0007] 采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件; [0007] The predefined rules to dynamically configure the alarm service description fields, to obtain the configuration file;

[0008] 根据配置文件生成空动态对象; [0008] The dynamic object generates an empty profile;

[0009] 接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; [0009] received alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms;

[0010] 对所述告警动态对象进行告警处理。 [0010] the warning alarms of the moving object.

[0011] 优选地,所述预定义的动态配置规则包括:告警业务对象的所有属性和每个属性对应的数据类型;所述得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0011] Preferably, the predefined dynamic configuration rules comprises: all business objects attributes and alarm data corresponding to each attribute type; the obtained configuration file comprises: the service requirement associated with the attributes, and said attribute data corresponding to the relevant type.

[0012] 优选地,所述根据配置文件生成空动态对象包括: [0012] Preferably, the profile generated according to a moving object space comprising:

[0013] 将所述配置文件转换为程序可读的数据结构; [0013] converting the configuration file for the program-readable data structure;

[0014] 提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0014] conversion after extraction profile associated with the business needs of the properties and attributes associated with the data type of the corresponding dynamic objects generates null, the null moving object comprising: the service requirement associated with the attributes, and said attribute data corresponding to the relevant type.

[0015] 优选地,所述将接收到的告警数据填充至所述空动态对象中,得到告警动态对象包括: [0015] Preferably, the received alarm data to fill the empty dynamic objects, dynamic objects to receive alarms comprising:

[0016] 将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配,得到匹配后的告警数据; [0016] The received alarm data to the moving object space associated with the service attributes match the requirements to obtain the matched alarm data;

[0017] 将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象;所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 [0017] After filling the alerting data to the matching of the moving object in space, to give an alarm dynamic object; said filler comprises: corresponding to the air filled in the dynamic object associated with the properties of the service requirement said alarm data match.

[0018] 优选地,所述对告警动态对象进行告警处理之前,还包括: Before [0018] Preferably, the moving object on the alarm report alarms, further comprising:

[0019] 判断所述告警动态对象是否符合告警过滤条件,若符合,则对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理;所述告警过滤条件根据所述业务需求确定。 [0019] It is determined whether the moving object matches the alarm the alarm filter criteria, if met, the moving object matches the alarm of the alarm of an alarm condition of the filter, otherwise, not perform alarm handling; the alarm filtering condition determined according to the service requirements .

[0020] 优选地,所述预定义的告警过滤条件针对所述告警动态对象的一个或多个属性进行设置; [0020] Preferably, the predefined alarm filtering conditions set for one or more attributes of the alarm dynamic objects;

[0021] 所述告警过滤条件定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式。 [0021] The alarm conditions are defined to meet the comparison mode filter alarm filtering conditions between the comparison value of the attribute name corresponding to the alarm dynamic object attribute values ​​and alarms filter.

[0022] 优选地,所述将接收到的告警数据填充至所述空动态对象中,得到告警动态对象之后,还包括: [0022] Preferably, the received alarm data to fill the empty moving object, the moving object after obtaining the alarm, further comprising:

[0023] 对所述告警动态对象进行合法性校验; [0023] The dynamic objects of the alarm check validity;

[0024] 对校验通过的告警动态对象进行告警处理。 [0024] The moving object trap by carrying out the alarm verification process.

[0025] 本发明还公开了一种告警处理装置,包括: [0025] The present invention also discloses an alarm processing apparatus, comprising:

[0026] 告警业务字段生成模块,用于分析业务需求,生成告警业务字段; [0026] The alert service field generating module, for analyzing the business needs, business field to generate an alarm;

[0027] 配置文件生成模块,用于采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件; [0027] The profile generation module for dynamic configuration rules using the predefined alert service description fields, to obtain the configuration file;

[0028] 空动态对象生成模块,用于根据配置文件生成空动态对象; [0028] Air moving object generation module for generating a dynamic object space based on the profile;

[0029] 告警动态对象生成模块,用于接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; [0029] The moving object alert generation module for receiving the alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms;

[0030] 告警处理模块,用于对所述告警动态对象进行告警处理。 [0030] The alarm processing module for processing the alert alarm dynamic objects.

[0031] 优选地,所述预定义的动态配置规则包括:告警业务对象的所有属性和每个属性对应的数据类型;所述配置文件生成模块得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0031] Preferably, the predefined dynamic configuration rules comprises: all business objects attributes and alarm data corresponding to each attribute type; the configuration file generating module obtained profile comprises: the service requirement associated with attribute types and attributes of data corresponding to the correlation.

[0032] 优选地,所述空动态对象生成模块包括: [0032] Preferably, the air moving object generation module comprises:

[0033] 配置文件转换子模块,用于将所述配置文件转换为程度可读的数据结构; [0033] The conversion sub-module configuration file, the configuration file for converting an extent readable data structure;

[0034] 生成子模块,用于提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0034] The generation sub-module, for extracting the converted profile associated with the business needs of the properties and attributes associated generates null data type corresponding to a moving object, the moving object space comprising: the service attribute types and attributes of data corresponding to the correlation associated demand.

[0035] 优选地,所述告警动态对象生成模块包括: [0035] Preferably, the alarm dynamic object generation module comprises:

[0036] 匹配子模块,用于将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配,得到匹配后的告警数据; [0036] The matching sub-module, for converting the received alarm data matches the moving object space associated with the service attribute needs to obtain the matched alarm data;

[0037] 填充子模块,用于将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象;所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 [0037] filling sub-module, for filling the alerting data to the matching of the moving object in space, to give an alarm dynamic object; the filling comprising: dynamic objects in the air associated with the business needs fill attribute corresponding to the alarm data match.

[0038] 优选地,还包括: [0038] Preferably, further comprising:

[0039] 过滤模块,用于判断所述告警动态对象是否符合告警过滤条件,若符合,则告警处理模块对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理;所述告警过滤条件根据所述业务需求确定。 [0039] The filtering module, for determining whether the moving object matches the alarm the alarm filter criteria, if met, the alarm processing module moving object trap filter criteria matches the alarm an alarm, otherwise, not perform alarm handling; the alarm filtering condition determined according to the service needs.

[0040] 优选地,所述预定义的告警过滤条件针对所述告警动态对象的一个或多个属性进行设置; [0040] Preferably, the predefined alarm filtering conditions set for one or more attributes of the alarm dynamic objects;

[0041] 所述告警过滤条件定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式。 [0041] The alarm conditions are defined to meet the comparison mode filter alarm filtering conditions between the comparison value of the attribute name corresponding to the alarm dynamic object attribute values ​​and alarms filter.

[0042] 与现有技术相比,本发明包括以下优点: [0042] Compared with the prior art, the present invention includes the following advantages:

[0043] 本发明在进行告警之前进行可动态扩展对象化的处理,而且告警处理采用统一的处理框架,实现了统一告警版本的目的,进而可以对统一的版本进行统一维护。 [0043] The process of the present invention dynamically extensible objects of prior warning, alarm processing and processing unified framework to achieve a unified version of the alarm object, and thus can maintain uniform unified version.

[0044] 本发明采用可扩展标记语言来过滤与匹配特定告警,当需要变换时,不需要重新编写告警程序,大大减少了工作量。 [0044] The present invention uses extensible markup language specific filter matching alarm, when the need to change, without rewriting the program alarms, greatly reducing the workload.

附图说明 BRIEF DESCRIPTION

[0045] 图1是本发明实施例一种告警处理方法的流程图; [0045] FIG. 1 is a flow diagram embodiment of a processing method of the embodiment of the alarm of the present invention;

[0046] 图2是本发明实施例动态对象的技术架构图; [0046] FIG. 2 is a diagram of a moving object technical architecture of the embodiment of the present invention;

[0047] 图3是本发明实施例动态对象核心组件的处理流程图; [0047] FIG. 3 is a process flow diagram of the embodiment of core components of a moving object of the present invention;

[0048] 图4是本发明另一实施例一种告警处理方法的流程图; [0048] FIG. 4 is a flow diagram embodiment of a processing method according to another embodiment of the alarm of the present invention;

[0049] 图5是本发明实施例告警过滤处理的流程图; [0049] FIG. 5 is a flowchart of the alarm filtering process embodiment of the present invention;

[0050] 图6是本发明实施例一种告警处理装置的结构框图; [0050] FIG. 6 is a block diagram of an embodiment of a configuration of the alarm processing apparatus embodiment of the present invention;

[0051] 图7是本发明实施例空动态对象生成模块103的结构框图; [0051] FIG. 7 is a block diagram of the module 103 generates null Example embodiments of the present invention, a moving object;

[0052] 图8是本发明实施例告警动态对象生成模块104的结构框图; [0052] FIG. 8 is a block diagram embodiment of an alarm object generation module 104 dynamically embodiment of the present invention;

[0053] 图9是本发明另一实施例一种告警处理装置的结构框图。 [0053] FIG. 9 is a block diagram embodiment of a processing apparatus according to another embodiment of the alarm of the present invention.

具体实施方式 detailed description

[0054] 为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。 [0054] For the above-described objects, features and advantages of the invention more apparent, the accompanying drawings and the following specific embodiments of the present invention will be further described in detail.

[0055] 实施例一: [0055] Example a:

[0056] 参照图1,示出了本发明一种告警处理方法的流程图,本实施例具体可以包括以下步骤: [0056] Referring to Figure 1, there is shown a flow diagram of a method of the present invention, alarm processing, the present embodiment specifically includes the following steps:

[0057] S101,分析业务需求,生成告警业务字段。 [0057] S101, analysis of business needs, generating alarm business field.

[0058] 不同的业务需求需要不同的告警业务字段。 [0058] different business needs require different alarm business field.

[0059] S102,采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件。 [0059] S102, using predefined rules dynamically configure the alarm service description fields, to obtain the profile.

[0060] 本实施例中预定义的动态配置规则包括:告警业务对象涉及的所有属性和每个属性对应的数据类型;相应的,得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 Dynamic configuration rule [0060] Example predefined present embodiment comprises: an alarm all the properties involved and the business object corresponding to the attribute data of each type; accordingly, the resulting configuration file comprises: relating to the attributes and service requirements corresponding to the attribute data of the relevant type.

[0061] 例如,预定义的动态配置规则定义了长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,结合具体的业务需求发现,业务需求涉及长度、宽度、形状这三个属性, 相应的S101中生成的告警业务字段包含长度、宽度、形状这三个属性,这时对照预定义的属性长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,得到的配置文件就只包含长度、宽度和形状这三个属性和每个属性对应的数据类型。 [0061] For example, the predefined dynamic configuration rule defines the length, width, shape, color and other attributes and each attribute corresponding to specific data types, found in connection with specific business needs, relates to business needs, length, width, shape of the three attribute, S101 corresponding alarm generated traffic field contains the length, width, shape of these three attributes, properties against predefined time length, width, shape, color and other attributes and each attribute corresponding to the specific type of data, obtained configuration file contains only the length, width and shape of these three attributes and each attribute corresponding data type. 预定义的属性如果业务需求未涉及,就不写入配置文件中。 Predefined properties if not covered by business needs, do not write the configuration file.

[0062] 需要说明的是,由于告警业务字段是通过分析业务需求得到的,不同的业务需求对应不同的告警业务字段,而配置文件是采用预定义的动态配置规则对所述告警业务字段进行的描述,因此本实施例是根据业务需求生成配置文件的,不同的业务需求会生成不同的配置文件。 [0062] Incidentally, since the alarm service field is obtained by analyzing the business requirements, service requirements of different service fields corresponding to different alarms, and configuration file is dynamically configured using predefined rules of the alarm service fields description, the present embodiment is therefore generated according to the service profile needs, different service requirements will generate different profiles.

[0063] S103,根据配置文件生成空动态对象。 [0063] S103, generates a dynamic object space based on the profile.

[0064] 在S102中,得到的配置文件已经包含与业务需求相关的属性和属性对应的数据类型,依据上述属性和对应的数据类型生成的空动态对象同样包含与业务需求相关的属性和属性对应的数据类型,但是并没有具体的数据。 [0064] In S102, the obtained configuration file already contains the attributes and attribute data corresponding types associated with business needs, generated based on the attribute and corresponding data types null dynamic object also includes attributes and attribute corresponding to related business needs data types, but there is no specific data.

[0065] 在本实施例的一个优选实施例中,所述S103按照以下步骤进行: [0065] In a preferred embodiment of the present embodiment, the following steps S103 follow:

[0066] 步骤一,将所述配置文件转换为程度可读的数据结构; [0066] Step a, the configuration file to convert the degree of readable data structures;

[0067] 步骤二,提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0067] Step two, the configuration files associated with the conversion of the extracted business needs and attributes of the associated data corresponding to the attribute type dynamic objects generates null, the null moving object comprising: the service requirements associated with attribute types and attributes of data corresponding to the correlation.

[0068] S104,接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象。 [0068] S104, the received alarm data, the alarm data received to fill the empty moving object, the moving object to give an alarm.

[0069] 本实施例中接收到的告警数据包含依据业务需求生成的配置文件中涉及到的属性,和每个属性对应的数据,将每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,如此生成的告警动态对象中包含了具体的告警数据,每个属性有了对应的属性值。 [0069] The property profile of the present embodiment comprises received alarm data generated based on business needs related to the embodiment, and data corresponding to each attribute, the attribute corresponding to each data in accordance with a dynamic object space corresponding to the attribute filled into an empty data type dynamic objects, the alarm thus generated dynamic object contains specific alarm data, each attribute with the corresponding attribute value.

[0070] 在本实施例的一个优选实施例中,所述S104按照以下步骤进行: [0070] In a preferred embodiment according to the present embodiment, the following steps S104:

[0071] 步骤一,将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配,得到匹配后的告警数据; [0071] Step a, the received alarm data matches the moving object space associated with the service attribute needs to obtain the matched alarm data;

[0072] 例如,空动态对象中包含长度、宽度和形状这三个属性,将接收到的告警数据中对应长度、宽度和形状这三个属性的对应的数据与空动态对象中上述三个属性对应的数据类型进行匹配,如果与告警数据与空动态对象中上述三个属性对应的数据类型不符,则进行类型转换,匹配后对应每个属性的数据与空动态对象中属性对应的数据类型一致。 [0072] For example, the dynamic object comprises an empty length, width and shape of these three attributes, the received alarm data corresponding to the null data corresponding to the moving object length, width and shape of the three properties above three attributes match corresponding data type, and if the alarm data in an empty dynamic objects corresponding to attributes of the three data types do not match, the type conversion, data corresponding to the attribute data corresponding to each dynamic object with empty attribute type match is consistent .

[0073] 步骤二,将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象; 所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 [0073] Step two, filling the alerting data to the matching of the moving object in space, to give an alarm dynamic object; the filling comprising: dynamic objects in the space associated with the service requirement corresponding to the properties of fill the alarm data match.

[0074] 将匹配后每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,此时填充了对应数据的空动态对象称为告警动态对象,告警动态对象中包含了具体的告警数据,也就是说,每个属性有了对应的属性值。 [0074] The attribute data corresponding to each of the filling according to the type of air moving object corresponding to the attribute data matching the dynamic objects in space, this time filled with null data corresponding to a moving object is called a dynamic object alarm, the alarm dynamic objects contains data about the alarm, that is, with each attribute corresponding to the attribute value. 例如,长度5cm,宽度3cm,形状长方形。 For example, length 5cm, width 3cm, a rectangular shape.

[0075] S105,对所述告警动态对象进行告警处理。 [0075] S105, the warning alarms of the moving object.

[0076] 基于动态对象,进行告警处理。 [0076] Based on the moving object, an alarm process.

[0077] 需要说明的是,在本实施例的一个优选实施例中,在步骤S104得到告警动态对象之后,在对告警动态对象进行告警处理之前,还需要对所述告警动态对象进行合法性校验, 然后对校验通过的告警动态对象进行告警处理。 [0077] Incidentally, in a preferred embodiment of the present embodiment, after the step S104 to give an alarm dynamic objects, dynamic objects prior to the alarm for alarm handling, but also dynamic objects of the alarm correction validity inspection and verification of the alarm moving object by carrying out the alarm process.

[0078] 下面结合图2所示的动态对象的技术架构图对上述步骤S101-S105进行说明。 [0078] below with reference to FIG technical architecture shown in FIG. 2 moving object above steps S101-S105 will be described.

[0079] 图2中首先,将告警业务字段与动态Bean字段描述进行绑定XML,其中动态Bean 字段描述为本实施例中所述的预定义的动态配置规则,绑定XML的含义是:将告警业务字段用动态Bean字段描述的规则进行描述,在本实施例中,为采用预定义的动态配置规则对所述告警业务字段进行描述,得到的文件为配置文件。 In [0079] First, FIG. 2, the alarm service and dynamic fields bound XML description Bean field, wherein the dynamic Bean field describes the dynamic configuration of the present embodiment the predefined rules in the embodiment, the bound XML meaning: the alarm rules Bean dynamic field service description fields will be described, in the present embodiment, is a dynamic configuration using predefined rules to the alarm service description fields, obtain the file for the profile. 这部分内容对应本实施例中的步骤S101和步骤S102。 This part of the steps in S101 and S102 correspond to the present embodiment.

[0080] 然后进入动态Bean核心组件,生成动态Bean。 [0080] Bean core assembly and then into a dynamic, generate dynamic Bean. 对应本实施例中的步骤S103和步骤S104。 This embodiment corresponds to steps S103 and S104 in FIG.

[0081] 最后进入告警相关处理逻辑对所述生成的动态Bean进行告警相关处理逻辑处理。 [0081] and finally into the alarm correlation processing logic dynamically generated Bean said processing logic performs alarm correlation process. 对应本实施例中的步骤S105。 This corresponds to step S105 in this embodiment.

[0082] 需要说明的是图2中的告警相关处理逻辑是根据具体的业务需要决定,每个网管产品甚至每个项目都各不相同。 [0082] Note that alarm correlation processing logic in Figure 2 is determined according to the specific needs of the business, for each NM even every product item are different. 例如,用户需要指定的告警(同因同源)如果10分钟之内发送了3次以上才会显示到页面上,那么关于这个需求的具体实现,就是告警的相关处理逻辑。 For example, users need to specify the alarm (with a result of homologous) If you send more than three times within 10 minutes to appear on the page, then on the specific implementation of this requirement is related to processing logic alarms.

[0083] 动态Bean核心组件包含四个核心组件: [0083] Bean dynamic core assembly comprises four core components:

[0084] 基本模型组件:是最核心的组件,实现动态Bean的基本模型与基础功能,实现了转换的相关框架。 [0084] The basic model components: is the core component to achieve the basic model and the basic function of the dynamic Bean, relevant framework to achieve the conversion. 同时,基本模型组件还提供"修改历史"存储的功能,所有对动态Bean的修改都将存储起来。 At the same time, the basic model component also provides "revise history" storage function, all modifications to the dynamic Bean will be stored.

[0085] 转换器组件:负责读取JavaBean与动态Bean绑定XML后的配置文件,生成对应的动态Bean,同时抛出可开发的接口,最终用户可以自定义自己的转换策略,对某些需求做特殊处理。 [0085] converter assembly: JavaBean is responsible for reading and dynamic binding configuration file Bean after the XML, generate dynamic Bean corresponding interfaces can be developed at the same time throw, end users can customize their own conversion strategy, the demand for certain special treatment.

[0086] 基本类型智能判断组件:在获取动态Bean内部的属性的值的时候,基本类型判断组件,可以智能的把动态Bean的值转换为用户指定的类型,在本实施例中转换为配置文件中属性对应的数据类型。 [0086] Basic type smart determination component: acquiring the value of the property within a dynamic Bean, when the basic type determining component, intelligently convert the values ​​of dynamic Bean of the type designated by the user is converted into the profile in the present embodiment, attribute corresponding data type.

[0087] 拷贝与校验组件:提供一组工具,可以快速的把一个JavaBean或者动态Bean的所有属性及属性值拷贝到另一个动态Bean中,并且会按照绑定XML做类型校验。 [0087] Copy checksum components: providing a set of tools, can quickly apply all the attributes and attribute values ​​or a dynamic JavaBean Bean Bean copied to another dynamic, and do check according to the type of binding XML.

[0088] 下面结合图3对上述四个核心组件的处理流程进行说明。 [0088] Scheme 3 below in connection with the above-mentioned process four core components will be described in FIG.

[0089] S301,基本模型组件初始化基本模型内容的属性定义。 [0089] S301, the content model defines the basic properties of basic model component initialization.

[0090] 基本模型组件通过读取配置文件,解析配置文件中的属性和属性对应的数据类型,对基本模型进行初始化定义。 [0090] The basic model component by reading a configuration file, parsing the configuration file attributes and their corresponding data types, the basic model is initialized defined.

[0091] S302,基本模型组件接收告警数据。 [0091] S302, the basic model component receives the alerting data.

[0092] S303,告警数据进入转换器组件匹配转换器。 [0092] S303, the alarm data into the converter assembly matching converter.

[0093] 将接收到的告警数据匹配基本模型内容的属性定义进行转换。 [0093] The received alarm data matches the model defines the basic properties of the converted content.

[0094] S304,在基本模型组件中生成一个空的动态Bean。 [0094] S304, generates an empty Bean dynamic component in the basic model.

[0095] 基本模型组件依据转换器组件中转换后的告警数据生成一个空的动态Bean。 [0095] The basic model of a component to generate an alarm based on an empty dynamic Bean data conversion converter assembly. 空动态Bean同样包含与业务需求相关的属性和属性对应的数据类型,但是并没有具体的数据。 Bean also contains an empty dynamic attributes and attribute data corresponding types associated with business needs, but no specific data.

[0096] 本实施例中步骤S103对应组件处理流程图的S301-S304。 [0096] In the present embodiment, components of the processing corresponding to step S103 of the flowchart S301-S304.

[0097] S305,智能判断组件将告警数据与空的动态Bean中包含的属性进行匹配。 [0097] S305, the intelligent component attribute determination empty alarm data contained Bean dynamic matching.

[0098] 例如,空动态对象中包含长度、宽度和形状这三个属性,将接收到的告警数据中对应长度、宽度和形状这三个属性的对应的数据与空动态对象中上述三个属性对应的数据类型进行匹配,如果与告警数据与空动态对象中上述三个属性对应的数据类型不符,则进行类型转换,匹配后对应每个属性的数据与空动态对象中属性对应的数据类型一致。 [0098] For example, the dynamic object comprises an empty length, width and shape of these three attributes, the received alarm data corresponding to the null data corresponding to the moving object length, width and shape of the three properties above three attributes match corresponding data type, and if the alarm data in an empty dynamic objects corresponding to attributes of the three data types do not match, the type conversion, data corresponding to the attribute data corresponding to each dynamic object with empty attribute type match is consistent .

[0099] S306,在拷贝与校验模块中填充匹配后的数据。 [0099] S306, data is filled in the copy matches the check module.

[0100] S307,在基本模型组件中生成告警动态Bean。 [0100] S307, an alarm is generated in the base Bean dynamic model component.

[0101] 在基本模型组件中生成的告警动态Bean即为空的动态Bean填充匹配后的数据得到的。 [0101] The data generated in the basic model is the assembly Bean dynamic alarm dynamic air-populate Bean obtained. 至此告警动态Bean成功生成,然后进入S308。 At this point an alarm is generated dynamically Bean successful, then enter S308.

[0102] S308,基本模型组件将告警动态Bean放入接收缓存中供告警相关处理模块使用。 [0102] S308, the basic model of the component into the Bean dynamic alarm buffer for receiving the alarm correlation processing module.

[0103] 以下是动态Bean的基础接口: [0103] The following is the basis of dynamic interface Bean:

Figure CN102981941BD00091

[0106] 其中: [0106] wherein:

[0107] get (String paramString)与set (String paramString, Obiect paramObject)函数,模拟的是JavaBean的标准Get与Set函数。 [0107] get (String paramString) and set (String paramString, Obiect paramObject) function simulates the standard JavaBean Get and Set functions.

[0108] 由于取得的都是Object,需要强制类型转换,所以,就添加了<T>TRet(StrinR fieldName, Class〈T>clazz)函数,用来帮助使用者做基本的类型转换。 [0108] Having obtained are Object, cast required, therefore, add a <T> TRet (StrinR fieldName, Class <T> clazz) function, to help the user make the basic type conversion.

[0109] fuzzyGet(String fieldName, Class〈T>clazz)、fuzzyGet(String fieldName, Class〈T>clazz, T defaultValue)和fuzzySet (String fie 1 dName, Object value)三个函数,使用了基本类型转换组件的功能,可以在Java的基本类型之间做合理的转换。 [0109] fuzzyGet (String fieldName, Class <T> clazz), fuzzyGet (String fieldName, Class <T> clazz, T defaultValue) and fuzzySet (String fie 1 dName, Object value) three functions, using the basic types conversion assembly the feature, you can make a reasonable conversion between basic types of Java.

[0110] 以下为动态Bean内部属性描述接口: [0110] The following describes an internal interface Bean dynamic properties:

[0111] [0111]

Figure CN102981941BD00101

[0112] 可以使用该接口在程序运行时向动态Bean添加或者删除属性,也可以读取配置文件来初始化对应的动态Bean。 [0112] interface can be used to add dynamic runtime Bean or delete properties, may read the configuration file to initialize the corresponding dynamic Bean.

[0113] 以下为转换器组件的核心接口: [0113] Following is a core interface converter assembly:

Figure CN102981941BD00102

[0116] 两个函数的功能分别为把JavaBean或者其他类型数据转换为动态Bean和把动态Bean转换回JavaBean或其他类型数据。 [0116] functions are two functions to convert the JavaBean, or other types of data and dynamic Bean Bean converted back to dynamic JavaBean or other types of data.

[0117] 本实施例中告警是基于动态对象进行的,如果具体的业务需求发生变化,只需要对S101中告警业务字段进行修改,这样S102生成对应业务需求变化之后的配置文件,至于之后S103-S105对应的程序并不需要修改,这样所有的告警处理程序使用的是同一的处理框架,即基于动态对象的处理,因此本实施例的告警可以实现统一告警程序版本,进而可以统一进行维护。 [0117] In the present embodiment, the alarm object is a dynamic, and if the specific business needs change, only need to S101, the alarm service field be modified so that S102 to generate a corresponding profile after the change based on business needs, as after S103- S105 is not required to modify the corresponding program, so that all the alarm handling procedure using the same processing frame, i.e., the processing based on the moving object, and therefore the alarm of the present embodiment can achieve a unified version alarms, in turn, can be maintained uniform. 综上,本实施例在业务需求发生变化时,只需要对告警业务字段进行修改, 避免了频繁大量人工修改的出现。 In summary, the present embodiment when the business needs change, an alarm need only be modified business fields, avoiding a large number of frequent manual modification.

[0118] 实施例二: [0118] Example II:

[0119] 参照图4是本发明另一种告警处理方法的流程图,本实施例具体可以包括以下步骤: [0119] Referring to FIG. 4 is a flowchart of the present invention, another alarm processing method of this embodiment specifically includes the following steps:

[0120] S401,分析业务需求,生成告警业务字段。 [0120] S401, analysis of business needs, generating alarm business field.

[0121] 不同的业务需求需要不同的告警业务字段。 [0121] different business needs require different alarm business field.

[0122] S402,采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件。 [0122] S402, using predefined rules dynamically configure the alarm service description fields, to obtain the profile.

[0123] 本实施例中预定义的动态配置规则包括:告警业务对象涉及的所有属性和每个属性对应的数据类型;相应的,得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 Dynamic configuration rule [0123] Example predefined present embodiment comprises: an alarm all the properties involved and the business object corresponding to the attribute data of each type; accordingly, the resulting configuration file comprises: relating to the attributes and service requirements corresponding to the attribute data of the relevant type.

[0124] 例如,预定义的动态配置规则定义了长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,结合具体的业务需求发现,业务需求涉及长度、宽度、形状这三个属性, 相应的S401中生成的告警业务字段包含长度、宽度、形状这三个属性,这时对照预定义的属性长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,得到的配置文件就只包含长度、宽度和形状这三个属性和每个属性对应的数据类型。 [0124] For example, the predefined dynamic configuration rule defines the length, width, shape, color and other attributes and each attribute corresponding to specific data types, found in connection with specific business needs, relates to business needs, length, width, shape of the three attribute, S401 corresponding alarm generated traffic field contains the length, width, shape of these three attributes, properties against predefined time length, width, shape, color and other attributes and each attribute corresponding to the specific type of data, obtained configuration file contains only the length, width and shape of these three attributes and each attribute corresponding data type. 预定义的属性如果业务需求未涉及,就不写入配置文件中。 Predefined properties if not covered by business needs, do not write the configuration file.

[0125] 需要说明的是,由于告警业务字段是通过分析业务需求得到的,不同的业务需求对应不同的告警业务字段,而配置文件是采用预定义的动态配置规则对所述告警业务字段进行的描述,因此本实施例是根据业务需求生成配置文件的,不同的业务需求会生成不同的配置文件。 [0125] Incidentally, since the alarm service field is obtained by analyzing the business requirements, service requirements of different service fields corresponding to different alarms, and configuration file is dynamically configured using predefined rules of the alarm service fields description, the present embodiment is therefore generated according to the service profile needs, different service requirements will generate different profiles.

[0126] S403,根据配置文件生成空动态对象。 [0126] S403, generates a dynamic object space based on the profile.

[0127] 在S402中,得到的配置文件已经包含与业务需求相关的属性和属性对应的数据类型,依据上述属性和对应的数据类型生成的空动态对象同样包含与业务需求相关的属性和属性对应的数据类型,但是并没有具体的数据。 [0127] In S402, the obtained configuration file already contains attributes and attribute data corresponding types associated with business needs, generated based on the attribute and corresponding data types null dynamic object also includes attributes and attribute corresponding to related business needs data types, but there is no specific data.

[0128] S404,接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象。 [0128] S404, the received alarm data, the alarm data received to fill the empty moving object, the moving object to give an alarm.

[0129] 本实施例中接收到的数据包含依据业务需求生成的配置文件中涉及到的属性,和每个属性对应的数据,将每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,如此生成的告警动态对象中包含了具体的告警数据,每个属性有了对应的属性值。 Data received embodiment [0129] of the present embodiment comprises attributes generated based on business needs related to the configuration file, and data corresponding to each attribute, the attribute corresponding to each data in accordance with a dynamic object space corresponding to the attribute data type dynamic object is filled into an empty, the alarm thus generated dynamic object contains specific alarm data, each attribute with the corresponding attribute value.

[0130] S405,判断所述告警动态对象是否符合告警过滤条件,若符合,则进入S406对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理。 If [0130] S405, determining whether the moving object matches the alarm the alarm filter criteria, if met, the process proceeds to S406 to trap the moving object matches the alarm of an alarm condition of the filter, otherwise, alarm processing is not performed.

[0131] 本实施例中告警过滤条件可以针对所述告警动态对象的一个或多个属性进行设置,可以对多个属性进行设置的时候,多个属性条件之间还可以设置"与"、"或"的关系。 [0131] The present embodiment when the alarm filtering condition may be set for the alarm of a moving object or more attributes embodiments, a plurality of attributes can be set, and among the plurality of attribute conditions can also be provided "and", " or "relationship. 上述告警过滤条件根据所述业务需求确定,业务需求不同,告警过滤条件也不同,而且告警过滤条件随着业务需求的改变而改变,当业务需求发生变化的时候,需要针对业务需求确定新的告警过滤条件。 The above-described alarm filtering conditions determining the traffic needs, different service requirements, alarm filtering conditions are different, and alarm filtering conditions change as business needs change, when the business needs change, need to identify new business requirements for alarm filter criteria.

[0132] 本实施例中告警过滤条件可以定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式,所述比较方式包括:大于、不大于、等于、是否为空值、模糊比较和正则表达式匹配等。 [0132] In the present embodiment, an alarm condition may be defined in the filter comparative embodiment satisfy alarm filtering condition comparison between the value of the monitored attribute value and attribute name filtering conditions of dynamic objects corresponding to the alarm, the comparison method comprises: greater than, not greater than , equal to, the value is empty, vague comparisons and regular expression matching.

[0133] 下面结合图5对S405的告警过滤处理过程进行详细描述。 [0133] below with reference to FIG. 5 S405 alarm filtering process in detail.

[0134] S501,从缓存中取出一个告警动态对象。 [0134] S501, an alarm dynamic object removed from the cache.

[0135] S502,判断是否已经读取告警过滤条件,若是执行步骤S503,否则执行步骤S504。 [0135] S502, determines whether the read alarm filtering condition, if the execution step S503, otherwise step S504.

[0136] 具体的告警过滤条件根据业务需求变化而变化,需要说明的是,本实施例针对业务需求采用预定义的格式来描述所述告警过滤条件。 [0136] Specific alarm filtering conditions vary according to business needs change, it is noted that the present embodiment employs a predefined format for the alarm service requirements described filters. 具体地,本实施例中可以采用可扩展标记语言(XML,Extensible Markup Language)描述上述告警过滤条件。 Specifically, in this embodiment an extensible markup language (XML, Extensible Markup Language) described above alarm filtering conditions can be employed. 告警过滤条件可以针对所述告警动态对象的一个或多个属性进行设置,在对多个属性进行设置的时候,多个属性条件之间还可以设置"与"、"或"的关系。 Alarm filtering condition may be set for the alarm of a moving object or more attributes, when a plurality of attributes provided, the relationship may be provided, "and", "or" between a plurality of attribute conditions.

[0137] 告警过滤条件用XML描述如下: [0137] alarm filtering conditions described in XML as follows:

[0138] 〈ProblemCause index = " X" name = "" > [0138] <ProblemCause index = "X" name = "">

[0139] </ProblemCause> [0139] </ ProblemCause>

[0140] 其中,ProblemCause表示过滤条件的标示节点,index表示过滤条件的序号,用来唯一标示一个过滤条件,不可省略。 [0140] wherein, ProblemCause designated node represents the filter condition, index represents the number of the filter condition for uniquely identifies a filter, it can not be omitted. Name为过滤条件名称,用来描述过滤条件的含义,可以省略。 Name is the name of the filter condition for the filter condition described meanings, may be omitted. 需要说明的是,本实施例中PC间规则可以定义多组PC,为了区分这些PC组,按照PC 组定义的顺序定义index,第一个定义的PC组index = 1,依次类推。 Incidentally, the rules between the PC embodiment of the present embodiment can define multiple sets of PC, PC in order to distinguish these groups, in the order defined by the PC group index is defined, the first definition of the PC group index = 1, and so on.

[0141] 具体地,每个告警过滤属性条件用一个XML节点定义,其定义如下: [0141] Specifically, each of the alarm filtering condition is defined as an XML attribute node, which is defined as follows:

[0142] 〈FieldName type = " typeValue" para = " paraValue"/> [0142] <FieldName type = "typeValue" para = "paraValue" />

[0143] 其中FieldName为动态Bean的属性名,可取任一字段属性名;type为属性条件的比较方式。 [0143] wherein dynamic Bean FieldName property name, property name take any of a field; type of attribute conditions for the comparative embodiment. para为属性条件的比较值。 para comparison value attribute condition.

[0144] 本实施例中告警过滤条件可以定义为:动态Bean的FieldName属性值与paraValue之间满足typeValue的比较方式,即告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式,所述比较方式包括:大于、不大于、等于、是否为空值、模糊比较和正则表达式匹配等。 [0144] In the present embodiment, an alarm condition can be defined as the filter: comparative embodiment satisfy typeValue FieldName property values ​​between the dynamic paraValue Bean, the attribute value comparison and alarm filtering criteria are attribute names corresponding to the moving object between the alarm alarm filtering comparative embodiment satisfy the condition, the comparison method comprises: greater than, is not greater than, equal to, if a null value, comparing fuzzy and regular expression matching.

[0145] 例如,过滤条件〈nCompressCount type =" greater"para =" 10"/> 表示压缩次数大于10。 [0145] For example, the filter condition <nCompressCount type = "greater" para = "10" /> indicates the number of compression is greater than 10. 其中nCompressCount表示告警动态对象中属性名为nCompressCount对应的属性值,10为告警过滤条件的比较值,greater表示告警过滤条件的比较方式为大于,即告警动态对象中属性名为nCompressCount对应的属性值与告警过滤条件的比较值10之间满足告警过滤条件的比较方式为大于,也就是说告警动态对象中属性名为nCompressCount对应的属性值要大于10,而nCompressCount表示压缩次数,因此过滤条件〈nCompressCount type =" greater" para =" 10"/> 表示压缩次数大于10。 Wherein nCompressCount dynamic object represents the alarm attribute named nCompressCount corresponding property value, the comparison value 10 for the alarm filtering condition, a comparative embodiment Greater alarm condition is larger than the filter, i.e. the alarm attribute value of the dynamic properties of the object corresponding to the called nCompressCount alarm conditions between the filter 10 compares the value of the monitored condition of the filter is larger than the comparison mode, the alarm attribute value that is the object dynamic property named nCompressCount corresponding to greater than 10, the number of a compression nCompressCount, so filtering criteria <nCompressCount type = "greater" para = "10" /> indicates the number of compression is greater than 10.

[0146] 本实施例中告警过滤条件可以定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式,所述比较方式包括:大于、不大于、等于、是否为空值、模糊比较和正则表达式匹配等。 [0146] In the present embodiment, an alarm condition may be defined in the filter comparative embodiment satisfy alarm filtering condition comparison between the value of the monitored attribute value and attribute name filtering conditions of dynamic objects corresponding to the alarm, the comparison method comprises: greater than, not greater than , equal to, the value is empty, vague comparisons and regular expression matching. 可以用〈and〉,<〇r>节点套住多个条件,表示这些条件之间的关系为"与"/ "或"。 Can <and>, <〇r> plurality of nodes trap condition, showing the relationship between the conditions "and" / "or." 例如: E.g:

Figure CN102981941BD00121

[0148] 以上过滤条件的含义为:压缩次数大于10次,并且事件级别不大于2,且不等于〇的发生在Ne_Type = 1的设备上的PC或Ne_Type = 2的设备上的PC。 [0148] defined above, the filter conditions are: compression number is greater than 10 times and not greater than 2 event level, not equal square occurs Ne_Type = PC 1 on the device or on the device Ne_Type = PC 2. 将每个具体的值翻译成它们所代表的含义,上面的条件表示:S1240设备(Ne_Type = 1)或5ESS设备(Ne_ Type = 2)所发生的压缩次数大于10,事件级别为紧急或严重(Perceived_Severity = 0、 1、2分别表示未知告警、紧急告警、严重告警)的PC。 The value of each specific translation into meaning they represent, the above conditions indicates: the number of compression S1240 apparatus (Ne_Type = 1) or a 5ESS device (Ne_ Type = 2) occurred greater than 10, the event of emergency or critical level ( Perceived_Severity = 0, 1,2, respectively unknown alarm, emergency alert, warning severe) your PC. 也就是说过滤条件为:设备压缩次数大于10,事件级别为紧急或严重。 That filter criteria: frequency compression device is greater than 10, the level of emergency or serious incident.

[0149] 上述过滤规则对应的动态类型用XML描述的例子如下: [0149] Examples of the above-described dynamic filtering rule corresponding to the type described in XML as follows:

[0150] [0150]

Figure CN102981941BD00131

[0151] 其中〈bean〉描述了一个动态类型;Table表示该类型的数据持久化时,整体存入的数据表名称;<attr>描述了一个动态属性;name表示动态bean的属性名称,对应过滤条件中的FieldName ; java-type表示动态属性在java语言中的数据类型;column-name表示数据持久化时,属性值存入的数据字段名称;column-type表示数据持久化时,属性值存入的数据字段类型;key表示动态属性取值标志,当实例化该动态类型时,从数据来源中取值 [0151] where <bean> describes a dynamic type; the Table represents the name of the table when a data type of the persistent data, the overall deposit; <attr> describes a dynamic attribute; name bean dynamic attribute names, the corresponding filter conditions FieldName; java-type indicates the type of data in the dynamic properties of the java language; column-name data indicating the name of the field when the persistent data, the attribute values ​​are stored; column-type data showing persistent attribute values ​​are stored data field types; key value flag indicates dynamic properties, when the instantiated dynamic type, ranging from data source

[0152] 需要说明的是,本实施例中同一个过滤条件可以用多种方式来表达。 [0152] Incidentally, for example, it may be a variety of ways to express the same filter condition of the present embodiment. 例如,上述过滤条件中告警级别为紧急或严重表示为: For example, the filter condition is an emergency or critical alarm level is expressed as:

Figure CN102981941BD00132

[0154] 具体地,上述语句整体表示事件级别不大于2并且事件级别不等于0,也就是事件级别可以为1和2,而事件级别为1表示紧急,事件级别为2表示严重,因此上述条件表示告警级别为紧急或严重。 [0154] Specifically, the above statement indicates as a whole Event Level is not greater than 2 and an event level is not equal to 0, i.e. the event level may be 1 and 2, and the event level 1 indicates an emergency event level 2 represents a serious, so the above conditions expressed alarm level is urgent or serious.

[0155] 对于这个过滤条件,同样可以表示为: [0155] For this filter condition may also be expressed as:

Figure CN102981941BD00133

[0157] 含义为:事件级别等于1或者事件级别等于2,同样表示告警级别为紧急或严重。 [0157] means: Event Level Event level equal to 1 or equal to 2, also expressed alarm level is urgent or serious.

[0158] 正是由于本实施例采用可扩展标记语言来描述过滤条件,因而同一个过滤条件可以用多种方式来表达,也就是说本实施例中的过滤条件可以匹配特定的告警,配置方法灵活,当业务需求发生变更时,只需要修改告警过滤条件的比较值就可以达到目的,修改量明显较少很多,只需要很少的工作量就可以完成告警过滤条件的修改来适应变化后的业务需求。 [0158] It is because the present embodiment uses an extensible markup language to describe the conditions of the filter, thus with a filter can be expressed multiple ways, that is to say the filter conditions of the present embodiment may match a particular embodiment of the alarm configuration flexibility when business needs change occurs, only need to modify the alarm filtering condition compare value can achieve the purpose, the amount of modification significantly less lot, requires very little effort to complete modifications alarm filtering conditions to adapt to changes in the Business needs.

[0159] S503,读取告警过滤条件,并放入配置缓存。 [0159] S503, the read alarm filtering conditions, and placed into a cache.

[0160] S504,判断告警动态对象是否符合告警过滤条件,若符合执行步骤S505,否则过滤处理结束。 [0160] S504, the moving object is determined whether the alarm filter criteria matches the alarm, if they meet the execution step S505, otherwise the process ends filtration.

[0161] S505,根据业务需要进行相应的告警处理。 [0161] S505, based on business needs corresponding alarm processing.

[0162] 以上描述的步骤S501至S505就是完整的过滤流程。 [0162] The above-described steps S501 to S505 is the full flow filter.

[0163] S406,对符合告警过滤条件的告警动态对象进行告警处理。 [0163] S406, the moving object matches the alarm of the alarm of an alarm condition of the filter process.

[0164] 对于本实施例中的步骤S401-S406,具体处理实例如下: [0164] For the present embodiment steps S401-S406, the following specific process examples:

[0165] A网告警管理系统,管理A网拥有的所有设备上报的告警。 [0165] A network alarm management systems, network management A owns all the reported alarms.

[0166] A网管理人员制定动态配置规则,包含告警字段所有属性集合中每个属性对应的数据类型,具体包括以下告警字段: [0166] A dynamic network management staff to develop a configuration rule, the alarm attribute set contains all data type of each field corresponding to the attribute, the alarm comprises the following fields:

[0167] 告警ID [0167] Alarm ID

[0168] 告警级别 [0168] warning level

[0169] 告警原因 [0169] Alarm reason

[0170] 告警位置 [0170] Alarm position

[0171] 告警时间 [0171] Alarm time

[0172] A网属性1 [0172] A network property 1

[0173] A网属性2 [0173] A network property 2

[0174] 业务分析人员了解到以上字段信息后,按照预定义的动态配置规则将上述字段配置到"配置文件"中,如下: [0174] After the business analysts understand the above field information, according to a predefined configuration rule above dynamic field is configured to "profile" as follows:

[0175] [0175]

Figure CN102981941BD00151

[0176] 这样A网内的设备上报的告警就已经配置好并可以使用了。 Devices within [0176] A network of such reported alarm has been configured and ready to use. 如果之后因A网部分设备升级,业务需求发生变动,设备上报的告警中增加了字段"设备版本号",用户希望看到这个新字段的信息,这时候只需将新增的字段"设备版本号"按照之前的格式增加一条就行了,增加的配置内容项如下: Field "Device A network version because if after some equipment upgrades, service requirements are changed, the reported alarms added to the field" device version number ", the user would like to see information about the new field, this time simply added No. "according to a previous format increases on the line, increasing the content of the configuration items as follows:

[0177] <attr name = " equipmentVersion " java-type = " java. lang. String" column-name =" EQUIPMENT_VERSION" column-type =" string" key ="设备版本号"/> [0177] <attr name = "equipmentVersion" java-type = "java. Lang. String" column-name = "EQUIPMENT_VERSION" column-type = "string" key = "device version number" />

[0178] 同理,其它需求变动,或者A网告警管理系统应用到不同的专业网,都可以通过这种方式来适应不同要求,而且不必频繁修改或重新开发该系统。 [0178] Similarly, other changes in demand or A network alarm management systems applied to different professional networks, can be adapted to different requirements in this way, and having to frequently modify or re-development of the system.

[0179] 如果告警过滤条件发生变化,只需要修改预定义的告警过滤条件,然后按照本实施例步骤S405所述步骤判断告警动态对象是否符合修改后的预定义的告警过滤条件,若符合,则按照S406所述步骤对符合预定义的告警过滤条件的告警动态对象进行告警处理, 否则,不进行告警处理。 [0179] If the alarm filtering conditions change, only need to modify the predefined alarm filtering conditions according to the present embodiment and the step of determining whether an alarm step S405 moving object meets the predefined alarm filtering the modified conditions, if met, alarm handling alarms for dynamic objects that meets the predefined alarm filtering condition according to the step S406, otherwise, the alarm processing is not performed. 由此可见具体的告警过滤程序不需要修改,避免了大量修改工作的出现。 This shows that specific alarm filtering program does not require modification to avoid the emergence of extensive modification work.

[0180] 本实施例中告警是基于动态对象进行的,如果具体的业务需求发生变化,只需要对S401中告警业务字段进行修改,这样S402生成对应业务需求变化之后的配置文件,至于之后S403-S406对应的程序并不需要修改,这样所有的告警处理程序使用的是统一的处理框架,即基于动态对象的处理,因此本实施例的告警可以实现统一告警程序版本,进而可以统一进行维护。 [0180] In the present embodiment the alarm object is a dynamic embodiment, if specific business needs change, only need to S401, the alarm service field be modified so that S402 to generate a corresponding profile after the change based on business needs, as after S403- S406 is not required to modify the corresponding program, so that all the alarm handler process frame are uniform, i.e., the processing based on the dynamic object, thus the present embodiment may alert alarm unified version of the program, in turn, can be maintained uniform. 综上,本实施例在业务需求发生变化时,只需要对告警业务字段进行修改, 避免了频繁大量人工修改的出现。 In summary, the present embodiment when the business needs change, an alarm need only be modified business fields, avoiding a large number of frequent manual modification.

[0181] 实施例三: [0181] Example III:

[0182] 参照图6是本发明一种告警处理装置的结构框图,本实施例具体可以包括以下模块: [0182] Referring to FIG. 6 is a structural block diagram of an alarm processing apparatus of the present invention, this embodiment may specifically include the following modules:

[0183] 告警业务字段生成模块101,用于分析业务需求,生成告警业务字段; [0183] Traffic field alert generation module 101 for analyzing the business needs, business field to generate an alarm;

[0184] 不同的业务需求需要不同的告警业务字段。 [0184] different business needs require different alarm business field.

[0185] 配置文件生成模块102,用于采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件; [0185] Configuration file generating module 102 to dynamically configure rules using the predefined alert service description fields, to obtain the configuration file;

[0186] 本实施例中预定义的动态配置规则包括:告警业务对象涉及的所有属性和每个属性对应的数据类型;相应的,得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0186] Dynamic configuration of the present embodiment the predefined rule comprises: Alarm all business objects attributes and each attribute according to a corresponding data type; accordingly, the resulting configuration file comprises: relating to the attributes and service requirements corresponding to the attribute data of the relevant type.

[0187] 例如,预定义的动态配置规则定义了长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,结合具体的业务需求发现,业务需求涉及长度、宽度、形状这三个属性, 相应的告警业务字段生成模块101中生成的告警业务字段包含长度、宽度、形状这三个属性,这时对照预定义的属性长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型, 得到的配置文件就只包含长度、宽度和形状这三个属性和每个属性对应的数据类型。 [0187] For example, the predefined dynamic configuration rule defines the length, width, shape, color and other attributes and each attribute corresponding to specific data types, found in connection with specific business needs, relates to business needs, length, width, shape of the three attribute, the corresponding alarm service field generation module 101 generates a traffic alert field contains a length, width, shape, these three attributes, properties against predefined time length, width, shape, color and other attributes and each attribute corresponding to the specific data type, the resulting profile contains only the length, width and shape of these three attributes and each attribute corresponding data type. 预定义的属性如果业务需求未涉及,就不写入配置文件中。 Predefined properties if not covered by business needs, do not write the configuration file.

[0188] 需要说明的是,由于告警业务字段是通过分析业务需求得到的,不同的业务需求对应不同的告警业务字段,而配置文件是采用预定义的动态配置规则对所述告警业务字段进行的描述,因此本实施例配置文件生成模块102是根据业务需求生成配置文件的,不同的业务需求会生成不同的配置文件。 [0188] Incidentally, since the alarm service field is obtained by analyzing the business requirements, service requirements of different service fields corresponding to different alarms, and configuration file is dynamically configured using predefined rules of the alarm service fields description file generating module so configured in the present embodiment the configuration file 102 is generated based on business needs, different service requirements will generate different profiles.

[0189] 空动态对象生成模块103,用于根据配置文件生成空动态对象。 [0189] Air moving object generation module 103 for generating a dynamic object space based on the profile.

[0190] 在配置文件生成模块102中,得到的配置文件已经包含与业务需求相关的属性和属性对应的数据类型,依据上述属性和对应的数据类型生成的空动态对象同样包含与业务需求相关的属性和属性对应的数据类型,但是并没有具体的数据。 [0190] generation module 102 in the configuration file, the resulting profile already contains attributes and attribute data corresponding types associated with business needs, generated based on the attribute and corresponding data types null dynamic objects also includes related business needs attributes and attribute data corresponding to the type, but no specific data.

[0191] 在本实施例的一个优选实施例中,如图7所示空动态对象生成模块103包括: [0191] In a preferred embodiment of the present embodiment, the moving object 7 null generation module 103 shown comprises:

[0192] 配置文件转换子模块1031,用于将所述配置文件转换为程度可读的数据结构; [0192] sub-profile conversion module 1031, the configuration file for converting an extent readable data structure;

[0193] 生成子模块1032,用于提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 [0193] generating submodule 1032, a business needs related to the properties and attributes associated with the data type of the corresponding dynamic object generates null profile conversion after extraction, the space moving object comprising: the attribute types and attributes of data corresponding to the correlation associated business needs.

[0194] 告警动态对象生成模块104,用于接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; [0194] Alarm moving object generation module 104, for receiving the alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms;

[0195] 本实施例中告警动态对象生成模块104接收到的告警数据包含依据业务需求生成的配置文件中涉及到的属性,和每个属性对应的数据,将每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,如此生成的告警动态对象中包含了具体的告警数据,每个属性有了对应的属性值。 [0195] In the present embodiment dynamically alert object generation module 104 receives the alarm data comprising attributes generated based on business needs related to the configuration file, and attribute data corresponding to each of the embodiments, the attribute data corresponding to each of the air in accordance with dynamic populate the object type attribute data corresponding to the moving object in space, thus generating an alarm dynamic object contains specific alarm data, each attribute with the corresponding attribute value.

[0196] 在本实施例的一个优选实施例中,如图8所示告警动态对象生成模块104包括: [0196] In a preferred embodiment of the present embodiment, as shown in FIG alarm dynamic object generation module 104 shown in FIG. 8 comprising:

[0197] 匹配子模块1041,用于将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配,得到匹配后的告警数据; [0197] matching sub-module 1041, for the received alarm data matches the moving object space associated with the service attribute needs to obtain the matched alarm data;

[0198] 例如,空动态对象中包含长度、宽度和形状这三个属性,将接收到的告警数据中对应长度、宽度和形状这三个属性的对应的数据与空动态对象中上述三个属性对应的数据类型进行匹配,如果与告警数据与空动态对象中上述三个属性对应的数据类型不符,则进行类型转换,匹配后对应每个属性的数据与空动态对象中属性对应的数据类型一致。 [0198] For example, the dynamic object comprises an empty length, width and shape of these three attributes, the received alarm data corresponding to the null data corresponding to the moving object length, width and shape of the three properties above three attributes match corresponding data type, and if the alarm data in an empty dynamic objects corresponding to attributes of the three data types do not match, the type conversion, data corresponding to the attribute data corresponding to each dynamic object with empty attribute type match is consistent .

[0199] 填充子模块1042,用于将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象;所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 [0199] filling submodule 1042, configured to fill the alerting data to the matching of the moving object in space, to give an alarm dynamic object; said filler comprising: the service requirement associated with the dynamic objects in space alarm corresponding attribute data matching the fill.

[0200] 填充子模块1042将匹配后每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,此时填充了对应数据的空动态对象称为告警动态对象,告警动态对象中包含了具体的告警数据,也就是说,每个属性有了对应的属性值。 [0200] After filling sub-module 1042 matches the attribute data corresponding to each of the filling space according to the data type of dynamic objects corresponding to the attribute to null moving object, the moving object at this time filled with null data corresponding to a moving object is called an alarm, alarm dynamic object contains data about the alarm, that is, with each attribute corresponding to the attribute value. 例如,长度5cm,宽度3cm,形状长方形。 For example, length 5cm, width 3cm, a rectangular shape.

[0201] 告警处理模块105,用于对所述告警动态对象进行告警处理。 [0201] the alarm processing module 105, an alarm for the alarm processing dynamic object.

[0202] 基于动态对象,进行告警处理。 [0202] Based on the moving object, an alarm process.

[0203] 需要说明的是,在本实施例的一个优选实施例中,还包括: [0203] Incidentally, in the present embodiment a preferred embodiment, further comprising:

[0204] 校验模块,用于填充子模块1042将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象之后,对所述告警动态对象进行合法性校验; [0204] verification module, the alarm data for filling the sub-module 1042 to match the empty filling dynamic objects, the moving object after obtaining the alarm, the alarm check validity moving object;

[0205] 告警处理模块105还用于对校验通过的告警动态对象进行告警处理。 [0205] The processing module 105 is further configured to alert alarms by checking the dynamic objects report alarms. 下面结合图2所示的动态对象的技术架构图对上述模块101-105进行说明。 Below in connection with FIG technical architecture shown in FIG. 2 moving object modules 101-105 is described above.

[0206] 图2中首先,将告警业务字段与动态Bean字段描述进行绑定XML,其中动态Bean 字段描述为本实施例中所述的预定义的动态配置规则,绑定XML的含义是:将告警业务字段用动态Bean字段描述的规则进行描述,在本实施例中,为采用预定义的动态配置规则对所述告警业务字段进行描述,得到的文件为配置文件。 In [0206] First, FIG. 2, the alarm service and dynamic fields bound XML description Bean field, wherein the dynamic Bean field describes the dynamic configuration of the present embodiment the predefined rules in the embodiment, the bound XML meaning: the alarm rules Bean dynamic field service description fields will be described, in the present embodiment, is a dynamic configuration using predefined rules to the alarm service description fields, obtain the file for the profile. 这部分内容对应本实施例中的告警业务字段生成模块101和配置文件生成模块102。 This part corresponds to the present embodiment, the module 102 generates an alarm generation module 101 and the service field profile embodiment.

[0207] 然后进入动态Bean核心组件,生成动态Bean。 [0207] Bean core assembly and then into a dynamic, generate dynamic Bean. 对应本实施例中的空动态对象生成模块103和告警动态对象生成模块104。 This corresponds to an alarm generation module 103 and object generation module 104 dynamically null moving object in the embodiment.

[0208] 最后进入告警相关处理逻辑对所述生成的动态Bean进行告警相关处理逻辑处理。 [0208] and finally into the alarm correlation processing logic dynamically generated Bean said processing logic performs alarm correlation process. 对应本实施例中的告警处理模块105。 Corresponding to the present embodiment the alarm processing module 105.

[0209] 需要说明的是图2中的告警相关处理逻辑是根据具体的业务需要决定,每个网管产品甚至每个项目都各不相同。 [0209] Note that alarm correlation processing logic in Figure 2 is determined according to the specific needs of the business, for each NM even every product item are different. 例如,用户需要指定的告警(同因同源)如果10分钟之内发送了3次以上才会显示到页面上,那么关于这个需求的具体实现,就是告警的相关处理逻辑。 For example, users need to specify the alarm (with a result of homologous) If you send more than three times within 10 minutes to appear on the page, then on the specific implementation of this requirement is related to processing logic alarms.

[0210] 动态Bean核心组件包含四个核心组件: [0210] Bean dynamic core assembly comprises four core components:

[0211] 基本模型组件:是最核心的组件,实现动态Bean的基本模型与基础功能,实现了转换的相关框架。 [0211] The basic model components: is the core component to achieve the basic model and the basic function of the dynamic Bean, relevant framework to achieve the conversion. 同时,基本模型组件还提供"修改历史"存储的功能,所有对动态Bean的修改都将存储起来。 At the same time, the basic model component also provides "revise history" storage function, all modifications to the dynamic Bean will be stored. 本实施例中的生成子模块1032在上述基本模型组件中。 Generating submodule 1032 cases in the present embodiment in the above basic model components.

[0212] 转换器组件:负责读取JavaBean与动态Bean绑定XML后的配置文件,生成对应的动态Bean,同时抛出可开发的接口,最终用户可以自定义自己的转换策略,对某些需求做特殊处理。 [0212] converter assembly: JavaBean is responsible for reading and dynamic binding configuration file Bean after the XML, generate dynamic Bean corresponding interfaces can be developed at the same time throw, end users can customize their own conversion strategy, the demand for certain special treatment. 本实施例所述的配置文件转换子模块1031和告警动态对象生成模块104位于转换器组件中。 Profile embodiment according to the present embodiment and the conversion sub-module 1031, an alarm module 104 to generate dynamic objects located in the transducer assembly.

[0213] 基本类型智能判断组件:在获取动态Bean内部的属性的值的时候,基本类型判断组件,可以智能的把动态Bean的值转换为用户指定的类型,在本实施例中转换为配置文件中属性对应的数据类型。 [0213] Basic type smart determination component: acquiring the value of the property within a dynamic Bean, when the basic type determining component, intelligently convert the values ​​of dynamic Bean of the type designated by the user is converted into the profile in the present embodiment, attribute corresponding data type. 本实施例所述的匹配子模块1041位于基本类型智能判断组件中。 Matching sub-block 1041 described in the present embodiment is located substantially in a type of smart determination component.

[0214] 拷贝与校验组件:提供一组工具,可以快速的把一个JavaBean或者动态Bean的所有属性及属性值拷贝到另一个动态Bean中,并且会按照绑定XML做类型校验。 [0214] Copy checksum components: providing a set of tools, can quickly apply all the attributes and attribute values ​​or a dynamic JavaBean Bean Bean copied to another dynamic, and do check according to the type of binding XML. 本实施例所述的填充子模块1042位于拷贝与校验组件中。 Filling the sub-module according to the present embodiment is located at 1042 copies of the check assembly.

[0215] 四个核心组件的处理流程图参照图1所示的方法实施例的相关描述,在此不做赘述。 Related description of the method shown in [0215] Referring to FIG four process flow diagram of an embodiment of core components, which is not repeated herein.

[0216] 本实施例中告警是基于动态对象进行的,如果具体的业务需求发生变化,告警业务字段生成模块101只需要对告警业务字段进行修改,这样配置文件生成模块102生成对应业务需求变化之后的配置文件,至于之后空动态对象生成模块103、告警动态对象生成模块104和告警处理模块105对应的程序并不需要修改,这样所有的告警处理程序使用的是同一的处理框架,即基于动态对象的处理,因此本实施例的告警可以实现统一告警程序版本,进而可以统一进行维护。 [0216] In this embodiment the alarm is a dynamic object, if specific business needs change, alarm service field generating module 101 need to be modified alert service field, so that the profile generation module 102 generates a corresponding change in business requirements based After profile, as empty after the moving object generation module 103, object generation module 104 dynamically alert and alarm processing module 105 corresponding to the program does not need to be modified, so that all the alarm handling procedure using the same processing frame, i.e. based on dynamic objects the process, therefore the present embodiment the alarm may alert unified version of the program, in turn, can be maintained uniform. 综上,本实施例在业务需求发生变化时,只需要告警业务字段生成模块101对告警业务字段进行修改,避免了频繁大量人工修改的出现。 In summary, the present embodiment when the business needs change, only the alarm module 101 generates a field service alarms modified business fields, to avoid the frequent large numbers of artificial modification.

[0217] 对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见图1所示方法实施例的部分说明即可。 [0217] For the apparatus of the embodiment, since the method of the embodiment which is substantially similar, the description is relatively simple, the relevant portion of the embodiment of FIG. Referring to the method shown in embodiment 1 can be described.

[0218] 实施例四: [0218] Example IV:

[0219] 参照图9是本发明另一种告警处理装置的结构框图,本实施例具体可以包括以下丰吴块: [0219] Referring to FIG. 9 is a block diagram of another alarm processing apparatus of the present invention, the present embodiment may specifically include the following embodiments Feng Wu blocks:

[0220] 告警业务字段生成模块201,用于分析业务需求,生成告警业务字段; [0220] Traffic field alert generation module 201 for analyzing the business needs, business field to generate an alarm;

[0221 ] 不同的业务需求需要不同的告警业务字段。 [0221] different business needs require different alarm business field.

[0222] 配置文件生成模块202,用于采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件; [0222] profile generating module 202 to dynamically configure rules using the predefined alert service description fields, to obtain the configuration file;

[0223] 本实施例中预定义的动态配置规则包括:告警业务对象涉及的所有属性和每个属性对应的数据类型;相应的,得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 Dynamic configuration rule [0223] Example predefined present embodiment comprises: an alarm all the properties involved and the business object corresponding to the attribute data of each type; accordingly, the resulting configuration file comprises: relating to the attributes and service requirements corresponding to the attribute data of the relevant type.

[0224] 例如,预定义的动态配置规则定义了长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型,结合具体的业务需求发现,业务需求涉及长度、宽度、形状这三个属性, 相应的告警业务字段生成模块201中生成的告警业务字段包含长度、宽度、形状这三个属性,这时对照预定义的属性长度、宽度、形状、颜色等属性和具体每个属性对应的数据类型, 得到的配置文件就只包含长度、宽度和形状这三个属性和每个属性对应的数据类型。 [0224] For example, the predefined dynamic configuration rule defines the length, width, shape, color and other attributes and each attribute corresponding to specific data types, found in connection with specific business needs, relates to business needs, length, width, shape of the three attribute, the corresponding alarm to generate an alarm service business fields generated in the field module 201 comprises a length, width, shape, these three attributes, properties against predefined time length, width, shape, color and other attributes and each attribute corresponding to the specific data type, the resulting profile contains only the length, width and shape of these three attributes and each attribute corresponding data type. 预定义的属性如果业务需求未涉及,就不写入配置文件中。 Predefined properties if not covered by business needs, do not write the configuration file.

[0225] 需要说明的是,由于告警业务字段是通过分析业务需求得到的,不同的业务需求对应不同的告警业务字段,而配置文件是采用预定义的动态配置规则对所述告警业务字段进行的描述,因此本实施例是根据业务需求生成配置文件的,不同的业务需求会生成不同的配置文件。 [0225] Incidentally, since the alarm service field is obtained by analyzing the business requirements, service requirements of different service fields corresponding to different alarms, and configuration file is dynamically configured using predefined rules of the alarm service fields description, the present embodiment is therefore generated according to the service profile needs, different service requirements will generate different profiles.

[0226] 空动态对象生成模块203,用于根据配置文件生成空动态对象。 [0226] Air moving object generation module 203 for generating a dynamic object space based on the profile.

[0227] 在配置文件生成模块202中,得到的配置文件已经包含与业务需求相关的属性和属性对应的数据类型,依据上述属性和对应的数据类型生成的空动态对象同样包含与业务需求相关的属性和属性对应的数据类型,但是并没有具体的数据。 [0227] In the profile generation module 202, the resulting configuration file already contains attributes and attribute data corresponding types associated with business needs, generated based on the attribute and corresponding data types null dynamic objects also includes related business needs attributes and attribute data corresponding to the type, but no specific data.

[0228] 告警动态对象生成模块204,用于接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; [0228] Alarm moving object generation module 204, for receiving the alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms;

[0229] 本实施例中接收到的数据包含依据业务需求生成的配置文件中涉及到的属性,和每个属性对应的数据,将每个属性对应的数据按照空动态对象中该属性对应的数据类型填充到空动态对象中,如此生成的告警动态对象中包含了具体的告警数据,每个属性有了对应的属性值。 Data received embodiment [0229] of the present embodiment comprises attributes generated based on business needs related to the configuration file, and data corresponding to each attribute, the attribute corresponding to each data in accordance with a dynamic object space corresponding to the attribute data type dynamic object is filled into an empty, the alarm thus generated dynamic object contains specific alarm data, each attribute with the corresponding attribute value.

[0230] 过滤模块205,用于判断所述告警动态对象是否符合告警过滤条件,若符合,则告警处理模块206对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理。 [0230] Filter module 205 for determining whether the moving object matches the alarm the alarm filter criteria, if met, the alarm processing module 206 that meet the filter criteria alarm warning alarms of the moving object, otherwise, alarm processing is not performed.

[0231] 本实施例中上述告警过滤条件根据所述业务需求确定,随着业务需求的变化而变化。 [0231] In the present embodiment the above-described embodiment the alarm filtering condition determined according to the service requirement, as business needs change varies. 另外,告警过滤条件可以针对所述告警动态对象的一个或多个属性进行设置,可以对多个属性进行设置的时候,多个属性条件之间还可以设置"与"、"或"的关系。 Further, the alarm can be set for the filter condition of the moving object alarm one or more attributes, can be provided when a plurality of attributes, the relationship may be provided, "and", "or" between a plurality of attribute conditions.

[0232] 本实施例中告警过滤条件可以定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式,所述比较方式包括:大于、不大于、等于、是否为空值、模糊比较和正则表达式匹配等。 [0232] In the present embodiment, an alarm condition may be defined in the filter comparative embodiment satisfy alarm filtering condition comparison between the value of the monitored attribute value and attribute name filtering conditions of dynamic objects corresponding to the alarm, the comparison method comprises: greater than, not greater than , equal to, the value is empty, vague comparisons and regular expression matching.

[0233] 过滤模块205的详细处理流程参见图5方法实施例的相关描述,在此不做赘述。 Detailed processing flow [0233] Referring to the filter module 205 of FIG. 5 related description of the method embodiment, which is not repeated herein.

[0234] 告警处理模块206,对符合告警过滤条件的告警动态对象进行告警处理。 [0234] alarm processing module 206, the moving object matches the alarm of the alarm of an alarm condition of the filter process.

[0235] 如果告警过滤条件发生变化,只需要修改预定义的告警过滤条件,过滤模块205 判断告警动态对象是否符合修改后的预定义的告警过滤条件,若符合,则告警处理模块206 对符合预定义的告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理。 [0235] If the alarm filtering conditions change, only need to modify the predefined alarm filtering conditions, filtering module 205 determines whether the alarm moving object meets the predefined modified alarm filtering conditions, if met, the alarm processing module 206 that meet the pre- alarm conditions of dynamic objects defined alarm filtering an alarm, otherwise, alarm processing is not performed. 由此可见具体的告警过滤程序不需要修改,避免了大量修改工作的出现。 This shows that specific alarm filtering program does not require modification to avoid the emergence of extensive modification work.

[0236] 本实施例中告警是基于动态对象进行的,如果具体的业务需求发生变化,告警业务字段生成模块201只需要对告警业务字段进行修改,这样配置文件生成模块202生成对应业务需求变化之后的配置文件,至于之后空动态对象生成模块203、告警动态对象生成模块204、过滤模块205和和对应的程序并不需要修改,这样所有的告警处理程序使用的是同一的处理框架,即基于动态对象的处理,因此本实施例的告警可以实现统一告警程序版本, 进而可以统一进行维护。 [0236] In this embodiment the alarm is a dynamic object, if specific business needs change, alarm service field generating module 201 need to be modified alert service field, so that the configuration file generating module 202 generates a corresponding change in business requirements based After profile, as empty after the moving object generation module 203, object generation module 204 dynamically trap, and a filtering module 205 and a corresponding program does not need to be modified, so that all the alarm handling procedure using the same processing frame, i.e., based on the dynamic processing object, thus the present embodiment example of the alarm can alert unified version of the program, in turn, can be maintained uniform. 综上,本实施例在业务需求发生变化时,只需要对告警业务字段进行修改,避免了频繁大量人工修改的出现。 In summary, the present embodiment when the business needs change, an alarm need only be modified business fields, avoiding a large number of frequent manual modification.

[0237] 对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见图4所示方法实施例的部分说明即可。 [0237] For the apparatus of the embodiment, since the method of the embodiment which is substantially similar, the description is relatively simple, the relevant part of the embodiment Referring to FIG. 4 of the method illustrated embodiment to be described.

[0238] 本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0238] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, various portions of the same embodiment of similarity between the embodiments refer to each other.

[0239] 以上对本发明所提供的一种告警处理方法及告警处理装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 [0239] or more for one alarm processing method and an alarm processing apparatus according to the present invention provides, described in detail herein through specific examples of the principles and embodiments of the invention are set forth in description of the above embodiment except for help understand the method and core ideas of the present invention; the same time, for those of ordinary skill in the art, according to the idea of ​​the present invention, there are changes in the specific embodiments and application scope of the place, of the specification content It should not be construed as limiting the present invention.

Claims (11)

  1. 1. 一种告警处理方法,其特征在于,包括: 分析业务需求,生成告警业务字段; 采用预定义的动态配置规则对所述告警业务字段进行描述,得到配置文件; 根据配置文件生成空动态对象; 接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; 对所述告警动态对象进行告警处理; 所述对告警动态对象进行告警处理之前,还包括:判断所述告警动态对象是否符合告警过滤条件,若符合,则对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理;所述告警过滤条件根据所述业务需求确定。 An alarm processing method, comprising: analyzing traffic demand, traffic field to generate an alarm; dynamic configuration using the predefined rules of the alarm service description fields, obtained profile; generating a dynamic object space based on profile ; receiving alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms; moving object to the alarm report alarms; alarms before said moving object for alarm handling, further comprising : the alarm determining whether the moving object alarm filtering conditions, if met, the moving object matches the alarm of the alarm of an alarm condition of the filter, otherwise, not perform alarm handling; the alarm filtering condition determined according to the service needs.
  2. 2. 根据权利要求1所述的方法,其特征在于: 所述预定义的动态配置规则包括:告警业务对象的所有属性和每个属性对应的数据类型;所述得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 2. The method according to claim 1, wherein: said predefined dynamic configuration rules comprises: all business objects attributes and alarm data corresponding to each attribute type; the obtained profile comprising: the attributes and service requirements related to the associated data corresponding attribute type.
  3. 3. 根据权利要求2所述的方法,其特征在于,所述根据配置文件生成空动态对象包括: 将所述配置文件转换为程序可读的数据结构; 提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 3. The method according to claim 2, wherein the generating the empty moving object comprising the profile: the configuration file to convert the program-readable data structure; profile conversion after extraction with the attributes and service requirements of the relevant associated data corresponding to the attribute type dynamic objects generates null, the null moving object comprising: the service requirement associated with attributes and attribute corresponding to the associated data type.
  4. 4. 根据权利要求3所述的方法,其特征在于,所述将接收到的告警数据填充至所述空动态对象中,得到告警动态对象包括: 将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配, 得到匹配后的告警数据; 将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象;所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 4. The method according to claim 3, characterized in that, the received alarm data to fill the empty dynamic objects, dynamic objects to receive alarms comprising: alerting the received data with the empty dynamic objects related to the service attributes match the requirements to obtain the matched alarm data; filling the alerting data to the matching of the moving object in space, to give an alarm dynamic object; the filler comprises: in the said air moving objects associated with the service requirement corresponding alarm attribute data matching the fill.
  5. 5. 根据权利要求1所述的方法,其特征在于,预定义的所述告警过滤条件针对所述告警动态对象的一个或多个属性进行设置; 所述告警过滤条件定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式。 5. The method according to claim 1, wherein the predefined alarm filtering the alarm condition is set for a moving object or more attributes; the alarm filtering condition is defined as an alarm properties of dynamic objects satisfy the alarm attribute value comparison between the alarm filtering condition corresponding to the filter conditions were comparative embodiment.
  6. 6. 根据权利要求1所述的方法,其特征在于,所述将接收到的告警数据填充至所述空动态对象中,得到告警动态对象之后,还包括: 对所述告警动态对象进行合法性校验; 对校验通过的告警动态对象进行告警处理。 6. The method according to claim 1, wherein the received alarm data to fill the empty moving object, the moving object after obtaining the alarm, further comprising: a moving object to the alarm legitimacy verification; alarms by checking the dynamic objects report alarms.
  7. 7. -种告警处理装置,其特征在于,包括: 告警业务字段生成模块,用于分析业务需求,生成告警业务字段; 配置文件生成模块,用于采用预定义的动态配置规则对所述告警业务字段进行描述, 得到配置文件; 空动态对象生成模块,用于根据配置文件生成空动态对象; 告警动态对象生成模块,用于接收告警数据,将所述接收到的告警数据填充至所述空动态对象中,得到告警动态对象; 告警处理模块,用于对所述告警动态对象进行告警处理; 过滤模块,用于判断所述告警动态对象是否符合告警过滤条件,若符合,则告警处理模块对符合告警过滤条件的告警动态对象进行告警处理,否则,不进行告警处理;所述告警过滤条件根据所述业务需求确定。 7. - kind of alarm processing apparatus, characterized by comprising: field service alert generation module for analyzing the business needs, to generate an alarm service field; profile generation module for dynamic configuration rules using the predefined alert service field will be described, to obtain the configuration file; null moving object generation module for generating a dynamic object space based on the profile; alarm dynamic object generation module, for receiving the alarm data, the alarm data received to fill the empty dynamic objects, dynamic objects to receive alarms; alarm processing module, dynamic objects for an alarm the alarm processing; filtering module, for determining whether the moving object matches the alarm the alarm filter criteria, if met, the alarm processing module conform alarm dynamic object alarm filtering an alarm condition, otherwise, not perform alarm handling; the alarm filtering condition determined according to the service needs.
  8. 8. 根据权利要求7所述的装置,其特征在于: 所述预定义的动态配置规则包括:告警业务对象的所有属性和每个属性对应的数据类型;所述配置文件生成模块得到的配置文件中包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 8. The apparatus according to claim 7, wherein: said predefined dynamic configuration rules comprises: all business objects attributes and alarm data corresponding to each attribute type; the configuration file generating module profile obtained comprises: associated with the attributes and service requirements of the corresponding data type associated.
  9. 9. 根据权利要求8所述的装置,其特征在于,所述空动态对象生成模块包括: 配置文件转换子模块,用于将所述配置文件转换为程度可读的数据结构; 生成子模块,用于提取转换后的配置文件中与所述业务需求相关的属性和所述相关的属性对应的数据类型生成空动态对象,所述空动态对象包括:与所述业务需求相关的属性和所述相关的属性对应的数据类型。 9. The apparatus according to claim 8, wherein said air moving object generation module comprising: a conversion sub-module configuration file, the configuration file for converting an extent readable data structure; generating submodule, configuration file for conversion after extraction requirements associated with the service attributes and the corresponding data attribute associated dynamic object type generates null, the null moving object comprises: associated with the attributes and the service requirements related type corresponding to the attribute data.
  10. 10. 根据权利要求9所述的装置,其特征在于,所述告警动态对象生成模块包括: 匹配子模块,用于将所述接收到的告警数据与所述空动态对象中与所述业务需求相关的属性进行匹配,得到匹配后的告警数据; 填充子模块,用于将所述匹配后的告警数据填充到所述空动态对象中,得到告警动态对象;所述填充包括:在所述空动态对象中与所述业务需求相关的属性中对应填入所述匹配后的告警数据。 10. The apparatus according to claim 9, wherein said alert generation module moving object comprising: a matching sub-module, for converting the received alarm data with said dynamic objects in space and the service requirements related attributes match, to obtain the matched alarm data; filling sub-module, for filling the alerting data to the matching of the moving object in space, to give an alarm dynamic object; the filling comprising: in the air dynamic object associated with the service requirement corresponding to the properties of the fill alarm data match.
  11. 11. 根据权利要求8所述的装置,其特征在于,预定义的所述告警过滤条件针对所述告警动态对象的一个或多个属性进行设置; 所述告警过滤条件定义为告警动态对象的属性名对应的属性值与告警过滤条件的比较值之间满足告警过滤条件的比较方式。 The properties of warning alarm filtering condition is defined as the moving object; 11. The apparatus according to claim 8, wherein the predefined alarm filtering the alarm condition is set for a moving object or more attributes satisfy the alarm attribute value comparison between the alarm filtering condition corresponding to the filter conditions were comparative embodiment.
CN 201210445117 2012-11-08 2012-11-08 One kind of alarm and alarm processing means processing method CN102981941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210445117 CN102981941B (en) 2012-11-08 2012-11-08 One kind of alarm and alarm processing means processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210445117 CN102981941B (en) 2012-11-08 2012-11-08 One kind of alarm and alarm processing means processing method

Publications (2)

Publication Number Publication Date
CN102981941A true CN102981941A (en) 2013-03-20
CN102981941B true CN102981941B (en) 2016-03-02

Family

ID=47855996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210445117 CN102981941B (en) 2012-11-08 2012-11-08 One kind of alarm and alarm processing means processing method

Country Status (1)

Country Link
CN (1) CN102981941B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500179B (en) * 2013-09-09 2017-01-04 国家电网公司 A data source changes early warning methods

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094264A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Filtration method for processing alarm rapidly
CN101494553A (en) * 2008-01-25 2009-07-29 中兴通讯股份有限公司 Method and apparatus for self-define of alarm information format

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334001B2 (en) * 2003-06-13 2008-02-19 Yahoo! Inc. Method and system for data collection for alert delivery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094264A (en) * 2006-06-20 2007-12-26 中兴通讯股份有限公司 Filtration method for processing alarm rapidly
CN101494553A (en) * 2008-01-25 2009-07-29 中兴通讯股份有限公司 Method and apparatus for self-define of alarm information format

Also Published As

Publication number Publication date Type
CN102981941A (en) 2013-03-20 application

Similar Documents

Publication Publication Date Title
Nagarajan et al. Semantic interoperability of web services-challenges and experiences
US6694368B1 (en) Communication apparatus and method between distributed objects
US7251584B1 (en) Incremental detection and visualization of problem patterns and symptoms based monitored events
US20050114378A1 (en) System and method for providing a standardized adaptor framework
US20050050175A1 (en) Generic method for defining resource configuration profiles in provisioning systems
US20030105838A1 (en) System and method for actively managing an enterprise of configurable components
US20120158669A1 (en) Data retention component and framework
US20030093551A1 (en) Adaptive software interface
US20040205179A1 (en) Integrating design, deployment, and management phases for systems
US7979245B1 (en) Model-based systems and methods for monitoring computing resource performance
Verbeek et al. Prom 6: The process mining toolkit
US5787437A (en) Method and apparatus for shared management information via a common repository
US20090199172A1 (en) Apparatus and method for importing language extension resources to support application execution
US20100257149A1 (en) Data synchronization and consistency across distributed repositories
US7107340B2 (en) System and method for collecting and storing event data from distributed transactional applications
US20110208947A1 (en) System and Method for Simplifying Transmission in Parallel Computing System
US20110153292A1 (en) Framework to populate and maintain a service oriented architecture industry model repository
CN101339559A (en) Long lasting implementing method for data
US20100058113A1 (en) Multi-layer context parsing and incident model construction for software support
US20050114152A1 (en) Reference solution architecture method and system
US7702655B1 (en) Maintaining and using user-created mapping history for network resource mapping
US20120030180A1 (en) Archive-system-independent archive-type objects
US20100042625A1 (en) System and method for classifying objects
US20040204778A1 (en) Method for persisting SNMP MIB data in files
US20090158244A1 (en) Detecting aspectual behavior in unified modeling language artifacts

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model