Embodiment one
The embodiment of the present application one provides a kind of processing method of warning message, the method is by carrying out merging treatment to the warning message meeting merging treatment condition, to reduce the quantity that the same time period sends to the warning message of the corresponding different monitoring object of same reception object, thus the response speed decreasing this reception object caused because the same time period sends to the quantity of the warning message of the corresponding different monitoring object of same reception object more is excessively slow, to problems such as the reading efficiency of warning message are low, and then improve the response speed of reception object and the treatment effeciency to warning message of warning message.
The processing method of the warning message that the embodiment of the present application one provides goes for the various scene applying warning system, and provides technical improvement mainly for the handling process after warning system generates warning message.Such as, the processing method of the warning message that the embodiment of the present application one provides goes for the warning system shown in Fig. 2, this warning system mainly comprises: be arranged on the alarm monitoring module 201 in monitored object, the processing unit 202 of warning message and the reception object 203 of warning message, wherein, the state of alarm monitoring module 201 primary responsibility monitoring place monitored object, when determining that the state of monitored object departs from default threshold value, generate warning message, and the warning message of generation is sent to the processing unit 202 of warning message; The warning message of processing unit 202 primary responsibility to satisfied merging condition of warning message carries out merging treatment, and the warning message after process is sent to reception object 203; Receive object 203 primary responsibility to process accordingly the warning message received.In practical application, the processing unit 202 of warning message can merge with alarm monitoring module 201, also can independently arrange.Be to be understood that, the technical scheme that warning system shown in this Fig. 2 provides for the embodiment of the present application one the citing of scene that is suitable for, in practical application, the technical scheme that the embodiment of the present application one provides goes for variously can generating warning message and needing warning message to send to the various scenes of the reception object of setting, will not enumerate herein.
Be described in detail mainly for the processing procedure after warning system generation warning message below, the processing procedure of processing unit 202 pairs of warning messages of warning message in this process and the scene shown in above-mentioned Fig. 2, under other scenes, this process also can realize by other software and hardwares.
In the embodiment of the present application one, after alarm monitoring CMOS macro cell warning message, this warning message can be sent to the memory location of specifying, in actual applications, this memory location of specifying can be called warning cache pool, can carry out analysis merging treatment to the warning message be kept in cache resources pond.In order to understand better, Fig. 3 shows the schematic diagram characterizing warning message and flow to, as shown in Figure 3, alert data source comprises the one or more alarm monitoring modules generating warning message, after this alert data source generates warning message, warning message is sent to warning cache pool and carries out buffer memory, and carries out analysis merging treatment to the warning message preserved in warning cache pool further.Be to be understood that, the citing that in the technical scheme that schematic diagram provides for the embodiment of the present application one, warning message flows to is flowed to shown in this Fig. 3, in practical application, the flow direction of warning message is different according to the difference of warning system scene, will not enumerate herein.
Fig. 4 shows the schematic diagram of the handling process of the warning message that the embodiment of the present application one provides, and this processing procedure mainly comprises the steps:
Step 401, reception object information according to warning message, determine the warning message quantity of corresponding same reception object information.
In this step 401, warning message can be alarm monitoring CMOS macro cell and be sent to designated storage location (such as, cache resources pond) in warning message, this designated storage location preserve warning message can be the warning message that different alarm monitoring module generates for different monitoring object.Further, the reception object message of warning message is generally included in this warning message, such as, arranging for identifying the field that it receives object information, can determine the reception object information of this warning message according to the value of this field in warning message.
Step 402, judge whether the warning message quantity of corresponding same reception object information is greater than first threshold, if so, perform step 403 to 404, if not, perform step 405.
In this step 402, a maximum receiving the warning message that object can receive in section at one time that first threshold is setting, this value can be arranged flexibly, such as, different value can be set according to receiving the disposal ability (as cpu performance, memory size etc.) of object, if it is comparatively strong to receive object handles ability, then this first threshold can arrange larger, if it is more weak to receive object handles ability, then this first threshold can arrange less.
Step 403, whether first threshold is greater than to the warning message quantity determined and the warning message of corresponding same reception object information carries out merging treatment.
In this step 403, carrying out merging treatment to warning message can based on the merging rule of setting, this merging rule comprises the merging mode information being used to indicate and merging warning message, to warning message carry out merging treatment by corresponding same reception object information warning message according to setting merging mode merge.
Step 404, the warning message obtained by merging treatment are sent to the reception object corresponding with the reception object information of the warning message before merging treatment.
In this step 404, sending the warning message after merging treatment can based on various ways, and such as, short message way, lettergram mode, instant communication information, voice communication mode etc., the advice method specifically can supported according to reception object is arranged flexibly.
Step 405, the warning message of same for correspondence reception object information is sent to respectively reception object corresponding to the reception object information of warning message.
So far, the handling process of warning message terminates.
According to the handling process of above-mentioned warning message corresponding to Fig. 4, when the warning message quantity of correspondence same reception object is more, merging treatment can be carried out to sending to the warning message of this reception object, to reduce warning message quantity.
In the step 403 that the handling process of the above-mentioned warning message that the embodiment of the present application one provides comprises, the warning message of same for correspondence reception object information is carried out merging treatment to carry out based on merging rule, wherein, merge rule and comprise the merging mode information being used to indicate and warning message is merged, this merging mode can be arranged according to actual needs flexibly, provides two preferred implementations below for the process merging warning message.
Merge the preferred implementation one of warning message
Fig. 5 shows the schematic flow sheet being carried out according to the merging mode of setting by the warning message of same for correspondence reception object information merging, and as shown in Figure 5, this process mainly comprises the steps:
Step 501, the information of set information classification comprised by the warning message of same for correspondence reception object information merge, and obtain the warning message of the first type of message.
In this step 501, warning message generally comprises the information of multiple information category, such as, comprises the identification information of monitored object, type of alarm information etc.The set information classification related in this step can be arranged flexibly, such as, in order to the monitored object making reception object clearly send warning, the identification information of monitored object can be merged the warning message obtaining the first type of message, in order to make the clear and definite type of alarm of reception object, type of alarm information can be merged the warning message obtaining the first type of message.Be to be understood that, in practical application, the information category that warning message comprises is not limited to above cited information category, other information categories can also be comprised, such as, warning time of origin information etc., and, set information classification for merging the warning message obtaining the first type of message also can set according to actual needs flexibly, will not enumerate herein.
Step 502, the information except the information of set information classification comprised by warning message or all information comprised merge the warning message obtaining the second type of message.
In this step 502, can preset be by the information except set information classification except information merge, or all information comprised by warning message merge.
So far, the flow process merging warning message terminates.
The implementation of above-mentioned steps 501 and step 502 is separate, and namely step 502 and step 501 can executed in parallel, or step 502 can perform before step 501.
According to the merging process of above-mentioned warning message, the warning message of same for correspondence reception object can be merged and obtain the warning message of the first type of message and the warning message of the second type of message, wherein, the warning message of the first type of message is mainly as prompt messages, the amount of information comprised in the warning message of this first kind is less, only need the message comprising setup message type in warning message, therefore, the warning message of this first kind can be that amount of information is few but the information type that information transfer efficiency is high, such as, instant short message; The warning message of the second type of message is mainly as the detailed single information of warning, the amount of information comprised in the warning message of this Second Type is larger, need to comprise the message in warning message except setup message type or all information in warning message, therefore, the warning message of this Second Type can be the amount of information that comprises and transmit the high information type of reliability, such as Email etc.
In the step 501 that the warning message merging flow process that Fig. 5 is corresponding comprises, the information of the set information classification that the warning message by corresponding same reception object information comprises merges the specific implementation process obtaining the warning message of the first type of message can be as follows:
According to the monitored object information that the warning message of the same reception object information of correspondence comprises respectively, the information of the set information classification comprised by the warning message of same for correspondence monitored object information respectively merges the warning message obtaining the first type of message, also namely:
For the warning message of the same reception object of correspondence, respectively for the monitored object information that warning message comprises, the warning message of same for correspondence monitored object is merged, so, according to this merging mode, the quantity merging the warning message of the first kind obtained is the quantity of the monitored object information that the warning message of corresponding same reception object is corresponding.Such as, the warning message of corresponding same reception object has 10, and wherein, the monitored object information that each warning message comprises is as shown in table 1 below:
Table 1:
Warning message |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Monitored object |
A |
B |
A |
C |
C |
C |
A |
B |
B |
C |
According to the content of table 1, the warning message of corresponding monitored object A has 1, 3, article 7 three, the warning message of corresponding monitored object B has 2, 8, article 9 three, the warning message of corresponding monitored object C has 4, 5, 6, article 10 4, then warning message 1, 3, 7 warning messages can merging into the first kind of corresponding monitored object A, warning message 2, 8, 9 warning messages can merging into the first kind of corresponding monitored object B, warning message 4, 5, 6, 10 warning messages can merging into the first kind of corresponding monitored object C, merge the warning message obtaining 3 first kind altogether.
Warning message is merged according to above-mentioned the specific implementation process obtaining the warning message of the first type of message, the warning message quantity merging the first kind obtained is equal with the monitored object information content that warning message before merging comprises, therefore, the monitored object information content that before merging, warning message comprises is more, the quantity merging the warning message of the first kind obtained is also more, in the case, the embodiment of the present application further provides following processing mode, to ensure to merge the first threshold that the warning message quantity obtained is no more than setting, this processing procedure performs after the information merging of the set information classification comprised by the warning message of same for correspondence monitored object information respectively obtains the warning message of the first type of message.Fig. 6 shows the schematic flow sheet that this warning message being combined the first kind obtained carries out processing, and this process mainly comprises the steps:
Step 601, determine whether the quantity of the warning message merging the first type of message obtained is greater than first threshold, if so, perform step 602; If not, process ends.
In this step 601, first threshold is equal with the first threshold related in above-mentioned steps 402.
Step 602, the warning message of the first type of message is carried out merging treatment.
In this step 602, when the warning message of the first type of message is carried out merging treatment, can merge according to the merging mode of setting, such as, the warning message of the first type of message that random selecting several merging obtains, full content is directly merged, or, merge from merging the warning message selecting amount of information to be less than set point the warning message of the first type of message obtained.Concrete merging mode can be arranged flexibly, will not enumerate herein.
So far, the flow process that the warning message being combined the first kind obtained carries out merging treatment terminates.
By above-mentioned flow process, the quantity being combined the warning message of the first kind obtained has carried out further control, to reduce the warning message quantity that the same time period mails to same reception object further.
The substantially identical principle of merging treatment is carried out based on the above-mentioned warning message being combined the first kind obtained, in the step 502 that the warning message merging flow process that Fig. 5 is corresponding comprises, the information except the information of set information classification comprised by warning message or all information comprised merge the specific implementation process obtaining the warning message of the second type of message can be as follows:
According to the monitored object information that the warning message of the same reception object information of correspondence comprises respectively, the information except the information of set information classification comprised by the warning message of same for correspondence monitored object information respectively or all information comprised merge the warning message obtaining the second type of message.
The detailed process that the detailed process that this warning message being combined the Second Type obtained carries out merging treatment and the above-mentioned warning message being combined the first kind obtained carry out merging treatment is substantially identical, repeats no more herein.
In practical application, the warning message that simultaneously can be combined the first kind and the Second Type obtained carries out merging treatment, and the warning message that also only can be combined the first kind or the Second Type obtained carries out merging treatment.
According to the above-mentioned processing procedure that the preferred implementation one of this merging warning message provides, multiple warning messages of same for correspondence reception object can be merged and obtain the warning message of at least one first kind and the warning message of at least one Second Type, according to this merging mode, in the step 404 that the corresponding flow process of Fig. 4 comprises, when the warning message obtained by merging treatment is sent to the reception object corresponding with the reception object information of the warning message before merging treatment, following processing mode can be had:
Processing mode one
The warning message of the first type of message obtain merging and the warning message of the second type of message are sent to the reception object corresponding with the reception object information of the warning message before merging treatment respectively.
Processing mode two
The warning message merging the first type of message obtained is sent to the reception object corresponding with the reception object information of the warning message before merging treatment, and after the Trigger message receiving this reception object, the warning message merging the second type of message obtained is delivered to described reception object.
In this processing mode two, receive object after receiving the warning message of the first kind, according to the demand of reading warning message, the warning message needing to obtain the more Second Type of information comprised can being determined whether, if needed, the Trigger message of the warning message for obtaining Second Type can being sent, the type of this Trigger message can pre-set, such as, in order to reduce transmission information amount, this Trigger message can comprise one for identifying the flag of the warning message obtaining Second Type.
By above-mentioned processing mode one or processing mode two, the warning message that merging treatment obtains can be sent to the reception object corresponding with the reception object information of the warning message before merging treatment.
Merge the preferred implementation two of warning message
Fig. 7 shows the schematic flow sheet being carried out according to the merging mode of setting by the warning message of same for correspondence reception object information merging, and this process mainly comprises the steps:
Step 701, judge whether the number of the warning message of corresponding same reception object information is greater than Second Threshold, if so, perform step 702 to step 703, if not, perform step 704.
In this step 701, Second Threshold is traditionally arranged to be the value being greater than above-mentioned first threshold.
Step 702, the information of set information classification comprised by the warning message of same for correspondence reception object information merge the warning message obtaining the first type of message.
The specific implementation process of this step 702 is substantially identical with the specific implementation process of above-mentioned steps 501, this specific implementation process is described in detail in above-mentioned preferred implementation one, the specific implementation process of this step 702 refers to illustrating for step 501 in above-mentioned preferred implementation one, repeats no more herein.
Step 703, the information except the information of set information classification comprised by warning message or all information comprised merge the warning message obtaining the second type of message.
The specific implementation process of this step 703 is substantially identical with the specific implementation process of above-mentioned steps 502, this specific implementation process is described in detail in above-mentioned preferred implementation one, the specific implementation process of this step 703 refers to illustrating for step 502 in above-mentioned preferred implementation one, repeats no more herein.
Step 704, all information comprised by the warning message of same for correspondence reception object information merge the warning message obtaining the first type of message.
So far, the flow process merging warning message terminates.
According to the merging process of above-mentioned warning message, when the warning message quantity needing to merge is more (being greater than Second Threshold), the warning message of same for correspondence reception object can be merged and obtain the warning message of the first type of message and the warning message of the second type of message, thus when the gross information content of warning message is larger, the different content for warning message merges into dissimilar message respectively; When needing the warning message negligible amounts merged, directly warning message can be merged the warning message obtaining the first type of message, thus improving combined efficiency, merging without the need to the different content respectively for warning message.
In the above-mentioned preferred implementation one that the embodiment of the present application one provides and preferred implementation two, when the warning message of same for correspondence reception object is merged the warning message of warning message and the Second Type obtaining the first kind respectively, following preferably implementation can also be adopted:
When the information merging of the set information classification comprised by the warning message of same for correspondence reception object information obtains the warning message of the first type of message, from each warning message, extract the stored position information of the initial data of each warning message, and preserve the stored position information (being called reports to the police merges restoration point) of the initial data of each warning message;
Before the information except the information of set information classification comprised by warning message or all information of comprising merge and obtain the warning message of the second type of message, can according to the stored position information of the initial data merging each warning message that restoration point is preserved of reporting to the police, obtain the initial data of each warning message, thus the information except the information of set information classification that warning message is comprised or all information of comprising merge obtain the warning message of the second type of message time, the initial data of each warning message of acquisition can be merged in the lump.
According to above-mentioned processing mode, when merging obtains the warning message of the second type of message, the information that can merge restoration point preservation according to reporting to the police comprises the initial data of each warning message at the warning message merging the second type of message obtained, thus is convenient to carry out analyzing and processing to warning.
Embodiment three
The embodiment of the present application three provides a kind of processing unit of warning message, and the processing unit of this warning message can be arranged in warning system.
Fig. 9 shows the structural representation of the processing unit of the warning message that the embodiment of the present application three provides, and this device comprises:
Warning message quantity determining unit 901, merging treatment unit 902 and transmitting element 903;
Wherein:
Warning message quantity determining unit 901, for the reception object information according to warning message, determines the warning message quantity of corresponding same reception object information;
Merging treatment unit 902, after determining that in warning message quantity determining unit 901 the warning message quantity of corresponding same reception object information is greater than first threshold, carries out merging treatment to the warning message of the same reception object information of correspondence;
Transmitting element 903, the warning message for being obtained by merging treatment unit 902 merging treatment is sent to the reception object corresponding with the reception object information of the warning message before merging treatment.
In the preferred implementation that the embodiment of the present application three provides, the warning message quantity determining unit 901 that Fig. 9 shown device comprises, specifically for being sent to the reception object information of the warning message of designated storage location according to alarm monitoring CMOS macro cell, determine the warning message quantity of corresponding same reception object information.
In the preferred implementation that the embodiment of the present application three provides, the merging treatment unit 902 that Fig. 9 shown device comprises, specifically for merging the merging mode of the warning message of same for correspondence reception object information according to setting.
As shown in Figure 10, in the preferred implementation that the embodiment of the present application three provides, the merging treatment unit 902 that Fig. 9 shown device comprises, can also specifically comprise:
First merges module 902A and second merges module 902B;
Wherein:
First merges module 902A, and the information for the set information classification comprised by the warning message of same for correspondence reception object information merges the warning message obtaining the first type of message;
Second merges module 902B, merges for the information except the information of set information classification comprised by warning message or all information comprised the warning message obtaining the second type of message.
In the preferred implementation that the embodiment of the present application three provides, the transmitting element 903 that Figure 10 shown device comprises, specifically for merging the warning message of the first type of message that obtains and the warning message of the second type of message is sent to the reception object corresponding with the reception object information of the warning message before merging treatment respectively; Or, the warning message merging the first type of message obtained is sent to the reception object corresponding with the reception object information of the warning message before merging treatment, and after receiving the Trigger message receiving object, the warning message merging the second type of message obtained is delivered to reception object.
In the preferred implementation that the embodiment of the present application three provides, the first merging module 902A that Figure 10 shown device comprises, specifically for the monitored object information comprised respectively according to the warning message of the same reception object information of correspondence, the information of the set information classification comprised by the warning message of same for correspondence monitored object information respectively merges the warning message obtaining the first type of message.
In the preferred implementation that the embodiment of the present application three provides, the first merging module 902A that Figure 10 shown device comprises, also for the set information the classification respectively warning message of same for correspondence monitored object information comprised information merge obtain the warning message of the first type of message after, determine whether the quantity of the warning message merging the first type of message obtained is greater than first threshold, and after the quantity of the warning message determining the first type of message is greater than first threshold, the warning message of the first type of message is carried out merging treatment.
In the preferred implementation that the embodiment of the present application three provides, the second merging module 902B that Figure 10 shown device comprises, specifically for the monitored object information comprised respectively according to the warning message of the same reception object information of correspondence, the information except the information of set information classification comprised by the warning message of same for correspondence monitored object information respectively or all information comprised merge the warning message obtaining the second type of message.
In the preferred implementation that the embodiment of the present application three provides, the first merging module 902A that Figure 10 shown device comprises, before obtaining the warning message of the first type of message in the information merging of the set information classification comprised by the warning message of same for correspondence reception object information, determine that the number of the warning message of corresponding same reception object information is greater than Second Threshold, wherein, Second Threshold is greater than first threshold.
In the preferred implementation that the embodiment of the present application three provides, the first merging module 902A that Figure 10 shown device comprises, also for when the number of the warning message determining corresponding same reception object information is not more than Second Threshold, all information comprised by the warning message of same for correspondence reception object information merge the warning message obtaining the first type of message.
The function of above-mentioned each module may correspond to the respective handling step comprised in each flow process of embodiment one, does not repeat them here.
The processing unit of the warning message that the embodiment of the application provides realizes by computer program.Those skilled in the art should be understood that; above-mentioned Module Division mode is only the one in numerous Module Division mode; if be divided into other modules or do not divide module, as long as the processing unit of warning message has above-mentioned functions, all should within the protection range of the application.
Further, the processing unit of the warning message in the present embodiment two also has the functional module that can realize embodiment one and implement technical scheme described by two, repeats no more herein.
It will be understood by those skilled in the art that the embodiment of the application can be provided as method, device (equipment) or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, device (equipment) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.