CN109684180A - Method and apparatus for output information - Google Patents

Method and apparatus for output information Download PDF

Info

Publication number
CN109684180A
CN109684180A CN201811591147.7A CN201811591147A CN109684180A CN 109684180 A CN109684180 A CN 109684180A CN 201811591147 A CN201811591147 A CN 201811591147A CN 109684180 A CN109684180 A CN 109684180A
Authority
CN
China
Prior art keywords
data
alarm
tested
target alarms
converted
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
CN201811591147.7A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811591147.7A priority Critical patent/CN109684180A/en
Publication of CN109684180A publication Critical patent/CN109684180A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3096Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Alarm Systems (AREA)

Abstract

Embodiment of the disclosure discloses the method and apparatus for output information.One specific embodiment of this method includes: that data to be tested are converted into the data of predetermined format in response to receiving data to be tested;Obtain preset alarming assignment information aggregate, wherein alarming assignment information includes alarm object relevant information, alarm destination relevant information, alarm conditions;Data based on alarming assignment information aggregate and predetermined format determine the target alarms object for meeting alarm conditions, and generate warning information based on target alarms object;It sends a warning message to the corresponding alarm destination of target alarms object.The embodiment realize warning information output it is orderly, reliable, compared with low time delay.

Description

Method and apparatus for output information
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus for output information.
Background technique
In the design of current real time data inspecting warning system, it will usually use the matched mode of simple rule, base The scheme and scheme based on the big datas processing platform such as Spark calculated in function.The mode of rule match is to the data reported It is filtered one by one, in the case where portfolio is increased sharply, the consumption rate that excessive rule match will lead to data sharply declines, Resource consumption sharply increases, and can not accomplish the flexibility of system, scalability, the isolation between function.It is calculated based on function Mode need the exploitation amount of user oneself, threshold is high, and charges for user by code line number of run, and user makes With at high cost.No visualization interface operation, management cost are high.Scheme based on the big datas processing platform such as Spark and other The shortcomings that scheme is that the operation resource consumption such as Spark is larger, and is limited to the processing speed of Spark, when warning information output Prolong higher.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for output information.
In a first aspect, embodiment of the disclosure provides a kind of method for output information, comprising: in response to receiving Data to be tested are converted into the data of predetermined format by data to be tested;Obtain preset alarming assignment information aggregate, wherein Alarming assignment information includes alarm object relevant information, alarm destination relevant information, alarm conditions;Based on alarming assignment information Set determines the target alarms object for meeting alarm conditions from the data of predetermined format, and raw based on target alarms object At warning information;It sends a warning message to the corresponding alarm destination of target alarms object.
In some embodiments, before the data that data to be tested are converted into predetermined format, method further include: treat Detection data carries out syntax check;In response to detecting that data to be tested do not meet syntax rule, data to be tested are deleted.
In some embodiments, data to be tested are converted into the data of predetermined format, comprising: carry out data to be tested Transport protocol adaptation, to be converted into the data of predetermined storage format;By the data conversion of storage format at lattice needed for streaming computing The data of formula.
In some embodiments, the data based on alarming assignment information aggregate and predetermined format are determined to meet alarm conditions Target alarms object, comprising: alarm conditions are converted into streaming computing structured query language sentence;According to streaming computing knot Structure query language statement and the data of predetermined format determine target alarms object.
In some embodiments, this method further include: in response to detecting that target alarms object no longer meets alarm conditions, It is sent to the corresponding alarm destination of target alarms object and restores normal notice.
In some embodiments, alarm conditions include at least one of the following: data exception, data exception in the predetermined time Number reaches predetermined value, and data restore normal.
Second aspect, embodiment of the disclosure provide a kind of device for output information, comprising: converting unit, quilt It is configured to receive data to be tested, data to be tested is converted into the data of predetermined format;Acquiring unit is configured At the preset alarming assignment information aggregate of acquisition, wherein alarming assignment information includes alarm object relevant information, alarm destination Relevant information, alarm conditions;Generation unit is configured to determine based on the data of alarming assignment information aggregate and predetermined format Meet the target alarms object of alarm conditions, and warning information is generated based on target alarms object;Transmission unit is configured to It sends a warning message to the corresponding alarm destination of target alarms object.
In some embodiments, which further includes detection unit, is configured to: data to be tested are being converted into making a reservation for Before the data of format, syntax check is carried out to data to be tested;In response to detecting that data to be tested do not meet syntax rule, Delete data to be tested.
In some embodiments, converting unit is further configured to: data to be tested are subjected to transport protocol adaptation, with It is converted into the data of predetermined storage format;By the data conversion of storage format at the data of format needed for streaming computing.
In some embodiments, generation unit is further configured to: alarm conditions are converted into streaming computing structuring Query language statement;Target alarms pair are determined according to the data of streaming computing structured query language sentence and predetermined format As.
In some embodiments, transmission unit is further configured to: in response to detecting that target alarms object is no longer full Sufficient alarm conditions send to the corresponding alarm destination of target alarms object and restore normal notice.
In some embodiments, alarm conditions include at least one of the following: data exception, data exception in the predetermined time Number reaches predetermined value, and data restore normal.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, comprising: one or more processors;Storage Device is stored thereon with one or more programs, when one or more programs are executed by one or more processors, so that one Or multiple processors are realized such as method any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, Wherein, it realizes when program is executed by processor such as method any in first aspect.
The method and apparatus for output information that embodiment of the disclosure provides, are believed by pre-set alarming assignment Breath carries out abnormality detection the data to be tested received, and warning information is generated when meeting alarm conditions, and is sent to alarm and appoints The destination of business configuration.So as to carry out various dimensions detection to alarm object, a variety of alarm destinations are provided.It can dynamically open Flow needed for opening/closing streaming computing resource, to reduce the whole resource consumption such as network, CPU, memory.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for output information of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for output information of the application;
Fig. 4 is the flow chart according to another embodiment of the method for output information of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for output information of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of embodiment of the disclosure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for output information of the application or the implementation of the device for output information The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101, server 102, alarm destination 103.Network To provide the medium of communication link between destination 103 in terminal device 101, server 102, alarm.Network may include Various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101 and be interacted by network with server 102, to receive or send message etc..Eventually Various telecommunication customer end applications can be installed, such as class application of testing the speed, web browser applications, shopping class in end equipment 101 Using, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101 can be hardware, be also possible to software.When terminal device 101 is hardware, can be with upper The various electronic equipments of net function, including but not limited to internet-of-things terminal, smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard sound Frequency level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard Audio level 4) player, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it Formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 102 can be to provide the server of various services, such as provide the data that terminal device 101 reports and divide Analyse the backstage alarm server of alarm.Backstage alarm server can carry out the data to be tested data received analyzing etc. Reason, and processing result (such as warning information) is sent to alarm destination 103.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software It, can also be with to be implemented as multiple softwares or software module (such as providing multiple softwares of Distributed Services or software module) It is implemented as single software or software module.It is not specifically limited herein.
Server 102 may also include adapter: the data reported for receiving terminal apparatus, carry out the suitable of different agreement Match, supports HTTP (HyperText Transfer Protocol, hypertext transfer protocol) agreement, MQTT (Message Queuing Telemetry Transport, message queue telemetering transmission) agreement, 32960 agreement of national standard etc., by data conversion The data format that can be identified for data dump system.
Server 102 may also include visual console: visualized operation is carried out for being supplied to user, including create, Editor, starting, shielding, releasing is shielded, is deleted, list is checked, creation progress is checked.
Server 102 may also include monitoring alarm management service: for docking dump service, the streaming computing service of bottom And database etc.;The dependence of dump needs is provided for dump service, caching process (when data dump, can go to read and " dynamically hold Open/close " in different grain size whether need to carry out data dump, for example can go whether reading project A has alarm regulation, if do not had Have, this message is put into caching, avoids the problem that each data report calling interface low efficiency.Announcement has been increased newly in project A Police regulations then afterwards can proactive notification dump module, by data change in caching be need will stream open).The alarming assignment of user is led to SQL (Structured Query Language, structured query language) is crossed to be mapped as streaming computing task and be scheduled. Alarm regulation is handled into the SQL statement for streaming computing, the task of the corresponding streaming computing of a SQL statement.It can manage Solution is the corresponding streaming computing job (work) of an alarm regulation.It is uniformly scheduled by streaming computing cluster.User is created The alarming assignment information built carries out database archive.
Server 102 may also include data dump system: be substantially carried out the dump of the data received.It receives from adapter The data transmitted, the data source of dump to streaming computing service support.The alarm data of streaming computing service output is received, and is adjusted With the customized alarming assignment configuration of user in monitoring alarm management service, warning information is dumped to the customized alarm of user Destination.
Server 102 may also include streaming computing service: streaming computing service is the core of entire monitoring alarm device, is born Blame the real-time processing to data, output monitoring alarm information.
Server 102 may also include database, for storing warning information.Database include but is not limited to MySql, MongoDB.This part is the database purchase to the alarm regulation of user's creation, for example user creates an alarm regulation (project id=proj, vehicle id=vin1, speed > 80, triggering are alerted immediately), it would be desirable to by such regular data It runs up in database.
About the use of data in database, the alarm regulation that user has created is carried out in the visual console of architecture diagram When list and details show, it can read the database data stored here and showed.
It includes but is not limited at least one of following for alerting destination 103: short message client, wechat client, mailing system, Kafka, MQTT example, time series database, object storage.
It should be noted that the method provided by embodiment of the disclosure for output information is generally by server 102 It executes, correspondingly, the device for output information is generally positioned in server 102.
It should be understood that the terminal device, server, the number of alarm destination in Fig. 1 are only schematical.According to reality It now needs, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for output information according to the application is shown 200.This is used for the method for output information, comprising the following steps:
Step 201, in response to receiving data to be tested, data to be tested are converted into the data of predetermined format.
In the present embodiment, can lead to for the executing subject of the method for output information (such as server shown in FIG. 1) The real-time data to be tested that wired connection mode or radio connection are reported from terminal device receiving device are crossed, can receive Character string type or other encapsulation make type by oneself, can be, but not limited to List (list) set, Map (mapping table).Data Reporting agreement includes but is not limited to HTTP, MQTT, 32960 agreement of national standard.It, can will be to be detected in order to carry out subsequent streaming computing Data dump services identifiable data source at streaming computing, including but not limited to kafka, MQTT example, time series database, right As storing example.
In some optional implementations of the present embodiment, the data that data to be tested are converted into predetermined format it Before, this method further include: syntax check is carried out to data to be tested.In response to detecting that data to be tested do not meet grammer rule Then, data to be tested are deleted.Legitimacy detection is first carried out before carrying out alarming processing, is directly abandoned if not conforming to rule, no It is further continued for subsequent processing.Also error message can be returned to terminal device.
In some optional implementations of the present embodiment, data to be tested are converted into the data of predetermined format, are wrapped It includes: data to be tested being subjected to transport protocol adaptation, to be converted into the data of predetermined storage format.The data of storage format are turned Change the data of format needed for streaming computing into.The data for carrying out validity checking and different agreement type to the data reported are suitable Match, is unified into the identifiable type of monitoring alarm service data dump system, and data are flowed into data dump system.
Step 202, preset alarming assignment information aggregate is obtained.
In the present embodiment, alarming assignment information may include alarm object relevant information, alarm destination relevant information, accuse Alert condition.User creates alarming assignment by visual console, can choose alarm object, and alarm conditions alert destination. Alarm conditions may include warning strategies and alarm regulation.Warning strategies may include at least one of following: 1, abnormal to notify immediately;2, Abnormal notice restores normal notice;3, reach setting alarm number notice in certain time window, restore normal notice (such as 5 Abnormal data reaches 3 it is determined that abnormality alarming is notified in minute, and transmission restores notice after restoring normal).One timing In reach certain alarm number notice and restore the warning strategies normally notified, time window support but be not limited to the second, minute, It, week, the moon, year.Alarm regulation includes field filter, and field includes but is not limited to the dynamic attribute of alarm object reported data, Such as speed per hour, longitude and latitude of vehicle etc..Further, include but is not limited to be greater than for the specific rules setting of alarm regulation: ">" is less than: "<" is equal to: "=" is not equal to: "<>".For example, the speed per hour that alarm conditions are vehicle is greater than 80km/h.Alert mesh Ground, including but not limited to reception warning information short message mobile terminal, receive warning information wechat client, receive accuse The mail address of alert information, kafka, MQTT example, time series database, object storage.
In some optional implementations of the present embodiment, based on the alarming assignment information aggregate and predetermined format Data determine the target alarms object for meeting alarm conditions, comprising: alarm conditions are converted into streaming computing structuralized query Language statement.Target alarms object is determined according to the data of streaming computing structured query language sentence and predetermined format.It is right Endlessly data flow is calculated in real time, and exports calculated result in real time, facilitate user to a large amount of data into Row analysis in real time.Calculating logic uses the SQL syntax of standard, without programming.The application scenarios of streaming computing are very wide, relatively more normal That sees has: counting the sliding average temperature that each equipment goes over 5 minutes, statistics website page browsing amount per minute, monitoring is set Standby offline, yield of each shift of statistical machine etc..If the sliding average temperature for detecting that some equipment is gone over 5 minutes is greater than The equipment is then determined as target alarms object by predetermined temperature threshold, and generates warning information " XX device temperature is excessively high ".
In some optional implementations of the present embodiment, alarm conditions include at least one of the following: data exception, in advance The number for interior data exception of fixing time reaches predetermined value, and data restore normal.Data exception refers to the data that streaming computing goes out Not in scheduled range.The number of data exception reaches predetermined value and refers to finding that data exception is not accused immediately in predetermined time It is alert, but be accumulated to certain number and just alert.If data are restored, alarm is notified to release, for example, detecting that speed is more than 80km/h is alerted, etc. after speeds drop to 80km/h or less, notice speed restores normal, and alarm releases.
Step 203, the data based on alarming assignment information aggregate and predetermined format determine the target for meeting alarm conditions Alarm object, and warning information is generated based on target alarms object.
In this example, it is assumed that the speed per hour that alarm conditions are vehicle is greater than 80km/h.If on the multiple vehicles received The speed per hour of certain vehicle is 90km/h in the speed per hour of report.The vehicle has then been determined into target alarms object, and has generated warning information " XX Vehicle hypervelocity ".The alarm granularity of alarm object, the static attribute for object of including but not limited to alarming, for example alarm object is vehicle, Static attribute is then fleet belonging to vehicle etc..In addition to static attribute, there are also dynamic attributes.Static dynamic is distinguished to be intended merely to Understand.Theory can be carried out monitoring to all fields that data report.Such as the geographical location of device temperature, speed, vehicle Information etc..
Step 204, it sends a warning message to the corresponding alarm destination of target alarms object.
It in the present embodiment, can be in advance each alarm object configuration alarm destination, alarm destination includes but unlimited In receive warning information short message mobile terminal number, receive warning information wechat account, receive warning information mail Address, kafka, MQTT example, time series database, object storage.Different alarm destinations can be configured for an alarm object. Identical alarm destination can also be configured for different alarm objects.For example, warning information is sent to alarm mesh by short message The corresponding target terminal in ground.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for output information of the present embodiment Figure.In the application scenarios of Fig. 3, administrator creates the alarming assignment that attribute is reported based on vehicle dynamic first, such as in fleet A Vehicle 301,302,303,304 carry out SMS alarm after speed is more than 80km/h.Secondly, alarming assignment successful operation it Afterwards, such as vehicle by the data that http protocol uploads will do it adaptation, be converted to the number that the dump system in server needs According to format.The data that vehicle 301 uploads can be with are as follows: fleet=A, vehicle id=301, speed=80km/h.What vehicle 302 uploaded Data can be with are as follows: fleet=A, vehicle id=302, speed=60km/h.The data that vehicle 303 uploads can be with are as follows: fleet=A, Vehicle id=303, speed=90km/h.The data that vehicle 304 uploads can be with are as follows: fleet=A, vehicle id=304, speed= 70km/h.Data will be alerted by dump system forwards to streaming computing service, output alarm information " hypervelocity of vehicle 303 " Information is forwarded to dump system.Dump system pulls the customized alarm destination of administrator, message is issued, in this reality In example, the terminal of the administrator is sent to by short message.
Data to be tested by being converted into the data of streaming computing service by the method provided by the above embodiment of the application Source carries out alerting service, compared to conventional based on alarm simple rule matched alarm and calculated based on function, greatly drops Low user's uses threshold, and scalability is stronger.Flexible flow control can reduce the network load of streaming computing service 75%, intermediate dump cost reduces by 70%, and alarm output time delay reduces about 5ms, and the backstage streaming computing for saving at least 2 people is appointed Business management and problem check cost.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for output information.The use In the process 400 of the method for output information, comprising the following steps:
Step 401, in response to receiving data to be tested, data to be tested are converted into the data of predetermined format.
Step 402, preset alarming assignment information aggregate is obtained.
Step 403, the data based on alarming assignment information aggregate and predetermined format determine the target for meeting alarm conditions Alarm object, and warning information is generated based on target alarms object.
Step 404, it sends a warning message to the corresponding alarm destination of target alarms object.
Step 401-404 and step 201-204 are essentially identical, therefore repeat no more.
Step 405, in response to detecting that the target alarms object no longer meets alarm conditions, to target alarms object pair The alarm destination answered, which is sent, restores normal notice.
In the present embodiment, the state of real-time detection alarm object can if alarm object no longer meets alarm conditions It is sent to the corresponding alarm destination of target alarms object and restores normal notice, that is, release alarm.
Figure 4, it is seen that the method for output information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 embody the step of being extended to alarm conditions.The scheme of the present embodiment description can introduce more as a result, Warning information tracking data can change in time, reduce problem and check cost.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for exporting letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for output information of the present embodiment includes: converting unit 501, acquiring unit 502, generation unit 503 and transmission unit 504.Wherein, converting unit 501 are configured in response to receive data to be tested, Data to be tested are converted into the data of predetermined format.Acquiring unit 502 is configured to obtain preset alarming assignment information collection It closes, wherein alarming assignment information includes alarm object relevant information, alarm destination relevant information, alarm conditions.Generation unit 503, it is configured to determine the target alarms for meeting alarm conditions based on the data of alarming assignment information aggregate and predetermined format Object, and warning information is generated based on target alarms object.Transmission unit 504 is configured to corresponding to target alarms object Alarm destination send a warning message.
In the present embodiment, for the converting unit 501 of the device of output information 500, acquiring unit 502, generation unit 503 and the specific processing of transmission unit 504 can be with reference to step 201, step 202, step 203, the step in Fig. 2 corresponding embodiment Rapid 204.
In some optional implementations of the present embodiment, device 500 further includes detection unit (not shown), is configured At: before the data that data to be tested are converted into predetermined format, syntax check is carried out to data to be tested;In response to detection Data to be tested do not meet syntax rule out, delete data to be tested.
In some optional implementations of the present embodiment, converting unit 501 is further configured to: by number to be detected According to transport protocol adaptation is carried out, to be converted into the data of predetermined storage format;By the data conversion of storage format at streaming computing The data of required format.
In some optional implementations of the present embodiment, generation unit 503 is further configured to: by alarm conditions It is converted into streaming computing structured query language sentence;According to the number of streaming computing structured query language sentence and predetermined format According to determining target alarms object.
In some optional implementations of the present embodiment, transmission unit 504 is further configured to: in response to detection Target alarms object no longer meets alarm conditions out, sends to the corresponding alarm destination of target alarms object and restores positive normal open Know.
In some optional implementations of the present embodiment, alarm conditions include at least one of the following: data exception, in advance The number for interior data exception of fixing time reaches predetermined value, and data restore normal.
Below with reference to Fig. 6, it is (as shown in Figure 1 that it illustrates the electronic equipments for being suitable for being used to realize embodiment of the disclosure Server) computer system 600 structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, should not be to this public affairs The function and use scope for the embodiment opened bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination. The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including converting unit, acquiring unit, generation unit and transmission unit.Wherein, the title of these units is not under certain conditions The restriction to the unit itself is constituted, such as converting unit is also described as " in response to receiving data to be tested, by institute State the unit that data to be tested are converted into the data of predetermined format ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: in response to receiving data to be tested, data to be tested are converted into the data of predetermined format;Preset alarm is obtained to appoint Business information aggregate, wherein alarming assignment information includes alarm object relevant information, alarm destination relevant information, alarm conditions; Data based on alarming assignment information aggregate and predetermined format determine the target alarms object for meeting alarm conditions, and are based on Target alarms object generates warning information;It sends a warning message to the corresponding alarm destination of target alarms object.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for output information, comprising:
In response to receiving data to be tested, the data to be tested are converted into the data of predetermined format;
Obtain preset alarming assignment information aggregate, wherein alarming assignment information includes alarm object relevant information, alarm purpose Ground relevant information, alarm conditions;
Data based on the alarming assignment information aggregate and the predetermined format determine the target alarms for meeting alarm conditions Object, and warning information is generated based on the target alarms object;
The warning information is sent to the corresponding alarm destination of the target alarms object.
2. according to the method described in claim 1, wherein, in the data that the data to be tested are converted into predetermined format Before, the method also includes:
Syntax check is carried out to the data to be tested;
In response to detecting that the data to be tested do not meet syntax rule, the data to be tested are deleted.
3. according to the method described in claim 1, wherein, the data that the data to be tested are converted into predetermined format, Include:
The data to be tested are subjected to transport protocol adaptation, to be converted into the data of predetermined storage format;
By the data conversion of the storage format at the data of format needed for streaming computing.
4. described to be based on the alarming assignment information aggregate and the predetermined format according to the method described in claim 1, wherein Data determine the target alarms object for meeting alarm conditions, comprising:
The alarm conditions are converted into streaming computing structured query language sentence;
Target alarms object is determined according to the data of the streaming computing structured query language sentence and the predetermined format.
5. according to the method described in claim 1, wherein, the method also includes:
In response to detecting that the target alarms object no longer meets alarm conditions, the corresponding alarm of Xiang Suoshu target alarms object Destination, which is sent, restores normal notice.
6. method described in one of -5 according to claim 1, wherein the alarm conditions include at least one of the following:
Data exception, the number of data exception reaches predetermined value in the predetermined time, and data restore normal.
7. a kind of device for output information, comprising:
Converting unit is configured in response to receive data to be tested, and the data to be tested are converted into predetermined format Data;
Acquiring unit is configured to obtain preset alarming assignment information aggregate, wherein alarming assignment information includes alarm object Relevant information, alarm destination relevant information, alarm conditions;
Generation unit is configured to determine to meet from the data of the predetermined format based on the alarming assignment information aggregate The target alarms object of alarm conditions, and warning information is generated based on the target alarms object;
Transmission unit is configured to send the warning information to the corresponding alarm destination of the target alarms object.
8. device according to claim 7, wherein described device further includes detection unit, is configured to:
It is described the data to be tested are converted into the data of predetermined format before, to the data to be tested carry out grammer inspection It looks into;
In response to detecting that the data to be tested do not meet syntax rule, the data to be tested are deleted.
9. device according to claim 7, wherein the converting unit is further configured to:
The data to be tested are subjected to transport protocol adaptation, to be converted into the data of predetermined storage format;
By the data conversion of the storage format at the data of format needed for streaming computing.
10. device according to claim 7, wherein the generation unit is further configured to:
The alarm conditions are converted into streaming computing structured query language sentence;
Target alarms object is determined according to the data of the streaming computing structured query language sentence and the predetermined format.
11. device according to claim 7, wherein the transmission unit is further configured to:
In response to detecting that the target alarms object no longer meets alarm conditions, the corresponding alarm of Xiang Suoshu target alarms object Destination, which is sent, restores normal notice.
12. the device according to one of claim 7-11, wherein the alarm conditions include at least one of the following:
Data exception, the number of data exception reaches predetermined value in the predetermined time, and data restore normal.
13. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor Now such as method as claimed in any one of claims 1 to 6.
CN201811591147.7A 2018-12-20 2018-12-20 Method and apparatus for output information Pending CN109684180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811591147.7A CN109684180A (en) 2018-12-20 2018-12-20 Method and apparatus for output information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811591147.7A CN109684180A (en) 2018-12-20 2018-12-20 Method and apparatus for output information

Publications (1)

Publication Number Publication Date
CN109684180A true CN109684180A (en) 2019-04-26

Family

ID=66189191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811591147.7A Pending CN109684180A (en) 2018-12-20 2018-12-20 Method and apparatus for output information

Country Status (1)

Country Link
CN (1) CN109684180A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247811A (en) * 2019-07-17 2019-09-17 深圳市智物联网络有限公司 A kind of alarm method and relevant apparatus of internet of things equipment
CN110365536A (en) * 2019-07-17 2019-10-22 深圳市智物联网络有限公司 A kind of the fault cues method and relevant apparatus of internet of things equipment
CN112181763A (en) * 2020-09-22 2021-01-05 中国建设银行股份有限公司 Intelligent detection alarm method and device in intelligent scheduling
CN113408893A (en) * 2021-06-18 2021-09-17 中国农业银行股份有限公司 Risk early warning method and device
CN113836151A (en) * 2020-06-23 2021-12-24 北京大数医达科技有限公司 Data processing method and device, electronic equipment and computer readable medium
CN114205647A (en) * 2021-12-02 2022-03-18 云知声智能科技股份有限公司 Alarm method and device based on video monitoring, electronic equipment and storage medium
CN115190171A (en) * 2022-06-02 2022-10-14 河北秦淮数据有限公司 Alarm data processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173997A1 (en) * 2001-03-30 2002-11-21 Cody Menard System and method for business systems transactions and infrastructure management
CN104992295A (en) * 2015-07-10 2015-10-21 贵州广思信息网络有限公司 Stream-processing-technology-storm-based on-line monitoring method of distribution production equipment
CN105183609A (en) * 2015-09-16 2015-12-23 焦点科技股份有限公司 Real-time monitoring system and method applied to software system
CN108306980A (en) * 2018-03-06 2018-07-20 北京工业大学 A kind of engineering flight support big data Log Analysis System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173997A1 (en) * 2001-03-30 2002-11-21 Cody Menard System and method for business systems transactions and infrastructure management
CN104992295A (en) * 2015-07-10 2015-10-21 贵州广思信息网络有限公司 Stream-processing-technology-storm-based on-line monitoring method of distribution production equipment
CN105183609A (en) * 2015-09-16 2015-12-23 焦点科技股份有限公司 Real-time monitoring system and method applied to software system
CN108306980A (en) * 2018-03-06 2018-07-20 北京工业大学 A kind of engineering flight support big data Log Analysis System

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247811A (en) * 2019-07-17 2019-09-17 深圳市智物联网络有限公司 A kind of alarm method and relevant apparatus of internet of things equipment
CN110365536A (en) * 2019-07-17 2019-10-22 深圳市智物联网络有限公司 A kind of the fault cues method and relevant apparatus of internet of things equipment
CN113836151A (en) * 2020-06-23 2021-12-24 北京大数医达科技有限公司 Data processing method and device, electronic equipment and computer readable medium
CN113836151B (en) * 2020-06-23 2024-04-23 北京大数医达科技有限公司 Data processing method, device, electronic equipment and computer readable medium
CN112181763A (en) * 2020-09-22 2021-01-05 中国建设银行股份有限公司 Intelligent detection alarm method and device in intelligent scheduling
CN113408893A (en) * 2021-06-18 2021-09-17 中国农业银行股份有限公司 Risk early warning method and device
CN114205647A (en) * 2021-12-02 2022-03-18 云知声智能科技股份有限公司 Alarm method and device based on video monitoring, electronic equipment and storage medium
CN115190171A (en) * 2022-06-02 2022-10-14 河北秦淮数据有限公司 Alarm data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109684180A (en) Method and apparatus for output information
CN111290763B (en) Event stream processing cluster manager
CN109831478A (en) Rule-based and model distributed processing intelligent decision system and method in real time
US20060265397A1 (en) Methods, systems, and computer program products for extensible, profile-and context-based information correlation, routing and distribution
CN107566163A (en) A kind of alarm method and device of user behavior analysis association
US11411871B2 (en) Augmenting functionality in distributed systems with payload headers
CN110908967B (en) Method, device, equipment and computer readable medium for storing log
CN113269547B (en) Data processing method, device, electronic equipment and storage medium
CN110427304A (en) O&amp;M method, apparatus, electronic equipment and medium for banking system
CN110019087A (en) Data processing method and its system
CN110532322A (en) O&amp;M exchange method, system, computer readable storage medium and equipment
CN108520056A (en) Business datum monitoring method and device, system, readable medium and electronic equipment
CN110390441A (en) With energy prediction technique and device
CN109639791A (en) Cloud workflow schedule method and system under a kind of container environment
CN113342619A (en) Log monitoring method and system, electronic device and readable medium
CN116881097B (en) User terminal alarm method, device, electronic equipment and computer readable medium
CN116187716B (en) Agricultural equipment scheduling method, apparatus, electronic equipment and computer readable medium
CN118233483A (en) Linkage method based on rail transit, electronic equipment and storage medium
CN109088793A (en) Method and apparatus for detecting network failure
KR102013149B1 (en) Method for collecting and managing of data and system for executint the method
CN112948341B (en) Method and apparatus for identifying anomalous network device logs
CN114691503B (en) Test-oriented management method, device, equipment and medium
CN115187364A (en) Method and device for monitoring deposit risk under bank distributed scene
CN110245120A (en) The daily record data processing method of streaming computing system and streaming computing system
CN113900905A (en) Log monitoring method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination