WO2020215894A1 - Alarm method, device and system - Google Patents

Alarm method, device and system Download PDF

Info

Publication number
WO2020215894A1
WO2020215894A1 PCT/CN2020/077502 CN2020077502W WO2020215894A1 WO 2020215894 A1 WO2020215894 A1 WO 2020215894A1 CN 2020077502 W CN2020077502 W CN 2020077502W WO 2020215894 A1 WO2020215894 A1 WO 2020215894A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm information
target
information
server
historical
Prior art date
Application number
PCT/CN2020/077502
Other languages
French (fr)
Chinese (zh)
Inventor
万亿兵
曾可
卢道和
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2020215894A1 publication Critical patent/WO2020215894A1/en

Links

Images

Classifications

    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/026Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using e-messaging for transporting management information, e.g. email, instant messaging or chat
    • 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
    • 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/0622Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on time
    • 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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Definitions

  • the present invention relates to the technical field of financial technology (Fintech), in particular to an alarm method, device and system.
  • the financial industry (such as banks) can generally be set up with multiple production systems, and multiple production systems can perform transaction-related businesses through coordinated operations, such as investment trading business (stocks, bonds, futures, etc.), asset trading business (trust, Management, savings, etc.), insurance transaction business, etc.
  • investment trading business stocks, bonds, futures, etc.
  • asset trading business trust, Management, savings, etc.
  • insurance transaction business etc.
  • the operating status of the production system fails, it may seriously affect the various transaction activities of the bank. Therefore, it is usually necessary to monitor the operating status of multiple production systems. Once a fault is found in the operating status of a certain production system, Alarm information can be generated in time, and the alarm information can be forwarded to operation and maintenance personnel for maintenance work, thereby ensuring the safety and stability of the bank's development.
  • the alarm information can be converted into pictures in advance, and the pictures corresponding to the alarm information can be sent to the operation and maintenance personnel.
  • the manual screenshot method is a common method for converting alarm information into pictures. Specifically, a monitoring page can be set on the monitoring device. If the monitoring personnel find that a new alarm information is displayed on the monitoring page, they can analyze the alarm information. If it is determined that the level of the alarm information is relatively serious, follow-up is required For troubleshooting, you can take a screenshot of the alarm information and send the screenshot to the operation and maintenance personnel.
  • the transaction volume of the bank is usually very large, such as 100,000 transactions per second. Accordingly, a large number of transactions may cause the alarm information to appear more frequently, making the monitoring personnel unable to timely Determine which alarm information needs to be alarmed, resulting in low alarm efficiency.
  • the embodiments of the present invention provide an alarm method, device, and system to improve alarm efficiency.
  • an alarm method provided by an embodiment of the present invention includes:
  • the control device receives a first message sent by the monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; further, the control device obtains one or more historical alarms Information and the status of the one or more pieces of historical alarm information; wherein the status of the historical alarm information includes a restored state and an unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed, The unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed; if the control device determines that there is no candidate historical alarm information in the one or more pieces of historical alarm information, then the at least one The alarm information is sent to the server, so that the server converts the at least one piece of alarm information into a picture; the state of the candidate historical alarm information is an unrecovered state.
  • the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it can directly send at least one alarm information to the server without manually determining which alarm information needs to be alerted , So as to improve the efficiency of the alarm; and, through the communication between the monitoring device, the control device and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into pictures, and the pictures can be sent to the target operation.
  • Uighur’s automated execution process requires no human involvement in the process, which can avoid the technical problems of inaccurate alarms caused by manual screenshots in the prior art and improve the accuracy of alarms.
  • the method further includes: if the control device determines that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, targeting at any one of the at least one piece of alarm information , Execute: if it is determined that there is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information in the at least one candidate historical alarm information, or if it is determined that the candidate historical alarm information exists
  • the first candidate alarm information, the keyword information of the first candidate alarm information matches the keyword information of the alarm information, and the generation time of the first candidate alarm information and the generation time of the alarm information If the difference is greater than or equal to the preset duration, it is determined that the alarm information is target alarm information; further, the control device sends at least one piece of target alarm information to the server, so that the server will The target alarm information is converted into pictures.
  • the target alarm information that needs to be screenshotted can be determined from at least one piece of alarm information, where the target alarm information may be a preset time period
  • the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from the first moment to the current moment, and the second moment is located after the first moment; the control device Before receiving the first message sent by the monitoring device, the method further includes: if the control device determines that the alarm information before the first moment has been successfully converted into a picture, sending a second message to the monitoring device, the second message Includes the first moment and the second moment.
  • the alarm information generated by the monitoring device can be The time sequence is sequentially converted into pictures; that is to say, the above technical solution realizes an automatic warning method, with this method, the warning process can be executed continuously without human control, and the operation process is simple and easier to implement.
  • the method further includes: the control device receives the picture corresponding to the target alarm information sent by the server, and determines the target operation corresponding to the target alarm information according to the service type of the target alarm information. Further, the control device sends the picture corresponding to the target alarm information to the target operation and maintenance party, and determines that the target alarm information has been successfully converted into a picture.
  • the control device if it receives the picture corresponding to the target alarm information, it can send the picture to the target operation and maintenance party, so that the target operation and maintenance party can process the event that triggers the target alarm information; by setting the control device Communication with the target operation and maintenance party can improve the efficiency of fault maintenance of the production system, timely solve the fault problem of the production system that triggers the target alarm information, and reduce losses.
  • an alarm method provided by an embodiment of the present invention includes:
  • the server receives the target alarm information sent by the control device, and generates the WEB interface corresponding to the target alarm information; further, the server takes a screenshot of the WEB interface to obtain the picture corresponding to the target alarm information, and compares the The picture corresponding to the target alarm information is sent to the control device.
  • the server after the server generates the WEB interface corresponding to the target alarm information, it can directly call the screenshot tool set in the server to take screenshots of the WEB interface corresponding to the target alarm information without using a WEB browser to capture the WEB interface corresponding to the target alarm information.
  • the server can directly call the screenshot tool set in the server to take screenshots of the WEB interface corresponding to the target alarm information without using a WEB browser to capture the WEB interface corresponding to the target alarm information.
  • Taking screenshots on the one hand, compared with the prior art method of displaying the WEB interface of the target alarm information in the WEB browser and manually taking screenshots, it can improve the efficiency of converting the alarm information into pictures, thereby increasing the efficiency of the alarm. ;
  • taking screenshots through the server can simplify operations and facilitate implementation.
  • the server generating the WEB interface corresponding to the target alarm information includes: the server acquiring at least one preset WEB template, and the at least one preset WEB template is preset for generating alarm information corresponding to A template of the WEB interface; further, the server determines a target WEB template from the at least one preset WEB template according to the business type to which the target alarm information belongs, and uses the target WEB template to render the target alarm information To obtain the WEB interface corresponding to the target alarm information.
  • the preset WEB template can be customized according to actual needs, or it can be set based on the experience of those skilled in the art, that is, the above technical solution can realize the conversion of alarm information into customized pictures. Thus, it can be applied to a variety of scenarios and more in line with actual needs.
  • an alarm device provided by an embodiment of the present invention includes:
  • a transceiver module configured to receive a first message sent by a monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
  • the obtaining module is used to obtain one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrestored state, and the restored state is used to indicate The event that triggered the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
  • a processing module configured to send the at least one piece of alarm information to a server if it is determined that there is no candidate historical alarm information in the one or more pieces of historical alarm information, so that the server converts the at least one piece of alarm information It is a picture; the state of the candidate historical alarm information is an unrecovered state.
  • the processing module is further configured to: if it is determined that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, execute for any alarm information in the at least one piece of alarm information : If it is determined that there is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information in the at least one candidate historical alarm information, or if it is determined that the first candidate historical alarm information has the first Alternative alarm information, the keyword information of the first alternative alarm information matches the keyword information of the alarm information, and the difference between the generation time of the first alternative alarm information and the generation time of the alarm information If the value is greater than or equal to the preset duration, the alarm information is determined to be target alarm information; further, at least one piece of target alarm information is sent to the server, so that the server converts the at least one piece of target alarm information into a picture .
  • the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from the first moment to the current moment, and the second moment is located after the first moment; the transceiver module Before receiving the first message sent by the monitoring device, it is also used to: if it is determined that the alarm information before the first moment has been successfully converted into a picture, send a second message to the monitoring device, where the second message includes all The first moment and the second moment.
  • the transceiver module is further configured to: receive a picture corresponding to the target alarm information sent by the server, and determine the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information Further, the picture corresponding to the target alarm information is sent to the target operation and maintenance party, and it is determined that the target alarm information has been successfully converted into a picture.
  • an alarm device provided by an embodiment of the present invention includes:
  • the generating module is used to receive the target alarm information sent by the control device, and generate the WEB interface corresponding to the target alarm information;
  • the screenshot module is used to take a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information
  • the transceiver module is used to send the picture corresponding to the target alarm information to the control device.
  • the generating module is configured to: obtain at least one preset WEB template, the at least one preset WEB template being a preset template for generating a WEB interface corresponding to the alarm information; further, according to the target The service type to which the alarm information belongs, a target WEB template is determined from the at least one preset WEB template, and the target WEB template is used to render the target alarm information to obtain a WEB interface corresponding to the target alarm information.
  • an alarm system provided by an embodiment of the present invention includes a monitoring device, a control device, and a server;
  • the monitoring device is used for monitoring the operating status of one or more production systems connected to the monitoring device, and generating one or more pieces of alarm information corresponding to the one or more production systems;
  • the control device is configured to obtain at least one piece of alarm information among the one or more pieces of alarm information by communicating with the monitoring device, and determine target alarm information from the at least one piece of alarm information, and set the target alarm information to Information is sent to the server;
  • the server is configured to receive the target alarm information and generate a picture corresponding to the target alarm information.
  • the server is further configured to: send a picture corresponding to the target alarm information to the control device;
  • the control device is further configured to: after receiving the picture corresponding to the target alarm information sent by the server, send the picture corresponding to the target alarm information to the target operation and maintenance party corresponding to the target alarm information.
  • a computer-readable storage medium provided by an embodiment of the present invention includes instructions, which when run on a computer, cause the computer to execute the method described in any of the first or second aspects.
  • a computer program product provided by an embodiment of the present invention, when it is run on a computer, causes the computer to execute the method described in any of the foregoing first or second aspects.
  • Figure 1 is a schematic diagram of the architecture of an alarm system provided by an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a process corresponding to an alarm method provided by an embodiment of the present invention
  • Figure 3 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention.
  • Figure 4 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention.
  • Figure 5 is a schematic structural diagram of each device in an alarm system provided by an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a back-end device provided by an embodiment of the present invention.
  • Fintech refers to a new innovative technology brought to the financial field after the integration of information technology into the financial field.
  • the financial system can be improved by using advanced information technology to assist in financial operations, transaction execution and financial system improvements. Processing efficiency, business scale, and can reduce costs and financial risks.
  • Batch processing business is a regular operation method in the financial technology industry. Due to the large number and types of transactions processed by the batch processing business and the large amount of data, it is more common in the application field of the financial technology industry. In actual operation, it is usually necessary to ensure that multiple transactions in a batch processing business can be processed safely and smoothly.
  • multiple production systems that process multiple transactions may have multiple events, such as network delay events, memory ( Or disk, hard disk) insufficient events, machine parts damage events, etc.
  • a monitoring device that monitors multiple production systems can generate alarm information once it detects the above-mentioned problems; wherein, the alarm information corresponding to different production systems can be different, and the alarm information triggered by different events can also be different.
  • the alarm information corresponding to the above event may be alarm information caused by network delay, alarm information caused by insufficient memory of the machine, alarm information caused by damage to machine parts, etc. Therefore, once more serious alarm information appears, it is usually necessary to take a screenshot of the alarm information and send the picture to the operation and maintenance personnel, so that the operation and maintenance personnel can process the event that triggers the alarm information, so that the production system can run smoothly. Avoid failure of the production system.
  • the prior art usually uses manual screenshots to obtain pictures corresponding to the alarm information. In this way, it may not be possible to screenshot the alarm information in time, resulting in delays in the recovery process of the production system and greater impact on the business execution process. In summary, there is an urgent need for an alarm method to improve alarm efficiency.
  • FIG. 1 is a schematic diagram of the architecture of an alarm system provided by an embodiment of the present invention.
  • the system may include a monitoring device 110, a control device 120, and a server 130.
  • the monitoring device 110 and the control device 120, and the control device 120 and the server 130 may be communicatively connected, for example, a communication connection is realized in a wired manner, or a communication connection is realized in a wireless manner, which is not specifically limited.
  • the monitoring device 110 can be connected to at least one production system (such as production system 101, production system 102, and production system 103), and each production system can process transactions corresponding to the production system, for example, production system 101 can process For transactions related to order business, the production system 102 can process transactions related to insurance business, and the production system 103 can process transactions related to wealth management business.
  • the monitoring device 110 can monitor the operating status of the production system 101 to the production system 103. If it is determined that a certain production system (such as the production system 101) triggers an event corresponding to a certain alarm information (such as the production system) during transaction processing.
  • the memory of the transaction processing machine a in 101 is less than the preset memory threshold), then the alarm information corresponding to the production system 101 (such as alarm information b) can be generated, and the alarm information b can include the type of alarm, the generation time of the alarm information b, The identification of the production system 101 to which the alarm belongs, etc.
  • the monitoring device 110 may store the alarm information b in the preset storage space of the monitoring device 110. In this way, the preset storage space of the monitoring device 110 may store information from the initial time to the current time through the monitoring production system 101 ⁇ Multiple pieces of alarm information generated by the system 103.
  • the control device 120 may obtain a preset number of alarm information or alarm information for a preset time period from the monitoring device 110 through communication interaction with the monitoring device 110. Taking obtaining a preset number of alarm information as an example, if the preset number is 500, the control device 120 can obtain 500 alarm information at a time, and can select the alarms that require maintenance by operation and maintenance personnel from the 500 alarm information. Information (for example, 200 pieces of alarm information); at this time, the control device 120 may send 200 pieces of alarm information to the server 130. Correspondingly, after the server 130 receives 200 pieces of alarm information, it can generate at least one picture corresponding to the 200 pieces of alarm information. In this way, the operation and maintenance personnel can process the event that triggers the alarm information according to the at least one picture.
  • the server 130 receives 200 pieces of alarm information
  • it can generate at least one picture corresponding to the 200 pieces of alarm information. In this way, the operation and maintenance personnel can process the event that triggers the alarm information according to the at least one picture.
  • the alarm system may also include at least one target operation and maintenance party connected to the control device 120, such as the target operation and maintenance party 141, the target operation and maintenance party 142, and the target operation and maintenance party 143 shown in FIG. 120 can be connected to any of the at least one target operation and maintenance party in a wired manner, for example, to the target operation and maintenance party 141 to the target operation and maintenance party 143 via a network cable or optical fiber; or it can also be connected to at least one of the at least one Connect to any target operation and maintenance party in the target operation and maintenance party, such as connecting to the target operation and maintenance party 141 to the target operation and maintenance party 143 via WIFI or Bluetooth; or it can also be connected to the target operation and maintenance party 141 in a wired manner, and wirelessly
  • the connection with the target operation and maintenance party 142 and the target operation and maintenance party 143 is not specifically limited.
  • the server may also send at least one picture corresponding to the 200 pieces of alarm information to the control device 120.
  • the control device 120 may send at least one picture to the corresponding target operation and maintenance party; for example, the control device 120 receives picture 1, picture 2 and picture 3, if Determine that the target operation and maintenance party corresponding to picture 1, picture 2 and picture 3 are target operation and maintenance party 141, target operation and maintenance party 142, and target operation and maintenance party 143, then picture 1 can be sent to target operation and maintenance party 141, and the picture 2 is sent to the target operation and maintenance party 142, and the picture 3 is sent to the target operation and maintenance party 143.
  • the target operation and maintenance party 143 after the target operation and maintenance party 143 receives picture 3, it can analyze the event that triggers the alarm information corresponding to picture 3 according to the content in picture 3. If the alarm information corresponding to picture 3 is alarm information b, The target operation and maintenance party can expand the memory of machine a in the production system 101 in various ways, for example, the disk in machine a can be replaced with a larger capacity disk, or the irrelevant data stored in the memory of machine a can be deleted. In this way, through the above-mentioned execution process, the alarm information in the monitoring device 110 can be converted into pictures, and the automatic monitoring and maintenance of the production system can be realized.
  • Fig. 2 is a schematic diagram of the interaction process corresponding to an alarm method provided by an embodiment of the present invention, and the method includes:
  • Step 201 The control device sends a first request message to the monitoring device.
  • the first request message may be used to request the monitoring device to monitor at least one piece of alarm information generated by at least one production system.
  • the monitoring device When the monitoring device is started (that is, the initial moment), it can start to monitor at least one production system. If it is determined that the state of any one of the production systems in the at least one production system triggers an alarm, an alarm corresponding to the production system can be generated.
  • Information For example, if the monitoring device detects that the production system 102 cannot process transactions due to network interruption at 10:00, the monitoring device can generate the alarm information shown in Table 1.
  • Table 1 Schematic of a kind of alarm information
  • the alarm information generated by the monitoring device may include the alarm title, the production system to which the alarm belongs, the alarm level, the time when the alarm information is generated, and the business domain to which the alarm belongs.
  • the alarm title of this alarm message can be "network interruption", the production system to which it belongs is production system 102, the alarm level is advanced, the alarm information generation time is 10:00, and the alarm business domain is order Management;
  • the reason for the generation of the alarm information is that the production system 102 cannot perform the order management service due to network interruption at 10:00, and the current production system 102 cannot perform transaction execution, so the alarm The level of information can be advanced.
  • the first request message may include the alarm level, the generation time range, and the state of the alarm.
  • the alarm level may be pre-configured, or may be obtained through user selection. Specifically, if the alarm level is pre-configured (for example, advanced), the alarm level included in each first request message sent by the control device may be advanced; if the alarm level is obtained through user selection, Then every time the control device generates the first request message, it can display the configuration page to the user through the WEB browser and prompt the user to select the alarm level included in the first request message on the configuration page. If the user selects the alarm level If the level is above intermediate, the alarm level included in the first request message may be intermediate or high.
  • the pre-configured generation time range may be a fixed duration (for example, 10 min), or may also be a variable duration, which is not specifically limited.
  • the generation time range may be the time range from the first moment to the current moment, where the first moment may be the latest moment among the generation moments corresponding to the alarm information processed last time by the control device; for example, If the current time is 10:20, and the alarm information that the control device obtains from the monitoring device for the first time is the alarm information within the time range of 9:55 to 10:00, the alarm information that the control device obtains from the monitoring device for the second time may be Alarm information within the time range of 10:00 ⁇ 10:20.
  • the state of the alarm information can be a restored state or an unrecovered state.
  • the restored state can be used to identify that the event that triggers the alarm information has been successfully processed, and the unrecovered state can be used to identify that the event that triggers the alarm information has not been successfully processed.
  • the state of the alarm included in the first request message may be an unrecovered state. In this way, at least one piece of alarm information acquired by the control device may be unrecovered alarm information, thereby reducing the waste of system resources. Improve processing efficiency.
  • Step 202 The monitoring device selects at least one piece of alarm information from the preset storage space of the monitoring device according to the first request message.
  • the monitoring device determines that the first request message includes The alarm level of is advanced, the generation time range is 10:00 ⁇ 10:20, and the alarm state is unrecovered, the monitoring device can obtain the advanced and generated within the time period of 10:00 ⁇ 10:20 from 1000 alarm requests. At least one piece of alarm information that has not been restored, for example, if there are 50 pieces of alarm information that meet the above conditions, the monitoring device can obtain these 50 pieces of alarm information.
  • the monitoring device can monitor the current state of at least one production system to determine the current state of each piece of alarm information; if it is determined that the current state of a certain piece of alarm information is the recovery state, Then the piece of alarm information can be deleted from the 50 pieces of alarm information.
  • the monitoring device may monitor the state corresponding to the alarm information in real time after generating the alarm information, and once the state of the alarm information is found to be in the recovery state, the piece of alarm information may be deleted from the preset storage space.
  • the monitoring device can delete the alarm information stored in the preset storage space at 10:02; that is, if the control device obtains the alarm at 10:01 Alarm information, because the state of the alarm information can be an unrecovered state, the control device can acquire the alarm information; accordingly, if the control device acquires the alarm information at 10:03, the The state of the alarm information is the recovery state at 10:02, so the control device cannot obtain the alarm information.
  • Step 203 The monitoring device sends at least one piece of alarm information to the control device.
  • the monitoring device may send the first information to the control device, and the first information may include 50 pieces of alarm information.
  • the data in the first message can be JavaScript Object Notation (JSON) format text
  • JSON format text can use a text format independent of programming language to store and represent data, which is a kind of lightweight Level data exchange format.
  • Step 204 After receiving at least one piece of alarm information, the control device determines target alarm information from the at least one piece of alarm information.
  • the control device can obtain the generation time of 50 pieces of alarm information, and record the latest 50 (or less than 50) generation time corresponding to the 50 pieces of alarm information Generation time (for example, 10:20).
  • the control device may send a second request message to the monitoring device, and the second request message may include At 10:20, this time can be used by the monitoring device to obtain alarm information after 10:20.
  • the control device can determine the target alarm information from the 50 pieces of alarm information in multiple ways.
  • the control device may, after receiving the 50 pieces of alarm information, start from the preset of the control device
  • One or more pieces of historical alarm information are obtained from the database.
  • the historical alarm information may be the alarm information obtained by the control device from the monitoring device in the past, for example, it may be 500 pieces of historical alarm information obtained by the control device from the monitoring device before 10:00.
  • the control device obtains the current state of the alarm information d by communicating and interacting with the monitoring device. If it is determined that the current state of the alarm information d is the recovery state, Then the alarm information d in the preset database can be deleted.
  • the alarm information d can be used as an alternative historical alarm information.
  • the control device can update the preset database in advance, that is, delete the historical alarm information whose current state is the restored state among the 500 pieces of historical alarm information stored in the preset database Therefore, it can be ensured that before the 50 pieces of alarm information are compared with the historical alarm information in the preset database, the candidate historical alarm information stored in the preset database is all historical alarm information in the unrecovered state.
  • the control device can determine that 50 pieces of alarm information are all target alarm information; accordingly, if there are 400 pieces of backup information stored in the updated preset database If historical alarm information is selected, the control device can determine the target alarm information from the 50 pieces of alarm information based on the keyword information of the 400 pieces of candidate historical alarm information, the keyword information of the 50 pieces of alarm information, and the preset duration.
  • the alarm information e can be determined as a target alarm information; accordingly, if it is determined that there is a second backup in the 400 candidate historical alarm information Select the alarm information, the keyword information of the second candidate alarm information matches the keyword information of the alarm information e, and the difference between the generation time of the second candidate alarm information and the generation time of the alarm information is less than the preset duration, then it is determined
  • the alarm information e is repeated alarm information, and there is no need to process the alarm information e at this time
  • the keyword information of the alarm information can be used to identify the alarm information. If the keyword information of the two alarm information matches, it can be determined that the two alarm information are the same alarm information corresponding to the same production system. The only difference lies in the generation time of the two alarm information; for example, the production system 102 generates an alarm information y 1 and an alarm information y 2 titled "Network interruption" at 10:00 and 10:10, respectively, then the alarm information The keyword information of y 1 and alarm information y 2 match.
  • the keyword information of the alarm information can be set by those skilled in the art based on experience.
  • the keyword information of the alarm information can be set as the production system, alarm title, alarm source, business domain,
  • the combination of any number of alarm objects and alarm instances can be keyword information obtained by the combination of the production system to which the alarm information belongs and the alarm title, or can be a combination of the alarm title, alarm source, and business domain
  • the information may also be keyword information obtained by combining the business domain, the alarm object, and the alarm instance, which is not specifically limited.
  • the alarm information y 3 of the 50 alarm information is the target alarm information: If the keyword information of the alarm information is a combination of the production system to which the alarm information belongs and the alarm title, the preset duration is 5min, the alarm information y 3 is the alarm information titled "Network interruption" corresponding to the production system 102 at 10:05.
  • the 400 candidate historical alarm information does not have the title "Network interruption” corresponding to the production system 102 . Then it can be determined that the alarm information y 3 is the target alarm information; accordingly, if there is alternative historical alarm information y 4 among the 400 alternative historical alarm information, the alternative historical alarm information y 4 is the production system 102 at 9 : The corresponding alarm information titled "Network interruption" at 55 o'clock, it can be determined that the keyword information of the alarm information y 3 is the same as the alternative historical alarm information y 4 , and the duration is 10 min (greater than or equal to the preset duration), so it can Determine the alarm information y 3 as the target alarm information; if there is alternative historical alarm information y 4 among the 400 alternative historical alarm information, the alternative historical alarm information y 4 is the title of the production system 102 at 10:02 and the corresponding title is "Network "Interrupt" alarm information, it can be determined that the keyword information of the alarm information y 3 is the same as the alternative historical alarm information y 4 , and the duration
  • the target alarm information that needs to be screenshotted can be determined from at least one piece of alarm information, where the target alarm information may be a preset time Alarm information that does not appear in the segment, or it can also be new alarm information; that is, by filtering out target alarm information based on preset filtering conditions, there is no need to take screenshots of repeated alarm information, thereby saving resources and improving The processing efficiency of converting alarm information into pictures.
  • preset filtering conditions that is, keyword information and preset duration
  • Step 205 The control device sends the target alarm information to the server.
  • the control device may send 30 pieces of target alarm information to the server.
  • the control device may sequentially send 30 pieces of target alarm information in a preset order, for example, it may sort the 30 pieces of target alarm information in the order of generation time from morning to night (or from night to morning). Only one target alarm information is sent to the server at a time, and after it is determined that the target alarm information has been converted into a picture and sent to the target operation and maintenance party, the next target alarm information can be sent.
  • the control device can send 30 pieces of target alarm information to the server at a time. Accordingly, when the server generates a picture corresponding to each piece of target alarm information, it can set an identifier for the picture, and the subsequent control device can follow the picture The identification determines the target alarm information corresponding to the picture.
  • control The device can also select any number of times from 1 to 30 times to send 30 pieces of target alarm information to the server, which is not specifically limited. Take the example of sending 30 target alarm messages in 5 times.
  • the number of target alarm messages sent each time can be the same, for example, 6 target alarm messages can be sent each time, or it can be different, such as the first to sixth times.
  • the number of target alarm information can be 5, 10, 2, 7, 3, 3 respectively.
  • Step 206 The server generates a picture corresponding to the target alarm information.
  • the server can receive multiple pieces of target alarm information (for example, 6 pieces) sent by the control device, it can generate one or WEB interface corresponding to the 6 pieces of target alarm information. For example, it can generate a WEB interface for each piece of target alarm information. Interface, the server can generate 6 WEB interfaces; or it can generate one WEB interface for any number of target alarm information. For example, if one WEB interface is generated for two adjacent alarm messages, the server can generate 3 In the WEB interface, if one WEB interface is generated for the first two and the last four alarm messages, the server can generate two WEB interfaces.
  • the server may generate the WEB interface.
  • at least one preset WEB template may be set in the server, and at least one preset WEB template is preset for Generate the template of the WEB interface corresponding to the alarm information; after obtaining the target alarm information, the server can determine the target WEB template from at least one preset WEB template according to the service type to which the target alarm information belongs, and can use the target WEB template to render Target alarm information, thereby obtaining the WEB interface corresponding to the target alarm information.
  • the preset WEB template can be set by those skilled in the art according to actual needs, or can also be customized according to user requirements, which is not specifically limited.
  • the target alarm information obtained by the server includes target alarm information y 6 and target alarm information y 7.
  • the preset WEB templates include the first WEB template, the second WEB template, and the third WEB template.
  • the first WEB template corresponds to The business type is order business
  • the business type corresponding to the second WEB template is insurance business
  • the business type corresponding to the third WEB template is joint business; in one example, the server can separately target alarm information y 6 and target alarm information y 7 Displayed on different WEB interfaces, for example, if the target alarm information y 6 is the alarm information of the insurance business, and the target alarm information y 7 is the alarm information of the order business, the server can use the second WEB template as the target alarm information y 6 WEB target template, and the template may be a first target WEB alarm information corresponding to y 7 WEB target template, so that the target may be generated alarm information to the target y 6 y 7 alarm information corresponding to each WEB interface.
  • the server may also display the target alarm information y 6 and target alarm information y 7 on the same WEB interface. Specifically, the server may obtain the target alarm information y 6 and target alarm information y 7 respectively.
  • Key information (such as the production system to which it belongs, alarm title, etc.), and the key information of target alarm information y 6 and target alarm information y 7 can be set according to the layout of the third WEB template, so that target alarm information y 6 and A WEB interface corresponding to target alarm information y 7 .
  • the key information may be set by those skilled in the art when setting the preset WEB templates, and the key information displayed by each preset WEB template may be the same or different, which is not specifically limited.
  • the server can save the target WEB interface in the cache of the server, and can set the identifier of the target WEB interface.
  • the identifier of the target WEB interface may be related to its corresponding target alarm information, or may also be unrelated to its corresponding target alarm information; if the identifier of the target WEB interface is not related to its corresponding target alarm information, the server may set a correspondence table, And the corresponding relationship between the target WEB interface and the target alarm information is stored in the corresponding relationship table.
  • the server may take a screenshot of the target WEB interface corresponding to the target alarm information to obtain a picture corresponding to the target alarm information.
  • the server may execute the front-end js script corresponding to the server, and call a preset screenshot tool (such as a webpage photo WebShot tool) by loading the front-end js script.
  • the WebShot tool can take pictures of web pages or websites to get pictures or thumbnails.
  • the server can load the elements included on the target WEB page based on the canvas canvas, so that a conversion interface can be set on the server.
  • the conversion interface can transfer the target WEB page elements cached by the server as a parameter to the WebShot tool, and You can set the relevant information of the generated picture, such as picture location, picture identifier, picture type, folder to which the picture belongs, and picture size.
  • the server can render the target WEB interface according to the related information of the set picture, and obtain the picture corresponding to the target alarm information.
  • Step 207 The server sends the picture corresponding to the target alarm information to the control device.
  • the server may send the picture and picture identifier corresponding to the target alarm information to the control device.
  • the server can send the picture and the picture identification to the control device in many ways, for example, the server sends the picture and the picture identification to the control device through the response interface of the http connection.
  • Step 208 After receiving the picture corresponding to the target alarm information, the control device sends the picture corresponding to the target alarm information to the target operation and maintenance party.
  • the control device can determine the target alarm information according to the picture identifier after receiving the picture and the picture identifier corresponding to the target alarm information sent by the server, and can obtain the target alarm information. business type. Further, the control device may determine the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information, and may send the picture corresponding to the target alarm information to the target operation and maintenance party.
  • the control device may determine that the target operation and maintenance party corresponding to the target alarm information is the operation and maintenance personnel who handles the insurance business. Therefore, the control device may assign a picture corresponding to the target alarm information Send to the target operation and maintenance personnel, for example, you can send the picture to the instant messaging tool where the target operation and maintenance personnel is located, or you can upload the picture to the cloud and notify the target operation and maintenance personnel to download the corresponding cloud address, or you can also upload the picture It is stored in a shared network disk, which is not limited.
  • Step 209 The target operation and maintenance party receives the picture corresponding to the target alarm information sent by the control device, and processes the event that triggers the target alarm information.
  • the target operation and maintenance party can view the key information from the picture after receiving the picture corresponding to the target alarm information sent by the control device.
  • Information such as the production system to which the target alarm information belongs, and the alarm title of the target alarm information.
  • the target operation and maintenance party can maintain the corresponding production system based on the key information. For example, if the picture corresponding to the target alarm information shows "production system 102, network interrupted", the target operation and maintenance party can detect the network connection of the production system 102 and repair the network so that the production system 102 can continue to execute transaction.
  • Step 210 The control device sends a second request message to the monitoring device.
  • the control device may determine that the target alarm information has been successfully converted into a picture. At this time, the control device can obtain the latest time stored in step 204, that is, 10:20, and can determine that the alarm information before 10:20 has been successfully converted into a picture. Further, the control device may send a second request message to the monitoring device, and may include 10:20 in the second request message; so, in one example, after receiving the second request message, the monitoring device may obtain 10:20 ⁇ The current alarm information.
  • the control device receives a first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; and, The control device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed , The unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more pieces of historical alarm information, it sends at least one piece of alarm information to the server, So that the server converts at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state.
  • the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed.
  • Alarms which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target
  • the automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
  • an embodiment of the present invention also provides an alarm device, and the specific content of the device can be implemented with reference to the foregoing method.
  • FIG. 3 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention, including:
  • the transceiver module 301 is configured to receive a first message sent by a monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
  • the obtaining module 302 is configured to obtain one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrestored state, and the restored state is used for Indicating that the event that triggered the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
  • the processing module 303 is configured to, if it is determined that there is no candidate historical alarm information in the one or more pieces of historical alarm information, send the at least one piece of alarm information to the server, so that the server can send the at least one piece of alarm information Converted into a picture; the state of the candidate historical alarm information is an unrecovered state.
  • processing module 303 is further configured to:
  • At least one piece of target alarm information is sent to the server, so that the server converts the at least one piece of target alarm information into a picture.
  • the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from a first moment to a current moment, and the second moment is located after the first moment;
  • the transceiver module 301 Before the transceiver module 301 receives the first message sent by the monitoring device, it is also used to:
  • a second message is sent to the monitoring device, and the second message includes the first time and the second time.
  • the transceiver module 301 is further configured to:
  • the picture corresponding to the target alarm information is sent to the target operation and maintenance party, and it is determined that the target alarm information has been successfully converted into a picture.
  • Figure 4 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention, including:
  • the generating module 401 is configured to receive target alarm information sent by the control device, and generate a WEB interface corresponding to the target alarm information;
  • the screenshot module 402 is used to take a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information
  • the transceiver module 403 is configured to send the picture corresponding to the target alarm information to the control device.
  • the generating module 401 is used to:
  • At least one preset WEB template is a preset template for generating a WEB interface corresponding to the alarm information
  • the control device receives the first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
  • the device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed.
  • the unrecovered state is used to indicate that the event that triggered the historical alarm information was not successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it sends at least one piece of alarm information to the server to Make the server convert at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state.
  • the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed.
  • Alarms which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target
  • the automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
  • the embodiment of the present invention also provides an alarm system as shown in FIG. 1.
  • the system may include a monitoring device 110, a control device 120, and a server 130.
  • the operation process of the system may be As follows:
  • the monitoring device 110 is configured to monitor the operating status of one or more production systems connected to the monitoring device 110, and generate one or more pieces of alarm information corresponding to the one or more production systems;
  • the control device 120 is configured to obtain at least one piece of alarm information among the one or more pieces of alarm information by communicating with the monitoring device 110, and determine the target alarm information from the at least one piece of alarm information, and compare the Sending target alarm information to the server 130;
  • the server 130 is configured to receive the target alarm information and generate a picture corresponding to the target alarm information.
  • the server 130 is further configured to: send the picture corresponding to the target alarm information to the control device 120;
  • the control device 120 is further configured to: after receiving the picture corresponding to the target alarm information sent by the server 130, send the picture corresponding to the target alarm information to the target operation and maintenance party corresponding to the target alarm information.
  • each device in the alarm system shown in FIG. 1 is described below, and the alarm method of the embodiment of the present invention is described in detail in a specific application manner.
  • FIG. 5 is a schematic structural diagram of each device in an alarm system provided by an embodiment of the present invention.
  • the alarm system may include a monitoring device 110, a control device 120, and a server 130.
  • the control device 120 can be connected to the monitoring device 110 through the data source open interface 501, and the data source open interface 501 can be used to transmit various types of data, such as JavaScript Object Notation (JSON) format data, universal string Universal Serial Bus (USB) format data, Extensible Markup Language (XML) format data, etc.
  • JSON JavaScript Object Notation
  • USB Universal Serial Bus
  • XML Extensible Markup Language
  • control device The components of the control device and the server and the function of each component are described below.
  • Control device 120 may be provided with a data collection unit 502, a main control unit 503, a cache unit 504, a policy analysis unit 505, and a picture distribution unit 506.
  • the main control unit 503 is the core unit of the control device 120.
  • the main control unit 503 can respectively communicate with the data collection unit 502, the cache unit 504, the strategy analysis unit 505 and the picture distribution unit 506, and can control the data collection unit 502, The execution process of the caching unit 504, the policy analysis unit 505, and the picture distribution unit 506.
  • the main control unit 503 can control the data collection unit 502 to collect one or more pieces of alarm information stored in the monitoring device 110 through the data source open interface 501.
  • the main control unit 503 can send a data collection instruction to the data collection unit 502.
  • the data collection instruction can include the alarm level of the alarm information, the time range of the generation time, and the state of the alarm information; accordingly, if the data collection unit 502 receives the data collection instruction, it can obtain the alarm level of the alarm information to be collected, the time range of the time of generation, and the state of the alarm information.
  • the data acquisition unit 502 can obtain one or more pieces of alarm information that meet the above requirements from the monitoring device 110 through the data source open interface 501, and can send one or more pieces of alarm information to Main control unit 503.
  • the monitoring device 110 may store multiple pieces of alarm information generated by monitoring at least one production system from the initial moment to the current moment.
  • Table 2 is a schematic table of a kind of alarm information stored in the monitoring device.
  • Table 2 Schematic of a kind of alarm information stored in the monitoring device
  • the monitoring equipment stores seven alarm messages in the time period from 9:50 to 10:20.
  • the seven alarm messages are: the alarm generated at 9:50 due to insufficient hard disk space of the production system 102 Information, the alarm information generated by the network interruption of the production system 103 at 9:55, the alarm information generated by the insufficient memory of the production system 101 at 10:00, and the machine damage of the production system 101 at 10:05
  • the generated alarm information is the alarm information generated due to abnormal transaction information of the production system 103 at 10:10, the alarm information generated due to the network interruption of the production system 103 at 10:11, and the alarm information generated by the production system at 10:20.
  • the system 102 has insufficient disk space to generate an alarm message.
  • the one or more pieces of alarm information collected by the data collection unit 502 may include: The alarm information generated at 10:00 due to insufficient memory of the production system 101, at 10:05 due to the machine damage of the production system 101, and at 10:20 due to insufficient disk space of the production system 102 The generated alarm information.
  • the main control unit 503 After the main control unit 503 receives one or more pieces of alarm information sent by the data acquisition unit 502, it can control the buffer unit 504 to perform the update.
  • the buffer unit 504 can store one or more pieces of information obtained by the control device 120 from the monitoring device 110. Pieces of historical alarm information, for example, may include alarm information generated by the monitoring device 110 before 10:00.
  • Table 3 is a schematic table of a type of historical alarm information stored in the cache unit 504.
  • Table 3 Schematic of a historical alarm information stored in the cache unit
  • the cache unit 504 can perform the update in the following manner: the cache unit 504 can be connected to the monitoring device 110 through the data source open interface 501, if the cache unit 504 receives the update instruction sent by the main control unit 503, it can communicate with the monitoring device through the data source open interface 501 The monitoring device 110 communicates to query the current state of each piece of historical alarm information stored in the cache unit 504.
  • the cache unit 504 queries that the status of the alarm information is not restored, there is no need to update the alarm information; for 9: At 55 o'clock, due to the alarm information generated by the network interruption of the production system 103, the cache unit 504 queries that the current state of the alarm information is restored, and the alarm information can be deleted from the cache unit 504. Therefore, after the cache unit 504 performs the update, at least one candidate historical alarm information shown in Table 4 can be obtained.
  • Table 4 Schematic of an alternative historical alarm information stored in the cache unit
  • the alternative historical alarm information may include alarm information generated at 9:50 due to insufficient hard disk space of the production system 103.
  • the main control unit 503 may control the strategy analysis unit 505 to perform strategy analysis on the three pieces of alarm information acquired by the data collection unit 502, and determine the target alarm information from the three pieces of alarm information.
  • the strategy analysis unit 505 may take these two pieces of alarm information as two targets Alarm information.
  • the policy analysis unit 505 The difference between the generation time of the alarm information and the matched candidate historical alarm information (ie 10 min) can be obtained. If the difference is greater than the preset time period, the alarm information can be a target alarm information. If the difference is less than or If the duration is equal to the preset time, the alarm information can be a repeated alarm information. For example, if the preset duration is 5 minutes, the piece of alarm information is a piece of target alarm information, and if the preset duration is 15 minutes, the piece of alarm information is a piece of repeated alarm information.
  • the main control unit 503 may send the target alarm information to the server 130, and may receive the picture corresponding to the target alarm information sent by the server 130.
  • the main control unit 503 may control the picture distribution unit 506 to send the picture corresponding to the target alarm information to the corresponding target operation and maintenance party.
  • the picture distribution unit 506 may correspond to the target alarm information through the instant messaging open interface 507 The picture is sent to the instant messaging platform where the corresponding target operation and maintenance party is located.
  • the server 130 may be provided with a page template conversion unit 131, a page cache unit 132, a page conversion unit 133, and a picture cache unit 134.
  • the page template conversion unit 131, the page caching unit 132, the page to picture unit 133, and the picture caching unit 134 may be connected in sequence, for example, the connection may be realized in a wired manner, or may be realized in a wireless manner, which is not limited.
  • the server 130 may control the page template conversion unit 131 to perform the page template conversion function.
  • the page template conversion unit 131 can obtain multiple preset WEB templates, and can parse the target alarm information to obtain the service type (user-defined or preset) to which the target alarm information belongs, and then according to the target The service type to which the alarm information belongs selects the target WEB template from multiple preset WEB templates.
  • the page template conversion unit 131 can obtain the customization requirements set by the user after receiving the target alarm information. The customization requirements may include the layout of the alarm information on the WEB page, font size, style, etc.
  • the page template conversion unit 131 can set the target WEB template according to the user's customization requirements. After determining the target WEB template, the page template conversion unit 131 can use the target WEB template to render the target alarm information to obtain the WEB interface corresponding to the target alarm information; specifically, the page template conversion unit 131 can obtain one or the set on the target WEB template.
  • Multiple page elements (such as page icons, text, hyperlinks, tables, etc.), and can determine the target element that needs to be replaced with dynamic data from one or more page elements, and then replace the target element on the target WEB template
  • preset indicating characters such as preset placeholder flags, preset variables, etc.
  • the page template conversion unit 131 may traverse the preset indicating characters in turn, and may use data matching the preset indicating characters in the target alarm information By replacing the preset indicating characters, the page template conversion unit 131 can load the target alarm information on the target WEB template, thereby generating a WEB interface corresponding to the target alarm information.
  • the page template conversion unit 131 may use a preset filtering algorithm to obtain a target matching the preset indicating character t 1 from the target alarm information Data, and a preset assignment algorithm can be used to replace the preset indicating character t 1 with the target data, so that the position of the icon 1 on the target WEB template is updated to the target data.
  • the server 130 determines that the page template conversion unit 131 generates the WEB interface corresponding to the target alarm information, it can control the page caching unit 132 to set the name of the WEB interface corresponding to the target alarm information, and can store the WEB interface corresponding to the target alarm information In the cache. After the server 130 determines that the page caching unit 132 successfully caches the WEB interface corresponding to the target alarm information, it can control the page converting unit 133 to take a screenshot of the WEB interface corresponding to the target alarm information to obtain the corresponding target alarm information.
  • the server 130 may control the picture caching unit 134 to set the name of the picture, the picture type (such as jpg format, png format), the folder path to which the picture belongs, the parameters of the picture, and the like.
  • picture container parameters such as picture definition, pixels, etc.
  • timeout parameters required to convert the web page into a picture, the rendering delay parameter, and the web page on the browser
  • the displayed screen size, screenshot size, screenshot offset, etc. in this way, the image caching unit 134 can use the above parameters to convert the elements on the WEB interface corresponding to the target alarm information, so as to take a screenshot of the WEB interface corresponding to the target alarm information , Get the picture corresponding to the target alarm information.
  • the screenshot process of the page-to-image unit 133 can be executed on the back end of the server 130, that is, the screenshot can be realized by calling the front-end js script on the server side, and there is no need to display the WEB interface corresponding to the target alarm information on the WEB browser. , Which can improve the efficiency of screenshots.
  • the server can directly send the picture corresponding to the target alarm information to the main control unit 503.
  • the main control unit 503 receives the picture corresponding to the target alarm information, which can directly send the target alarm information.
  • the picture corresponding to the information is forwarded to the target operation and maintenance party. This method is simple to operate, and the number of interactions corresponding to the main control unit 503 is less, which is more convenient to implement.
  • the server may send the folder where the picture corresponding to the target alarm information is located and the picture name corresponding to the target alarm information to the main control unit 503.
  • the control device receives the first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
  • the device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed.
  • the unrecovered state is used to indicate that the event that triggered the historical alarm information was not successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it sends at least one piece of alarm information to the server to Make the server convert at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state.
  • the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed.
  • Alarms which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target
  • the automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
  • embodiments of the present invention also provide a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the alarm method as described in any of Fig. 2 or Fig. 2.
  • embodiments of the present invention also provide a computer program product, which when it runs on a computer, enables the computer to execute the alarm method as described in any of FIG. 2 or FIG. 2.
  • an embodiment of the present invention provides a terminal device, as shown in FIG. 6, including at least one processor 1101 and a memory 1102 connected to the at least one processor.
  • the embodiment of the present invention does not limit the processor.
  • the connection between processor 1101 and memory 1102 in FIG. 6 is taken as an example.
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the memory 1102 stores instructions that can be executed by at least one processor 1101. By executing the instructions stored in the memory 1102, the at least one processor 1101 can execute the steps included in the aforementioned alarm method.
  • the processor 1101 is the control center of the terminal device, which can use various interfaces and lines to connect various parts of the terminal device, and realize data by running or executing instructions stored in the memory 1102 and calling data stored in the memory 1102. deal with.
  • the processor 1101 may include one or more processing units, and the processor 1101 may integrate an application processor and a modem processor.
  • the application processor mainly processes an operating system, a user interface, and an application program.
  • the adjustment processor mainly processes instructions issued by operation and maintenance personnel. It is understandable that the foregoing modem processor may not be integrated into the processor 1101.
  • the processor 1101 and the memory 1102 may be implemented on the same chip, and in some embodiments, they may also be implemented on separate chips.
  • the processor 1101 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiment of converting the alarm information into a picture can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 1102 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
  • the memory 1102 may include at least one type of storage medium, for example, it may include flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, disk , CD, etc.
  • the memory 1102 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory 1102 in the embodiment of the present invention may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
  • an embodiment of the present invention provides a back-end device. As shown in FIG. 7, it includes at least one processor 1201 and a memory 1202 connected to the at least one processor.
  • the embodiment of the present invention does not limit the processing.
  • the connection between the processor 1201 and the memory 1202 in FIG. 7 is taken as an example.
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the memory 1202 stores instructions that can be executed by at least one processor 1201, and the at least one processor 1201 can execute the steps included in the aforementioned alarm method by executing the instructions stored in the memory 1202.
  • the processor 1201 is the control center of the back-end equipment, which can use various interfaces and lines to connect to various parts of the back-end equipment, and by running or executing instructions stored in the memory 1202 and calling data stored in the memory 1202, Realize data processing.
  • the processor 1201 may include one or more processing units, and the processor 1201 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, application programs, etc., and the modem processor Mainly analyze the received instructions and analyze the received results. It can be understood that the foregoing modem processor may not be integrated into the processor 1201.
  • the processor 1201 and the memory 1202 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
  • the processor 1201 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiment in which the alarm information is converted into a picture can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 1202 as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
  • the memory 1202 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, disk , CD, etc.
  • the memory 1202 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory 1202 in the embodiment of the present invention may also be a circuit or any other device capable of realizing a storage function for storing program instructions and/or data.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

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

Abstract

The embodiment of the present invention discloses an alarm method, a device and a system, wherein the method includes: a control device receives a first message sent by a monitoring device, and obtains historical alarm information and status of the historical alarm information, if it is determined that no alternative historical alarm information is presented in the historical alarm information, at least one piece of alarm information is sent to a server, such that the server converts the at least one piece of alarm information into an image. In the embodiment of the present invention, through the communication between the monitoring device, the control device and the server, the automated alarm mode can be realized, that is, the automatic execution process of obtaining alarm information, converting the alarm information into image, and sending the image to a target operation and maintenance party can be realized, manual participation is not required in this process, such that the technical problem of low alarm efficiency caused by manual screenshots in the prior art is avoided, and the alarm efficiency is improved.

Description

一种告警方法、装置及系统Alarm method, device and system
相关申请的交叉引用Cross references to related applications
本申请要求在2019年04月25日提交中国专利局、申请号为201910339783.9、申请名称为“一种告警方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910339783.9, and the application name is "an alarm method, device and system" on April 25, 2019, the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本发明涉及金融科技(Fintech)技术领域,尤其涉及一种告警方法、装置及系统。The present invention relates to the technical field of financial technology (Fintech), in particular to an alarm method, device and system.
背景技术Background technique
随着计算机技术的发展,越来越多的技术应用在金融领域,传统金融行业正在逐步向金融科技(Fintech)转变,但由于金融行业的安全性、实时性要求,也对技术提出了更高的要求。金融行业(比如银行)一般可以设置有多个生产系统,多个生产系统可以通过协调运作来执行与交易相关的业务,比如投资交易业务(股票、债券、期货等)、资产交易业务(信托、管理、储蓄等)、保险交易业务等。在实际生活中,若生产系统的运行状态出现故障,可能会严重影响银行的各类交易活动,因此,通常需要监控多个生产系统的运行状态,一旦发现某一个生产系统的运行状态出现故障,可以及时生成告警信息,并可以将告警信息转发给运维人员进行维护工作,从而保证银行发展的安全性和稳定性。With the development of computer technology, more and more technologies are applied in the financial field. The traditional financial industry is gradually transforming to Fintech. However, due to the security and real-time requirements of the financial industry, higher technology is also proposed. Requirements. The financial industry (such as banks) can generally be set up with multiple production systems, and multiple production systems can perform transaction-related businesses through coordinated operations, such as investment trading business (stocks, bonds, futures, etc.), asset trading business (trust, Management, savings, etc.), insurance transaction business, etc. In real life, if the operating status of the production system fails, it may seriously affect the various transaction activities of the bank. Therefore, it is usually necessary to monitor the operating status of multiple production systems. Once a fault is found in the operating status of a certain production system, Alarm information can be generated in time, and the alarm information can be forwarded to operation and maintenance personnel for maintenance work, thereby ensuring the safety and stability of the bank's development.
一般来说,为了便于运维人员发现故障原因,可以预先将告警信息转化为图片,并将告警信息对应的图片发送给运维人员。现有技术中,人工截图的方式是将告警信息转化为图片的一种常用方式。具体地说,监控装置上可以设置有监控页面,监控人员若发现监控页面上显示了一条新的告警信息,则可以对该告警信息进行分析,若确定该告警信息的级别较为严重,需要进 行后续的故障处理工作,则可以对该告警信息进行截图,并将截图发送给运维人员。然而,在实际操作过程中,银行的交易量通常是非常多的,比如每秒钟可以产生十万次交易,相应地,大量的交易可能会使得告警信息较为频繁的出现,使得监控人员无法及时确定哪些告警信息需要进行告警,从而导致告警的效率较低。Generally speaking, in order to facilitate the operation and maintenance personnel to discover the cause of the failure, the alarm information can be converted into pictures in advance, and the pictures corresponding to the alarm information can be sent to the operation and maintenance personnel. In the prior art, the manual screenshot method is a common method for converting alarm information into pictures. Specifically, a monitoring page can be set on the monitoring device. If the monitoring personnel find that a new alarm information is displayed on the monitoring page, they can analyze the alarm information. If it is determined that the level of the alarm information is relatively serious, follow-up is required For troubleshooting, you can take a screenshot of the alarm information and send the screenshot to the operation and maintenance personnel. However, in the actual operation process, the transaction volume of the bank is usually very large, such as 100,000 transactions per second. Accordingly, a large number of transactions may cause the alarm information to appear more frequently, making the monitoring personnel unable to timely Determine which alarm information needs to be alarmed, resulting in low alarm efficiency.
综上,目前亟需一种告警方法,用以提高告警效率。In summary, there is an urgent need for an alarm method to improve alarm efficiency.
发明内容Summary of the invention
本发明实施例提供一种告警方法、装置及系统,用以提高告警效率。The embodiments of the present invention provide an alarm method, device, and system to improve alarm efficiency.
第一方面,本发明实施例提供的一种告警方法,包括:In the first aspect, an alarm method provided by an embodiment of the present invention includes:
控制装置接收监控装置发送的第一消息,所述第一消息包括所述监控装置通过监控一个或多个生产系统生成的至少一条告警信息;进一步地,所述控制装置获取一条或多条历史告警信息以及所述一条或多条历史告警信息的状态;其中,所述历史告警信息的状态包括恢复状态和未恢复状态,所述恢复状态用于指示触发所述历史告警信息的事件已成功处理,所述未恢复状态用于指示触发所述历史告警信息的事件未成功处理;所述控制装置若确定所述一条或多条历史告警信息中不存在备选历史告警信息,则将所述至少一条告警信息发送给服务器,以使所述服务器将所述至少一条告警信息转化为图片;所述备选历史告警信息的状态为未恢复状态。The control device receives a first message sent by the monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; further, the control device obtains one or more historical alarms Information and the status of the one or more pieces of historical alarm information; wherein the status of the historical alarm information includes a restored state and an unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed, The unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed; if the control device determines that there is no candidate historical alarm information in the one or more pieces of historical alarm information, then the at least one The alarm information is sent to the server, so that the server converts the at least one piece of alarm information into a picture; the state of the candidate historical alarm information is an unrecovered state.
上述技术方案中,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则可以直接将至少一条告警信息发送给服务器,而无需通过人工的方式确定哪些告警信息需要进行告警,从而可以提高告警的效率;且,通过监控装置、控制装置和服务器之间的通信,可以实现自动化的告警方式,即可以实现获取告警信息、将告警信息转化为图片以及将图片发送给目标运维方的自动化执行过程,在该过程中无需人工参与,从而可以避免现有技术采用人工截图方式所造成的告警不准确的技术问题,提高告警的准确性。In the above technical solution, if the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it can directly send at least one alarm information to the server without manually determining which alarm information needs to be alerted , So as to improve the efficiency of the alarm; and, through the communication between the monitoring device, the control device and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into pictures, and the pictures can be sent to the target operation. Uighur’s automated execution process requires no human involvement in the process, which can avoid the technical problems of inaccurate alarms caused by manual screenshots in the prior art and improve the accuracy of alarms.
可选地,所述方法还包括:所述控制装置若确定所述一条或多条历史告警信息中存在至少一条备选历史告警信息,则针对于所述至少一条告警信息中的任一告警信息,执行:若确定所述至少一条备选历史告警信息中不存在关键字信息与所述告警信息的关键字信息匹配的备选历史告警信息,或者,若确定所述备选历史告警信息中存在第一备选告警信息,所述第一备选告警信息的关键字信息与所述告警信息的关键字信息匹配,且所述第一备选告警信息的生成时刻与所述告警信息的生成时刻的差值大于或等于预设时长,则确定所述告警信息为目标告警信息;进一步地,所述控制装置将至少一条目标告警信息发送给所述服务器,以使所述服务器将所述至少一条目标告警信息转化为图片。Optionally, the method further includes: if the control device determines that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, targeting at any one of the at least one piece of alarm information , Execute: if it is determined that there is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information in the at least one candidate historical alarm information, or if it is determined that the candidate historical alarm information exists The first candidate alarm information, the keyword information of the first candidate alarm information matches the keyword information of the alarm information, and the generation time of the first candidate alarm information and the generation time of the alarm information If the difference is greater than or equal to the preset duration, it is determined that the alarm information is target alarm information; further, the control device sends at least one piece of target alarm information to the server, so that the server will The target alarm information is converted into pictures.
上述技术方案中,通过设置预设筛选条件(即关键字信息和预设时长),可以从至少一条告警信息中确定出需要进行截图的目标告警信息,其中,目标告警信息可以为预设时间段内未出现的告警信息,或者也可以为新的告警信息;也就是说,通过基于预设筛选条件筛选出目标告警信息,可以无需对重复出现的告警信息进行截图,从而可以节省资源,并可以提高将告警信息转化为图片的处理效率。In the above technical solution, by setting preset filtering conditions (that is, keyword information and preset duration), the target alarm information that needs to be screenshotted can be determined from at least one piece of alarm information, where the target alarm information may be a preset time period The alarm information that does not appear in the internal, or can also be new alarm information; that is, by filtering out the target alarm information based on preset filter conditions, there is no need to take screenshots of the repeated alarm information, which can save resources and can Improve the processing efficiency of converting alarm information into pictures.
可选地,所述至少一条告警信息为所述监控装置在第一时刻至当前时刻通过监控一个或多个生产系统生成的,所述第二时刻位于所述第一时刻之后;所述控制装置接收监控装置发送的第一消息之前,还包括:所述控制装置若确定所述第一时刻之前的告警信息已成功转化为图片,则向所述监控装置发送第二消息,所述第二消息中包括所述第一时刻和所述第二时刻。Optionally, the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from the first moment to the current moment, and the second moment is located after the first moment; the control device Before receiving the first message sent by the monitoring device, the method further includes: if the control device determines that the alarm information before the first moment has been successfully converted into a picture, sending a second message to the monitoring device, the second message Includes the first moment and the second moment.
上述技术方案中,若第一时刻之前的告警信息成功转化为图片,则可以对第一时刻至第二时刻的告警信息进行转化,通过采用该种转化方式,可以使得监控装置生成的告警信息按照时间顺序依次被转化为图片;也就是说,上述技术方案实现了一种自动化告警的方法,采用该种方法,告警过程可以一直执行下去,而无需人为控制,操作过程简单,更加便于实现。In the above technical solution, if the alarm information before the first moment is successfully converted into a picture, the alarm information from the first moment to the second moment can be converted. By adopting this conversion method, the alarm information generated by the monitoring device can be The time sequence is sequentially converted into pictures; that is to say, the above technical solution realizes an automatic warning method, with this method, the warning process can be executed continuously without human control, and the operation process is simple and easier to implement.
可选地,所述方法还包括:所述控制装置接收所述服务器发送的所述目 标告警信息对应的图片,并根据所述目标告警信息的业务类型,确定所述目标告警信息对应的目标运维方;进一步地,所述控制装置将所述目标告警信息对应的图片发送给所述目标运维方,并确定所述目标告警信息已成功转化为图片。Optionally, the method further includes: the control device receives the picture corresponding to the target alarm information sent by the server, and determines the target operation corresponding to the target alarm information according to the service type of the target alarm information. Further, the control device sends the picture corresponding to the target alarm information to the target operation and maintenance party, and determines that the target alarm information has been successfully converted into a picture.
上述技术方案中,控制装置若接收到目标告警信息对应的图片,则可以将该图片发送给目标运维方,从而可以使得目标运维方对触发目标告警信息的事件进行处理;通过设置控制装置与目标运维方之间的通信,可以提高生产系统故障维护的效率,及时解决触发目标告警信息的生产系统的故障问题,降低损失。In the above technical solution, if the control device receives the picture corresponding to the target alarm information, it can send the picture to the target operation and maintenance party, so that the target operation and maintenance party can process the event that triggers the target alarm information; by setting the control device Communication with the target operation and maintenance party can improve the efficiency of fault maintenance of the production system, timely solve the fault problem of the production system that triggers the target alarm information, and reduce losses.
第二方面,本发明实施例提供的一种告警方法,所述方法包括:In the second aspect, an alarm method provided by an embodiment of the present invention includes:
服务器接收控制装置发送的目标告警信息,并生成所述目标告警信息对应的WEB界面;进一步地,所述服务器对所述WEB界面进行截图,得到所述目标告警信息对应的图片,并将所述目标告警信息对应的图片发送给所述控制装置。The server receives the target alarm information sent by the control device, and generates the WEB interface corresponding to the target alarm information; further, the server takes a screenshot of the WEB interface to obtain the picture corresponding to the target alarm information, and compares the The picture corresponding to the target alarm information is sent to the control device.
上述技术方案中,服务器生成目标告警信息对应的WEB界面后,可以直接调用服务器中设置的截图工具对目标告警信息对应的WEB界面进行截图,而无需使用WEB浏览器对目标告警信息对应的WEB界面进行截图,一方面,相比于现有技术将目标告警信息的WEB界面显示在WEB浏览器中并由人工进行截图的方式来说,可以提高将告警信息转化为图片的效率,进而提高告警效率;另一方面,通过服务器进行截图,可以简化操作,便于实现。In the above technical solution, after the server generates the WEB interface corresponding to the target alarm information, it can directly call the screenshot tool set in the server to take screenshots of the WEB interface corresponding to the target alarm information without using a WEB browser to capture the WEB interface corresponding to the target alarm information. Taking screenshots, on the one hand, compared with the prior art method of displaying the WEB interface of the target alarm information in the WEB browser and manually taking screenshots, it can improve the efficiency of converting the alarm information into pictures, thereby increasing the efficiency of the alarm. ; On the other hand, taking screenshots through the server can simplify operations and facilitate implementation.
可选地,所述服务器生成所述目标告警信息对应的WEB界面,包括:所述服务器获取至少一个预设WEB模板,所述至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;进一步地,所述服务器根据所述目标告警信息所属的业务类型,从所述至少一个预设WEB模板中确定目标WEB模板,并使用所述目标WEB模板渲染所述目标告警信息,得到所述目标告警信息对应的WEB界面。Optionally, the server generating the WEB interface corresponding to the target alarm information includes: the server acquiring at least one preset WEB template, and the at least one preset WEB template is preset for generating alarm information corresponding to A template of the WEB interface; further, the server determines a target WEB template from the at least one preset WEB template according to the business type to which the target alarm information belongs, and uses the target WEB template to render the target alarm information To obtain the WEB interface corresponding to the target alarm information.
上述技术方案中,预设WEB模板可以为根据实际需要定制的,或者也可 以为根据本领域技术人员根据经验设置的,也就是说,上述技术方案可以实现将告警信息转化为定制化的图片,从而可以适用于多种场景,更加符合实际需要。In the above technical solution, the preset WEB template can be customized according to actual needs, or it can be set based on the experience of those skilled in the art, that is, the above technical solution can realize the conversion of alarm information into customized pictures. Thus, it can be applied to a variety of scenarios and more in line with actual needs.
第三方面,本发明实施例提供的一种告警装置,所述装置包括:In a third aspect, an alarm device provided by an embodiment of the present invention includes:
收发模块,用于接收监控装置发送的第一消息,所述第一消息包括所述监控装置通过监控一个或多个生产系统生成的至少一条告警信息;A transceiver module, configured to receive a first message sent by a monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
获取模块,用于获取一条或多条历史告警信息以及所述一条或多条历史告警信息的状态;其中,所述历史告警信息的状态包括恢复状态和未恢复状态,所述恢复状态用于指示触发所述历史告警信息的事件已成功处理,所述未恢复状态用于指示触发所述历史告警信息的事件未成功处理;The obtaining module is used to obtain one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrestored state, and the restored state is used to indicate The event that triggered the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
处理模块,用于若确定所述一条或多条历史告警信息中不存在备选历史告警信息,则将所述至少一条告警信息发送给服务器,以使所述服务器将所述至少一条告警信息转化为图片;所述备选历史告警信息的状态为未恢复状态。A processing module, configured to send the at least one piece of alarm information to a server if it is determined that there is no candidate historical alarm information in the one or more pieces of historical alarm information, so that the server converts the at least one piece of alarm information It is a picture; the state of the candidate historical alarm information is an unrecovered state.
可选地,所述处理模块还用于:若确定所述一条或多条历史告警信息中存在至少一条备选历史告警信息,则针对于所述至少一条告警信息中的任一告警信息,执行:若确定所述至少一条备选历史告警信息中不存在关键字信息与所述告警信息的关键字信息匹配的备选历史告警信息,或者,若确定所述备选历史告警信息中存在第一备选告警信息,所述第一备选告警信息的关键字信息与所述告警信息的关键字信息匹配,且所述第一备选告警信息的生成时刻与所述告警信息的生成时刻的差值大于或等于预设时长,则确定所述告警信息为目标告警信息;进一步地,将至少一条目标告警信息发送给所述服务器,以使所述服务器将所述至少一条目标告警信息转化为图片。Optionally, the processing module is further configured to: if it is determined that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, execute for any alarm information in the at least one piece of alarm information : If it is determined that there is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information in the at least one candidate historical alarm information, or if it is determined that the first candidate historical alarm information has the first Alternative alarm information, the keyword information of the first alternative alarm information matches the keyword information of the alarm information, and the difference between the generation time of the first alternative alarm information and the generation time of the alarm information If the value is greater than or equal to the preset duration, the alarm information is determined to be target alarm information; further, at least one piece of target alarm information is sent to the server, so that the server converts the at least one piece of target alarm information into a picture .
可选地,所述至少一条告警信息为所述监控装置在第一时刻至当前时刻通过监控一个或多个生产系统生成的,所述第二时刻位于所述第一时刻之后;所述收发模块接收监控装置发送的第一消息之前,还用于:若确定所述第一时刻之前的告警信息已成功转化为图片,则向所述监控装置发送第二消息, 所述第二消息中包括所述第一时刻和所述第二时刻。Optionally, the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from the first moment to the current moment, and the second moment is located after the first moment; the transceiver module Before receiving the first message sent by the monitoring device, it is also used to: if it is determined that the alarm information before the first moment has been successfully converted into a picture, send a second message to the monitoring device, where the second message includes all The first moment and the second moment.
可选地,所述收发模块还用于:接收所述服务器发送的所述目标告警信息对应的图片,并根据所述目标告警信息的业务类型,确定所述目标告警信息对应的目标运维方;进一步地,将所述目标告警信息对应的图片发送给所述目标运维方,并确定所述目标告警信息已成功转化为图片。Optionally, the transceiver module is further configured to: receive a picture corresponding to the target alarm information sent by the server, and determine the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information Further, the picture corresponding to the target alarm information is sent to the target operation and maintenance party, and it is determined that the target alarm information has been successfully converted into a picture.
第四方面,本发明实施例提供的一种告警装置,所述装置包括:In a fourth aspect, an alarm device provided by an embodiment of the present invention includes:
生成模块,用于接收控制装置发送的目标告警信息,并生成所述目标告警信息对应的WEB界面;The generating module is used to receive the target alarm information sent by the control device, and generate the WEB interface corresponding to the target alarm information;
截图模块,用于对所述WEB界面进行截图,得到所述目标告警信息对应的图片;The screenshot module is used to take a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information;
收发模块,用于将所述目标告警信息对应的图片发送给所述控制装置。The transceiver module is used to send the picture corresponding to the target alarm information to the control device.
可选地,所述生成模块用于:获取至少一个预设WEB模板,所述至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;进一步地,根据所述目标告警信息所属的业务类型,从所述至少一个预设WEB模板中确定目标WEB模板,并使用所述目标WEB模板渲染所述目标告警信息,得到所述目标告警信息对应的WEB界面。Optionally, the generating module is configured to: obtain at least one preset WEB template, the at least one preset WEB template being a preset template for generating a WEB interface corresponding to the alarm information; further, according to the target The service type to which the alarm information belongs, a target WEB template is determined from the at least one preset WEB template, and the target WEB template is used to render the target alarm information to obtain a WEB interface corresponding to the target alarm information.
第五方面,本发明实施例提供的一种告警系统,所述系统包括监控装置、控制装置和服务器;In a fifth aspect, an alarm system provided by an embodiment of the present invention includes a monitoring device, a control device, and a server;
所述监控装置,用于监控与所述监控装置连接的一个或多个生产系统的运行状态,并生成所述一个或多个生产系统对应的一条或多条告警信息;The monitoring device is used for monitoring the operating status of one or more production systems connected to the monitoring device, and generating one or more pieces of alarm information corresponding to the one or more production systems;
所述控制装置,用于通过与所述监控装置通信,获取所述一条或多条告警信息中的至少一条告警信息,并从所述至少一条告警信息中确定目标告警信息,将所述目标告警信息发送给所述服务器;The control device is configured to obtain at least one piece of alarm information among the one or more pieces of alarm information by communicating with the monitoring device, and determine target alarm information from the at least one piece of alarm information, and set the target alarm information to Information is sent to the server;
所述服务器,用于接收所述目标告警信息,并生成所述目标告警信息对应的图片。The server is configured to receive the target alarm information and generate a picture corresponding to the target alarm information.
可选地,所述服务器还用于:将所述目标告警信息对应的图片发送给所述控制装置;Optionally, the server is further configured to: send a picture corresponding to the target alarm information to the control device;
所述控制装置还用于:接收所述服务器发送的所述目标告警信息对应的图片后,将所述目标告警信息对应的图片发送给所述目标告警信息对应的目标运维方。The control device is further configured to: after receiving the picture corresponding to the target alarm information sent by the server, send the picture corresponding to the target alarm information to the target operation and maintenance party corresponding to the target alarm information.
第六方面,本发明实施例提供的一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如上述第一方面或第二方面任意所述的方法。In a sixth aspect, a computer-readable storage medium provided by an embodiment of the present invention includes instructions, which when run on a computer, cause the computer to execute the method described in any of the first or second aspects.
第七方面,本发明实施例提供的一种计算机程序产品,当其在计算机上运行时,使得计算机执行如上述第一方面或第二方面任意所述的方法。In a seventh aspect, a computer program product provided by an embodiment of the present invention, when it is run on a computer, causes the computer to execute the method described in any of the foregoing first or second aspects.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the application will be more concise and understandable in the description of the following embodiments.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative work, other drawings can be obtained from these drawings.
图1为本发明实施例提供的一种告警系统的架构示意图;Figure 1 is a schematic diagram of the architecture of an alarm system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种告警方法对应的流程示意图;FIG. 2 is a schematic diagram of a process corresponding to an alarm method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种告警装置的结构示意图;Figure 3 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention;
图4为本发明实施例提供的一种告警装置的结构示意图;Figure 4 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种告警系统中各装置的结构示意图;Figure 5 is a schematic structural diagram of each device in an alarm system provided by an embodiment of the present invention;
图6为本发明实施例提供的一种终端设备的结构示意图;FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图7为本发明实施例提供的一种后端设备的结构示意图。FIG. 7 is a schematic structural diagram of a back-end device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在 没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
金融科技(Fintech)是指将信息技术融入金融领域后,为金融领域带来的一种新的创新科技,通过使用先进的信息技术辅助实现金融作业、交易执行以及金融系统改进,可以提升金融系统的处理效率、业务规模,并可以降低成本和金融风险。Fintech refers to a new innovative technology brought to the financial field after the integration of information technology into the financial field. The financial system can be improved by using advanced information technology to assist in financial operations, transaction execution and financial system improvements. Processing efficiency, business scale, and can reduce costs and financial risks.
批量处理业务是金融科技行业的一种常规作业方式,由于批量处理业务所处理的交易的数量和种类较多、数据量较大,从而在金融科技行业的应用领域较为普遍。在实际操作中,通常需要保证批量处理业务中的多个交易可以安全、顺利地被处理,然而,处理多个交易的多个生产系统可能会存在多种事件,比如网络延时事件、内存(或磁盘、硬盘)不足事件、机器零部件损坏事件等。通常来说,监控多种生产系统的监控装置一旦检测到上述问题,即可生成告警信息;其中,不同生产系统对应的告警信息可以不同、不同事件触发的告警信息也可以不同。以后者为例,与上述事件相对应的告警信息可以为网络延时造成的告警信息、机器的内存不足造成的告警信息、机器零部件损坏造成的告警信息等。因此,一旦出现较为严重的告警信息,通常需要对告警信息进行截图,并将图片发送给运维人员,以使运维人员对触发该告警信息的事件进行处理,从而使得生产系统可以顺利运行,避免生产系统出现故障。Batch processing business is a regular operation method in the financial technology industry. Due to the large number and types of transactions processed by the batch processing business and the large amount of data, it is more common in the application field of the financial technology industry. In actual operation, it is usually necessary to ensure that multiple transactions in a batch processing business can be processed safely and smoothly. However, multiple production systems that process multiple transactions may have multiple events, such as network delay events, memory ( Or disk, hard disk) insufficient events, machine parts damage events, etc. Generally speaking, a monitoring device that monitors multiple production systems can generate alarm information once it detects the above-mentioned problems; wherein, the alarm information corresponding to different production systems can be different, and the alarm information triggered by different events can also be different. Taking the latter as an example, the alarm information corresponding to the above event may be alarm information caused by network delay, alarm information caused by insufficient memory of the machine, alarm information caused by damage to machine parts, etc. Therefore, once more serious alarm information appears, it is usually necessary to take a screenshot of the alarm information and send the picture to the operation and maintenance personnel, so that the operation and maintenance personnel can process the event that triggers the alarm information, so that the production system can run smoothly. Avoid failure of the production system.
现有技术通常采用人工截图的获取告警信息对应的图片,采用该种方式,可能会无法及时对告警信息进行截图,从而导致生产系统的恢复过程被延误,业务执行过程受到较大的影响。综上,目前亟需一种告警方法,用以提高告警效率。The prior art usually uses manual screenshots to obtain pictures corresponding to the alarm information. In this way, it may not be possible to screenshot the alarm information in time, resulting in delays in the recovery process of the production system and greater impact on the business execution process. In summary, there is an urgent need for an alarm method to improve alarm efficiency.
图1为本发明实施例提供的一种告警系统的架构示意图,如图1所示,该系统可以包括监控装置110、控制装置120和服务器130。其中,监控装置110与控制装置120、控制装置120与服务器130之间可以通信连接,比如通过有线方式实现通信连接,或者通过无线方式实现通信连接,具体不作限定。FIG. 1 is a schematic diagram of the architecture of an alarm system provided by an embodiment of the present invention. As shown in FIG. 1, the system may include a monitoring device 110, a control device 120, and a server 130. Wherein, the monitoring device 110 and the control device 120, and the control device 120 and the server 130 may be communicatively connected, for example, a communication connection is realized in a wired manner, or a communication connection is realized in a wireless manner, which is not specifically limited.
如图1所示,监控装置110可以与至少一个生产系统(比如生产系统101、生产系统102和生产系统103)连接,每个生产系统可以处理该生产系统对应的交易,比如生产系统101可以处理与订单业务相关的交易,生产系统102可以处理与保险业务相关的交易,生产系统103可以处理与理财业务相关的交易。具体实施中,监控装置110可以监控生产系统101~生产系统103的运行状态,若确定某一个生产系统(比如生产系统101)在处理交易的过程中触发某一告警信息对应的事件(比如生产系统101中处理交易的机器a的内存小于预设内存阈值),则可以生成生产系统101对应的告警信息(比如告警信息b),告警信息b中可以包括告警的类型、告警信息b的生成时刻、告警所属的生产系统101的标识等。进一步地,监控装置110可以将告警信息b存储在监控装置110的预设存储空间中,如此,监控装置110的预设存储空间中可以存储有从初始时刻到当前时刻通过监控生产系统101~生产系统103所生成的多条告警信息。As shown in Figure 1, the monitoring device 110 can be connected to at least one production system (such as production system 101, production system 102, and production system 103), and each production system can process transactions corresponding to the production system, for example, production system 101 can process For transactions related to order business, the production system 102 can process transactions related to insurance business, and the production system 103 can process transactions related to wealth management business. In specific implementation, the monitoring device 110 can monitor the operating status of the production system 101 to the production system 103. If it is determined that a certain production system (such as the production system 101) triggers an event corresponding to a certain alarm information (such as the production system) during transaction processing. The memory of the transaction processing machine a in 101 is less than the preset memory threshold), then the alarm information corresponding to the production system 101 (such as alarm information b) can be generated, and the alarm information b can include the type of alarm, the generation time of the alarm information b, The identification of the production system 101 to which the alarm belongs, etc. Further, the monitoring device 110 may store the alarm information b in the preset storage space of the monitoring device 110. In this way, the preset storage space of the monitoring device 110 may store information from the initial time to the current time through the monitoring production system 101~ Multiple pieces of alarm information generated by the system 103.
进一步地,控制装置120可以通过与监控装置110的通信交互,从监控装置110中获取预设数量的告警信息或预设时间段的告警信息。以获取预设数量的告警信息为例,若预设数量为500,则控制装置120每次可以获取到500条告警信息,并可以从500条告警信息中选择出需要运维人员进行维护的告警信息(比如200条告警信息);此时,控制装置120可以将200条告警信息发送给服务器130。相应地,服务器130接收到200条告警信息后,可以生成200条告警信息对应的至少一张图片,如此,运维人员即可以根据至少一张图片对触发告警信息的事件进行处理。Further, the control device 120 may obtain a preset number of alarm information or alarm information for a preset time period from the monitoring device 110 through communication interaction with the monitoring device 110. Taking obtaining a preset number of alarm information as an example, if the preset number is 500, the control device 120 can obtain 500 alarm information at a time, and can select the alarms that require maintenance by operation and maintenance personnel from the 500 alarm information. Information (for example, 200 pieces of alarm information); at this time, the control device 120 may send 200 pieces of alarm information to the server 130. Correspondingly, after the server 130 receives 200 pieces of alarm information, it can generate at least one picture corresponding to the 200 pieces of alarm information. In this way, the operation and maintenance personnel can process the event that triggers the alarm information according to the at least one picture.
在一个示例中,告警系统中还可以包括与控制装置120连接的至少一个目标运维方,比如图1所示意的目标运维方141、目标运维方142、目标运维方143,控制装置120可以通过有线方式与至少一个目标运维方中的任一目标运维方连接,比如通过网线或光纤与目标运维方141~目标运维方143连接;或者也可以通过无线方式与至少一个目标运维方中的任一目标运维方连接,比如通过WIFI或蓝牙与目标运维方141~目标运维方143连接;或者还可以 通过有线方式与目标运维方141连接,通过无线方式与目标运维方142与目标运维方143连接,具体不作限定。In an example, the alarm system may also include at least one target operation and maintenance party connected to the control device 120, such as the target operation and maintenance party 141, the target operation and maintenance party 142, and the target operation and maintenance party 143 shown in FIG. 120 can be connected to any of the at least one target operation and maintenance party in a wired manner, for example, to the target operation and maintenance party 141 to the target operation and maintenance party 143 via a network cable or optical fiber; or it can also be connected to at least one of the at least one Connect to any target operation and maintenance party in the target operation and maintenance party, such as connecting to the target operation and maintenance party 141 to the target operation and maintenance party 143 via WIFI or Bluetooth; or it can also be connected to the target operation and maintenance party 141 in a wired manner, and wirelessly The connection with the target operation and maintenance party 142 and the target operation and maintenance party 143 is not specifically limited.
相应地,服务器在生成200条告警信息对应的至少一张图片后,还可以将200条告警信息对应的至少一张图片发送给控制装置120。控制装置120接收到服务器130发送的至少一张图片后,可以将至少一张图片分别发送给对应的目标运维方;举例来说,控制装置120接收到图片1、图片2和图片3,若确定图片1、图片2和图片3分别对应的目标运维方为目标运维方141、目标运维方142和目标运维方143,则可以将图片1发送给目标运维方141,将图片2发送给目标运维方142,并将图片3发送给目标运维方143。以目标运维方143为例,目标运维方143接收到图片3后,可以根据图片3中的内容分析触发图片3对应的告警信息的事件,若图片3对应的告警信息为告警信息b,则目标运维方可以通过多种方式扩展生产系统101中机器a的内存,比如可以将机器a中的磁盘替换为容量更大的磁盘,或者可以将机器a的内存中存储的无关数据删除。如此,通过上述执行过程,可以将监控装置110中的告警信息转化为图片,并可以实现对生产系统的自动化监控和维护。Correspondingly, after generating at least one picture corresponding to the 200 pieces of alarm information, the server may also send at least one picture corresponding to the 200 pieces of alarm information to the control device 120. After the control device 120 receives at least one picture sent by the server 130, it may send at least one picture to the corresponding target operation and maintenance party; for example, the control device 120 receives picture 1, picture 2 and picture 3, if Determine that the target operation and maintenance party corresponding to picture 1, picture 2 and picture 3 are target operation and maintenance party 141, target operation and maintenance party 142, and target operation and maintenance party 143, then picture 1 can be sent to target operation and maintenance party 141, and the picture 2 is sent to the target operation and maintenance party 142, and the picture 3 is sent to the target operation and maintenance party 143. Taking the target operation and maintenance party 143 as an example, after the target operation and maintenance party 143 receives picture 3, it can analyze the event that triggers the alarm information corresponding to picture 3 according to the content in picture 3. If the alarm information corresponding to picture 3 is alarm information b, The target operation and maintenance party can expand the memory of machine a in the production system 101 in various ways, for example, the disk in machine a can be replaced with a larger capacity disk, or the irrelevant data stored in the memory of machine a can be deleted. In this way, through the above-mentioned execution process, the alarm information in the monitoring device 110 can be converted into pictures, and the automatic monitoring and maintenance of the production system can be realized.
基于图1所示意的告警系统,图2为本发明实施例提供的一种告警方法对应的交互流程示意图,该方法包括:Based on the alarm system illustrated in Fig. 1, Fig. 2 is a schematic diagram of the interaction process corresponding to an alarm method provided by an embodiment of the present invention, and the method includes:
步骤201,控制装置向监控装置发送第一请求消息。Step 201: The control device sends a first request message to the monitoring device.
此处,第一请求消息可以用于请求监控装置通过监控至少一个生产系统所生成的至少一条告警信息。监控装置在启动时(即初始时刻),即可开始监控至少一个生产系统,若确定至少一个生产系统中的任一生产系统的状态触发告警,则可以生成该生产系统对应的该次告警的告警信息;举例来说,若监控装置检测到生产系统102在10:00时由于网络中断导致无法处理交易,则监控装置可以生成表1所示意的告警信息。Here, the first request message may be used to request the monitoring device to monitor at least one piece of alarm information generated by at least one production system. When the monitoring device is started (that is, the initial moment), it can start to monitor at least one production system. If it is determined that the state of any one of the production systems in the at least one production system triggers an alarm, an alarm corresponding to the production system can be generated. Information; For example, if the monitoring device detects that the production system 102 cannot process transactions due to network interruption at 10:00, the monitoring device can generate the alarm information shown in Table 1.
表1:一种告警信息的示意Table 1: Schematic of a kind of alarm information
告警标题Alert title 生产系统production system 告警级别Alert level 生成时刻Generation time 业务域Business domain
网络中断Network interruption 生产系统102Production system 102 高级advanced 10:0010:00 订单管理Order management
在该示例中,监控装置生成的告警信息中可以包括告警标题、告警所属的生产系统、告警级别、告警信息的生成时刻和告警所属的业务域。如表1所示,该条告警信息的告警标题可以为“网络中断”,所属的生产系统为生产系统102,告警级别为高级,告警信息的生成时刻为10:00,告警的业务域为订单管理;根据该条告警信息的内容可知,该条告警信息的生成原因为10:00时生产系统102由于网络中断而无法执行订单管理业务,由于当前生产系统102无法进行交易执行,因此该条告警信息的等级可以为高级。In this example, the alarm information generated by the monitoring device may include the alarm title, the production system to which the alarm belongs, the alarm level, the time when the alarm information is generated, and the business domain to which the alarm belongs. As shown in Table 1, the alarm title of this alarm message can be "network interruption", the production system to which it belongs is production system 102, the alarm level is advanced, the alarm information generation time is 10:00, and the alarm business domain is order Management; According to the content of the alarm information, the reason for the generation of the alarm information is that the production system 102 cannot perform the order management service due to network interruption at 10:00, and the current production system 102 cannot perform transaction execution, so the alarm The level of information can be advanced.
可选地,第一请求消息中可以包括告警等级、生成时间范围和告警的状态,以告警等级为例,告警等级可以为预先配置好的,或者也可以为通过用户的选择得到的。具体地说,若告警等级为预先配置好的(比如高级),则控制装置发送的每一个第一请求消息中所包括的告警等级均可以为高级;若告警等级为通过用户的选择得到的,则控制装置在每次生成第一请求消息时,可以通过WEB浏览器向用户展示配置页面,并提示用户在配置页面上选择此次第一请求消息中包括的告警等级,若用户选择的告警等级为中级以上,则第一请求消息中包括的告警等级可以为中级与高级。Optionally, the first request message may include the alarm level, the generation time range, and the state of the alarm. Taking the alarm level as an example, the alarm level may be pre-configured, or may be obtained through user selection. Specifically, if the alarm level is pre-configured (for example, advanced), the alarm level included in each first request message sent by the control device may be advanced; if the alarm level is obtained through user selection, Then every time the control device generates the first request message, it can display the configuration page to the user through the WEB browser and prompt the user to select the alarm level included in the first request message on the configuration page. If the user selects the alarm level If the level is above intermediate, the alarm level included in the first request message may be intermediate or high.
相应地,以预先配置生成时间范围为例,预先配置的生成时间范围可以为一个固定时长(比如10min),或者也可以为一个可变时长,具体不作限定。在一个示例中,生成时间范围可以为第一时刻至当前时刻的时间范围,其中,第一时刻可以为控制装置在上一次处理的告警信息所对应的生成时刻中的最新时刻;举例来说,若当前时刻为10:20,控制装置第一次从监控装置获取的告警信息为9:55~10:00时间范围内的告警信息,则控制装置第二次从监控装置获取的告警信息可以为10:00~10:20时间范围内的告警信息。Correspondingly, taking the pre-configured generation time range as an example, the pre-configured generation time range may be a fixed duration (for example, 10 min), or may also be a variable duration, which is not specifically limited. In an example, the generation time range may be the time range from the first moment to the current moment, where the first moment may be the latest moment among the generation moments corresponding to the alarm information processed last time by the control device; for example, If the current time is 10:20, and the alarm information that the control device obtains from the monitoring device for the first time is the alarm information within the time range of 9:55 to 10:00, the alarm information that the control device obtains from the monitoring device for the second time may be Alarm information within the time range of 10:00~10:20.
本发明实施例中,告警信息的状态可以为恢复状态或未恢复状态,恢复 状态可以用于标识触发告警信息的事件已成功处理,未恢复状态可以用于标识触发告警信息的事件未成功处理。本发明实施例中,第一请求消息中包括的告警的状态可以为未恢复状态,如此,控制装置获取到的至少一条告警信息可以均为未恢复的告警信息,从而可以减少系统资源的浪费,提高处理效率。In the embodiment of the present invention, the state of the alarm information can be a restored state or an unrecovered state. The restored state can be used to identify that the event that triggers the alarm information has been successfully processed, and the unrecovered state can be used to identify that the event that triggers the alarm information has not been successfully processed. In the embodiment of the present invention, the state of the alarm included in the first request message may be an unrecovered state. In this way, at least one piece of alarm information acquired by the control device may be unrecovered alarm information, thereby reducing the waste of system resources. Improve processing efficiency.
步骤202,监控装置根据第一请求消息,从监控装置的预设存储空间中选择至少一条告警信息。Step 202: The monitoring device selects at least one piece of alarm information from the preset storage space of the monitoring device according to the first request message.
具体实施中,若监控装置的预设存储空间中存储有9:00~10:20时间段内生成的1000条告警等级,且监控装置接收到第一请求消息后,确定第一请求消息中包括的告警等级为高级,生成时间范围为10:00~10:20,告警状态为未恢复状态,则监控装置可以从1000条告警请求中获取10:00~10:20时间段内生成的高级且未恢复的至少一条告警信息,比如满足上述条件的告警信息为50条,则监控装置可以获取这50条告警信息。In specific implementation, if 1000 alarm levels generated in the period of 9:00 to 10:20 are stored in the preset storage space of the monitoring device, and after receiving the first request message, the monitoring device determines that the first request message includes The alarm level of is advanced, the generation time range is 10:00~10:20, and the alarm state is unrecovered, the monitoring device can obtain the advanced and generated within the time period of 10:00~10:20 from 1000 alarm requests. At least one piece of alarm information that has not been restored, for example, if there are 50 pieces of alarm information that meet the above conditions, the monitoring device can obtain these 50 pieces of alarm information.
在一个示例中,监控装置在获取到这50条告警信息后,可以监控至少一个生产系统的当前状态,从而确定每一条告警信息的当前状态;若确定某一条告警信息的当前状态为恢复状态,则可以将该条告警信息从50条告警信息中删除。在另一个示例中,监控装置可以在生成告警信息后,实时监控该告警信息对应的状态,一旦发现告警信息的状态为恢复状态,则可以将该条告警信息从预设存储空间中删除。以后者为例,若生产系统102在10:00时对应一个“网络中断”的告警信息,然而监控装置监控到生产系统102在10:02时网络恢复(可以为目标运维方处理恢复的,或者也可以为生成系统102自愈恢复的),则监控装置可以在10:02时将预设存储空间中存储的该条告警信息删除;也就是说,控制装置若在10:01时获取该条告警信息,则由于该条告警信息的状态可以为未恢复状态,因此控制装置可以获取到该条告警信息;相应地,控制装置若在10:03时获取该条告警信息,则由于该条告警信息的状态在10:02时即为恢复状态,因此控制装置无法获取到该条告警信息。In an example, after obtaining the 50 pieces of alarm information, the monitoring device can monitor the current state of at least one production system to determine the current state of each piece of alarm information; if it is determined that the current state of a certain piece of alarm information is the recovery state, Then the piece of alarm information can be deleted from the 50 pieces of alarm information. In another example, the monitoring device may monitor the state corresponding to the alarm information in real time after generating the alarm information, and once the state of the alarm information is found to be in the recovery state, the piece of alarm information may be deleted from the preset storage space. Taking the latter as an example, if the production system 102 corresponds to a "network interruption" alarm message at 10:00, but the monitoring device monitors that the production system 102 has a network recovery at 10:02 (which can be processed by the target operation and maintenance party to recover, Or it can be self-healed by the generation system 102), the monitoring device can delete the alarm information stored in the preset storage space at 10:02; that is, if the control device obtains the alarm at 10:01 Alarm information, because the state of the alarm information can be an unrecovered state, the control device can acquire the alarm information; accordingly, if the control device acquires the alarm information at 10:03, the The state of the alarm information is the recovery state at 10:02, so the control device cannot obtain the alarm information.
本发明实施例中,通过监控至少一条生产系统确定满足条件的告警信息 的状态,可以避免将恢复状态的告警信息发送给监控装置,从而可以提高监控装置发送的告警信息的质量。In the embodiment of the present invention, by monitoring at least one production system to determine the state of the alarm information that satisfies the conditions, it is possible to avoid sending the alarm information in the restored state to the monitoring device, thereby improving the quality of the alarm information sent by the monitoring device.
步骤203,监控装置将至少一条告警信息发送给控制装置。Step 203: The monitoring device sends at least one piece of alarm information to the control device.
此处,监控装置可以向控制装置发送第一信息,第一信息中可以包括50条告警信息。在一个示例中,第一信息中的数据可以为JavaScript对象标记法(JavaScript Object Notation,JSON)格式文本,JSON格式文本可以采用独立于编程语言的文本格式来存储和表示数据,是一种轻量级的数据交换格式。Here, the monitoring device may send the first information to the control device, and the first information may include 50 pieces of alarm information. In an example, the data in the first message can be JavaScript Object Notation (JSON) format text, and the JSON format text can use a text format independent of programming language to store and represent data, which is a kind of lightweight Level data exchange format.
步骤204,控制装置接收到至少一条告警信息后,从至少一条告警信息中确定目标告警信息。Step 204: After receiving at least one piece of alarm information, the control device determines target alarm information from the at least one piece of alarm information.
在一个示例中,控制装置在接收到50条告警信息后,可以获取50条告警信息的生成时刻,并记录50条告警信息对应的50个(或者也可以小于50个)生成时刻中最晚的生成时刻(比如10:20)。在后续执行过程中,若控制装置确定将这50条告警信息中的目标告警信息转化为图片且发送给目标运维方,则可以向监控装置发送第二请求消息,第二请求消息中可以包括10:20这一时刻,该时刻可以用于监控装置获取10:20时刻之后的告警信息。In an example, after receiving 50 pieces of alarm information, the control device can obtain the generation time of 50 pieces of alarm information, and record the latest 50 (or less than 50) generation time corresponding to the 50 pieces of alarm information Generation time (for example, 10:20). In the subsequent execution process, if the control device determines that the target alarm information in the 50 pieces of alarm information is converted into a picture and sent to the target operation and maintenance party, it may send a second request message to the monitoring device, and the second request message may include At 10:20, this time can be used by the monitoring device to obtain alarm information after 10:20.
具体实施中,控制装置从50条告警信息中确定目标告警信息的方式可以有多种,在一种可能的实现方式中,控制装置可以在接收到50条告警信息后,从控制装置的预设数据库中获取一条或多条历史告警信息,历史告警信息可以为控制装置从监控装置中历次获取到的告警信息,比如可以为10:00之前控制装置从监控装置中获取的500条历史告警信息。针对于500条历史告警信息中的任一历史告警信息(比如告警信息d),控制装置通过与监控装置通信交互,获取告警信息d的当前状态,若确定告警信息d的当前状态为恢复状态,则可以将预设数据库中的告警信息d删除,若确定告警信息d的当前状态为未恢复状态,则可以将告警信息d作为一条备选历史告警信息。在该种实现方式中,控制装置在接收到50条告警信息后,可以预先更新预设数据库,即可以将预设数据库中存储的500条历史告警信息中当前状态为恢复状态的历史告警信息删除,从而可以保证在将50条告警信息与预设数据库中的历史告警信 息进行对比之前,预设数据库中存储的备选历史告警信息均为状态为未恢复状态的历史告警信息。In specific implementation, the control device can determine the target alarm information from the 50 pieces of alarm information in multiple ways. In a possible implementation, the control device may, after receiving the 50 pieces of alarm information, start from the preset of the control device One or more pieces of historical alarm information are obtained from the database. The historical alarm information may be the alarm information obtained by the control device from the monitoring device in the past, for example, it may be 500 pieces of historical alarm information obtained by the control device from the monitoring device before 10:00. For any historical alarm information (such as alarm information d) among the 500 historical alarm information, the control device obtains the current state of the alarm information d by communicating and interacting with the monitoring device. If it is determined that the current state of the alarm information d is the recovery state, Then the alarm information d in the preset database can be deleted. If it is determined that the current state of the alarm information d is an unrecovered state, the alarm information d can be used as an alternative historical alarm information. In this implementation manner, after receiving 50 pieces of alarm information, the control device can update the preset database in advance, that is, delete the historical alarm information whose current state is the restored state among the 500 pieces of historical alarm information stored in the preset database Therefore, it can be ensured that before the 50 pieces of alarm information are compared with the historical alarm information in the preset database, the candidate historical alarm information stored in the preset database is all historical alarm information in the unrecovered state.
进一步地,若更新后的预设数据库中不存在备选历史告警信息,则控制装置可以确定50条告警信息均为目标告警信息;相应地,若更新后的预设数据库中存储有400条备选历史告警信息,则控制装置可以根据400条备选历史告警信息的关键字信息、50条告警信息的关键字信息和预设时长,从50条告警信息中确定目标告警信息。在一个示例中,针对于50条告警信息中的任一告警信息(比如告警信息e),若确定400条备选历史告警信息中不存在关键字信息与告警信息e的关键字信息匹配的备选历史告警信息,或者,若确定400条备选历史告警信息中存在第一备选告警信息,第一备选告警信息的关键字信息与告警信息e的关键字信息匹配,且第一备选告警信息的生成时刻与告警信息的生成时刻的差值大于或等于预设时长,则可以确定告警信息e为一条目标告警信息;相应地,若确定400条备选历史告警信息中存在第二备选告警信息,第二备选告警信息的关键字信息与告警信息e的关键字信息匹配,且第二备选告警信息的生成时刻与告警信息的生成时刻的差值小于预设时长,则确定告警信息e为重复的告警信息,此时可以无需处理告警信息e。预设时长均可由本领域技术人员根据经验进行设置,如预设时长可以为5min,或者为10min,具体不作限定。Further, if there is no candidate historical alarm information in the updated preset database, the control device can determine that 50 pieces of alarm information are all target alarm information; accordingly, if there are 400 pieces of backup information stored in the updated preset database If historical alarm information is selected, the control device can determine the target alarm information from the 50 pieces of alarm information based on the keyword information of the 400 pieces of candidate historical alarm information, the keyword information of the 50 pieces of alarm information, and the preset duration. In an example, for any one of the 50 pieces of alarm information (such as alarm information e), if it is determined that there is no backup of the keyword information that matches the keyword information of the alarm information e in the 400 pieces of candidate historical alarm information Select historical alarm information, or if it is determined that the first candidate alarm information exists in the 400 candidate historical alarm information, the keyword information of the first candidate alarm information matches the keyword information of the alarm information e, and the first candidate The difference between the generation time of the alarm information and the generation time of the alarm information is greater than or equal to the preset duration, then the alarm information e can be determined as a target alarm information; accordingly, if it is determined that there is a second backup in the 400 candidate historical alarm information Select the alarm information, the keyword information of the second candidate alarm information matches the keyword information of the alarm information e, and the difference between the generation time of the second candidate alarm information and the generation time of the alarm information is less than the preset duration, then it is determined The alarm information e is repeated alarm information, and there is no need to process the alarm information e at this time. The preset duration can be set by those skilled in the art based on experience. For example, the preset duration can be 5 min or 10 min, which is not specifically limited.
本发明实施例中,告警信息的关键字信息可以用于标识告警信息,若两个告警信息的关键字信息匹配,则可以确定这两个告警信息为同一个生产系统对应的相同的告警信息,区别仅在于这两个告警信息的生成时刻不同;比如,生产系统102分别在10:00和10:10时生成一个标题为“网络中断”的告警信息y 1和告警信息y 2,则告警信息y 1和告警信息y 2的关键字信息匹配。具体实施中,告警信息的关键字信息可以由本领域技术人员根据经验进行设置,在一个示例中,告警信息的关键字信息可以设置为告警信息所属的生产系统、告警标题、告警源、业务域、告警对象、告警实例中的任意多项的组合,比如可以为由告警信息所属的生产系统与告警标题组合得到的关键字信息,或 者可以为由告警标题、告警源和业务域组合得到的关键字信息,或者还可以为由业务域、告警对象和告警实例组合得到的关键字信息,具体不作限定。 In the embodiment of the present invention, the keyword information of the alarm information can be used to identify the alarm information. If the keyword information of the two alarm information matches, it can be determined that the two alarm information are the same alarm information corresponding to the same production system. The only difference lies in the generation time of the two alarm information; for example, the production system 102 generates an alarm information y 1 and an alarm information y 2 titled "Network interruption" at 10:00 and 10:10, respectively, then the alarm information The keyword information of y 1 and alarm information y 2 match. In specific implementation, the keyword information of the alarm information can be set by those skilled in the art based on experience. In one example, the keyword information of the alarm information can be set as the production system, alarm title, alarm source, business domain, The combination of any number of alarm objects and alarm instances, for example, can be keyword information obtained by the combination of the production system to which the alarm information belongs and the alarm title, or can be a combination of the alarm title, alarm source, and business domain The information may also be keyword information obtained by combining the business domain, the alarm object, and the alarm instance, which is not specifically limited.
下面举一个例子来描述确定50条告警信息中的告警信息y 3是否为目标告警信息的实现过程:若告警信息的关键字信息为告警信息所属的生产系统和告警标题的组合,预设时长为5min,告警信息y 3为生产系统102在10:05时对应的标题为“网络中断”的告警信息,则若400条备选历史告警信息中不存在生产系统102对应的标题为“网络中断”的告警信息,则可以确定告警信息y 3为目标告警信息;相应地,若400条备选历史告警信息中存在备选历史告警信息y 4,备选历史告警信息y 4为生产系统102在9:55时对应的标题为“网络中断”的告警信息,则可以确定告警信息y 3与备选历史告警信息y 4的关键字信息相同,时长为10min(大于或等于预设时长),因此可以确定告警信息y 3为目标告警信息;若400条备选历史告警信息中存在备选历史告警信息y 4,备选历史告警信息y 4为生产系统102在10:02时对应的标题为“网络中断”的告警信息,则可以确定告警信息y 3与备选历史告警信息y 4的关键字信息相同,时长为3min(小于预设时长),因此可以确定告警信息y 3为重复的告警信息,后续可不处理。 Here is an example to describe the process of determining whether the alarm information y 3 of the 50 alarm information is the target alarm information: If the keyword information of the alarm information is a combination of the production system to which the alarm information belongs and the alarm title, the preset duration is 5min, the alarm information y 3 is the alarm information titled "Network interruption" corresponding to the production system 102 at 10:05. If the 400 candidate historical alarm information does not have the title "Network interruption" corresponding to the production system 102 , Then it can be determined that the alarm information y 3 is the target alarm information; accordingly, if there is alternative historical alarm information y 4 among the 400 alternative historical alarm information, the alternative historical alarm information y 4 is the production system 102 at 9 : The corresponding alarm information titled "Network interruption" at 55 o'clock, it can be determined that the keyword information of the alarm information y 3 is the same as the alternative historical alarm information y 4 , and the duration is 10 min (greater than or equal to the preset duration), so it can Determine the alarm information y 3 as the target alarm information; if there is alternative historical alarm information y 4 among the 400 alternative historical alarm information, the alternative historical alarm information y 4 is the title of the production system 102 at 10:02 and the corresponding title is "Network "Interrupt" alarm information, it can be determined that the keyword information of the alarm information y 3 is the same as the alternative historical alarm information y 4 , and the duration is 3 min (less than the preset duration), so the alarm information y 3 can be determined to be repeated alarm information. The follow-up may not be processed.
本发明实施例中,通过设置预设筛选条件(即关键字信息和预设时长),可以从至少一条告警信息中确定出需要进行截图的目标告警信息,其中,目标告警信息可以为预设时间段内未出现的告警信息,或者也可以为新的告警信息;也就是说,通过基于预设筛选条件筛选出目标告警信息,无需对重复出现的告警信息进行截图,从而节省资源,并提高将告警信息转化为图片的处理效率。In the embodiment of the present invention, by setting preset filtering conditions (that is, keyword information and preset duration), the target alarm information that needs to be screenshotted can be determined from at least one piece of alarm information, where the target alarm information may be a preset time Alarm information that does not appear in the segment, or it can also be new alarm information; that is, by filtering out target alarm information based on preset filtering conditions, there is no need to take screenshots of repeated alarm information, thereby saving resources and improving The processing efficiency of converting alarm information into pictures.
步骤205,控制装置将目标告警信息发送给服务器。Step 205: The control device sends the target alarm information to the server.
若在步骤204中确定50条可选告警信息中包括30条目标告警信息,则控制装置可以将30条目标告警信息发送给服务器。在一个示例中,控制装置可以按照预设顺序依次发送30条目标告警信息,比如可以按照生成时刻从早到晚(或者也可以为从晚到早)的顺序对30条目标告警信息进行排序,每次仅将一个目标告警信息发送给服务器,并可以在确定该目标告警信息已转化为图 片且发送给目标运维方后,发送下一个目标告警信息。在另一个示例中,控制装置可以一次将30条目标告警信息发送给服务器,相应地,服务器在生成每条目标告警信息对应的图片时,均可以对该图片设置标识,后续控制装置可以根据图片的标识确定图片对应的目标告警信息。If it is determined in step 204 that 30 pieces of target alarm information are included in the 50 pieces of optional alarm information, the control device may send 30 pieces of target alarm information to the server. In an example, the control device may sequentially send 30 pieces of target alarm information in a preset order, for example, it may sort the 30 pieces of target alarm information in the order of generation time from morning to night (or from night to morning). Only one target alarm information is sent to the server at a time, and after it is determined that the target alarm information has been converted into a picture and sent to the target operation and maintenance party, the next target alarm information can be sent. In another example, the control device can send 30 pieces of target alarm information to the server at a time. Accordingly, when the server generates a picture corresponding to each piece of target alarm information, it can set an identifier for the picture, and the subsequent control device can follow the picture The identification determines the target alarm information corresponding to the picture.
需要说明的是,上述仅是两种示例性的简单说明,其所列举的次数(即1次或30次)仅是为了便于说明方案,并不构成对方案的限定,在具体实施中,控制装置也可以选取1次~30次中的任意一个次数将30条目标告警信息发送给服务器,具体不作限定。以分5次发送30条目标告警服务器为例,每次发送的目标告警信息的数量可以相同,比如每次可以发送6条目标告警信息,或者也可以不同,比如第1次~第6次发送的目标告警信息的数量可以分别为5条、10条、2条、7条、3条、3条。It should be noted that the above are only two exemplary simple descriptions, and the listed times (ie, 1 time or 30 times) are only for the convenience of explaining the scheme, and do not constitute a limitation on the scheme. In the specific implementation, the control The device can also select any number of times from 1 to 30 times to send 30 pieces of target alarm information to the server, which is not specifically limited. Take the example of sending 30 target alarm messages in 5 times. The number of target alarm messages sent each time can be the same, for example, 6 target alarm messages can be sent each time, or it can be different, such as the first to sixth times. The number of target alarm information can be 5, 10, 2, 7, 3, 3 respectively.
步骤206,服务器生成目标告警信息对应的图片。Step 206: The server generates a picture corresponding to the target alarm information.
具体实施中,服务器可以接收到控制装置发送的多条目标告警信息(比如6条)后,可以生成6条目标告警信息对应的一个或WEB界面,比如可以针对于每条目标告警信息生成一个WEB界面,则服务器可以生成6个WEB界面;或者也可以针对于任意多条目标告警信息生成一个WEB界面,比如若针对于其中的相邻2条告警信息生成一个WEB界面,则服务器可以生成3个WEB界面,若针对于其中的前两条和后四条告警信息分别生成一个WEB界面,则服务器可以生成2个WEB界面。In specific implementation, after the server can receive multiple pieces of target alarm information (for example, 6 pieces) sent by the control device, it can generate one or WEB interface corresponding to the 6 pieces of target alarm information. For example, it can generate a WEB interface for each piece of target alarm information. Interface, the server can generate 6 WEB interfaces; or it can generate one WEB interface for any number of target alarm information. For example, if one WEB interface is generated for two adjacent alarm messages, the server can generate 3 In the WEB interface, if one WEB interface is generated for the first two and the last four alarm messages, the server can generate two WEB interfaces.
本发明实施例中,服务器生成WEB界面的方式可以有多种,在一种可能的实现方式中,服务器中可以设置有至少一个预设WEB模板,至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;在获取到目标告警信息后,服务器可以根据目标告警信息所属的业务类型,从至少一个预设WEB模板中确定出目标WEB模板,并可以使用目标WEB模板渲染目标告警信息,从而得到目标告警信息对应的WEB界面。其中,预设WEB模板可以由本领域技术人员根据实际需要进行设置,或者也可以根据用户的要求进行定制,具体不作限定。In the embodiment of the present invention, there may be multiple ways for the server to generate the WEB interface. In a possible implementation manner, at least one preset WEB template may be set in the server, and at least one preset WEB template is preset for Generate the template of the WEB interface corresponding to the alarm information; after obtaining the target alarm information, the server can determine the target WEB template from at least one preset WEB template according to the service type to which the target alarm information belongs, and can use the target WEB template to render Target alarm information, thereby obtaining the WEB interface corresponding to the target alarm information. Among them, the preset WEB template can be set by those skilled in the art according to actual needs, or can also be customized according to user requirements, which is not specifically limited.
举例来说,服务器获取到的目标告警信息包括目标告警信息y 6与目标告警信息y 7,预设WEB模板包括第一WEB模板、第二WEB模板和第三WEB模板,第一WEB模板对应的业务类型为订单业务,第二WEB模板对应的业务类型为保险业务,第三WEB模板对应的业务类型为联合业务;在一个示例中,服务器可以分别将目标告警信息y 6与目标告警信息y 7显示在不同的WEB界面上,比如,若目标告警信息y 6为保险业务的告警信息,目标告警信息y 7为订单业务的告警信息,则服务器可以将第二WEB模板作为目标告警信息y 6对应的目标WEB模板,并可以将第一WEB模板作为目标告警信息y 7对应的目标WEB模板,从而可以生成目标告警信息y 6与目标告警信息y 7分别对应的WEB界面。在另一个示例中,服务器也可以将目标告警信息y 6与目标告警信息y 7显示在同一个WEB界面上,具体地说,服务器可以获取目标告警信息y 6与目标告警信息y 7分别包括的关键信息(比如所属的生产系统、告警标题等),并可以将目标告警信息y 6与目标告警信息y 7的关键信息按照第三WEB模板的布局进行设置,从而可以生成目标告警信息y 6与目标告警信息y 7对应的一个WEB界面。其中,关键信息可以为本领域技术人员在设置预设WEB模板时设置的,每个预设WEB模板显示的关键信息可以相同,或者也可以不同,具体不作限定。 For example, the target alarm information obtained by the server includes target alarm information y 6 and target alarm information y 7. The preset WEB templates include the first WEB template, the second WEB template, and the third WEB template. The first WEB template corresponds to The business type is order business, the business type corresponding to the second WEB template is insurance business, and the business type corresponding to the third WEB template is joint business; in one example, the server can separately target alarm information y 6 and target alarm information y 7 Displayed on different WEB interfaces, for example, if the target alarm information y 6 is the alarm information of the insurance business, and the target alarm information y 7 is the alarm information of the order business, the server can use the second WEB template as the target alarm information y 6 WEB target template, and the template may be a first target WEB alarm information corresponding to y 7 WEB target template, so that the target may be generated alarm information to the target y 6 y 7 alarm information corresponding to each WEB interface. In another example, the server may also display the target alarm information y 6 and target alarm information y 7 on the same WEB interface. Specifically, the server may obtain the target alarm information y 6 and target alarm information y 7 respectively. Key information (such as the production system to which it belongs, alarm title, etc.), and the key information of target alarm information y 6 and target alarm information y 7 can be set according to the layout of the third WEB template, so that target alarm information y 6 and A WEB interface corresponding to target alarm information y 7 . Among them, the key information may be set by those skilled in the art when setting the preset WEB templates, and the key information displayed by each preset WEB template may be the same or different, which is not specifically limited.
在生成目标WEB界面后,服务器可以将目标WEB界面保存在服务器的缓存中,并可以设置目标WEB界面的标识。其中,目标WEB界面的标识可以与其对应的目标告警信息相关,或者也可以与其对应的目标告警信息无关;若目标WEB界面的标识与其对应的目标告警信息无关,则服务器可以设置一个对应关系表,并通过对应关系表中存储目标WEB界面与目标告警信息的对应关系。After the target WEB interface is generated, the server can save the target WEB interface in the cache of the server, and can set the identifier of the target WEB interface. Among them, the identifier of the target WEB interface may be related to its corresponding target alarm information, or may also be unrelated to its corresponding target alarm information; if the identifier of the target WEB interface is not related to its corresponding target alarm information, the server may set a correspondence table, And the corresponding relationship between the target WEB interface and the target alarm information is stored in the corresponding relationship table.
进一步地,服务器可以对目标告警信息对应的目标WEB界面进行截图,得到目标告警信息对应的图片。在一个示例中,服务器可以执行服务器对应的前端js脚本,通过加载前端js脚本来调用预设截图工具(比如网页拍照WebShot工具)。其中,WebShot工具可以对网页或网站进行拍摄,得到图片或缩略图。具体实施中,服务器可以基于canvas画布加载目标WEB页面上包括 的元素,从而可以在服务器上设置一个转换接口,该转换接口可以将服务器缓存上的目标WEB网页元素做为参数传输给WebShot工具,并可以设置生成的图片的相关信息,比如图片位置、图片标识、图片类型、图片所属的文件夹、图片的尺寸等参数。如此,服务器可以根据设置的图片的相关信息,渲染目标WEB界面,得到目标告警信息对应的图片。Further, the server may take a screenshot of the target WEB interface corresponding to the target alarm information to obtain a picture corresponding to the target alarm information. In an example, the server may execute the front-end js script corresponding to the server, and call a preset screenshot tool (such as a webpage photo WebShot tool) by loading the front-end js script. Among them, the WebShot tool can take pictures of web pages or websites to get pictures or thumbnails. In specific implementation, the server can load the elements included on the target WEB page based on the canvas canvas, so that a conversion interface can be set on the server. The conversion interface can transfer the target WEB page elements cached by the server as a parameter to the WebShot tool, and You can set the relevant information of the generated picture, such as picture location, picture identifier, picture type, folder to which the picture belongs, and picture size. In this way, the server can render the target WEB interface according to the related information of the set picture, and obtain the picture corresponding to the target alarm information.
步骤207,服务器将目标告警信息对应的图片发送给控制装置。Step 207: The server sends the picture corresponding to the target alarm information to the control device.
在一个示例中,服务器可以将目标告警信息对应的图片和图片标识发送给控制装置。其中,服务器将图片和图片标识发送给控制装置的方式可以有多种,比如,服务器通过http连接的响应接口将图片和图片标识发送给控制装置的。In an example, the server may send the picture and picture identifier corresponding to the target alarm information to the control device. Among them, the server can send the picture and the picture identification to the control device in many ways, for example, the server sends the picture and the picture identification to the control device through the response interface of the http connection.
步骤208,控制装置接收到目标告警信息对应的图片后,将目标告警信息对应的图片发送给目标运维方。Step 208: After receiving the picture corresponding to the target alarm information, the control device sends the picture corresponding to the target alarm information to the target operation and maintenance party.
以一个目标告警信息对应的图片为例,具体实施中,控制装置可以在接收到服务器发送的目标告警信息对应的图片和图片标识后,根据图片标识确定目标告警信息,并可以获取目标告警信息的业务类型。进一步地,控制装置可以根据目标告警信息的业务类型,确定目标告警信息对应的目标运维方,并可以将目标告警信息对应的图片发送给目标运维方。Taking a picture corresponding to the target alarm information as an example, in specific implementation, the control device can determine the target alarm information according to the picture identifier after receiving the picture and the picture identifier corresponding to the target alarm information sent by the server, and can obtain the target alarm information. business type. Further, the control device may determine the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information, and may send the picture corresponding to the target alarm information to the target operation and maintenance party.
举例来说,若目标告警信息的业务类型为保险业务,则控制装置可以确定目标告警信息对应的目标运维方为处理保险业务的运维人员,因此,控制装置可以将目标告警信息对应的图片发送给目标运维人员,比如可以将图片发送至目标运维人员所在的即时通信工具上,或者也可以将图片上传云端后,通知目标运维人员去相应地云端地址下载,或者还可以将图片存储在共享网盘中,具体不作限定。For example, if the business type of the target alarm information is insurance business, the control device may determine that the target operation and maintenance party corresponding to the target alarm information is the operation and maintenance personnel who handles the insurance business. Therefore, the control device may assign a picture corresponding to the target alarm information Send to the target operation and maintenance personnel, for example, you can send the picture to the instant messaging tool where the target operation and maintenance personnel is located, or you can upload the picture to the cloud and notify the target operation and maintenance personnel to download the corresponding cloud address, or you can also upload the picture It is stored in a shared network disk, which is not limited.
步骤209,目标运维方接收控制装置发送的目标告警信息对应的图片,并处理触发目标告警信息的事件。Step 209: The target operation and maintenance party receives the picture corresponding to the target alarm information sent by the control device, and processes the event that triggers the target alarm information.
具体实施中,由于目标告警信息对应的图片上可以显示有目标告警信息的关键信息,因此,目标运维方在接收到控制装置发送的目标告警信息对应 的图片后,可以从图片中查看到关键信息,比如目标告警信息所属的生产系统、目标告警信息的告警标题等。进一步地,目标运维方可以根据关键信息,对相应地生产系统进行维护。比如,若目标告警信息对应的图片上显示有“生产系统102、网络中断”,则目标运维方可以检测生产系统102的网络连接情况,并对网络进行修复,从而使得生产系统102可以继续执行交易。In specific implementation, since the picture corresponding to the target alarm information can display the key information of the target alarm information, the target operation and maintenance party can view the key information from the picture after receiving the picture corresponding to the target alarm information sent by the control device. Information, such as the production system to which the target alarm information belongs, and the alarm title of the target alarm information. Further, the target operation and maintenance party can maintain the corresponding production system based on the key information. For example, if the picture corresponding to the target alarm information shows "production system 102, network interrupted", the target operation and maintenance party can detect the network connection of the production system 102 and repair the network so that the production system 102 can continue to execute transaction.
步骤210,控制装置向监控装置发送第二请求消息。Step 210: The control device sends a second request message to the monitoring device.
在一个示例中,将目标告警信息对应的图片发送给目标运维方后,控制装置可以确定目标告警信息已成功转化为图片。此时,控制装置可以获取步骤204中存储的最晚时刻,即10:20,并可以确定10:20之前的告警信息已成功转化为图片。进一步地,控制装置可以向监控装置发送第二请求消息,并可以在第二请求消息中包括10:20;如此,在一个示例中,监控装置接收到第二请求消息后,可以获取10:20~当前时刻的告警信息。In one example, after the picture corresponding to the target alarm information is sent to the target operation and maintenance party, the control device may determine that the target alarm information has been successfully converted into a picture. At this time, the control device can obtain the latest time stored in step 204, that is, 10:20, and can determine that the alarm information before 10:20 has been successfully converted into a picture. Further, the control device may send a second request message to the monitoring device, and may include 10:20 in the second request message; so, in one example, after receiving the second request message, the monitoring device may obtain 10:20 ~ The current alarm information.
本发明的上述实施例中,本发明的上述实施例中,控制装置接收监控装置发送的第一消息,第一消息包括监控装置通过监控一个或多个生产系统生成的至少一条告警信息;且,控制装置获取一条或多条历史告警信息以及一条或多条历史告警信息的状态;其中,历史告警信息的状态包括恢复状态和未恢复状态,恢复状态用于指示触发历史告警信息的事件已成功处理,未恢复状态用于指示触发历史告警信息的事件未成功处理;进一步地,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则将至少一条告警信息发送给服务器,以使服务器将至少一条告警信息转化为图片;备选历史告警信息的状态为未恢复状态。本发明实施例中,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则可以直接将至少一条告警信息发送给服务器,而无需通过人工的方式确定哪些告警信息需要进行告警,从而可以提高告警的效率;且,通过监控装置、控制装置和服务器之间的通信,可以实现自动化的告警方式,即可以实现获取告警信息、将告警信息转化为图片以及将图片发送给目标运维方的自动化执行过程,在该过程中无需人工参与,从而可以避免现有技术采用人工截图方式所造成的告警不准 确的技术问题,提高告警的准确性。In the foregoing embodiment of the present invention, in the foregoing embodiment of the present invention, the control device receives a first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; and, The control device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed , The unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more pieces of historical alarm information, it sends at least one piece of alarm information to the server, So that the server converts at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state. In the embodiment of the present invention, if the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed. Alarms, which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target The automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
针对上述方法流程,本发明实施例还提供一种告警装置,该装置的具体内容可以参照上述方法实施。In view of the foregoing method flow, an embodiment of the present invention also provides an alarm device, and the specific content of the device can be implemented with reference to the foregoing method.
图3为本发明实施例提供的一种告警装置的结构示意图,包括:Figure 3 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention, including:
收发模块301,用于接收监控装置发送的第一消息,所述第一消息包括所述监控装置通过监控一个或多个生产系统生成的至少一条告警信息;The transceiver module 301 is configured to receive a first message sent by a monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
获取模块302,用于获取一条或多条历史告警信息以及所述一条或多条历史告警信息的状态;其中,所述历史告警信息的状态包括恢复状态和未恢复状态,所述恢复状态用于指示触发所述历史告警信息的事件已成功处理,所述未恢复状态用于指示触发所述历史告警信息的事件未成功处理;The obtaining module 302 is configured to obtain one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrestored state, and the restored state is used for Indicating that the event that triggered the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
处理模块303,用于若确定所述一条或多条历史告警信息中不存在备选历史告警信息,则将所述至少一条告警信息发送给服务器,以使所述服务器将所述至少一条告警信息转化为图片;所述备选历史告警信息的状态为未恢复状态。The processing module 303 is configured to, if it is determined that there is no candidate historical alarm information in the one or more pieces of historical alarm information, send the at least one piece of alarm information to the server, so that the server can send the at least one piece of alarm information Converted into a picture; the state of the candidate historical alarm information is an unrecovered state.
可选地,所述处理模块303还用于:Optionally, the processing module 303 is further configured to:
若确定所述一条或多条历史告警信息中存在至少一条备选历史告警信息,则针对于所述至少一条告警信息中的任一告警信息,执行:若确定所述至少一条备选历史告警信息中不存在关键字信息与所述告警信息的关键字信息匹配的备选历史告警信息,或者,若确定所述备选历史告警信息中存在第一备选告警信息,所述第一备选告警信息的关键字信息与所述告警信息的关键字信息匹配,且所述第一备选告警信息的生成时刻与所述告警信息的生成时刻的差值大于或等于预设时长,则确定所述告警信息为目标告警信息;If it is determined that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, for any one of the at least one piece of alarm information, execute: if the at least one candidate historical alarm information is determined There is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information, or if it is determined that the first candidate alarm information exists in the candidate historical alarm information, the first candidate alarm The keyword information of the information matches the keyword information of the alarm information, and the difference between the generation time of the first candidate alarm information and the generation time of the alarm information is greater than or equal to the preset duration, then it is determined that the The alarm information is the target alarm information;
将至少一条目标告警信息发送给所述服务器,以使所述服务器将所述至少一条目标告警信息转化为图片。At least one piece of target alarm information is sent to the server, so that the server converts the at least one piece of target alarm information into a picture.
可选地,所述至少一条告警信息为所述监控装置在第一时刻至当前时刻通过监控一个或多个生产系统生成的,所述第二时刻位于所述第一时刻之后;Optionally, the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from a first moment to a current moment, and the second moment is located after the first moment;
所述收发模块301接收监控装置发送的第一消息之前,还用于:Before the transceiver module 301 receives the first message sent by the monitoring device, it is also used to:
若确定所述第一时刻之前的告警信息已成功转化为图片,则向所述监控装置发送第二消息,所述第二消息中包括所述第一时刻和所述第二时刻。If it is determined that the alarm information before the first time has been successfully converted into a picture, a second message is sent to the monitoring device, and the second message includes the first time and the second time.
可选地,所述收发模块301还用于:Optionally, the transceiver module 301 is further configured to:
接收所述服务器发送的所述目标告警信息对应的图片,并根据所述目标告警信息的业务类型,确定所述目标告警信息对应的目标运维方;Receiving the picture corresponding to the target alarm information sent by the server, and determining the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information;
将所述目标告警信息对应的图片发送给所述目标运维方,并确定所述目标告警信息已成功转化为图片。The picture corresponding to the target alarm information is sent to the target operation and maintenance party, and it is determined that the target alarm information has been successfully converted into a picture.
图4为本发明实施例提供的一种告警装置的结构示意图,包括:Figure 4 is a schematic structural diagram of an alarm device provided by an embodiment of the present invention, including:
生成模块401,用于接收控制装置发送的目标告警信息,并生成所述目标告警信息对应的WEB界面;The generating module 401 is configured to receive target alarm information sent by the control device, and generate a WEB interface corresponding to the target alarm information;
截图模块402,用于对所述WEB界面进行截图,得到所述目标告警信息对应的图片;The screenshot module 402 is used to take a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information;
收发模块403,用于将所述目标告警信息对应的图片发送给所述控制装置。The transceiver module 403 is configured to send the picture corresponding to the target alarm information to the control device.
可选地,所述生成模块401用于:Optionally, the generating module 401 is used to:
获取至少一个预设WEB模板,所述至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;Acquiring at least one preset WEB template, where the at least one preset WEB template is a preset template for generating a WEB interface corresponding to the alarm information;
根据所述目标告警信息所属的业务类型,从所述至少一个预设WEB模板中确定目标WEB模板;Determine a target WEB template from the at least one preset WEB template according to the service type to which the target alarm information belongs;
使用所述目标WEB模板渲染所述目标告警信息,得到所述目标告警信息对应的WEB界面。Use the target WEB template to render the target alarm information, and obtain the WEB interface corresponding to the target alarm information.
从上述内容可以看出:本发明的上述实施例中,控制装置接收监控装置发送的第一消息,第一消息包括监控装置通过监控一个或多个生产系统生成的至少一条告警信息;且,控制装置获取一条或多条历史告警信息以及一条或多条历史告警信息的状态;其中,历史告警信息的状态包括恢复状态和未恢复状态,恢复状态用于指示触发历史告警信息的事件已成功处理,未恢复状态用于指示触发历史告警信息的事件未成功处理;进一步地,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则将至少一条告 警信息发送给服务器,以使服务器将至少一条告警信息转化为图片;备选历史告警信息的状态为未恢复状态。本发明实施例中,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则可以直接将至少一条告警信息发送给服务器,而无需通过人工的方式确定哪些告警信息需要进行告警,从而可以提高告警的效率;且,通过监控装置、控制装置和服务器之间的通信,可以实现自动化的告警方式,即可以实现获取告警信息、将告警信息转化为图片以及将图片发送给目标运维方的自动化执行过程,在该过程中无需人工参与,从而可以避免现有技术采用人工截图方式所造成的告警不准确的技术问题,提高告警的准确性。It can be seen from the foregoing that: in the foregoing embodiment of the present invention, the control device receives the first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; The device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed. The unrecovered state is used to indicate that the event that triggered the historical alarm information was not successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it sends at least one piece of alarm information to the server to Make the server convert at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state. In the embodiment of the present invention, if the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed. Alarms, which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target The automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
针对图2所示意的方法流程,本发明实施例还提供一种如图1所示的告警系统,所述系统中可以包括监控装置110、控制装置120、服务器130,所述系统的运行过程可以如下所示:For the method flow shown in FIG. 2, the embodiment of the present invention also provides an alarm system as shown in FIG. 1. The system may include a monitoring device 110, a control device 120, and a server 130. The operation process of the system may be As follows:
所述监控装置110,用于监控与所述监控装置110连接的一个或多个生产系统的运行状态,并生成所述一个或多个生产系统对应的一条或多条告警信息;The monitoring device 110 is configured to monitor the operating status of one or more production systems connected to the monitoring device 110, and generate one or more pieces of alarm information corresponding to the one or more production systems;
所述控制装置120,用于通过与所述监控装置110通信,获取所述一条或多条告警信息中的至少一条告警信息,并从所述至少一条告警信息中确定目标告警信息,将所述目标告警信息发送给所述服务器130;The control device 120 is configured to obtain at least one piece of alarm information among the one or more pieces of alarm information by communicating with the monitoring device 110, and determine the target alarm information from the at least one piece of alarm information, and compare the Sending target alarm information to the server 130;
所述服务器130,用于接收所述目标告警信息,并生成所述目标告警信息对应的图片。The server 130 is configured to receive the target alarm information and generate a picture corresponding to the target alarm information.
可选地,所述服务器130还用于:将所述目标告警信息对应的图片发送给所述控制装置120;Optionally, the server 130 is further configured to: send the picture corresponding to the target alarm information to the control device 120;
所述控制装置120还用于:接收所述服务器130发送的所述目标告警信息对应的图片后,将所述目标告警信息对应的图片发送给所述目标告警信息对应的目标运维方。The control device 120 is further configured to: after receiving the picture corresponding to the target alarm information sent by the server 130, send the picture corresponding to the target alarm information to the target operation and maintenance party corresponding to the target alarm information.
下面描述图1所示的告警系统中的各个装置的构成,并以具体的应用方式对本发明实施例的告警方法进行详细说明。The configuration of each device in the alarm system shown in FIG. 1 is described below, and the alarm method of the embodiment of the present invention is described in detail in a specific application manner.
图5为本发明实施例提供的一种告警系统中各装置的结构示意图,如图5所示,告警系统中可以包括监控装置110、控制装置120和服务器130。其中,控制装置120可以通过数据源开放接口501与监控装置110连接,数据源开放接口501可以用于传输多种类型的数据,比如JavaScript对象标记法(JavaScript Object Notation,JSON)格式数据、通用串行总线(Universal Serial Bus,USB)格式数据、可扩展标识语言(Extensible Markup Language,XML)格式数据等。FIG. 5 is a schematic structural diagram of each device in an alarm system provided by an embodiment of the present invention. As shown in FIG. 5, the alarm system may include a monitoring device 110, a control device 120, and a server 130. Among them, the control device 120 can be connected to the monitoring device 110 through the data source open interface 501, and the data source open interface 501 can be used to transmit various types of data, such as JavaScript Object Notation (JSON) format data, universal string Universal Serial Bus (USB) format data, Extensible Markup Language (XML) format data, etc.
下面分别描述控制装置和服务器的构成单元及每个构成单元的功能。The components of the control device and the server and the function of each component are described below.
控制装置120:控制装置120中可以设置有数据采集单元502、主控单元503、缓存单元504、策略分析单元505和图片分发单元506。其中,主控单元503为控制装置120的核心单元,主控单元503可以分别与数据采集单元502、缓存单元504、策略分析单元505和图片分发单元506通信连接,并可以控制数据采集单元502、缓存单元504、策略分析单元505和图片分发单元506的执行过程。Control device 120: The control device 120 may be provided with a data collection unit 502, a main control unit 503, a cache unit 504, a policy analysis unit 505, and a picture distribution unit 506. Among them, the main control unit 503 is the core unit of the control device 120. The main control unit 503 can respectively communicate with the data collection unit 502, the cache unit 504, the strategy analysis unit 505 and the picture distribution unit 506, and can control the data collection unit 502, The execution process of the caching unit 504, the policy analysis unit 505, and the picture distribution unit 506.
具体地说,主控单元503可以控制数据采集单元502通过数据源开放接口501采集监控装置110中存储的一条或多条告警信息。举例来说,主控单元503可以向数据采集单元502发送数据采集指令,数据采集指令中可以包括告警信息的告警级别、生成时刻所属的时间范围、告警信息的状态;相应地,若数据采单元502接收到数据采集指令,则可以获取待采集告警信息的告警级别、生成时刻所属的时间范围以及告警信息的状态,若确定待采集告警信息为10:00~10:25时间范围内且当前处于未恢复状态的高级级别的告警信息,则数据采单元502可以通过数据源开放接口501从监控装置110中获取符合上述要求的一条或多条告警信息,并可以将一条或多条告警信息发送给主控单元503。Specifically, the main control unit 503 can control the data collection unit 502 to collect one or more pieces of alarm information stored in the monitoring device 110 through the data source open interface 501. For example, the main control unit 503 can send a data collection instruction to the data collection unit 502. The data collection instruction can include the alarm level of the alarm information, the time range of the generation time, and the state of the alarm information; accordingly, if the data collection unit 502 receives the data collection instruction, it can obtain the alarm level of the alarm information to be collected, the time range of the time of generation, and the state of the alarm information. If it is determined that the alarm information to be collected is within the time range of 10:00-10:25 and is currently in If the high-level alarm information is not restored, the data acquisition unit 502 can obtain one or more pieces of alarm information that meet the above requirements from the monitoring device 110 through the data source open interface 501, and can send one or more pieces of alarm information to Main control unit 503.
其中,监控装置110中可以存储有从初始时刻至当前时刻通过监控至少一个生产系统生成的多条告警信息,表2为监控装置中存储的一种告警信息的示意表。Wherein, the monitoring device 110 may store multiple pieces of alarm information generated by monitoring at least one production system from the initial moment to the current moment. Table 2 is a schematic table of a kind of alarm information stored in the monitoring device.
表2:监控装置中存储的一种告警信息的示意Table 2: Schematic of a kind of alarm information stored in the monitoring device
告警标题Alert title 生产系统production system 生成时刻Generation time 告警级别Alert level 告警状态Alarm status
硬盘空间不足Insufficient hard disk space 生产系统102Production system 102 9:509:50 高级advanced 未恢复Not restored
网络中断Network interruption 生产系统103Production System 103 9:559:55 高级advanced 恢复restore
内存不足Not enough storage 生产系统101Production System 101 10:0210:02 高级advanced 未恢复Not restored
机器损坏Machine damage 生产系统101Production System 101 10:0510:05 高级advanced 未恢复Not restored
交易信息异常Abnormal transaction information 生产系统103Production System 103 10:1010:10 低级Low-level 未恢复Not restored
网络中断Network interruption 生产系统103Production System 103 10:1110:11 高级advanced 恢复restore
硬盘空间不足Insufficient hard disk space 生产系统102Production system 102 10:2010:20 高级advanced 未恢复Not restored
如表2所示,监控设备中存储有9:50~10:20时间段内的七条告警信息,这七条告警信息分别为:在9:50时由于生产系统102的硬盘空间不足所生成的告警信息,在9:55时由于生产系统103的网络中断所生成的告警信息,在10:00时由于生产系统101的内存不足所生成的告警信息,在10:05时由于生产系统101的机器损坏所生成的告警信息,在10:10时由于生产系统103的交易信息异常所生成的告警信息,在10:11时由于生产系统103的网络中断所生成的告警信息,在10:20时由于生产系统102的磁盘空间不足所生成的告警信息。As shown in Table 2, the monitoring equipment stores seven alarm messages in the time period from 9:50 to 10:20. The seven alarm messages are: the alarm generated at 9:50 due to insufficient hard disk space of the production system 102 Information, the alarm information generated by the network interruption of the production system 103 at 9:55, the alarm information generated by the insufficient memory of the production system 101 at 10:00, and the machine damage of the production system 101 at 10:05 The generated alarm information is the alarm information generated due to abnormal transaction information of the production system 103 at 10:10, the alarm information generated due to the network interruption of the production system 103 at 10:11, and the alarm information generated by the production system at 10:20. The system 102 has insufficient disk space to generate an alarm message.
相应地,若确定待采集告警信息为10:00~10:25时间范围内且当前处于未恢复状态的高级级别的告警信息,则数据采集单元502采集到的一条或多条告警信息可以包括:在10:00时由于生产系统101的内存不足所生成的告警信息,在10:05时由于生产系统101的机器损坏所生成的告警信息,在10:20时由于生产系统102的磁盘空间不足所生成的告警信息。Correspondingly, if it is determined that the alarm information to be collected is the advanced level alarm information within the time range of 10:00-10:25 and is currently in an unrecovered state, the one or more pieces of alarm information collected by the data collection unit 502 may include: The alarm information generated at 10:00 due to insufficient memory of the production system 101, at 10:05 due to the machine damage of the production system 101, and at 10:20 due to insufficient disk space of the production system 102 The generated alarm information.
主控单元503在接收到数据采单元502发送的一条或多条告警信息后,可以控制缓存单元504执行更新,缓存单元504中可以存储有控制装置120从监控装置110中获取到的一条或多条历史告警信息,比如可以包括监控装置110在10:00之前生成的告警信息。表3为缓存单元504中存储的一种历史告警信息的示意表。After the main control unit 503 receives one or more pieces of alarm information sent by the data acquisition unit 502, it can control the buffer unit 504 to perform the update. The buffer unit 504 can store one or more pieces of information obtained by the control device 120 from the monitoring device 110. Pieces of historical alarm information, for example, may include alarm information generated by the monitoring device 110 before 10:00. Table 3 is a schematic table of a type of historical alarm information stored in the cache unit 504.
表3:缓存单元中存储的一种历史告警信息的示意Table 3: Schematic of a historical alarm information stored in the cache unit
告警标题Alert title 生产系统production system 生成时刻Generation time 告警级别Alert level 告警状态Alarm status
硬盘空间不足Insufficient hard disk space 生产系统102Production system 102 9:509:50 高级advanced 未恢复Not restored
网络中断Network interruption 生产系统103Production System 103 9:559:55 高级advanced 未恢复Not restored
缓存单元504可以通过如下方式执行更新:缓存单元504可以通过数据源开放接口501与监控装置110连接,若缓存单元504接收到主控单元503发送的更新指令,则可以通过数据源开放接口501与监控装置110通信,查询缓存单元504中存储的每条历史告警信息的当前状态。比如,针对于在9:50时由于生产系统102的硬盘空间不足所生成的告警信息,缓存单元504查询到该告警信息的状态为未恢复,则可以无需更新该告警信息;针对于在9:55时由于生产系统103的网络中断所生成的告警信息,缓存单元504查询到该告警信息的当前状态为恢复,则可以将该告警信息从缓存单元504中删除。因此,缓存单元504执行更新后,可以得到表4所示意的至少一条备选历史告警信息。The cache unit 504 can perform the update in the following manner: the cache unit 504 can be connected to the monitoring device 110 through the data source open interface 501, if the cache unit 504 receives the update instruction sent by the main control unit 503, it can communicate with the monitoring device through the data source open interface 501 The monitoring device 110 communicates to query the current state of each piece of historical alarm information stored in the cache unit 504. For example, for the alarm information generated at 9:50 due to insufficient hard disk space of the production system 102, if the cache unit 504 queries that the status of the alarm information is not restored, there is no need to update the alarm information; for 9: At 55 o'clock, due to the alarm information generated by the network interruption of the production system 103, the cache unit 504 queries that the current state of the alarm information is restored, and the alarm information can be deleted from the cache unit 504. Therefore, after the cache unit 504 performs the update, at least one candidate historical alarm information shown in Table 4 can be obtained.
表4:缓存单元中存储的一种备选历史告警信息的示意Table 4: Schematic of an alternative historical alarm information stored in the cache unit
告警标题Alert title 生产系统production system 生成时刻Generation time 告警级别Alert level 告警状态Alarm status
硬盘空间不足Insufficient hard disk space 生产系统102Production system 102 9:509:50 高级advanced 未恢复Not restored
如表4所示,备选历史告警信息可以包括在9:50时由于生产系统103的硬盘空间不足所生成的告警信息。As shown in Table 4, the alternative historical alarm information may include alarm information generated at 9:50 due to insufficient hard disk space of the production system 103.
进一步地,主控单元503可以控制策略分析单元505对数据采集单元502获取到的3条告警信息进行策略分析,从3条告警信息中确定出目标告警信息。在一种策略分析方式中,针对于在10:05时由于生产系统101的机器损坏所生成的告警信息和在10:20时由于生产系统102的磁盘空间不足所生成的告警信息,由于备选历史告警信息中不包括与这两条告警信息的关键字信息(在该示例中即为生产系统和告警标题)相同的告警信息,因此策略分析单元505可以将这两条告警信息作为两条目标告警信息。相应地,针对于在10:00时由于生产 系统101的硬盘空间不足所生成的告警信息,由于备选历史告警信息中包括与该告警信息的关键字信息匹配的告警信息,因此策略分析单元505可以获取该条告警信息与匹配的备选历史告警信息的生成时刻的差值(即10min),若差值大于预设时长,则该条告警信息可以为一条目标告警信息,若差值小于或等于预设时长,则该条告警信息可以为一条重复告警信息。举例来说,若预设时长为5min,则该条告警信息即为一条目标告警信息,若预设时长为15min,则该条告警信息即为一条重复告警信息。Further, the main control unit 503 may control the strategy analysis unit 505 to perform strategy analysis on the three pieces of alarm information acquired by the data collection unit 502, and determine the target alarm information from the three pieces of alarm information. In a strategy analysis method, for the alarm information generated at 10:05 due to the machine damage of the production system 101 and the alarm information generated at 10:20 due to insufficient disk space of the production system 102, due to the alternative The historical alarm information does not include the same alarm information as the keyword information of the two pieces of alarm information (in this example, the production system and the alarm title), so the policy analysis unit 505 can take these two pieces of alarm information as two targets Alarm information. Correspondingly, for the alarm information generated at 10:00 due to insufficient hard disk space of the production system 101, since the candidate historical alarm information includes alarm information matching the keyword information of the alarm information, the policy analysis unit 505 The difference between the generation time of the alarm information and the matched candidate historical alarm information (ie 10 min) can be obtained. If the difference is greater than the preset time period, the alarm information can be a target alarm information. If the difference is less than or If the duration is equal to the preset time, the alarm information can be a repeated alarm information. For example, if the preset duration is 5 minutes, the piece of alarm information is a piece of target alarm information, and if the preset duration is 15 minutes, the piece of alarm information is a piece of repeated alarm information.
主控单元503在确定目标告警信息后,可以将目标告警信息发送给服务器130,并可以接收服务器130发送的目标告警信息对应的图片。接着,主控单元503可以控制图片分发单元506将目标告警信息对应的图片发送给对应的目标运维方,在一个示例中,图片分发单元506可以通过即时通信开放接口507将目标告警信息对应的图片发送给对应的目标运维方所在的即时通信平台。After determining the target alarm information, the main control unit 503 may send the target alarm information to the server 130, and may receive the picture corresponding to the target alarm information sent by the server 130. Next, the main control unit 503 may control the picture distribution unit 506 to send the picture corresponding to the target alarm information to the corresponding target operation and maintenance party. In one example, the picture distribution unit 506 may correspond to the target alarm information through the instant messaging open interface 507 The picture is sent to the instant messaging platform where the corresponding target operation and maintenance party is located.
服务器130::服务器130中可以设置有页面模板转换单元131、页面缓存单元132、页面转图片单元133和图片缓存单元134。其中,页面模板转换单元131、页面缓存单元132、页面转图片单元133和图片缓存单元134可以依次连接,比如可以通过有线方式实现连接,或者也可以通过无线方式实现连接,不作限定。Server 130: The server 130 may be provided with a page template conversion unit 131, a page cache unit 132, a page conversion unit 133, and a picture cache unit 134. The page template conversion unit 131, the page caching unit 132, the page to picture unit 133, and the picture caching unit 134 may be connected in sequence, for example, the connection may be realized in a wired manner, or may be realized in a wireless manner, which is not limited.
服务器130在接收到控制装置120发送的目标告警信息后,可以控制页面模板转换单元131执行页面模板转换功能。在一种可能的实现方式中,页面模板转换单元131可以获取多个预设WEB模板,并可以解析目标告警信息得到目标告警信息所属的业务类型(用户定义的或预先设置的),进而根据目标告警信息所属的业务类型从多个预设WEB模板选择目标WEB模板。在另一种可能的实现方式中,页面模板转换单元131在接收到目标告警信息后,可以获取用户设置的定制要求,定制要求可以包括告警信息在WEB页面上的布局方式、字体大小、风格等;如此,页面模板转换单元131可以根据用户的定制要求设置目标WEB模板。在确定目标WEB模板后,页面模板转换单元131可以使用目标WEB模板渲染目标告警信息,得到目标告警信息对应的WEB界面;具体 地说,页面模板转换单元131可以获取目标WEB模板上设置的一个或多个页面元素(比如页面图标、文字、超链接、表格等),并可以从一个或多个页面元素中确定出需要置换为动态数据的目标元素,进而可以将目标WEB模板上的目标元素替换为预设指示字符,比如预设占位符标志、预设变量等;进一步地,页面模板转换单元131可以依次遍历预设指示字符,并可以使用目标告警信息中与预设指示字符匹配的数据替换预设指示字符,如此,页面模板转换单元131即可将目标告警信息加载在目标WEB模板上,从而可以生成目标告警信息对应的WEB界面。举例来说,在将目标WEB模板上的图标1替换为预设指示字符t 1后,页面模板转换单元131可以使用预设筛选算法从目标告警信息中获取与预设指示字符t 1匹配的目标数据,并可以使用预设赋值算法将预设指示字符t 1替换为目标数据,从而使得目标WEB模板上的图标1所在的位置更新为目标数据。 After receiving the target alarm information sent by the control device 120, the server 130 may control the page template conversion unit 131 to perform the page template conversion function. In a possible implementation, the page template conversion unit 131 can obtain multiple preset WEB templates, and can parse the target alarm information to obtain the service type (user-defined or preset) to which the target alarm information belongs, and then according to the target The service type to which the alarm information belongs selects the target WEB template from multiple preset WEB templates. In another possible implementation, the page template conversion unit 131 can obtain the customization requirements set by the user after receiving the target alarm information. The customization requirements may include the layout of the alarm information on the WEB page, font size, style, etc. ; In this way, the page template conversion unit 131 can set the target WEB template according to the user's customization requirements. After determining the target WEB template, the page template conversion unit 131 can use the target WEB template to render the target alarm information to obtain the WEB interface corresponding to the target alarm information; specifically, the page template conversion unit 131 can obtain one or the set on the target WEB template. Multiple page elements (such as page icons, text, hyperlinks, tables, etc.), and can determine the target element that needs to be replaced with dynamic data from one or more page elements, and then replace the target element on the target WEB template Are preset indicating characters, such as preset placeholder flags, preset variables, etc.; further, the page template conversion unit 131 may traverse the preset indicating characters in turn, and may use data matching the preset indicating characters in the target alarm information By replacing the preset indicating characters, the page template conversion unit 131 can load the target alarm information on the target WEB template, thereby generating a WEB interface corresponding to the target alarm information. For example, after replacing the icon 1 on the target WEB template with a preset indicating character t 1 , the page template conversion unit 131 may use a preset filtering algorithm to obtain a target matching the preset indicating character t 1 from the target alarm information Data, and a preset assignment algorithm can be used to replace the preset indicating character t 1 with the target data, so that the position of the icon 1 on the target WEB template is updated to the target data.
进一步地,服务器130若确定页面模板转换单元131生成目标告警信息对应的WEB界面,则可以控制页面缓存单元132设置目标告警信息对应的WEB界面的名称,并可以将目标告警信息对应的WEB界面存储在缓存中。服务器130确定页面缓存单元132成功缓存目标告警信息对应的WEB界面后,可以控制页面转图片单元133对目标告警信息对应的WEB界面进行截图,得到目标告警信息对应的。此时,服务器130可以控制图片缓存单元134设置图片的名称、图片类型(比如jpg格式、png格式)、图片所属的文件夹路径、图片的参数等。以设置图片的参数为例,可以设置图片的容器参数,比如图片的清晰度、像素等,还可以设置WEB页面转换成图片所需的超时参数、渲染延时的参数、WEB页面在浏览器上显示的屏幕尺寸、截图尺寸、截图偏移量等;如此,图片缓存单元134可以使用上述参数对目标告警信息对应的WEB界面上的元素进行转换,从而可以对目标告警信息对应的WEB界面进行截图,得到目标告警信息对应的图片。Further, if the server 130 determines that the page template conversion unit 131 generates the WEB interface corresponding to the target alarm information, it can control the page caching unit 132 to set the name of the WEB interface corresponding to the target alarm information, and can store the WEB interface corresponding to the target alarm information In the cache. After the server 130 determines that the page caching unit 132 successfully caches the WEB interface corresponding to the target alarm information, it can control the page converting unit 133 to take a screenshot of the WEB interface corresponding to the target alarm information to obtain the corresponding target alarm information. At this time, the server 130 may control the picture caching unit 134 to set the name of the picture, the picture type (such as jpg format, png format), the folder path to which the picture belongs, the parameters of the picture, and the like. Take setting picture parameters as an example, you can set picture container parameters, such as picture definition, pixels, etc., you can also set the timeout parameters required to convert the web page into a picture, the rendering delay parameter, and the web page on the browser The displayed screen size, screenshot size, screenshot offset, etc.; in this way, the image caching unit 134 can use the above parameters to convert the elements on the WEB interface corresponding to the target alarm information, so as to take a screenshot of the WEB interface corresponding to the target alarm information , Get the picture corresponding to the target alarm information.
需要说明的是,页面转图片单元133的截图过程可以在服务器130的后端执行,即通过在服务器端调用前端js脚本实现截图,可以无需将目标告警信息 对应的WEB界面显示在WEB浏览器上,从而可以提高截图效率。It should be noted that the screenshot process of the page-to-image unit 133 can be executed on the back end of the server 130, that is, the screenshot can be realized by calling the front-end js script on the server side, and there is no need to display the WEB interface corresponding to the target alarm information on the WEB browser. , Which can improve the efficiency of screenshots.
在一种可能的实现方式中,服务器可以直接将目标告警信息对应的图片发送给主控单元503,如此,主控单元503接收到的即是目标告警信息对应的图片,从而可以直接将目标告警信息对应的图片转发给目标运维方,采用该种方式操作简单,主控单元503对应的交互次数较少,实现起来较为方便。在另一种可能的实现方式中,服务器可以将目标告警信息对应的图片所在的文件夹和目标告警信息对应的图片名称发送给主控单元503,如此,主控单元503在接收到上述信息后,可以去目标告警信息对应的图片所在的文件夹获取与目标告警信息对应的图片名称相匹配的图片,进而发送给目标运维方,采用该种方式可以降低网络消耗,减轻系统压力。In a possible implementation manner, the server can directly send the picture corresponding to the target alarm information to the main control unit 503. In this way, the main control unit 503 receives the picture corresponding to the target alarm information, which can directly send the target alarm information. The picture corresponding to the information is forwarded to the target operation and maintenance party. This method is simple to operate, and the number of interactions corresponding to the main control unit 503 is less, which is more convenient to implement. In another possible implementation manner, the server may send the folder where the picture corresponding to the target alarm information is located and the picture name corresponding to the target alarm information to the main control unit 503. In this way, after the main control unit 503 receives the above information , You can go to the folder where the picture corresponding to the target alarm information is located to obtain the picture that matches the picture name corresponding to the target alarm information, and then send it to the target operation and maintenance party. This method can reduce network consumption and reduce system pressure.
从上述内容可以看出:本发明的上述实施例中,控制装置接收监控装置发送的第一消息,第一消息包括监控装置通过监控一个或多个生产系统生成的至少一条告警信息;且,控制装置获取一条或多条历史告警信息以及一条或多条历史告警信息的状态;其中,历史告警信息的状态包括恢复状态和未恢复状态,恢复状态用于指示触发历史告警信息的事件已成功处理,未恢复状态用于指示触发历史告警信息的事件未成功处理;进一步地,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则将至少一条告警信息发送给服务器,以使服务器将至少一条告警信息转化为图片;备选历史告警信息的状态为未恢复状态。本发明实施例中,控制装置若确定一条或多条历史告警信息中不存在备选历史告警信息,则可以直接将至少一条告警信息发送给服务器,而无需通过人工的方式确定哪些告警信息需要进行告警,从而可以提高告警的效率;且,通过监控装置、控制装置和服务器之间的通信,可以实现自动化的告警方式,即可以实现获取告警信息、将告警信息转化为图片以及将图片发送给目标运维方的自动化执行过程,在该过程中无需人工参与,从而可以避免现有技术采用人工截图方式所造成的告警不准确的技术问题,提高告警的准确性。It can be seen from the foregoing that: in the foregoing embodiment of the present invention, the control device receives the first message sent by the monitoring device, and the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems; The device obtains one or more pieces of historical alarm information and the status of one or more pieces of historical alarm information; among them, the status of the historical alarm information includes the restored state and the unrecovered state, and the restored state is used to indicate that the event that triggered the historical alarm information has been successfully processed. The unrecovered state is used to indicate that the event that triggered the historical alarm information was not successfully processed; further, if the control device determines that there is no alternative historical alarm information in one or more historical alarm information, it sends at least one piece of alarm information to the server to Make the server convert at least one piece of alarm information into a picture; the status of the alternative historical alarm information is the unrecovered state. In the embodiment of the present invention, if the control device determines that there is no candidate historical alarm information in one or more pieces of historical alarm information, it can directly send at least one piece of alarm information to the server without manually determining which alarm information needs to be processed. Alarms, which can improve the efficiency of alarms; and, through the communication between the monitoring device, the control device, and the server, an automated alarm method can be realized, that is, the alarm information can be obtained, the alarm information can be converted into a picture, and the picture can be sent to the target The automated execution process of the operation and maintenance party does not require manual participation in the process, which can avoid the technical problem of inaccurate alarms caused by manual screenshots in the prior art, and improve the accuracy of alarms.
基于同一发明构思,本发明实施例还提供一种计算机可读存储介质,包 括指令,当其在计算机上运行时,使得计算机执行如图2或图2任意所述的告警方法。Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the alarm method as described in any of Fig. 2 or Fig. 2.
基于同一发明构思,本发明实施例还提供一种计算机程序产品,当其在计算机上运行时,使得计算机执行如图2或图2任意所述的告警方法。Based on the same inventive concept, embodiments of the present invention also provide a computer program product, which when it runs on a computer, enables the computer to execute the alarm method as described in any of FIG. 2 or FIG. 2.
基于相同的技术构思,本发明实施例提供了一种终端设备,如图6所示,包括至少一个处理器1101,以及与至少一个处理器连接的存储器1102,本发明实施例中不限定处理器1101与存储器1102之间的具体连接介质,图6中处理器1101和存储器1102之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, an embodiment of the present invention provides a terminal device, as shown in FIG. 6, including at least one processor 1101 and a memory 1102 connected to the at least one processor. The embodiment of the present invention does not limit the processor. For the specific connection medium between 1101 and memory 1102, the connection between processor 1101 and memory 1102 in FIG. 6 is taken as an example. The bus can be divided into address bus, data bus, control bus, etc.
在本发明实施例中,存储器1102存储有可被至少一个处理器1101执行的指令,至少一个处理器1101通过执行存储器1102存储的指令,可以执行前述的告警方法中所包括的步骤。In the embodiment of the present invention, the memory 1102 stores instructions that can be executed by at least one processor 1101. By executing the instructions stored in the memory 1102, the at least one processor 1101 can execute the steps included in the aforementioned alarm method.
其中,处理器1101是终端设备的控制中心,可以利用各种接口和线路连接终端设备的各个部分,通过运行或执行存储在存储器1102内的指令以及调用存储在存储器1102内的数据,从而实现数据处理。可选的,处理器1101可包括一个或多个处理单元,处理器1101可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理运维人员下发的指令。可以理解的是,上述调制解调处理器也可以不集成到处理器1101中。在一些实施例中,处理器1101和存储器1102可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 1101 is the control center of the terminal device, which can use various interfaces and lines to connect various parts of the terminal device, and realize data by running or executing instructions stored in the memory 1102 and calling data stored in the memory 1102. deal with. Optionally, the processor 1101 may include one or more processing units, and the processor 1101 may integrate an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, and an application program. The adjustment processor mainly processes instructions issued by operation and maintenance personnel. It is understandable that the foregoing modem processor may not be integrated into the processor 1101. In some embodiments, the processor 1101 and the memory 1102 may be implemented on the same chip, and in some embodiments, they may also be implemented on separate chips.
处理器1101可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合将告警信息转化为图片的实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组合执行完成。The processor 1101 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiment of converting the alarm information into a picture can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器1102作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器1102可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等。存储器1102是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本发明实施例中的存储器1102还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。As a non-volatile computer-readable storage medium, the memory 1102 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 1102 may include at least one type of storage medium, for example, it may include flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, disk , CD, etc. The memory 1102 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 1102 in the embodiment of the present invention may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
基于相同的技术构思,本发明实施例提供了一种后端设备,如图7所示,包括至少一个处理器1201,以及与至少一个处理器连接的存储器1202,本发明实施例中不限定处理器1201与存储器1202之间的具体连接介质,图7中处理器1201和存储器1202之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, an embodiment of the present invention provides a back-end device. As shown in FIG. 7, it includes at least one processor 1201 and a memory 1202 connected to the at least one processor. The embodiment of the present invention does not limit the processing. For the specific connection medium between the processor 1201 and the memory 1202, the connection between the processor 1201 and the memory 1202 in FIG. 7 is taken as an example. The bus can be divided into address bus, data bus, control bus, etc.
在本发明实施例中,存储器1202存储有可被至少一个处理器1201执行的指令,至少一个处理器1201通过执行存储器1202存储的指令,可以执行前述的告警方法中所包括的步骤。In the embodiment of the present invention, the memory 1202 stores instructions that can be executed by at least one processor 1201, and the at least one processor 1201 can execute the steps included in the aforementioned alarm method by executing the instructions stored in the memory 1202.
其中,处理器1201是后端设备的控制中心,可以利用各种接口和线路连接后端设备的各个部分,通过运行或执行存储在存储器1202内的指令以及调用存储在存储器1202内的数据,从而实现数据处理。可选的,处理器1201可包括一个或多个处理单元,处理器1201可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、应用程序等,调制解调处理器主要对接收到的指令进行解析以及对接收到的结果进行解析。可以理解的是,上述调制解调处理器也可以不集成到处理器1201中。在一些实施例中,处理 器1201和存储器1202可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 1201 is the control center of the back-end equipment, which can use various interfaces and lines to connect to various parts of the back-end equipment, and by running or executing instructions stored in the memory 1202 and calling data stored in the memory 1202, Realize data processing. Optionally, the processor 1201 may include one or more processing units, and the processor 1201 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, application programs, etc., and the modem processor Mainly analyze the received instructions and analyze the received results. It can be understood that the foregoing modem processor may not be integrated into the processor 1201. In some embodiments, the processor 1201 and the memory 1202 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
处理器1201可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合将告警信息转化为图片的实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 1201 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiment in which the alarm information is converted into a picture can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器1202作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器1202可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等。存储器1202是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本发明实施例中的存储器1202还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 1202, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 1202 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, disk , CD, etc. The memory 1202 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 1202 in the embodiment of the present invention may also be a circuit or any other device capable of realizing a storage function for storing program instructions and/or data.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的 装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (16)

  1. 一种告警方法,其特征在于,所述方法包括:An alarm method, characterized in that the method includes:
    控制装置接收监控装置发送的第一消息,所述第一消息包括所述监控装置通过监控一个或多个生产系统生成的至少一条告警信息;The control device receives a first message sent by the monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
    所述控制装置获取一条或多条历史告警信息以及所述一条或多条历史告警信息的状态;其中,所述历史告警信息的状态包括恢复状态和未恢复状态,所述恢复状态用于指示触发所述历史告警信息的事件已成功处理,所述未恢复状态用于指示触发所述历史告警信息的事件未成功处理;The control device acquires one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrecovered state, and the restored state is used to indicate triggering The event of the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
    所述控制装置若确定所述一条或多条历史告警信息中不存在备选历史告警信息,则将所述至少一条告警信息发送给服务器,以使所述服务器将所述至少一条告警信息转化为图片;所述备选历史告警信息的状态为未恢复状态。If the control device determines that there is no candidate historical alarm information in the one or more pieces of historical alarm information, it sends the at least one piece of alarm information to the server, so that the server converts the at least one piece of alarm information into Picture; the status of the alternative historical alarm information is not restored.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述控制装置若确定所述一条或多条历史告警信息中存在至少一条备选历史告警信息,则针对于所述至少一条告警信息中的任一告警信息,执行:若确定所述至少一条备选历史告警信息中不存在关键字信息与所述告警信息的关键字信息匹配的备选历史告警信息,或者,若确定所述备选历史告警信息中存在第一备选告警信息,所述第一备选告警信息的关键字信息与所述告警信息的关键字信息匹配,且所述第一备选告警信息的生成时刻与所述告警信息的生成时刻的差值大于或等于预设时长,则确定所述告警信息为目标告警信息;If the control device determines that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, for any alarm information in the at least one piece of alarm information, execute: Select historical alarm information that does not have candidate historical alarm information whose keyword information matches the keyword information of the alarm information, or if it is determined that there is first candidate alarm information in the candidate historical alarm information, the second The keyword information of a candidate alarm information matches the keyword information of the alarm information, and the difference between the generation time of the first candidate alarm information and the generation time of the alarm information is greater than or equal to a preset duration, It is determined that the alarm information is target alarm information;
    所述控制装置将至少一条目标告警信息发送给所述服务器,以使所述服务器将所述至少一条目标告警信息转化为图片。The control device sends at least one piece of target alarm information to the server, so that the server converts the at least one piece of target alarm information into a picture.
  3. 根据权利要求1所述的方法,其特征在于,所述至少一条告警信息为所述监控装置在第一时刻至第二时刻通过监控一个或多个生产系统生成的,所述第二时刻位于所述第一时刻之后;The method according to claim 1, wherein the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from a first moment to a second moment, and the second moment is located at the After the first moment;
    所述控制装置接收监控装置发送的第一消息之前,还包括:Before the control device receives the first message sent by the monitoring device, the method further includes:
    所述控制装置若确定所述第一时刻之前的告警信息已成功转化为图片,则向所述监控装置发送第二消息,所述第二消息中包括所述第一时刻和所述第二时刻。If the control device determines that the alarm information before the first moment has been successfully converted into a picture, it sends a second message to the monitoring device, and the second message includes the first moment and the second moment .
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述控制装置接收所述服务器发送的所述目标告警信息对应的图片,并根据所述目标告警信息的业务类型,确定所述目标告警信息对应的目标运维方;The control device receives the picture corresponding to the target alarm information sent by the server, and determines the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information;
    所述控制装置将所述目标告警信息对应的图片发送给所述目标运维方,并确定所述目标告警信息已成功转化为图片。The control device sends the picture corresponding to the target alarm information to the target operation and maintenance party, and determines that the target alarm information has been successfully converted into a picture.
  5. 一种告警方法,其特征在于,所述方法包括:An alarm method, characterized in that the method includes:
    服务器接收控制装置发送的目标告警信息,并生成所述目标告警信息对应的WEB界面;The server receives the target alarm information sent by the control device, and generates a WEB interface corresponding to the target alarm information;
    所述服务器对所述WEB界面进行截图,得到所述目标告警信息对应的图片;The server takes a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information;
    所述服务器将所述目标告警信息对应的图片发送给所述控制装置。The server sends the picture corresponding to the target alarm information to the control device.
  6. 根据权利要求5所述的方法,其特征在于,所述服务器生成所述目标告警信息对应的WEB界面,包括:The method according to claim 5, wherein the server generating the WEB interface corresponding to the target alarm information comprises:
    所述服务器获取至少一个预设WEB模板,所述至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;The server obtains at least one preset WEB template, and the at least one preset WEB template is a preset template for generating a WEB interface corresponding to the alarm information;
    所述服务器根据所述目标告警信息所属的业务类型,从所述至少一个预设WEB模板中确定目标WEB模板;The server determines the target WEB template from the at least one preset WEB template according to the service type to which the target alarm information belongs;
    所述服务器使用所述目标WEB模板渲染所述目标告警信息,得到所述目标告警信息对应的WEB界面。The server uses the target WEB template to render the target alarm information to obtain the WEB interface corresponding to the target alarm information.
  7. 一种告警装置,其特征在于,所述装置包括:An alarm device, characterized in that the device includes:
    收发模块,用于接收监控装置发送的第一消息,所述第一消息包括所述监控装置通过监控一个或多个生产系统生成的至少一条告警信息;A transceiver module, configured to receive a first message sent by a monitoring device, where the first message includes at least one piece of alarm information generated by the monitoring device by monitoring one or more production systems;
    获取模块,用于获取一条或多条历史告警信息以及所述一条或多条历史告警信息的状态;其中,所述历史告警信息的状态包括恢复状态和未恢复状态,所述恢复状态用于指示触发所述历史告警信息的事件已成功处理,所述未恢复状态用于指示触发所述历史告警信息的事件未成功处理;The obtaining module is used to obtain one or more pieces of historical alarm information and the state of the one or more pieces of historical alarm information; wherein the state of the historical alarm information includes a restored state and an unrestored state, and the restored state is used to indicate The event that triggered the historical alarm information has been successfully processed, and the unrecovered state is used to indicate that the event that triggered the historical alarm information has not been successfully processed;
    处理模块,用于若确定所述一条或多条历史告警信息中不存在备选历史告警信息,则将所述至少一条告警信息发送给服务器,以使所述服务器将所述至少一条告警信息转化为图片;所述备选历史告警信息的状态为未恢复状态。A processing module, configured to send the at least one piece of alarm information to a server if it is determined that there is no candidate historical alarm information in the one or more pieces of historical alarm information, so that the server converts the at least one piece of alarm information It is a picture; the state of the candidate historical alarm information is an unrecovered state.
  8. 根据权利要求7所述的装置,其特征在于,所述处理模块还用于:The device according to claim 7, wherein the processing module is further configured to:
    若确定所述一条或多条历史告警信息中存在至少一条备选历史告警信息,则针对于所述至少一条告警信息中的任一告警信息,执行:若确定所述至少一条备选历史告警信息中不存在关键字信息与所述告警信息的关键字信息匹配的备选历史告警信息,或者,若确定所述备选历史告警信息中存在第一备选告警信息,所述第一备选告警信息的关键字信息与所述告警信息的关键字信息匹配,且所述第一备选告警信息的生成时刻与所述告警信息的生成时刻的差值大于或等于预设时长,则确定所述告警信息为目标告警信息;If it is determined that there is at least one candidate historical alarm information in the one or more pieces of historical alarm information, for any one of the at least one piece of alarm information, execute: if the at least one candidate historical alarm information is determined There is no candidate historical alarm information whose keyword information matches the keyword information of the alarm information, or if it is determined that the first candidate alarm information exists in the candidate historical alarm information, the first candidate alarm The keyword information of the information matches the keyword information of the alarm information, and the difference between the generation time of the first candidate alarm information and the generation time of the alarm information is greater than or equal to the preset duration, then it is determined that the The alarm information is the target alarm information;
    将至少一条目标告警信息发送给所述服务器,以使所述服务器将所述至少一条目标告警信息转化为图片。At least one piece of target alarm information is sent to the server, so that the server converts the at least one piece of target alarm information into a picture.
  9. 根据权利要求7所述的装置,其特征在于,所述至少一条告警信息为所述监控装置在第一时刻至当前时刻通过监控一个或多个生产系统生成的,所述第二时刻位于所述第一时刻之后;The device according to claim 7, wherein the at least one piece of alarm information is generated by the monitoring device by monitoring one or more production systems from the first moment to the current moment, and the second moment is located in the After the first moment
    所述收发模块接收监控装置发送的第一消息之前,还用于:Before the transceiver module receives the first message sent by the monitoring device, it is also used to:
    若确定所述第一时刻之前的告警信息已成功转化为图片,则向所述监控装置发送第二消息,所述第二消息中包括所述第一时刻和所述第二时刻。If it is determined that the alarm information before the first time has been successfully converted into a picture, a second message is sent to the monitoring device, and the second message includes the first time and the second time.
  10. 根据权利要求7至9中任一项所述的装置,其特征在于,所述收发模块还用于:The device according to any one of claims 7 to 9, wherein the transceiver module is further configured to:
    接收所述服务器发送的所述目标告警信息对应的图片,并根据所述目标 告警信息的业务类型,确定所述目标告警信息对应的目标运维方;Receiving the picture corresponding to the target alarm information sent by the server, and determining the target operation and maintenance party corresponding to the target alarm information according to the service type of the target alarm information;
    将所述目标告警信息对应的图片发送给所述目标运维方,并确定所述目标告警信息已成功转化为图片。The picture corresponding to the target alarm information is sent to the target operation and maintenance party, and it is determined that the target alarm information has been successfully converted into a picture.
  11. 一种告警装置,其特征在于,所述装置包括:An alarm device, characterized in that the device includes:
    生成模块,用于接收控制装置发送的目标告警信息,并生成所述目标告警信息对应的WEB界面;The generating module is used to receive the target alarm information sent by the control device, and generate the WEB interface corresponding to the target alarm information;
    截图模块,用于对所述WEB界面进行截图,得到所述目标告警信息对应的图片;The screenshot module is used to take a screenshot of the WEB interface to obtain a picture corresponding to the target alarm information;
    收发模块,用于将所述目标告警信息对应的图片发送给所述控制装置。The transceiver module is used to send the picture corresponding to the target alarm information to the control device.
  12. 根据权利要求11所述的装置,其特征在于,所述生成模块用于:The device according to claim 11, wherein the generating module is configured to:
    获取至少一个预设WEB模板,所述至少一个预设WEB模板为预先设置的用于生成告警信息对应的WEB界面的模板;Acquiring at least one preset WEB template, where the at least one preset WEB template is a preset template for generating a WEB interface corresponding to the alarm information;
    根据所述目标告警信息所属的业务类型,从所述至少一个预设WEB模板中确定目标WEB模板;Determine a target WEB template from the at least one preset WEB template according to the service type to which the target alarm information belongs;
    使用所述目标WEB模板渲染所述目标告警信息,得到所述目标告警信息对应的WEB界面。Use the target WEB template to render the target alarm information, and obtain the WEB interface corresponding to the target alarm information.
  13. 一种告警系统,其特征在于,所述系统包括监控装置、控制装置和服务器;An alarm system, characterized in that the system includes a monitoring device, a control device and a server;
    所述监控装置,用于监控与所述监控装置连接的一个或多个生产系统的运行状态,并生成所述一个或多个生产系统对应的一条或多条告警信息;The monitoring device is used for monitoring the operating status of one or more production systems connected to the monitoring device, and generating one or more pieces of alarm information corresponding to the one or more production systems;
    所述控制装置,用于通过与所述监控装置通信,获取所述一条或多条告警信息中的至少一条告警信息,从所述至少一条告警信息中确定目标告警信息,并将所述目标告警信息发送给所述服务器;The control device is configured to obtain at least one piece of alarm information among the one or more pieces of alarm information by communicating with the monitoring device, determine target alarm information from the at least one piece of alarm information, and set the target alarm information Information is sent to the server;
    所述服务器,用于接收所述目标告警信息,并生成所述目标告警信息对应的图片。The server is configured to receive the target alarm information and generate a picture corresponding to the target alarm information.
  14. 根据权利要求13所述的告警系统,其特征在于,所述服务器还用于:将所述目标告警信息对应的图片发送给所述控制装置;The alarm system according to claim 13, wherein the server is further configured to: send a picture corresponding to the target alarm information to the control device;
    所述控制装置还用于:接收所述服务器发送的所述目标告警信息对应的图片,并将所述目标告警信息对应的图片发送给所述目标告警信息对应的目标运维方。The control device is further configured to receive the picture corresponding to the target alarm information sent by the server, and send the picture corresponding to the target alarm information to the target operation and maintenance party corresponding to the target alarm information.
  15. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至6任一项所述的方法。A computer-readable storage medium, which is characterized by comprising instructions, which when run on a computer, causes the computer to execute the method according to any one of claims 1 to 6.
  16. 一种计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至6任一项所述的方法。A computer program product, which is characterized in that when it runs on a computer, the computer executes the method according to any one of claims 1 to 6.
PCT/CN2020/077502 2019-04-25 2020-03-02 Alarm method, device and system WO2020215894A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910339783.9A CN110086666B (en) 2019-04-25 2019-04-25 Alarm method, device and system
CN201910339783.9 2019-04-25

Publications (1)

Publication Number Publication Date
WO2020215894A1 true WO2020215894A1 (en) 2020-10-29

Family

ID=67416717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077502 WO2020215894A1 (en) 2019-04-25 2020-03-02 Alarm method, device and system

Country Status (2)

Country Link
CN (1) CN110086666B (en)
WO (1) WO2020215894A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804079A (en) * 2020-12-10 2021-05-14 北京浪潮数据技术有限公司 Cloud computing platform alarm analysis method, device, equipment and storage medium
CN112860461A (en) * 2021-03-11 2021-05-28 深圳鼎盛电脑科技有限公司 Event warning method, system, device, electronic equipment and storage medium
CN113037570A (en) * 2021-04-29 2021-06-25 中国联合网络通信集团有限公司 Alarm processing method and equipment
CN113065139A (en) * 2021-05-06 2021-07-02 携程旅游网络技术(上海)有限公司 Alarm access method and system, electronic device and medium
CN113194003A (en) * 2021-05-18 2021-07-30 深圳供电局有限公司 Substation communication statistical method and module for intelligent control of secondary equipment
CN113516383A (en) * 2021-06-30 2021-10-19 南通四建集团有限公司 Building construction safety control method and device
CN113688014A (en) * 2021-07-30 2021-11-23 济南浪潮数据技术有限公司 Alarm processing method, device, equipment and medium for SRDC whole cabinet
CN113704322A (en) * 2021-08-17 2021-11-26 北京国电通网络技术有限公司 Data acquisition method, device and medium based on cloud edge cooperation
CN113704018A (en) * 2021-08-30 2021-11-26 平安普惠企业管理有限公司 Application operation and maintenance data processing method and device, computer equipment and storage medium
CN113780597A (en) * 2021-09-16 2021-12-10 睿云奇智(重庆)科技有限公司 Influence propagation relation model construction and alarm influence evaluation method, computer equipment and storage medium
CN113821412A (en) * 2021-09-26 2021-12-21 中国建设银行股份有限公司 Equipment operation and maintenance management method and device
CN115190045A (en) * 2022-07-06 2022-10-14 南京云柜网络科技有限公司 Express cabinet system service monitoring method and device, electronic equipment and storage medium
CN115525803A (en) * 2022-09-16 2022-12-27 深圳市海邻科信息技术有限公司 Alarm handling method, alarm handling system, vehicle-mounted equipment and computer readable storage medium
CN115802199A (en) * 2022-10-26 2023-03-14 北京力控元通科技有限公司 Method and device for determining alarm threshold, electronic equipment and readable storage medium
CN116307669A (en) * 2023-05-23 2023-06-23 青岛创新奇智科技集团股份有限公司 Intelligent equipment management method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086666B (en) * 2019-04-25 2022-04-26 深圳前海微众银行股份有限公司 Alarm method, device and system
CN112232765A (en) * 2020-10-14 2021-01-15 广东电网有限责任公司 Personnel reminding method and device, electronic equipment and storage medium
CN112433919B (en) * 2020-11-25 2023-01-24 深圳前海微众银行股份有限公司 Information warning method, equipment and storage medium
CN114745296B (en) * 2020-12-23 2023-08-15 北京首信科技股份有限公司 Data reporting method and device
CN113553240B (en) * 2021-07-29 2022-04-19 湖南快乐阳光互动娱乐传媒有限公司 Alarm data processing method and device
CN114095332A (en) * 2021-11-11 2022-02-25 建信金融科技有限责任公司 Information processing method, device, equipment and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135642A1 (en) * 2001-12-21 2003-07-17 Andiamo Systems, Inc. Methods and apparatus for implementing a high availability fibre channel switch
CN102045204A (en) * 2010-12-31 2011-05-04 瑞斯康达科技发展股份有限公司 Fault treatment system and method
CN103326885A (en) * 2013-06-04 2013-09-25 新浪网技术(中国)有限公司 Alarm information processing method and device
CN106921518A (en) * 2017-02-21 2017-07-04 腾讯科技(北京)有限公司 Monitoring view methods of exhibiting and device
CN107707396A (en) * 2017-09-28 2018-02-16 平安科技(深圳)有限公司 A kind of mess code monitoring method, storage medium and server
CN108270669A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 Business recovery device, master controller, the system and method for SDN network
CN110086666A (en) * 2019-04-25 2019-08-02 深圳前海微众银行股份有限公司 A kind of alarm method, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731598B (en) * 2012-10-12 2017-08-11 中兴通讯股份有限公司 A kind of intelligent monitoring terminal and video frequency monitoring method
CN105373460B (en) * 2014-08-14 2019-03-26 腾讯科技(深圳)有限公司 The alarm method and system of monitoring message
GB201507594D0 (en) * 2015-05-01 2015-06-17 Intamac Systems Ltd Intamac 1
CN107682670A (en) * 2017-09-28 2018-02-09 神州数源(北京)科技有限公司 A kind of emergent prevention and control system
CN108712294A (en) * 2018-06-05 2018-10-26 陈艳 A method of network equipment monitoring alarm is realized based on Syslog knowledge bases

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135642A1 (en) * 2001-12-21 2003-07-17 Andiamo Systems, Inc. Methods and apparatus for implementing a high availability fibre channel switch
CN102045204A (en) * 2010-12-31 2011-05-04 瑞斯康达科技发展股份有限公司 Fault treatment system and method
CN103326885A (en) * 2013-06-04 2013-09-25 新浪网技术(中国)有限公司 Alarm information processing method and device
CN108270669A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 Business recovery device, master controller, the system and method for SDN network
CN106921518A (en) * 2017-02-21 2017-07-04 腾讯科技(北京)有限公司 Monitoring view methods of exhibiting and device
CN107707396A (en) * 2017-09-28 2018-02-16 平安科技(深圳)有限公司 A kind of mess code monitoring method, storage medium and server
CN110086666A (en) * 2019-04-25 2019-08-02 深圳前海微众银行股份有限公司 A kind of alarm method, apparatus and system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804079A (en) * 2020-12-10 2021-05-14 北京浪潮数据技术有限公司 Cloud computing platform alarm analysis method, device, equipment and storage medium
CN112804079B (en) * 2020-12-10 2023-04-07 北京浪潮数据技术有限公司 Alarm analysis method, device, equipment and storage medium for cloud computing platform
CN112860461A (en) * 2021-03-11 2021-05-28 深圳鼎盛电脑科技有限公司 Event warning method, system, device, electronic equipment and storage medium
CN113037570B (en) * 2021-04-29 2022-12-13 中国联合网络通信集团有限公司 Alarm processing method and equipment
CN113037570A (en) * 2021-04-29 2021-06-25 中国联合网络通信集团有限公司 Alarm processing method and equipment
CN113065139A (en) * 2021-05-06 2021-07-02 携程旅游网络技术(上海)有限公司 Alarm access method and system, electronic device and medium
CN113194003A (en) * 2021-05-18 2021-07-30 深圳供电局有限公司 Substation communication statistical method and module for intelligent control of secondary equipment
CN113194003B (en) * 2021-05-18 2023-12-29 深圳供电局有限公司 Substation communication statistical method and module for intelligent control of secondary equipment
CN113516383A (en) * 2021-06-30 2021-10-19 南通四建集团有限公司 Building construction safety control method and device
CN113516383B (en) * 2021-06-30 2024-05-03 南通四建集团有限公司 Building construction safety control method and device
CN113688014A (en) * 2021-07-30 2021-11-23 济南浪潮数据技术有限公司 Alarm processing method, device, equipment and medium for SRDC whole cabinet
CN113688014B (en) * 2021-07-30 2024-02-09 济南浪潮数据技术有限公司 Alarm processing method, device, equipment and medium for SRDC whole cabinet
CN113704322A (en) * 2021-08-17 2021-11-26 北京国电通网络技术有限公司 Data acquisition method, device and medium based on cloud edge cooperation
CN113704018A (en) * 2021-08-30 2021-11-26 平安普惠企业管理有限公司 Application operation and maintenance data processing method and device, computer equipment and storage medium
CN113780597A (en) * 2021-09-16 2021-12-10 睿云奇智(重庆)科技有限公司 Influence propagation relation model construction and alarm influence evaluation method, computer equipment and storage medium
CN113821412A (en) * 2021-09-26 2021-12-21 中国建设银行股份有限公司 Equipment operation and maintenance management method and device
CN115190045A (en) * 2022-07-06 2022-10-14 南京云柜网络科技有限公司 Express cabinet system service monitoring method and device, electronic equipment and storage medium
CN115190045B (en) * 2022-07-06 2024-04-09 南京云柜网络科技有限公司 Monitoring method and device for express cabinet system service, electronic equipment and storage medium
CN115525803A (en) * 2022-09-16 2022-12-27 深圳市海邻科信息技术有限公司 Alarm handling method, alarm handling system, vehicle-mounted equipment and computer readable storage medium
CN115525803B (en) * 2022-09-16 2024-02-23 深圳市海邻科信息技术有限公司 Alarm processing method, system, vehicle-mounted equipment and computer readable storage medium
CN115802199A (en) * 2022-10-26 2023-03-14 北京力控元通科技有限公司 Method and device for determining alarm threshold, electronic equipment and readable storage medium
CN115802199B (en) * 2022-10-26 2023-09-22 北京力控元通科技有限公司 Alarm threshold determining method and device, electronic equipment and readable storage medium
CN116307669B (en) * 2023-05-23 2023-08-18 青岛创新奇智科技集团股份有限公司 Intelligent equipment management method
CN116307669A (en) * 2023-05-23 2023-06-23 青岛创新奇智科技集团股份有限公司 Intelligent equipment management method

Also Published As

Publication number Publication date
CN110086666A (en) 2019-08-02
CN110086666B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
WO2020215894A1 (en) Alarm method, device and system
US9967351B2 (en) Automated service discovery in I.T. environments
CN110377667B (en) Correlation map display method, device, computer equipment and storage medium
US10536353B2 (en) Control interface for dynamic substitution of service monitoring dashboard source data
WO2019127821A1 (en) Method and apparatus for making visualization report, terminal device, and storage medium
US10963888B2 (en) Payment complaint method, device, server and readable storage medium
JP2012514802A (en) Interactive information system
CN111078695B (en) Method and device for calculating association relation of metadata in enterprise
CN108563730A (en) A kind of cold and hot data automatic switching method, device, electronic equipment and storage medium
CN112069384A (en) Buried point data processing method, server and readable storage medium
CN109062982A (en) Financial data exchange method, device, computer equipment and storage medium
CN115480987A (en) Link data display method and device and computer equipment
US20240037084A1 (en) Method and apparatus for storing data
US20240161198A1 (en) Custom data
CN115426287B (en) System monitoring and optimizing method and device, electronic equipment and medium
CN113159941A (en) Intelligent streaming transaction execution method and device
CN102184102A (en) Web page data range selecting system
CN110930581A (en) Remote monitoring method and device for vending equipment, computer equipment and storage medium
CN114398431A (en) Bill data query method, device, equipment and storage medium
CN114841570B (en) Data processing method, device, equipment and medium for customer relationship management system
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113051135B (en) Monitoring method of application thread pool and thread pool monitoring device
US20220139097A1 (en) Method for determining annotation capability information, related apparatus and computer program product
US20240111780A1 (en) Enterprise resource planning database extraction, transformation, and analysis
CN114741437A (en) Product state display method, device, equipment, storage medium and program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20794752

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20794752

Country of ref document: EP

Kind code of ref document: A1