CN109362042A - A kind of transmission method and device of warning information - Google Patents

A kind of transmission method and device of warning information Download PDF

Info

Publication number
CN109362042A
CN109362042A CN201811161417.0A CN201811161417A CN109362042A CN 109362042 A CN109362042 A CN 109362042A CN 201811161417 A CN201811161417 A CN 201811161417A CN 109362042 A CN109362042 A CN 109362042A
Authority
CN
China
Prior art keywords
warning information
preferential
sent
common
alarm
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.)
Pending
Application number
CN201811161417.0A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811161417.0A priority Critical patent/CN109362042A/en
Publication of CN109362042A publication Critical patent/CN109362042A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • H04L41/0604Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
    • H04L41/0609Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on severity or priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

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

Abstract

The embodiment of the present invention provides the transmission method and device of a kind of warning information, is related to field of data transmission, is able to ascend O&M efficiency.This method comprises: obtaining warning information, and warning information is divided by common warning information and preferential warning information according to the classification of warning information;Preferential warning information is sent to Short Message Service Gateway in real time, so that the first alarm message is sent to the corresponding O&M terminal of receiving number that preferential warning information includes according to after preferential warning information the first alarm message of generation by Short Message Service Gateway;The common warning information of predetermined number is sent to Short Message Service Gateway every common cycle duration, so that the second alarm message is sent to the corresponding O&M terminal of receiving number that common warning information includes according to after common warning information the second alarm message of generation by Short Message Service Gateway.

Description

A kind of transmission method and device of warning information
Technical field
The present invention relates to field of data transmission more particularly to the transmission methods and device of a kind of warning information.
Background technique
Currently, Short Message Service Gateway will be sent to by Kafka for the warning information that operators communication system generates, so that Warning information is sent to operation maintenance personnel by Short Message Service Gateway.Warning information can be fabricated to a queue, all alarm letters by Kafka Breath is lined up in Kafka queue, and Kafka can enter the time order and function in Kafka queue according to warning information, by all Kafka All warning information sequences in queue are sent to Short Message Service Gateway.But such transmission sequence has the following problems: practical In some alarms extremely serious (such as database can not identify, system hardware delay machine etc. influences the failure pair of system normal use The warning information answered), it needs to handle at the first time, if this kind of serious warning information is lined up in Kafka queue, it is necessary to The long time is waited, causes the processing of catastrophe failure not prompt enough.
Summary of the invention
The embodiment of the present invention provides the transmission method and device of a kind of warning information, enables to severity higher Preferential warning information priority processing, promotes O&M efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of transmission method of warning information, comprising:
Warning information is obtained, and warning information is divided by common warning information and preferential alarm according to the classification of warning information Information;
Preferential warning information is sent to Short Message Service Gateway in real time, so that Short Message Service Gateway generates first according to preferential warning information The first alarm message is sent to the corresponding O&M terminal of receiving number that preferential warning information includes after alarm message;
The common warning information of predetermined number is sent to Short Message Service Gateway every common cycle duration, so that Short Message Service Gateway root The second alarm message is sent to the collection of letters number that common warning information includes according to after common warning information the second alarm message of generation The corresponding O&M terminal of code.
Technical solution provided by the above embodiment, by the way that warning information is divided into preferential announcement according to its classification, that is, severity Alert information and common warning information, preferential warning information higher to severity are sent to Short Message Service Gateway processing in real time, seriously The not high common warning information of degree is periodically sent to Short Message Service Gateway, hereby it is ensured that preferential warning information can more in time Feed back to operation maintenance personnel, promote O&M efficiency.
Optionally, preferential warning information is sent to Short Message Service Gateway in real time includes:
Preferential warning information is sent to preferential alarm queue to be lined up;
The preferential warning information in preferential alarm queue is sent to Short Message Service Gateway in real time using push mode, so that short message First alarm message is sent to preferential warning information and includes by gateway after generating the first alarm message according to preferential warning information The corresponding O&M terminal of receiving number.
Optionally, the common warning information of predetermined number is sent to Short Message Service Gateway every common cycle duration includes:
Common warning information is sent to common alarm queue to be lined up;
The common warning information of predetermined number that will commonly be alerted in queue using pull mode every common cycle duration It is sent to Short Message Service Gateway, so that Short Message Service Gateway sends out the second alarm message according to after common warning information the second alarm message of generation Give the corresponding O&M terminal of receiving number that common warning information includes.
Optionally, it is also wrapped before the common warning information of predetermined number is sent to Short Message Service Gateway by common cycle duration It includes:
Obtain the queue length of preferential alarm queue;
Whether the queue length of the preferential alarm queue of judgement is greater than preset value;
When the queue length for determining preferential alarm queue is less than or equal to preset value, first is set by common cycle duration Preset duration;
When the queue length for determining preferential alarm queue is greater than preset value, first is set by common cycle duration and is preset The sum of duration and the second preset duration;
Second preset duration is to be calculated according to the queue length of preferential alarm queue according to preset formula.
Illustratively, preset formula are as follows:
Wherein, s is the second preset duration, and count is the queue length of the preferential alarm queue.
Second aspect provides a kind of transmitting device of warning information, comprising: obtains module, categorization module and sending module;
Module is obtained, for obtaining warning information;
Categorization module, for warning information to be divided into common alarm letter according to the classification for obtaining the warning information that module obtains Breath and preferential warning information;
Sending module, the preferential warning information for determining categorization module is sent to Short Message Service Gateway in real time, so that short message After gateway generates the first alarm message according to the preferential warning information that sending module is sent, the first alarm message is sent to preferentially The corresponding O&M terminal of the receiving number that warning information includes;
Sending module is also used to the common warning information for determining predetermined number categorization module every common cycle duration It is sent to Short Message Service Gateway, so that after Short Message Service Gateway generates the second alarm message according to the common warning information that sending module is sent, Second alarm message is sent to the corresponding O&M terminal of receiving number that common warning information includes.
Optionally, sending module is specifically used for:
The preferential warning information that categorization module determines is sent to preferential alarm queue to be lined up;
The preferential warning information in preferential alarm queue is sent to Short Message Service Gateway in real time using push mode, so that short message After gateway generates the first alarm message according to the preferential warning information that sending module is sent, the first alarm message is sent to preferentially The corresponding O&M terminal of the receiving number that warning information includes.
Optionally, sending module is specifically used for:
The common warning information that categorization module determines is sent to common alarm queue to be lined up;
The common warning information of predetermined number that will commonly be alerted in queue using pull mode every common cycle duration It is sent to Short Message Service Gateway, so that after Short Message Service Gateway generates the second alarm message according to the common warning information that sending module is sent, Second alarm message is sent to the corresponding O&M terminal of receiving number that common warning information includes.
Optionally, which further includes control module, and control module includes acquiring unit and processing unit;
Acquiring unit, for obtaining the number of preferential warning information in preferential alarm queue;
Whether processing unit, the number for judging preferential warning information in preferential alarm queue that acquiring unit obtains are big In preset value;
It, will when processing unit determines the queue length for the preferential alarm queue that acquiring unit obtains less than or equal to preset value Common cycle duration is set as the first preset duration;
When processing unit determines the queue length for the preferential alarm queue that acquiring unit obtains greater than preset value, being used for will Common cycle duration is set as the sum of the first preset duration and the second preset duration;
Second preset duration is preferential warning information in preferential alarm queue that processing unit is obtained according to acquiring unit Number is calculated according to preset formula.
The third aspect provides a kind of transmitting device of warning information, including memory, processor, bus and communication interface; For storing computer executed instructions, processor is connect with memory by bus memory;When the transmitting device of warning information When operation, processor executes the computer executed instructions of memory storage, so that the transmitting device of warning information executes such as first The transmission method for the warning information that aspect provides.
Fourth aspect provides a kind of computer storage medium, and computer storage medium includes computer executed instructions, works as meter Calculation machine executes instruction when running on computers, so that computer executes the transmission side of the warning information provided such as first aspect Method.
The transmission method and device of warning information provided in an embodiment of the present invention, this method comprises: warning information is obtained, and Warning information is divided into common warning information and preferential warning information according to the classification of warning information;Preferential warning information is real-time It is sent to Short Message Service Gateway, so that Short Message Service Gateway sends out the first alarm message according to after preferential warning information the first alarm message of generation Give the corresponding O&M terminal of receiving number that preferential warning information includes;It is every common cycle duration that predetermined number is common Warning information is sent to Short Message Service Gateway, so that Short Message Service Gateway is accused according to after common warning information the second alarm message of generation by second Alert short message is sent to the corresponding O&M terminal of receiving number that common warning information includes.Technical side provided in an embodiment of the present invention Case, by the way that warning information is divided into preferential warning information and common warning information according to its classification, that is, severity, to serious journey It spends higher preferential warning information and is sent to Short Message Service Gateway processing in real time, the not high common warning information of severity is periodic It is sent to Short Message Service Gateway, hereby it is ensured that preferential warning information can more timely feed back to operation maintenance personnel, promotes O&M efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of transmission method flow diagram of warning information provided in an embodiment of the present invention;
Fig. 2 is the transmission method flow diagram of another warning information provided in an embodiment of the present invention;
Fig. 3 is a kind of transmitting device structural schematic diagram of warning information provided in an embodiment of the present invention;
Fig. 4 is the transmitting device structural schematic diagram of another warning information provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
It should also be noted that, in the embodiment of the present invention, " (English: of) ", " corresponding (English: Corresponding, relevant) " it sometimes can be mixed with " corresponding (English: corresponding) ", it should be pointed out that It is that, when not emphasizing its difference, meaning to be expressed is consistent.
For the ease of clearly describing the technical solution of the embodiment of the present invention, in an embodiment of the present invention, use " the One ", the printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item, and those skilled in the art can To understand that the printed words such as " first ", " second " are not to be defined to quantity and execution order.
In the prior art, for the processing of warning information, usually by all warning information according to received time sequencing Be sent to Short Message Service Gateway so that it is sent to operation maintenance personnel, but so, some higher warning information of severity (such as the unavailable corresponding warning information of database) will likely need the long period that could be known by operation maintenance personnel, this will make Can not timely it resume work at the corresponding system of warning information.
In view of the above-mentioned problems, the embodiment of the present invention provides a kind of transmission method of warning information shown in referring to Fig.1, comprising:
101, warning information is obtained.
Specifically, warning information by the arbitrary equipment of its correspondence system alarm module or Alarm Unit generate and it is defeated Out, a system can generate an alarm simultaneously or generate multiple alarms simultaneously.
102, warning information is divided by common warning information and preferential warning information according to the classification of warning information.
Illustratively, the classification of warning information can be divided into alarm that influence system uses according to severity and (such as count Unavailable according to library, load balancer can not work) and do not influence alarm that system uses (such as interface calling rate change etc.), The alarm that influence system uses is that the high alarm of severity needs to handle as early as possible, needs to be divided into preferential warning information; The alarm that system uses is not influenced then less seriously only to need to be lined up processing, needs to be divided into common warning information.
103, preferential warning information is sent to Short Message Service Gateway in real time, so that Short Message Service Gateway is generated according to preferential warning information The first alarm message is sent to the corresponding O&M terminal of receiving number that preferential warning information includes after first alarm message.
Specifically, the preferential warning information number sent each time can be when sending preferential warning information in real time here One be also possible to it is multiple.
Optionally, warning information is needed to be firstly placed in a queue and then be extracted from queue again excellent when sending in practice First warning information is sent to Short Message Service Gateway, so 103 steps specifically include referring to shown in Fig. 2:
1031, preferential warning information preferential alarm queue is sent to be lined up.
Illustratively, preferential alarm queue here can be kafka queue.
1032, the preferential warning information in preferential alarm queue is sent to Short Message Service Gateway in real time using push mode, with Make Short Message Service Gateway that the first alarm message are sent to preferential warning information according to after preferential warning information the first alarm message of generation The corresponding O&M terminal of the receiving number for including.
104, the common warning information of predetermined number is sent to Short Message Service Gateway every common cycle duration, so that short message net It closes and the second alarm message is sent to the receipts that common warning information includes according to after common warning information the second alarm message of generation The corresponding O&M terminal of signal code.
Optionally, warning information is needed to be firstly placed in a queue and then be extracted from queue again excellent when sending in practice First warning information is sent to Short Message Service Gateway;In addition, because although preferential warning information is that real-time transmission is still preferential in the presence of sending The efficiency of warning information does not obtain the high-efficient of preferential warning information, will cause in preferential alarm queue that there is also many preferential The case where warning information, the faster processed purpose of preferential warning information being just unable to reach in preferential alarm queue in this way, institute It needs to be sized according to the length of preferential alarm queue to need exist for common cycle duration, so that letter ought be alerted preferentially When ceasing very much, extend after the preferential warning information that common cycle duration preferentially to alert in queue first sent as far as possible, then it is right Common warning information in common alarm queue is sent;So 104 steps specifically include referring to shown in Fig. 2:
1041, common warning information common alarm queue is sent to be lined up.
Illustratively, commonly alarm queue is kafka queue.
1042, the queue length of preferential alarm queue is obtained.
Illustratively, larger to the consumption of computer resource because obtaining preferential alarm queue length in real time, and repeatedly The uninterrupted program for reading the program alarm queue length more preferential than periodic reading that preferential alarm queue length is related to and being related to Complexity, so generally periodically (it is short to compare common cycle duration, can be as real-time) using Python script in practice will be excellent The length for first alerting queue is stored in Redis, then periodical (timing length of cycle duration ratio Python script is long, But it is still very short compared to common cycle duration) slave Redis in read the length of preferential alarm queue.
1043, whether the queue length of the preferential alarm queue of judgement is greater than preset value.
Illustratively, preset value 0;
When the queue length for determining preferential alarm queue is greater than preset value, 1045 are executed;Queue is preferentially alerted when determining Queue length be less than or equal to preset value when, execute 1044.
1044, the first preset duration is set by common cycle duration.
1045, common cycle duration is set to the sum of the first preset duration and the second preset duration.
Optionally, the second preset duration is to be calculated according to the queue length of preferential alarm queue according to preset formula, Preset formula are as follows:
Wherein, s is the second preset duration, and count is the queue length of the preferential alarm queue.
1046, the predetermined number in common alarm queue is commonly alerted every common cycle duration using pull mode Information is sent to Short Message Service Gateway, so that Short Message Service Gateway is according to short by the second alarm after common warning information the second alarm message of generation Letter is sent to the corresponding O&M terminal of receiving number that common warning information includes.
The transmission method of warning information provided in an embodiment of the present invention, this method comprises: obtaining warning information, and according to announcement Warning information is divided into common warning information and preferential warning information by the classification of alert information;Preferential warning information is sent in real time Short Message Service Gateway, so that Short Message Service Gateway is excellent according to the first alarm message is sent to after preferential warning information the first alarm message of generation The corresponding O&M terminal of the receiving number that first warning information includes;The common alarm of predetermined number is believed every common cycle duration Breath is sent to Short Message Service Gateway, so that Short Message Service Gateway generates after the second alarm message according to common warning information by the second alarm message It is sent to the corresponding O&M terminal of receiving number that common warning information includes.Technical solution provided in an embodiment of the present invention is led to It crosses and warning information is divided into preferential warning information and common warning information according to its classification i.e. severity, it is higher to severity Preferential warning information be sent to Short Message Service Gateway processing in real time, the not high common warning information of severity is periodically sent to Short Message Service Gateway promotes O&M efficiency hereby it is ensured that preferential warning information can more timely feed back to operation maintenance personnel.
For the transmission method of the warning information provided in better implementation above-described embodiment, referring to shown in Fig. 3, the present invention Embodiment also provides a kind of transmitting device 01 of warning information, comprising: obtains module 31, categorization module 32 and sending module 33;
Module 31 is obtained, for obtaining warning information;
Categorization module 32, for warning information to be divided into common announcement according to the classification for obtaining the warning information that module 31 obtains Alert information and preferential warning information;
Sending module 33, the preferential warning information for determining categorization module 32 are sent to Short Message Service Gateway 02 in real time, with After so that Short Message Service Gateway 02 is generated the first alarm message according to the preferential warning information that sending module 33 is sent, by the first alarm message It is sent to the corresponding O&M terminal of receiving number that preferential warning information includes;
Sending module 33 is also used to the common alarm for determining predetermined number categorization module 32 every common cycle duration Information is sent to Short Message Service Gateway 02, accuses so that Short Message Service Gateway 02 generates second according to the common warning information that sending module 33 is sent After alert short message, the second alarm message is sent to the corresponding O&M terminal of receiving number that common warning information includes.
Optionally, sending module 33 is specifically used for:
The preferential warning information that categorization module 32 determines is sent to preferential alarm queue to be lined up;
The preferential warning information in preferential alarm queue is sent to Short Message Service Gateway 02 in real time using push mode, so that short After letter gateway 02 generates the first alarm message according to the preferential warning information that sending module 33 is sent, the first alarm message is sent The corresponding O&M terminal of receiving number for including to preferential warning information.
Optionally, sending module 33 is specifically used for:
The common warning information that categorization module 32 determines is sent to common alarm queue to be lined up;
The common warning information of predetermined number that will commonly be alerted in queue using pull mode every common cycle duration It is sent to Short Message Service Gateway 02, so that Short Message Service Gateway 02 is short according to the second alarm of common warning information generation that sending module 33 is sent After letter, the second alarm message is sent to the corresponding O&M terminal of receiving number that common warning information includes.
Optionally, which further includes control module 34, and control module 34 includes acquiring unit 341 and processing unit 342;
Acquiring unit 341, for obtaining the number of preferential warning information in preferential alarm queue;
Processing unit 342, for judging it is pre- whether the queue length of preferential alarm queue of the acquisition of acquiring unit 341 is greater than If value;
When processing unit 342 determines that the queue length for the preferential alarm queue that acquiring unit 341 obtains is less than or equal to preset When value, the first preset duration is set by common cycle duration;
When processing unit 342 determines the queue length for the preferential alarm queue that acquiring unit 341 obtains greater than preset value, For setting common cycle duration to the sum of the first preset duration and the second preset duration;
It is preferentially alerted in the preferential alarm queue that second preset duration obtains for processing unit 342 according to acquiring unit 341 The number of information is calculated according to preset formula.
The transmitting device of warning information provided in an embodiment of the present invention, because the device includes: acquisition module, for obtaining Warning information;Categorization module, for warning information to be divided into common alarm according to the classification for obtaining the warning information that module obtains Information and preferential warning information;Sending module, the preferential warning information for determining categorization module are sent to short message net in real time It closes, so that after Short Message Service Gateway generates the first alarm message according to the preferential warning information that sending module is sent, the first alarm is short Letter is sent to the corresponding O&M terminal of receiving number that preferential warning information includes;Sending module was also used to when the common period The long common warning information for determining predetermined number categorization module is sent to Short Message Service Gateway, so that Short Message Service Gateway is according to transmission mould After the common warning information that block is sent generates the second alarm message, the second alarm message, which is sent to common warning information, includes The corresponding O&M terminal of receiving number.So technical solution provided in an embodiment of the present invention is when transmitting warning information, It can be by the way that warning information be divided into preferential warning information and common warning information according to its classification, that is, severity, to serious journey It spends higher preferential warning information and is sent to Short Message Service Gateway processing in real time, the not high common warning information of severity is periodic It is sent to Short Message Service Gateway, hereby it is ensured that preferential warning information can more timely feed back to operation maintenance personnel, promotes O&M efficiency.
Referring to shown in Fig. 4, the embodiment of the present invention also provides the transmitting device of another kind warning information, including memory 41, Processor 42, bus 43 and communication interface 44;Memory 41 is for storing computer executed instructions, processor 42 and memory 41 It is connected by bus 43;When the operation of the transmitting device of warning information, processor 42 executes the computer that memory 41 stores and holds Row instruction, so that the transmitting device of warning information executes the transmission method such as warning information provided by the above embodiment.
In concrete implementation, as one embodiment, processor 42 (42-1 and 42-2) may include one or more CPU, such as CPU0 and CPU1 shown in Fig. 4.And as one embodiment, the transmitting device of warning information may include multiple Processor 42, such as processor 42-1 and processor 42-2 shown in Fig. 4.Each of these processors 42 CPU can be with It is a single core processor (Single-CPU), is also possible to a multi-core processor (Multi-CPU).Here processor 42 It can refer to one or more equipment, circuit, and/or the processing core for handling data (such as computer program instructions).
Memory 41 can be read-only memory 41 (Read-Only Memory, ROM) or can store static information and refer to The other kinds of static storage device enabled, random access memory (Random Access Memory, RAM) or can store The other kinds of dynamic memory of information and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, light Dish, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carry or Store have instruction or data structure form desired program code and can by any other medium of computer access, but It is without being limited thereto.Memory 41, which can be, to be individually present, and is connected by communication bus 43 with processor 42.Memory 41 can also be with It is integrated with processor 42.
In concrete implementation, memory 41, for storing the data in the application and executing the software program of the application Corresponding computer executed instructions.Processor 42 can by running or executing the software program being stored in memory 41, with And the data being stored in memory 41 are called, execute the various functions of the transmitting device of warning information.
Communication interface 44 is used for and other equipment or communication, such as control using the device of any transceiver one kind System processed, wireless access network (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..Communication interface 44 may include that receiving unit realizes that receive capabilities and transmission unit realize transmission Function.
It is total to can be industry standard architecture (Industry Standard Architecture, ISA) for bus 43 Line, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension Industry Standard Architecture Structure (Extended Industry Standard Architecture, EISA) bus etc..The bus 43 can be divided into address Bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 4, it is not intended that only one convenient for indicating Bus or a type of bus.
The embodiment of the present invention also provides a kind of computer storage medium, and computer storage medium includes that computer execution refers to It enables, when computer executed instructions are run on computers, so that computer executes such as warning information provided by the above embodiment Transmission method.
The embodiment of the present invention also provides a kind of computer program, which can be loaded directly into memory, and Containing software code, which is loaded into via computer and can be realized the transmission side of above-mentioned warning information after executing Method.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described in the invention It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted. Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another Any medium of one place transmission computer program.Storage medium can be general or specialized computer can access it is any Usable medium.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete All or part of function described above.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It may be combined or can be integrated into another device, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.Unit can be or can also as illustrated by the separation member Not to be physically separated, component shown as a unit can be a physical unit or multiple physical units, it can It is in one place, or may be distributed over multiple and different places.Can select according to the actual needs part therein or Person's whole unit achieves the purpose of the solution of this embodiment.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.If integrated unit with The form of SFU software functional unit is realized and when sold or used as an independent product, can store and storage Jie can be read at one In matter.Based on this understanding, the portion that the technical solution of the embodiment of the present application substantially in other words contributes to the prior art Divide or all or part of the technical solution can be embodied in the form of software products, which is stored in one In storage medium, including some instructions are used so that an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) it performs all or part of the steps of the method described in the various embodiments of the present invention.And storage medium above-mentioned includes: The various media that can store program code such as USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (11)

1. a kind of transmission method of warning information characterized by comprising
It obtains warning information, and the warning information is divided by common warning information and preferential according to the classification of the warning information Warning information;
The preferential warning information is sent to Short Message Service Gateway in real time, so that the Short Message Service Gateway is according to the preferential warning information Generate after the first alarm message that first alarm message is sent to the receiving number that the preferential warning information includes is corresponding O&M terminal;
The predetermined number common warning information is sent to the Short Message Service Gateway every common cycle duration, so that described short Letter gateway is described common according to second alarm message is sent to after the second alarm message of the common warning information generation The corresponding O&M terminal of the receiving number that warning information includes.
2. the transmission method of warning information according to claim 1, which is characterized in that described by the preferential warning information Being sent to Short Message Service Gateway in real time includes:
The preferential warning information is sent to preferential alarm queue to be lined up;
The preferential warning information in the preferential alarm queue is sent to Short Message Service Gateway in real time using promotion push mode, so that First alarm message is sent to institute according to after the first alarm message of the preferential warning information generation by the Short Message Service Gateway State the corresponding O&M terminal of receiving number that preferential warning information includes.
3. the transmission method of warning information according to claim 1, which is characterized in that described to be incited somebody to action every common cycle duration The predetermined number common warning information is sent to the Short Message Service Gateway and includes:
The common warning information is sent to common alarm queue to be lined up;
It is every the common cycle duration that the predetermined number in the common alarm queue is common using pulling pull mode Warning information is sent to the Short Message Service Gateway, so that the Short Message Service Gateway is short according to common second alarm of warning information generation Second alarm message is sent to the corresponding O&M terminal of receiving number that the common warning information includes after letter.
4. the transmission method of warning information according to claim 2, which is characterized in that described to be incited somebody to action every common cycle duration The predetermined number common warning information is sent to before the Short Message Service Gateway further include:
Obtain the queue length of the preferential alarm queue;
Judge whether the queue length of the preferential alarm queue is greater than preset value;
When the queue length for determining the preferential alarm queue is less than or equal to preset value, set the common cycle duration to First preset duration;
When the queue length for determining the preferential alarm queue is greater than the preset value, set the common cycle duration to The sum of first preset duration and the second preset duration;
Second preset duration is to be calculated according to the queue length of the preferential alarm queue according to preset formula.
5. the transmission method of warning information according to claim 2, which is characterized in that the preset formula are as follows:
Wherein, s is the second preset duration, and count is the queue length of the preferential alarm queue.
6. a kind of transmitting device of warning information characterized by comprising obtain module, categorization module and sending module;
The acquisition module, for obtaining warning information;
The classification of the categorization module, the warning information for being obtained according to the acquisition module divides the warning information For common warning information and preferential warning information;
The sending module, the preferential warning information for determining the categorization module are sent to Short Message Service Gateway in real time, So that after the Short Message Service Gateway generates the first alarm message according to the preferential warning information that the sending module is sent, by institute It states the first alarm message and is sent to the corresponding O&M terminal of receiving number that the preferential warning information includes;
The sending module is also used to determine the predetermined number categorization module every common cycle duration described common Warning information is sent to the Short Message Service Gateway, so that the common alarm that the Short Message Service Gateway is sent according to the sending module After information generates the second alarm message, second alarm message is sent to the receiving number that the common warning information includes Corresponding O&M terminal.
7. the transmitting device of warning information according to claim 6, which is characterized in that the sending module is specifically used for:
The preferential warning information that the categorization module determines is sent to preferential alarm queue to be lined up;
The preferential warning information in the preferential alarm queue is sent to Short Message Service Gateway in real time using push mode, so that described After Short Message Service Gateway generates the first alarm message according to the preferential warning information that the sending module is sent, described first is accused Alert short message is sent to the corresponding O&M terminal of receiving number that the preferential warning information includes.
8. the transmitting device of warning information according to claim 6, which is characterized in that the sending module is specifically used for:
The common warning information that the categorization module determines is sent to common alarm queue to be lined up;
The predetermined number in the common alarm queue is commonly alerted every the common cycle duration using pull mode Information is sent to the Short Message Service Gateway, so that the common warning information that the Short Message Service Gateway is sent according to the sending module After generating the second alarm message, it is corresponding that second alarm message is sent to the receiving number that the common warning information includes O&M terminal.
9. the transmitting device of warning information according to claim 7, which is characterized in that it further include control module, the control Molding block includes acquiring unit and processing unit;
The acquiring unit, for obtaining the queue length of the preferential alarm queue;
The processing unit, for judging whether the preferential queue length for alerting queue that the acquiring unit obtains is greater than Preset value;
When the processing unit determines that the queue length for the preferential alarm queue that the acquiring unit obtains is less than or equal in advance If setting the first preset duration for the common cycle duration when value;
When the processing unit determines the queue length for the preferential alarm queue that the acquiring unit obtains greater than described pre- If when value, for setting the common cycle duration to the sum of first preset duration and the second preset duration;
Second preset duration is the team for the preferential alarm queue that the processing unit is obtained according to the acquiring unit Column length is calculated according to preset formula.
10. a kind of transmitting device of warning information, which is characterized in that including memory, processor, bus and communication interface;Institute Memory is stated for storing computer executed instructions, the processor is connect with the memory by the bus;When described When the transmitting device operation of warning information, the processor executes the computer executed instructions of the memory storage, with The transmitting device of the warning information is set to execute the transmission method of warning information as described in any one in claim 1-5.
11. a kind of computer storage medium, which is characterized in that the computer storage medium includes computer executed instructions, when When the computer executed instructions are run on computers, so that the computer is executed as described in claim any one of 1-5 Warning information transmission method.
CN201811161417.0A 2018-09-30 2018-09-30 A kind of transmission method and device of warning information Pending CN109362042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161417.0A CN109362042A (en) 2018-09-30 2018-09-30 A kind of transmission method and device of warning information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161417.0A CN109362042A (en) 2018-09-30 2018-09-30 A kind of transmission method and device of warning information

Publications (1)

Publication Number Publication Date
CN109362042A true CN109362042A (en) 2019-02-19

Family

ID=65348674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161417.0A Pending CN109362042A (en) 2018-09-30 2018-09-30 A kind of transmission method and device of warning information

Country Status (1)

Country Link
CN (1) CN109362042A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166288A (en) * 2019-05-10 2019-08-23 北京市天元网络技术股份有限公司 A kind of alarm biography reporting method and equipment based on Kafka stream process
CN112866933A (en) * 2021-03-18 2021-05-28 厦门科灿信息技术有限公司 Method, device and terminal for controlling sending of alarm short message
CN116170279A (en) * 2023-02-14 2023-05-26 许昌许继软件技术有限公司 Unified alarm method and system for digital substation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324968A (en) * 2011-06-30 2012-01-18 中兴通讯股份有限公司 Alarm management method and device of passive optical network terminal equipment
CN102480374A (en) * 2010-11-25 2012-05-30 中兴通讯股份有限公司 Method and equipment for alarming information processing report
US20130138650A1 (en) * 2010-12-13 2013-05-30 Mitsubishi Electric Corporation Alarm monitoring device and alarm monitoring method
CN103684880A (en) * 2013-12-31 2014-03-26 上海斐讯数据通信技术有限公司 Alarming control method and alarming device
CN104980304A (en) * 2015-06-15 2015-10-14 上海斐讯数据通信技术有限公司 Alarm control method and alarm control system applied to network system
CN106301919A (en) * 2016-08-17 2017-01-04 浪潮电子信息产业股份有限公司 Alarm system of privatized cloud platform and implementation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480374A (en) * 2010-11-25 2012-05-30 中兴通讯股份有限公司 Method and equipment for alarming information processing report
US20130138650A1 (en) * 2010-12-13 2013-05-30 Mitsubishi Electric Corporation Alarm monitoring device and alarm monitoring method
CN102324968A (en) * 2011-06-30 2012-01-18 中兴通讯股份有限公司 Alarm management method and device of passive optical network terminal equipment
CN103684880A (en) * 2013-12-31 2014-03-26 上海斐讯数据通信技术有限公司 Alarming control method and alarming device
CN104980304A (en) * 2015-06-15 2015-10-14 上海斐讯数据通信技术有限公司 Alarm control method and alarm control system applied to network system
CN106301919A (en) * 2016-08-17 2017-01-04 浪潮电子信息产业股份有限公司 Alarm system of privatized cloud platform and implementation method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166288A (en) * 2019-05-10 2019-08-23 北京市天元网络技术股份有限公司 A kind of alarm biography reporting method and equipment based on Kafka stream process
CN112866933A (en) * 2021-03-18 2021-05-28 厦门科灿信息技术有限公司 Method, device and terminal for controlling sending of alarm short message
CN112866933B (en) * 2021-03-18 2022-10-14 厦门科灿信息技术有限公司 Method, device and terminal for controlling sending of alarm short message
CN116170279A (en) * 2023-02-14 2023-05-26 许昌许继软件技术有限公司 Unified alarm method and system for digital substation system

Similar Documents

Publication Publication Date Title
CN109362042A (en) A kind of transmission method and device of warning information
US10343630B2 (en) Monitoring method and apparatus
CN112965874B (en) Configurable monitoring alarm method and system
CN104410512A (en) Resource monitoring alarm framework suitable for cloud computation and method thereof
CN110806960B (en) Information processing method and device and terminal equipment
CN104408892B (en) Safety-protection system and emergency system and dispensing device and reception device and method
CN112346931A (en) Raspberry pie-based private network service cluster monitoring alarm system, method and medium
CN108875857B (en) Inspection method, device and system
CN110650243B (en) Alarm method, alarm device, storage medium and terminal
CN109324897A (en) Data uploading method and system, terminal and computer readable storage medium
CN108875978A (en) Managing security tools and instruments online management method, system and terminal device
CN110262917A (en) Host self-healing method, device, computer equipment and storage medium
CN109656783A (en) System platform monitoring method and device
CN109389306A (en) A kind of synchronous method and device of user's order
CN109787884A (en) A kind of information push method and device
CN105471938B (en) Server load management method and device
CN106570011B (en) Distributed crawler URL seed distribution method, scheduling node and capturing node
CN111181837A (en) Method and device for sending alarm information
CN109165147A (en) Log print control program, device, system, back-end server and headend equipment
CN109697166A (en) A kind of test data preparation method and relevant apparatus
CN111177415A (en) Big data and knowledge graph based live pig breeding prediction method and system
CN114513334B (en) Risk management method and risk management device
CN115334001A (en) Data resource scheduling method and device based on priority relation
CN113110970B (en) Method, device, equipment and medium for monitoring all parts in server working mode
CN111211938B (en) Biological information software monitoring system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190219