CN107509119A - A kind of monitoring alarm method and device - Google Patents

A kind of monitoring alarm method and device Download PDF

Info

Publication number
CN107509119A
CN107509119A CN201710561750.XA CN201710561750A CN107509119A CN 107509119 A CN107509119 A CN 107509119A CN 201710561750 A CN201710561750 A CN 201710561750A CN 107509119 A CN107509119 A CN 107509119A
Authority
CN
China
Prior art keywords
message
mark
information
information consumption
consumption side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710561750.XA
Other languages
Chinese (zh)
Other versions
CN107509119B (en
Inventor
张晓鹏
杨武明
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Panda Mutual Entertainment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710561750.XA priority Critical patent/CN107509119B/en
Publication of CN107509119A publication Critical patent/CN107509119A/en
Application granted granted Critical
Publication of CN107509119B publication Critical patent/CN107509119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0603Catalogue ordering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of monitoring alarm method and device, is related to Internet technical field.Wherein, methods described includes:Obtain the consumption offset that message in a subregion of message subject is specified in the consumption of information consumption side;According to the message total amount in the consumption offset and the subregion, judge the message of the specified message subject with the presence or absence of accumulation;If accumulation be present, according to information consumption side mark, the combination that the specified message subject identifies or the information consumption side identifies and the specified message subject identifies, it is determined whether send warning message to destination object.The embodiment of the present invention can realize the automatic monitoring of information consumption situation, improve the promptness of clogged with messages alarm.

Description

A kind of monitoring alarm method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of monitoring alarm method and device.
Background technology
Generally, information consumption side can obtain a certain type information from Kafka clusters and be counted, for example, straight in network Field is broadcast, information consumption side obtains the behavioural information of spectators user's gifts from Kafka clusters, these behavioural informations are entered Row statistical analysis can obtain each spectators user's present contribution ranking list data.
Stored although message producer sends message caused by real-time into Kafka clusters, information consumption side with Offline mode obtains the message from Kafka clusters and handled, but some special statistics requirements are certain The renewal of data is carried out in reference time delay, if the message output for occurring message producer within certain time explodes or message disappears Situations such as Fei Fang equipment breaks down, inevitably resulting in these statistics can not upgrade in time.
The content of the invention
The present invention provides a kind of monitoring alarm method and device, and to realize the automatic monitoring of information consumption situation, raising disappears Breath blocks the promptness of alarm.
In order to solve the above-mentioned technical problem, the invention provides a kind of monitoring alarm method, this method to include:
Obtain the consumption offset that message in a subregion of message subject is specified in the consumption of information consumption side;
According to the message total amount in the consumption offset and the subregion, judging the message of the specified message subject is It is no accumulation to be present;
If accumulation be present, disappeared according to information consumption side mark, the specified message subject mark or the message Fei Fang is identified and the combination of the specified message subject mark, it is determined whether sends warning message to destination object.
Alternatively, the consumption offset for obtaining the consumption of information consumption side and specifying message in a subregion of message subject, Including:
Sent to the service provider for the information consumption information for recording multiple information consumption sides in real time and obtain information consumption letter The solicited message of breath, described obtain carry information consumption side mark, the consumption subject identification and described point in request Area identifies;
From the information consumption information received, the consumption offset is obtained.
Alternatively, the message total amount according in the consumption offset and the subregion, the specified message is judged The message of theme whether there is accumulation, including:
Calculate the difference of the message total amount and the offset;
According to information consumption side mark, message subject mark or information consumption side mark and the message The combination of subject identification, obtain corresponding threshold value;
If the difference is more than the threshold value, judge that the message of the message subject has accumulation.
Alternatively, it is described to be marked according to information consumption side mark, message subject mark or the information consumption side Knowledge and the combination of message subject mark, obtain corresponding threshold value, including:
From self-defined alarm rule, search whether exist and information consumption side mark, message subject mark Or information consumption side's mark and message subject combination identify relevant alarm rule item;
If so, then obtain the threshold value from the alarm rule item;
If nothing, the threshold value is obtained from global alarm rule.
Alternatively, if accumulation be present, according to information consumption side mark, the specified message subject mark or described Information consumption side identifies and the combination of the specified message subject mark, it is determined whether sends warning message, bag to destination object Include:
Exist and information consumption side mark, the message subject if existing in accumulation and the self-defined alarm rule Mark or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then from the alarm rule The destination object is then obtained in item, and warning message is sent to the destination object.
Alternatively, if accumulation be present, according to information consumption side mark, the specified message subject mark or described Information consumption side identifies and the combination of the specified message subject mark, it is determined whether sends warning message to destination object, also Including:
It is not present if existing in accumulation and the self-defined alarm rule and the identifying of the information consumption side, the message Subject identification or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then search white name With the presence or absence of information consumption side mark, message subject mark or information consumption side mark and the message in list Subject identification combines;
If in the presence of not to destination object transmission warning message;
If being not present, the destination object is obtained from the global alarm rule, and send to the destination object Warning message.
In order to solve the above-mentioned technical problem, present invention also offers a kind of monitoring alarm device, the device to include:
Acquisition module, the consumption skew of message in a subregion of message subject is specified for obtaining the consumption of information consumption side Amount;
Determination module, for according to the message total amount in the consumption offset and the subregion, judging that described specify disappears The message of theme is ceased with the presence or absence of accumulation;
Determining module, if being accumulated for existing, identified according to information consumption side mark, the specified message subject Or the combination of information consumption side's mark and the specified message subject mark, it is determined whether send alarm signal to destination object Breath.
In technical scheme provided in an embodiment of the present invention, a certain subregion of a certain message subject is consumed according to information consumption side The total amount of message can determine that the information consumption side is consuming the message subject in the consumption offset of interior message and the subregion Whether there is stopping state during interior message, judge that the consumer consumes such case need of the message subject not if occurring blocking Need to send warning message to director;The automatic monitoring function of information consumption situation is realized, can also be had without human attendance Targetedly alert, improve the promptness of alarm.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet for the monitoring alarm method that one embodiment of the invention provides;
Fig. 2 is the structural representation of each subregion under the message subject in Kafka clusters provided in an embodiment of the present invention Figure;
Fig. 3 is the schematic flow sheet for the monitoring alarm method that further embodiment of this invention provides;
Fig. 4 is the structural representation for the monitoring alarm device that one embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not Exclusion includes at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, implementation of the present invention is not being departed from In the case of example scope, the first XXX can also be referred to as the 2nd XXX, and similarly, the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to monitoring ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit monitors (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when monitoring (statement Condition or event) when " or " in response to monitor (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of elements not only include those key elements, but also including without clear and definite The other element listed, or also include for this commodity or the intrinsic key element of system.In the feelings not limited more Under condition, the key element that is limited by sentence "including a ...", it is not excluded that in the commodity including the key element or system also Other identical element be present.
Fig. 1 is the schematic flow sheet for the monitoring alarm method that one embodiment of the invention provides.As shown in figure 1, this method bag Include:
101st, the consumption offset that message in a subregion of message subject is specified in the consumption of information consumption side is obtained.
102nd, according to the message total amount in the consumption offset and the subregion, disappearing for the specified message subject is judged Breath is with the presence or absence of accumulation.
If accumulation the 103, be present, according to information consumption side mark, specified message subject mark or described disappear Cease the combination of consumer's mark and the specified message subject, it is determined whether send warning message to destination object.
In actual applications, the message in Kafka clusters is to carry out classification storage by message subject (Topic).One For message data in individual message subject according to multiple subregions (Partition) tissue, subregion is Kafka message queue tissues Least unit, a subregion can regard a FIFO (First Input First Output, First Input First Output) team as Row.For example, every message that message subject is identified as in each subregion under the message subject of barrage is exactly a barrage information, Wherein, the barrage information includes ID, main broadcaster ID, barrage content and timestamp;Message subject is identified as disappearing for present The every message ceased in each subregion under theme is exactly an information of giving a present, wherein, the information of giving a present includes ID, master Broadcast ID, content of giving a present and timestamp, the content of giving a present include present title, present quantity and unit price.
Each message in each subregion, which can correspond to, stores an index value, and the index value designates each message each Present position in individual subregion, for example, the index value into a piece of news of the subregion is 0, the index value of Article 2 message Index value for 1, Article 3 message is 2, the like.Accompanying drawing 2 illustrates each under a message subject in Kafka clusters Individual partitioned organization.
When consuming message in a certain subregion under a certain message subject from Kafka clusters when information consumption side, it can take It is engaged in end (for example, zookeeper) the information consumption information of the information consumption side under respective record, wherein, the message disappears Charge information includes information consumption side's mark, message subject mark, partition identification and consumption offset.
In a kind of achievable scheme, a certain subregion of the message consumer from Kafka clusters under a certain message subject Inside often obtain a pending message, correspond in zookeeper information consumption side mark, message subject mark with And the consumption offset of the partition identification increases 1.
In above-mentioned steps 101, obtain the consumption of information consumption side and specify the consumption of message in a subregion of message subject inclined The step of shifting amount can in the following manner in one or more realizations:
Method one, directly consumed from the service end acquisition information consumption side in the subregion of the message subject The consumption offset of message.
Specific implementation is as follows:Sent out to the service provider for the information consumption information for recording multiple information consumption sides in real time The solicited message for obtaining consumption offset is sent, wherein, information consumption side mark is carried in the solicited message, described is disappeared Cease subject identification and the partition identification;Receive the consumption offset that the service provider returns.
Method two, the subregion that the information consumption method consumption message subject is first first obtained from the service end The information consumption information of interior message, then extracted from the information consumption message got described in information consumption side's consumption The consumption offset of message in the subregion of message subject.
Specific implementation is as follows:Sent out to the service provider for the information consumption information for recording multiple information consumption sides in real time The solicited message for obtaining information consumption information is sent, described obtain carries information consumption side's mark, the consumption in request Subject identification and the partition identification;;From the information consumption information of the information consumption side received, the consumption is obtained Offset.
In above-mentioned steps 102, according to the message total amount in the consumption offset and the subregion, judge that described specify disappears The message of theme is ceased with the presence or absence of accumulation, be that is to say and is judged that the information consumption side is consuming the message of the specified message subject When whether stopping state occurs.Judge that the message of the formulation message subject with the presence or absence of accumulation, can be used in following methods A kind of method judges:
Difference between method one, the calculating message total amount and the offset;If the difference is more than threshold value, sentence Accumulation be present in the message of the fixed message subject;If the difference is less than or equal to the threshold value, the message subject is judged Message be not present accumulation.
Difference between method two, the calculating message total amount and the offset, by the difference and the total amount Ratio is compared with the threshold value;If the ratio is more than the threshold value, judge that the message of the message subject has heap Product;If the ratio is less than or equal to the threshold value, judge that accumulation is not present in the message of the message subject.
In actual applications, when not any information consumption side blocks when consuming the message of any message subject, It is required for backstage director to carry out timely processing.For example, the statistics of a certain information consumption side's statistics will be intended merely in future Referred to during some decision-makings, that is to say, that this kind of statistics is less demanding to time delay, then, in such case It is lower to carry out respective handling with regard to warning message sent to backstage director.Therefore, in actual applications, one can be set in advance Without the white list of alarm, such as:Record has message subject to identify A in white list, then shows that any information consumption side is consuming There is stopping state during message in the message subject A, need not all be alarmed;Record has information consumption side's mark in white list Know B, then show that the information consumption side B stopping state occurs when consuming the message in any message subject, all without carrying out Alarm;Record has message subject mark C and information consumption side mark D combination in white list, then shows the information consumption side D There is stopping state when consuming the message in message subject C, without being alarmed.
In above-mentioned steps 103, if the feelings of accumulation be present in the message that the message subject is determined in above-mentioned steps 102 Condition, then need first to judge whether such case needs to be alarmed, deterministic process is as follows:
Search whether information consumption side's mark, the specified message subject mark or institute be present from the white list The combination of information consumption side's mark and the specified message subject mark is stated, if in the presence of not to destination object transmission alarm signal Breath, if being not present, warning message is sent to destination object.Wherein, the destination object can be one or several backstages Responsible person.The warning message can be sent in a manner of short message or wechat.
In technical scheme provided in an embodiment of the present invention, a certain subregion of a certain message subject is consumed according to information consumption side The total amount of message can determine that the information consumption side is consuming the message subject in the consumption offset of interior message and the subregion Whether there is stopping state during interior message, judge that the consumer consumes such case need of the message subject not if occurring blocking Need to send warning message to director;The automatic monitoring function of information consumption situation is realized, can also be had without human attendance Targetedly alert, improve the promptness of alarm.
Fig. 3 is the schematic flow sheet for the monitoring alarm method that further embodiment of this invention provides.As shown in figure 3, this method Including:
201st, the consumption offset that message in a subregion of message subject is specified in the consumption of information consumption side is obtained.
202nd, the difference of the message total amount and the offset is calculated.
203rd, identified according to the information consumption side, the message subject identifies or the information consumption side identifies and described The combination of message subject mark, obtains corresponding threshold value.
If the 204, the difference is more than the threshold value, judge that the message of the message subject has accumulation.
If accumulation the 205, be present, according to information consumption side mark, specified message subject mark or described disappear Cease the combination of consumer's mark and the specified message subject mark, it is determined whether send warning message to destination object.
Above-mentioned steps 201 refer to corresponding contents in above-described embodiment, will not be repeated here.
In above-mentioned steps 202, the difference is the size of message of the information consumption Fang Wei consumption in the subregion.
It should be noted that real-time caused message can be deposited into Kafka by message generation side, and therefore, institute in Kafka The total amount for stating the message in the subregion of specified message subject is dynamic change.
, can be in advance according to system corresponding to different information consumption sides and/or the specified message subject in above-mentioned steps 203 The order of importance and emergency counted sets different threshold values.For example, information of giving a present statistics (such as:Present contributes ranking list) be Need to be presented in real time on the direct broadcasting room page, that is to say that requirement updates in a less reference time delay, then may correspond to Subject identification sets a small threshold for the message subject of present.In another example all statistics of information consumption side A statistics are all Need what is used in real time, then can be directed to the information consumption side A and one small threshold is set.It is, of course, also possible to it is directed to a certain specific Information consumption side consumes such case of message in a certain particular message theme, sets a threshold value.
So, can subsequently be identified according to the information consumption side, message subject mark or the message disappear Fei Fang is identified and the combination of message subject mark, to obtain corresponding threshold value.Differentiation alert service is realized, while Alarm efficiency is improved, the situation about frequently sending of unnecessary warning message caused by avoiding unified setting threshold value.
In a kind of achievable scheme, the configuration interface of a self-defined alarm rule can be provided for backstage director;Afterwards Platform director can be by the configuration interface, for having the information consumption side of particular/special requirement and/or message subject to set accordingly Alarm rule item.Such as:Alarm rule item 1 includes:Information consumption side mark C, threshold value T1, show that C consumption in information consumption side is appointed During what message subject, stopping state is determined whether using threshold value T1;Alarm rule item 2 includes:Information consumption side B and message Theme B combination, threshold value T2, show that information consumption side B when consuming message subject B, determines whether to block up using threshold value T2 Plug situation.In addition, there is no the information consumption side of particular/special requirement and/or message subject to unify to set a global alarm for those Rule, the global alarm rule correspond to a uniform threshold.
So, according to information consumption side mark, message subject mark or information consumption side mark and institute The combination of message subject mark is stated, corresponding threshold step is obtained, can specifically realize with the following method:From self-defined alarm rule In then, search whether exist with the information consumption side mark, the message subject mark or the information consumption side mark and The relevant alarm rule item of the message subject identifier combination;If so, then obtain the threshold value from the alarm rule item;If Nothing, then the threshold value is obtained from global alarm rule.
In above-mentioned steps 204, after getting corresponding threshold value, by the difference compared with the threshold value, if The difference is more than the threshold value, then judges that the message of the message subject has accumulation;If the difference is less than or equal to institute Threshold value is stated, then judges that the message of the message subject has accumulation.
Above-mentioned steps 205 refer to corresponding content in above-described embodiment and are practiced.Certainly, following methods can also be used Realize:
Because in actual applications, whole statistical system can be correspondingly arranged several global directors, each information consumption side Or each message subject can also be correspondingly arranged several special directors.Therefore, different situation, the destination object of alarm is meeting Difference.Therefore, the method that can also refer to the different threshold value of above-mentioned setting, to set different destination objects.
In a kind of achievable scheme, the configuration interface of a self-defined alarm rule can be provided for backstage director;Afterwards Platform director can be by the configuration interface, for having the information consumption side of particular/special requirement and/or message subject to set accordingly Alarm rule item.Such as:Alarm rule item 3 includes:Information consumption side mark C, destination object are director U1, show that message disappears When the side of expense C is blocked when consuming any message subject, warning message is sent to director U1;Alarm rule item 4 includes:Message Consumer B and message subject B combination, destination object are director U2, show information consumption side B when consuming message subject B When blocking, warning message is sent to director U2.In addition, for those do not have the information consumption side of particular/special requirement and/or Message subject can be unified to set a global alarm rule, and the global alarm rule corresponds to a unified director.
It should be noted that threshold value and destination object can be set simultaneously in a self-defined alarm rule item.Such as: Alarm rule item 5 includes:Information consumption side mark C, threshold value T1, destination object are director U1.
So, above-mentioned steps 205 can be realized in the following way:Deposited if existing in accumulation and the self-defined alarm rule Identified with information consumption side mark, message subject mark or information consumption side mark and the message subject Relevant alarm rule item is combined, then the destination object is obtained from the alarm rule item, and send out to the destination object Send warning message.It is not present if existing in accumulation and the self-defined alarm rule and the identifying of the information consumption side, described The alarm rule item that message subject identifies or the information consumption side identifies and the message subject identifier combination is relevant, then search Identified in white list with the presence or absence of the information consumption side, the message subject identifies or the information consumption side identifies and described Message subject identifier combination;If in the presence of not to destination object transmission warning message;If being not present, from the global alarm The destination object is obtained in rule, and warning message is sent to the destination object.
In technical scheme provided in an embodiment of the present invention, a certain subregion of a certain message subject is consumed according to information consumption side The total amount of message can determine that the information consumption side is consuming the message subject in the consumption offset of interior message and the subregion Whether there is stopping state during interior message, judge that the consumer consumes such case need of the message subject not if occurring blocking Need to send warning message to director;The automatic monitoring function of information consumption situation is realized, can also be had without human attendance Targetedly alert, improve the promptness of alarm.
Fig. 4 is the structural representation for the monitoring alarm device that one embodiment of the invention provides.As shown in figure 4, described device Including:Acquisition module 301, determination module 302 and determining module 303.
Acquisition module 301, specify the consumption of message in a subregion of message subject inclined for obtaining the consumption of information consumption side Shifting amount.
Determination module 302, for according to the message total amount in the consumption offset and the subregion, judging described specify The message of message subject is with the presence or absence of accumulation.
Determining module 303, if being accumulated for existing, according to information consumption side mark, the specified message subject The combination of mark or information consumption side mark and the specified message subject mark, it is determined whether send and report to destination object Alert information.
Alternatively, the acquisition module 301, including:
Transmitting element, obtained for being sent to the service provider for the information consumption information for recording multiple information consumption sides in real time The solicited message of message consumption information is taken, described obtain carries information consumption side's mark, the consumption theme in request Mark and the partition identification;.
First acquisition unit, for from the information consumption information received, obtaining the consumption offset.
Alternatively, the determination module 302 includes computing unit, second acquisition unit and identifying unit.
Computing unit, for calculating the difference of the message total amount and the offset.
Second acquisition unit, for being disappeared according to information consumption side mark, message subject mark or the message Fei Fang is identified and the combination of message subject mark, obtains corresponding threshold value.
Identifying unit, if being more than the threshold value for the difference, judge that the message of the message subject has accumulation.
Alternatively, the second acquisition unit is specifically used for:
From self-defined alarm rule, search whether exist and information consumption side mark, the message subject or institute State the alarm rule item that information consumption side identifies and the message subject identifier combination is relevant;
If so, then obtain the threshold value from the alarm rule item;
If nothing, the threshold value is obtained from global alarm rule.
Alternatively, the determining module 303 is specifically used for:
Exist and information consumption side mark, the message subject if existing in accumulation and the self-defined alarm rule Mark or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then from the alarm rule The destination object is then obtained in item, and warning message is sent to the destination object.
Alternatively, the determining module 303 is specifically used for:
It is not present if existing in accumulation and the self-defined alarm rule and information consumption side mark, the message master Topic mark or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then search white list In with the presence or absence of the information consumption side mark, the message subject or the information consumption side mark and the message subject group Close;If in the presence of not to destination object transmission warning message;If being not present, from the global alarm rule described in acquisition Destination object, and send warning message to the destination object.
In technical scheme provided in an embodiment of the present invention, a certain subregion of a certain message subject is consumed according to information consumption side The total amount of message can determine that the information consumption side is consuming the message subject in the consumption offset of interior message and the subregion Whether there is stopping state during interior message, judge that the consumer consumes such case need of the message subject not if occurring blocking Need to send warning message to director;The automatic monitoring function of information consumption situation is realized, can also be had without human attendance Targetedly alert, improve the promptness of alarm.
Need exist for explanation be:The monitoring alarm device that the present embodiment provides can realize above-mentioned each monitoring alarm side The technical scheme that method embodiment provides, concrete implementation principle can be found in the corresponding contents in the various embodiments described above, herein no longer Repeat.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (12)

  1. A kind of 1. monitoring alarm method, it is characterised in that including:
    Obtain the consumption offset that message in a subregion of message subject is specified in the consumption of information consumption side;
    According to the message total amount in the consumption offset and the subregion, judge whether the message of the specified message subject deposits Accumulating;
    If accumulation be present, according to information consumption side mark, the specified message subject mark or the information consumption side The combination of mark and the specified message subject mark, it is determined whether send warning message to destination object.
  2. 2. according to the method for claim 1, it is characterised in that consume specified message subject in the information consumption side that obtains The consumption offset of message in one subregion, including:
    Sent to the service provider for the information consumption information for recording multiple information consumption sides in real time and obtain information consumption information Solicited message, described obtain carry information consumption side's mark, the consumption subject identification and the subregion mark in request Know;
    From the information consumption information received, the consumption offset is obtained.
  3. 3. method according to claim 1 or 2, it is characterised in that described according to the consumption offset and the subregion Interior message total amount, the message of the specified message subject is judged with the presence or absence of accumulation, including:
    Calculate the difference of the message total amount and the offset;
    According to information consumption side mark, message subject mark or information consumption side mark and the message subject The combination of mark, obtain corresponding threshold value;
    If the difference is more than the threshold value, judge that the message of the message subject has accumulation.
  4. 4. according to the method for claim 3, it is characterised in that described according to information consumption side mark, the message The combination of subject identification or information consumption side mark and message subject mark, obtains corresponding threshold value, including:
    From self-defined alarm rule, search whether exist and information consumption side mark, message subject mark or institute State the alarm rule item that information consumption side identifies and the message subject identifier combination is relevant;
    If so, then obtain the threshold value from the alarm rule item;
    If nothing, the threshold value is obtained from global alarm rule.
  5. 5. according to the method for claim 4, it is characterised in that if accumulation be present, identified according to the information consumption side, The combination of the specified message subject mark or information consumption side mark and the specified message subject mark, it is determined whether Warning message is sent to destination object, including:
    Identified if existing in accumulation and the self-defined alarm rule and existing with information consumption side mark, the message subject Or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then from the alarm rule item It is middle to obtain the destination object, and send warning message to the destination object.
  6. 6. according to the method for claim 4, it is characterised in that if accumulation be present, identified according to the information consumption side, The combination of the specified message subject mark or information consumption side mark and the specified message subject mark, it is determined whether Warning message is sent to destination object, in addition to:
    It is not present if existing in accumulation and the self-defined alarm rule and the identifying of the information consumption side, the message subject Mark or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then search in white list With the presence or absence of information consumption side mark, message subject mark or information consumption side mark and the message subject Identifier combination;
    If in the presence of not to destination object transmission warning message;
    If being not present, the destination object is obtained from the global alarm rule, and send and alarm to the destination object Information.
  7. A kind of 7. monitoring alarm device, it is characterised in that including:
    Acquisition module, the consumption offset of message in a subregion of message subject is specified for obtaining the consumption of information consumption side;
    Determination module, for according to the message total amount in the consumption offset and the subregion, judging the specified message master The message of topic is with the presence or absence of accumulation;
    Determining module, if being accumulated for existing, according to information consumption side mark, the specified message subject mark or institute State the combination of information consumption side's mark and the specified message subject mark, it is determined whether send warning message to destination object.
  8. 8. device according to claim 7, it is characterised in that the acquisition module, including:
    Transmitting element, disappear for sending acquisition to the service provider for the information consumption information for recording multiple information consumption sides in real time The solicited message of consumption information is ceased, described obtain carries information consumption side's mark, the consumption subject identification in request And the partition identification;;
    First acquisition unit, for from the information consumption information received, obtaining the consumption offset.
  9. 9. the device according to claim 7 or 8, it is characterised in that the determination module, including:
    Computing unit, for calculating the difference of the message total amount and the offset;
    Second acquisition unit, for according to information consumption side mark, message subject mark or the information consumption side The combination of mark and message subject mark, obtains corresponding threshold value;
    Identifying unit, if being more than the threshold value for the difference, judge that the message of the message subject has accumulation.
  10. 10. device according to claim 9, it is characterised in that the second acquisition unit is specifically used for:
    From self-defined alarm rule, search whether to exist and information consumption side mark, the message subject or described disappear Cease the alarm rule item that consumer identifies and the message subject identifier combination is relevant;
    If so, then obtain the threshold value from the alarm rule item;
    If nothing, the threshold value is obtained from global alarm rule.
  11. 11. device according to claim 9, it is characterised in that the determining module is specifically used for:
    Identified if existing in accumulation and the self-defined alarm rule and existing with information consumption side mark, the message subject Or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then from the alarm rule item It is middle to obtain the destination object, and send warning message to the destination object.
  12. 12. device according to claim 9, it is characterised in that the determining module is specifically used for:
    It is not present if existing in accumulation and the self-defined alarm rule and information consumption side mark, the message subject mark Knowledge or the alarm rule item that the information consumption side identifies and the message subject identifier combination is relevant, then searching in white list is It is no information consumption side's mark, the message subject or information consumption side mark and message subject combination to be present;
    If in the presence of not to destination object transmission warning message;
    If being not present, the destination object is obtained from the global alarm rule, and send and alarm to the destination object Information.
CN201710561750.XA 2017-07-11 2017-07-11 Monitoring alarm method and device Active CN107509119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710561750.XA CN107509119B (en) 2017-07-11 2017-07-11 Monitoring alarm method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710561750.XA CN107509119B (en) 2017-07-11 2017-07-11 Monitoring alarm method and device

Publications (2)

Publication Number Publication Date
CN107509119A true CN107509119A (en) 2017-12-22
CN107509119B CN107509119B (en) 2020-02-21

Family

ID=60678894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710561750.XA Active CN107509119B (en) 2017-07-11 2017-07-11 Monitoring alarm method and device

Country Status (1)

Country Link
CN (1) CN107509119B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190025A (en) * 2018-08-21 2019-01-11 北京京东尚科信息技术有限公司 information monitoring method, device, system and computer readable storage medium
CN110502402A (en) * 2019-08-28 2019-11-26 中国联合网络通信集团有限公司 Message treatment method, equipment and terminal device
CN110825533A (en) * 2018-08-10 2020-02-21 网宿科技股份有限公司 Data transmitting method and device
CN111723070A (en) * 2020-06-18 2020-09-29 中国银行股份有限公司 Method and system for detecting data loss
CN112395103A (en) * 2020-11-02 2021-02-23 天津五八到家货运服务有限公司 Method and device for sending delay message and storage medium
CN115174346A (en) * 2022-09-02 2022-10-11 平安银行股份有限公司 Message queue-based delay alarm method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486134A (en) * 2014-12-30 2015-04-01 北京奇虎科技有限公司 Method and device for monitoring file transmission backlog
CN106371968A (en) * 2016-08-23 2017-02-01 北京奇虎科技有限公司 Method and apparatus for monitoring real-time computation
US20170132068A1 (en) * 2015-11-06 2017-05-11 Homeaway, Inc. Data stream processor and method to counteract anomalies in data streams transiting a distributed computing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486134A (en) * 2014-12-30 2015-04-01 北京奇虎科技有限公司 Method and device for monitoring file transmission backlog
US20170132068A1 (en) * 2015-11-06 2017-05-11 Homeaway, Inc. Data stream processor and method to counteract anomalies in data streams transiting a distributed computing system
CN106371968A (en) * 2016-08-23 2017-02-01 北京奇虎科技有限公司 Method and apparatus for monitoring real-time computation

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825533A (en) * 2018-08-10 2020-02-21 网宿科技股份有限公司 Data transmitting method and device
CN110825533B (en) * 2018-08-10 2022-12-20 网宿科技股份有限公司 Data transmitting method and device
CN109190025A (en) * 2018-08-21 2019-01-11 北京京东尚科信息技术有限公司 information monitoring method, device, system and computer readable storage medium
CN109190025B (en) * 2018-08-21 2021-09-14 北京京东尚科信息技术有限公司 Information monitoring method, device, system and computer readable storage medium
CN110502402A (en) * 2019-08-28 2019-11-26 中国联合网络通信集团有限公司 Message treatment method, equipment and terminal device
CN110502402B (en) * 2019-08-28 2023-03-21 中国联合网络通信集团有限公司 Message processing method and device and terminal device
CN111723070A (en) * 2020-06-18 2020-09-29 中国银行股份有限公司 Method and system for detecting data loss
CN112395103A (en) * 2020-11-02 2021-02-23 天津五八到家货运服务有限公司 Method and device for sending delay message and storage medium
CN112395103B (en) * 2020-11-02 2022-09-13 天津五八到家货运服务有限公司 Method and device for sending delay message and storage medium
CN115174346A (en) * 2022-09-02 2022-10-11 平安银行股份有限公司 Message queue-based delay alarm method

Also Published As

Publication number Publication date
CN107509119B (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN107509119A (en) A kind of monitoring alarm method and device
CN107707376B (en) A kind of method and system of monitoring and alarm
CN103220173B (en) A kind of alarm monitoring method and supervisory control system
CN108170580A (en) A kind of rule-based log alarming method, apparatus and system
CN108737182A (en) The processing method and system of system exception
CN104487989B (en) Autonomous network sentry
CN106972978A (en) A kind of ALM method for pushing and device
CN101656013A (en) Vehicle-mounted monitoring alarm terminal, system and alarm method
CN110232006B (en) Equipment alarm method and related device
CN105446875B (en) The monitoring method and monitoring system of interface and system based on SAP platforms
CN105897501A (en) Data monitoring method and device
CN110535713A (en) Monitoring management system and method for managing and monitoring
CN107995255A (en) A kind of method and its system of remote monitoring intelligent cabinet
CN106301823A (en) The fault alarming method of a kind of key component, device and big data management system
CN110221947A (en) Warning information method for inspecting, system, computer installation and readable storage medium storing program for executing
CN113297183A (en) Alarm analysis method and device for time window
CN106161085A (en) The monitoring system and method for messaging bus
CN108809720A (en) The management method and device of alarming assignment in cloud data system
CN104991939A (en) Transaction data monitoring method and system
CN112001443A (en) Network behavior data monitoring method and device, storage medium and electronic equipment
CN102594897B (en) Intelligent analysis system and method
CN107483350A (en) A kind of gateway distribution method and device
CN110414591A (en) A kind of data processing method and equipment
CN110149303A (en) A kind of network safety pre-warning method and early warning system of Party school
CN111582796B (en) Express monitoring system and method based on image recognition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210311

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Patentee after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing

Patentee before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right