CN113065139A - Alarm access method and system, electronic device and medium - Google Patents

Alarm access method and system, electronic device and medium Download PDF

Info

Publication number
CN113065139A
CN113065139A CN202110491759.4A CN202110491759A CN113065139A CN 113065139 A CN113065139 A CN 113065139A CN 202110491759 A CN202110491759 A CN 202110491759A CN 113065139 A CN113065139 A CN 113065139A
Authority
CN
China
Prior art keywords
alarm
template
instance
configuration
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110491759.4A
Other languages
Chinese (zh)
Inventor
齐啸
虞斌
陈刚
王成钊
王海兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN202110491759.4A priority Critical patent/CN113065139A/en
Publication of CN113065139A publication Critical patent/CN113065139A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/572Secure firmware programming, e.g. of basic input output system [BIOS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/577Assessing vulnerabilities and evaluating computer system security
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an alarm access method and system, electronic equipment and a medium, which comprise the following steps: presetting a template library, wherein different configuration templates corresponding to different alarm types are stored in the template library; accessing an alarm example; obtaining a current configuration template corresponding to the alarm type of the alarm example based on template library matching; analyzing the alarm instance based on a current configuration template; if the analysis is successful, acquiring alarm information of an alarm example; and if the analysis fails, updating the current configuration template based on the configuration information of the alarm instance to obtain a new configuration template. The method solves the defects that an alarm access mechanism in the prior art cannot analyze the alarm example with the changed example field and cannot access a plurality of alarm sources to the same site, realizes that the plurality of alarm sources can be accessed to the same site, and can smoothly analyze the alarm example with the changed example field, thereby improving the alarm efficiency and accelerating the vulnerability repair speed.

Description

Alarm access method and system, electronic device and medium
Technical Field
The present invention relates to the field of alarm access technologies, and in particular, to an alarm access method and system, an electronic device, and a medium.
Background
When a new alert source is enabled, it is accompanied by access to the corresponding monitoring system for ease of administration, viewing and response. After the warning source collects data, the monitoring system pushes the instance data to a visualization site, and the pushing mode may be a message queue or HTTP (Hypertext Transfer Protocol, HTTP Hypertext Transfer Protocol) transmission. And the alarm responsible person can repair the bug in time according to the alarm information.
With the continuous expansion of services, the number of monitoring systems to be accessed by a company or a department is gradually increased, so that more and more sites need to be concerned by service developers at the same time, the development efficiency is reduced, and the repair rate of problems when alarms appear is also slowed down. Furthermore, when the instance field of the accessed alarm instance changes, the alarm instance can be successfully analyzed only by modifying the function of the alarm access mechanism according to the changed alarm instance, and the process is over-customized, so that the function of the alarm access mechanism is modified for multiple times, the operation is inconvenient, and the workload of developers is increased.
Disclosure of Invention
The technical problem to be solved by the invention is that the alarm access mechanism in the prior art can not analyze the alarm example with changed example field and can not access a plurality of alarm sources to the same site.
In order to overcome the defects in the prior art, the invention solves the technical problems by the following technical scheme:
the invention provides an alarm access method and system, electronic equipment and a medium, comprising the following steps:
presetting a template library, wherein different configuration templates corresponding to different alarm types are stored in the template library;
accessing an alarm example;
obtaining a current configuration template corresponding to the alarm type of the alarm example based on the template library matching;
analyzing the alarm instance based on the current configuration template;
if the analysis is successful, acquiring the alarm information of the alarm instance;
and if the analysis fails, updating the current configuration template based on the configuration information of the alarm example to obtain a new configuration template.
Preferably, the step of presetting the template library includes:
acquiring example templates corresponding to the different alarm types;
and generating configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the example template.
Preferably, the step of parsing the alarm instance based on the current configuration template comprises:
analyzing the alarm example to obtain a plurality of example fields;
matching the configuration item based on the current configuration template with the instance field.
Preferably, when the configuration item based on the current configuration template is matched with the instance field, if the matching is successful, the parsing is successful, and the step of obtaining the alarm information of the alarm instance specifically includes:
and taking the successfully matched example field as the alarm information of the alarm example.
Preferably, when the configuration item based on the current configuration template is matched with the instance field, if the matching fails, the analysis fails, and the step of updating the current configuration template based on the alarm information of the alarm instance to obtain a new configuration template specifically includes:
and generating a new configuration item according to the unmatched instance field, and adding the new configuration item to the current configuration template to obtain the new configuration template.
The invention also provides an alarm access system, which comprises a preset module, an alarm instance access module, a configuration template generation module, an analysis module, an alarm information acquisition module and a configuration template updating module;
the preset module is used for presetting a template library, and different configuration templates corresponding to different alarm types are stored in the preset template library;
the alarm example access module is used for accessing an alarm example;
the configuration template generating module is used for obtaining a current configuration template corresponding to the alarm type of the alarm example based on the template library matching;
the analysis module is used for analyzing the alarm example based on the current configuration template;
the analysis module is used for analyzing the alarm example based on the current configuration template, if the analysis is successful, the alarm information acquisition module is called, and the alarm information acquisition module is used for acquiring the alarm information of the alarm example;
and if the analysis fails, calling the configuration template updating module, wherein the configuration template updating module is used for updating the current configuration template based on the configuration information of the alarm instance to obtain a new configuration template.
Preferably, the preset module comprises an example template acquisition unit and a configuration item generation unit;
the example template acquisition unit is used for acquiring example templates corresponding to the different alarm types;
the configuration item generating unit is used for generating configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the example template.
Preferably, the parsing module further comprises an instance field obtaining unit and a matching unit;
the example field acquisition unit is used for analyzing the alarm example to acquire a plurality of example fields;
the matching unit is used for matching the configuration item of the current configuration template with the instance field.
Preferably, if the matching result of the matching unit is that the matching is successful, the analysis is successful, and the alarm information obtaining module is called to use the successfully matched instance field as the alarm information of the alarm instance.
Preferably, if the matching result of the matching unit is a matching failure, the parsing fails, and then the configuration template updating module is invoked, and generates a new configuration item according to the unmatched instance field, and adds the new configuration item to the current configuration template to obtain the new configuration template.
The invention further provides an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and is characterized in that the processor implements the alarm access method when executing the computer program.
The invention also provides a computer-readable medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the aforementioned alert access method.
The positive progress effects of the invention are as follows: different configuration templates corresponding to different alarm types are stored in a preset template library, the configuration templates comprise a plurality of configuration items, the configuration items are set based on alarm information of alarm examples, after the alarm examples are accessed, the alarm examples are analyzed based on the current configuration template, if the example fields of the example templates are not matched with the configuration items of the current configuration template of the corresponding alarm types, new configuration items are generated according to the unmatched example fields, the new configuration items are added into the current configuration template to obtain a new configuration template, the defects in the prior art are overcome by the alarm access method, when the example fields of the accessed alarm examples are changed, the current configuration template can be updated according to the changed example fields, so that the alarm examples can be accessed next time, analysis can be smoothly performed without correcting the function of the alarm access method, the method and the system can analyze the alarm examples with the changed example fields, reduce the workload of developers and users, improve the alarm efficiency, access all alarm sources to the same site, enable the developers to pay no attention to the alarm sources, improve the development efficiency and accelerate the vulnerability repair speed.
Drawings
Fig. 1 is a flowchart of an alarm access method according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of an improved alarm access method according to embodiment 1 of the present invention.
Fig. 3 is a flowchart of an alarm access method according to embodiment 2 of the present invention.
Fig. 4 is a schematic block diagram of an alarm access system according to embodiment 3 of the present invention.
Fig. 5 is a schematic block diagram of an alarm access system according to embodiment 4 of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The present embodiment provides an alarm access method, as shown in fig. 1 and fig. 2, the alarm access method includes the following steps:
and S11, presetting a template library, wherein different configuration templates corresponding to different alarm types are stored in the template library.
The alarm access system can access various alarm sources of different types, the alarm sources are accessed into the same site, the preset template library stores configuration templates corresponding to the different types, and the configuration templates can be used as original templates and are convenient to search and use.
And S12, accessing an alarm example.
And S13, obtaining the current configuration template corresponding to the alarm type of the alarm example based on template library matching.
The current configuration template is used for being continuously updated and iterated, and the alarm access method can ensure that each alarm instance which is accessed has an original configuration template and a current configuration template which is used for updating and iterating.
And S14, analyzing the alarm instance based on the current configuration template, if the analysis is successful, executing a step S15, and if the analysis is failed, executing a step S16.
And S15, acquiring the alarm information of the alarm example.
And S16, updating the current configuration template based on the configuration information of the alarm example to obtain a new configuration template.
And continuously updating the current configuration template to ensure that the configuration information in the current configuration template is always in the latest state. When the configuration information of the accessed alarm instance changes, the alarm access method can record the configuration information of the changed alarm instance into the database, then skip the analysis of the alarm instance which does not change, simultaneously add the changed configuration information into the current configuration template, update the current configuration template to obtain a new configuration template, when the alarm access method accesses and analyzes the changed alarm instance again, the alarm instance can be directly analyzed based on the current configuration template, the function of the alarm access mechanism is not required to be modified, the changed alarm instance can be analyzed, and no error occurs in the analysis.
Specifically, step S11 includes the steps of:
and S11-1, acquiring instance templates corresponding to the different alarm types.
Different alarm sources, namely different alarm types, correspond to different alarm instances, different alarm instances correspond to unique instance templates, the manner of obtaining the instance templates is not limited herein, the instance templates can be automatically generated, uploaded by a user or a developer or downloaded from a cloud, and the like, and all the manners of obtaining the instance templates corresponding to different alarm types can be used.
And S11-2, generating configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the example template.
The alarm information in the instance template includes basic information of the alarm source, specifically, the basic information includes an alarm type name field, a type ID field, a description field, a creation time field, a current instance number field, a status field, and the like, a configuration item in the configuration template is generated correspondingly according to the basic information of the alarm source, in the configuration template, the basic information configuration item of the alarm source is referred to as a general configuration item, and the configuration item in the general configuration item corresponds to the instance field in the basic information of the alarm source. The alarm access method of the invention can ensure that each alarm type comprises a general configuration item, and can also comprise a user-defined configuration item, a screening configuration item, an external link configuration item, a plug-in configuration item and the like besides the general configuration item, wherein the number of the configuration items in a specific configuration template is not limited, and can be set according to actual needs.
And if the user wants to acquire other information except the basic information of the alarm source, the configuration items of the configuration template can be generated according to the example fields of the alarm examples, and the configuration items are called as the custom configuration items.
Because different users want to see different alarm information, screening configuration items can be set in the generated configuration templates corresponding to different alarm types, and users or business personnel can screen the configuration item information which the users want to see from the configuration items through the screening configuration items, so that the users, the business personnel and the managers can conveniently and visually see the alarm information, and the time is saved. In addition to the filter configuration items, external link configuration items and plug-in configuration items can be set in the configuration template, and plug-ins can be loaded to display diagrams and the like.
In the embodiment, the configuration templates corresponding to different alarm types are stored in the template library, after the alarm instance is accessed, the current configuration template corresponding to the alarm instance is obtained in the template library in a matching mode, then the alarm instance is analyzed according to the current configuration template, the alarm information of the alarm instance is obtained if the analysis is successful, the current configuration template is updated if the analysis is failed, and a new configuration template is obtained. Meanwhile, the alarm access method can access a plurality of alarm sources to the same site, developers do not need to pay attention to the alarm sources, development efficiency is improved, and vulnerability repair speed is increased.
Example 2
The alarm access method provided in this embodiment is a further improvement of embodiment 1, and as shown in fig. 3, step S14 specifically includes the following steps:
s14-1, analyzing the alarm example to obtain a plurality of example fields.
The example template of the alarm example is provided with a plurality of example fields, the example fields store alarm information of an alarm source, the alarm information comprises basic information of the alarm source, the basic information of the alarm source is taken as an example, the basic information comprises an alarm type name field, a type ID field, a description field creation time field, a current example number field, a state field and the like, and the fields are called example fields of the alarm example. Other example fields may also be included, without limitation.
And S14-2, matching the configuration item based on the current configuration template with the instance field.
When the configuration item based on the current configuration template is matched with the instance field, if the matching is successful, the analysis is successful, and then the step S15-1 is executed; if the matching fails, the analysis fails, and step S16-1 is executed.
Analyzing an alarm example to obtain alarm information of the alarm example, wherein the alarm information is obtained based on matching of configuration items in a current configuration template and example fields, the alarm example accessed by the alarm access method corresponds to one configuration template, the configuration items in the configuration template are generated correspondingly according to the alarm information in the alarm example, when the alarm example is analyzed, if the value of one configuration item field in the current configuration template is not matched with the value of the example field of the alarm example, the analysis is failed, and only if the example field of the alarm example is completely matched with the configuration items in the current configuration template, the analysis is successful. In this embodiment, the method for analyzing the alarm instance to obtain the instance field of the alarm instance is not limited.
S15-1, using the matching successful instance field as the alarm information of the alarm instance.
Matching the configuration item based on the current configuration template with the instance field, and if the configuration item of the current configuration template is completely matched with the instance field of the alarm instance, showing the successfully matched instance field as the alarm information of the alarm instance to the user or developers to process the alarm.
S16-1, generating a new configuration item according to the unmatched instance field, and adding the new configuration item to the current configuration template to obtain the new configuration template.
If the alarm instance contains unmatched instance fields, but no configuration item corresponding to the unmatched instance fields is generated in the current configuration template, at this time, when the alarm instance is analyzed based on the current configuration template, an analysis error occurs, namely, the analysis fails, when the situation occurs, the unmatched instance fields are stored in the database, then the alarm instance is skipped for not being analyzed, a new configuration item is generated according to the unmatched instance fields, and then the new configuration item is added into the current configuration template for updating, so that a new configuration template is obtained. When the alarm example containing the unmatched example field is accessed again, the analysis can be smoothly carried out, and the analysis error can not occur. The alarm access method solves the defects in the prior art, when the instance field of the alarm instance changes, the function of the alarm access mechanism does not need to be modified, the alarm access mechanism can work smoothly, and the analysis fault can not occur.
In the embodiment, the alarm access method can access various types of alarm sources to a unified site or a system, and by dynamically configuring the current configuration template through continuous updating and an alarm instance analysis algorithm in the alarm access method, the content in the user-defined configuration item can be automatically extracted by the homologous alarm instance according to the user requirement, and meanwhile, the display of the content of the non-homologous alarm instance is also ensured by screening the configuration item. The method mainly realizes that the current configuration template is continuously updated, when the example field of the alarm example pushed by the alarm source changes, the configuration template can be updated aiming at the unmatched example field, so that the alarm example can be analyzed without modifying the function of the alarm access mechanism when the alarm example containing the unmatched example field is accessed next time, the workload of a developer is saved, and the repair rate of the alarm is improved.
Example 3
The present embodiment provides an alarm access system, as shown in fig. 4, the alarm access system includes a preset module 51, an alarm instance access module 52, a configuration template generating module 53, an analyzing module 54, an alarm information obtaining module 55, and a configuration template updating module 56.
The preset module 51 is used for presetting a template library, and different configuration templates corresponding to different alarm types are stored in the preset template library.
The alarm access system can access various different types of alarm sources, the preset template library stores configuration templates corresponding to different types, and the configuration templates can be used as original templates and are convenient to search and use.
The alarm instance access module 52 is used for accessing an alarm instance.
The alarm instance access module 52 may access different alarm instances corresponding to different alarm types, and the number of the access alarm instances is not limited herein.
The configuration template generating module 53 is configured to obtain a current configuration template corresponding to the alarm type of the alarm instance based on template library matching.
The current configuration template is used for being continuously updated and iterated, and the alarm access system can ensure that each alarm instance has one original configuration template and one current configuration template for updating and iterating.
The parsing module 54 is used to parse the alarm instance based on the current configuration template.
The analysis module 54 is configured to analyze the alarm instance based on the current configuration template, and if the analysis is successful, the alarm information acquisition module 55 is invoked, where the alarm information acquisition module 55 is configured to acquire alarm information of the alarm instance; if the analysis fails, the configuration template updating module 56 is called, and the configuration template updating module 56 is used for updating the current configuration template based on the configuration information of the alarm instance to obtain a new configuration template.
Specifically, the preset module 51 includes an instance template obtaining unit 511 and a configuration item generating unit 512, where the instance template obtaining unit 511 is configured to obtain instance templates corresponding to different alarm types; the configuration item generating unit 512 is configured to generate configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the instance template.
The alarm access system can access a plurality of different alarm sources, and when an alarm source is accessed, the example template acquisition unit 511 first acquires example templates corresponding to different alarm types, and then generates configuration items in different configuration templates corresponding to different alarm types according to alarm information in the example templates.
In the embodiment, the configuration templates corresponding to different alarm types are stored in the template library, after the alarm instance is accessed, the current configuration template corresponding to the alarm instance is obtained in the template library in a matching mode, then the alarm instance is analyzed according to the current configuration template, the alarm information of the alarm instance is obtained if the analysis is successful, if the analysis is failed, the current configuration template is updated, and a new configuration template is obtained. Meanwhile, the alarm access system can be accessed to various alarm sources of different types, can access various alarm sources to the same site, and can also be accessed to the same platform, system and the like.
Example 4
In this embodiment, an alarm access system is provided, which is a further improvement of embodiment 3, and as shown in fig. 5, the parsing module 54 further includes an instance field obtaining unit 541 and a matching unit 542
The instance field obtaining unit 541 is configured to parse the alarm instance to obtain a plurality of instance fields.
The matching unit 542 is configured to match the instance field based on the configuration item of the current configuration template.
The method comprises the steps that a configuration template corresponds to an alarm instance accessed by an alarm access system, configuration items in the configuration template are correspondingly generated according to alarm information in the alarm instance, when the alarm instance is analyzed, if the value of one configuration item in the current configuration template is not matched with the value of an instance field of the alarm instance, the analysis is failed, and only if the instance field of the alarm instance is completely matched with the configuration item in the current configuration template, the analysis is successful. In this embodiment, the method for analyzing the alarm instance to obtain the instance field of the alarm instance is not limited.
If the matching result of the matching unit 542 is that the matching is successful, the analysis is successful, and the alarm information obtaining module 55 is invoked to use the successfully matched instance field as the alarm information of the alarm instance.
And displaying the information of the successfully matched example field as alarm information of the alarm example to the user or developers for the user or developers to process the alarm.
If the matching result of the matching unit 542 is that the matching fails, the parsing fails, the configuration template updating module 56 is invoked, the configuration template updating module 56 generates a new configuration item according to the unmatched instance field, and adds the new configuration item to the current configuration template to obtain a new configuration template.
If the alarm instance contains the unmatched instance field, but the configuration item corresponding to the unmatched instance field is not generated in the current configuration template, in this case, when the analysis module 54 analyzes the alarm instance based on the current configuration template, an analysis error occurs, that is, the analysis fails, in this case, the unmatched instance field is stored in the database, then the alarm instance is skipped for not being analyzed, the configuration template updating module 56 generates a new configuration item according to the unmatched instance field, and then the new configuration item is added to the current configuration template for updating, so as to obtain a new configuration template. When the alarm access system accesses the alarm instance containing the unmatched instance field again, the analysis module 54 can smoothly analyze the alarm instance, and no analysis error occurs. The alarm access system overcomes the defects in the prior art, when the instance field of the alarm instance changes, the function of the alarm access mechanism does not need to be modified, the alarm access mechanism can work smoothly, and the analysis fault can not occur.
In the embodiment, the alarm access system dynamically configures and continuously updates the current configuration template, and analyzes the alarm instance based on the current configuration template to acquire the alarm information which the user or the developer wants to see, so that the alarm instance can be successfully analyzed under the condition that the access function of the alarm access system is not changed when the instance field of the alarm source is changed, the alarm access system can work smoothly, and the analysis fault cannot occur. The workload of a developer is saved, and the repair rate of the alarm is improved. Meanwhile, various types of alarm sources can be accessed to a unified site or system, and centralized management is performed on alarm examples, so that users and developers can conveniently obtain alarm information of different alarm types.
Example 5
Fig. 6 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention. The alarm access method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the alarm access methods of the embodiment 1 and the embodiment 2. The electronic device 30 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
The electronic device 30 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 30 may include, but are not limited to: the at least one processor 31, the at least one memory 32, and a bus 33 connecting the various system components (including the memory 32 and the processor 31).
The bus 33 includes a data bus, an address bus, and a control bus.
The memory 32 may include volatile memory, such as Random Access Memory (RAM)321 and/or cache memory 322, and may further include Read Only Memory (ROM) 323.
Memory 32 may also include a program/utility 325 having a set (at least one) of program modules 324, such program modules 324 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 31 executes various functional applications and data processing, such as the alarm access methods of embodiment 1 and embodiment 2 of the present invention, by running the computer program stored in the memory 32.
The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). Such communication may be through input/output (I/O) interfaces 35. Also, model-generating device 30 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 36. As shown, network adapter 36 communicates with the other modules of model-generating device 30 via bus 33. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
The present invention also provides a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the alert access methods of embodiments 1 and 2 described above.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps of implementing the alarm access methods of embodiments 1 and 2 when the program product runs on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. An alarm access method is characterized by comprising the following steps:
presetting a template library, wherein different configuration templates corresponding to different alarm types are stored in the template library;
accessing an alarm example;
obtaining a current configuration template corresponding to the alarm type of the alarm example based on the template library matching;
analyzing the alarm instance based on the current configuration template;
if the analysis is successful, acquiring the alarm information of the alarm instance;
and if the analysis fails, updating the current configuration template based on the configuration information of the alarm example to obtain a new configuration template.
2. The alarm access method of claim 1, wherein the step of presetting the template library comprises:
acquiring example templates corresponding to the different alarm types;
and generating configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the example template.
3. The alert access method of claim 2 wherein the step of parsing the alert instance based on the current configuration template comprises:
analyzing the alarm example to obtain a plurality of example fields;
matching the configuration item based on the current configuration template with the instance field.
4. The alarm access method according to claim 3, wherein when the configuration item based on the current configuration template is matched with the instance field, if the matching is successful, the parsing is successful, and the step of obtaining the alarm information of the alarm instance specifically includes:
and taking the successfully matched example field as the alarm information of the alarm example.
5. The alarm access method according to claim 3, wherein when the configuration item based on the current configuration template is matched with the instance field, if the matching fails, the parsing fails, and the step of updating the current configuration template based on the alarm information of the alarm instance to obtain a new configuration template specifically comprises:
and generating a new configuration item according to the unmatched instance field, and adding the new configuration item to the current configuration template to obtain the new configuration template.
6. An alarm access system is characterized by comprising a preset module, an alarm instance access module, a configuration template generation module, an analysis module, an alarm information acquisition module and a configuration template updating module;
the preset module is used for presetting a template library, and different configuration templates corresponding to different alarm types are stored in the preset template library;
the alarm example access module is used for accessing an alarm example;
the configuration template generating module is used for obtaining a current configuration template corresponding to the alarm type of the alarm example based on the template library matching;
the analysis module is used for analyzing the alarm example based on the current configuration template;
the analysis module is used for analyzing the alarm example based on the current configuration template, if the analysis is successful, the alarm information acquisition module is called, and the alarm information acquisition module is used for acquiring the alarm information of the alarm example;
and if the analysis fails, calling the configuration template updating module, wherein the configuration template updating module is used for updating the current configuration template based on the configuration information of the alarm instance to obtain a new configuration template.
7. The alarm access system of claim 6, wherein the preset module comprises an instance template acquisition unit and a configuration item generation unit;
the example template acquisition unit is used for acquiring example templates corresponding to the different alarm types;
the configuration item generating unit is used for generating configuration items in different configuration templates corresponding to different alarm types according to the alarm information in the example template.
8. The alarm access system of claim 7, wherein the parsing module further comprises an instance field obtaining unit and a matching unit;
the example field acquisition unit is used for analyzing the alarm example to acquire a plurality of example fields;
the matching unit is used for matching the configuration item of the current configuration template with the instance field.
9. The alarm access system of claim 8, wherein if the matching result of the matching unit is a successful matching, the parsing is successful, and the alarm information obtaining module is invoked to use the successfully matched instance field as the alarm information of the alarm instance.
10. The alarm access system of claim 8, wherein if the matching result of the matching unit is a matching failure, the parsing fails, and the configuration template update module is invoked, and generates a new configuration item according to the unmatched instance field, and adds the new configuration item to the current configuration template to obtain the new configuration template.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the alert access method according to any of claims 1-5 when executing the computer program.
12. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the alert access method according to any one of claims 1 to 5.
CN202110491759.4A 2021-05-06 2021-05-06 Alarm access method and system, electronic device and medium Pending CN113065139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110491759.4A CN113065139A (en) 2021-05-06 2021-05-06 Alarm access method and system, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110491759.4A CN113065139A (en) 2021-05-06 2021-05-06 Alarm access method and system, electronic device and medium

Publications (1)

Publication Number Publication Date
CN113065139A true CN113065139A (en) 2021-07-02

Family

ID=76568126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110491759.4A Pending CN113065139A (en) 2021-05-06 2021-05-06 Alarm access method and system, electronic device and medium

Country Status (1)

Country Link
CN (1) CN113065139A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124682A (en) * 2021-09-30 2022-03-01 卓望数码技术(深圳)有限公司 Monitoring method and monitoring system
CN115065736A (en) * 2022-03-29 2022-09-16 兰州乐智教育科技有限责任公司 Message processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052408A (en) * 2017-12-14 2018-05-18 杭州富春云科技有限公司 Alarm work order based on warning information content quickly submits method and system
CN108768728A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 O&M task processing method, device, computer equipment and storage medium
CN108847995A (en) * 2018-08-01 2018-11-20 平安科技(深圳)有限公司 A kind of method and apparatus of the configuration O&M alarm template based on private clound
CN110943851A (en) * 2018-09-25 2020-03-31 中国移动通信集团广东有限公司 Alarm processing method and device based on micro-service and electronic equipment
CN111030857A (en) * 2019-12-06 2020-04-17 深圳前海微众银行股份有限公司 Network alarm method, device, system and computer readable storage medium
CN111431733A (en) * 2020-02-20 2020-07-17 拉扎斯网络科技(上海)有限公司 Service alarm coverage information evaluation method and device
WO2020215894A1 (en) * 2019-04-25 2020-10-29 深圳前海微众银行股份有限公司 Alarm method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052408A (en) * 2017-12-14 2018-05-18 杭州富春云科技有限公司 Alarm work order based on warning information content quickly submits method and system
CN108768728A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 O&M task processing method, device, computer equipment and storage medium
CN108847995A (en) * 2018-08-01 2018-11-20 平安科技(深圳)有限公司 A kind of method and apparatus of the configuration O&M alarm template based on private clound
CN110943851A (en) * 2018-09-25 2020-03-31 中国移动通信集团广东有限公司 Alarm processing method and device based on micro-service and electronic equipment
WO2020215894A1 (en) * 2019-04-25 2020-10-29 深圳前海微众银行股份有限公司 Alarm method, device and system
CN111030857A (en) * 2019-12-06 2020-04-17 深圳前海微众银行股份有限公司 Network alarm method, device, system and computer readable storage medium
CN111431733A (en) * 2020-02-20 2020-07-17 拉扎斯网络科技(上海)有限公司 Service alarm coverage information evaluation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贺延峰 等: "一种智能变电站设备监控信息点表自动配置方法的研究与实现", 《自动化应用》, no. 11, 25 November 2019 (2019-11-25), pages 78 - 81 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124682A (en) * 2021-09-30 2022-03-01 卓望数码技术(深圳)有限公司 Monitoring method and monitoring system
CN114124682B (en) * 2021-09-30 2024-07-23 卓望数码技术(深圳)有限公司 Monitoring method and monitoring system
CN115065736A (en) * 2022-03-29 2022-09-16 兰州乐智教育科技有限责任公司 Message processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110807067B (en) Data synchronization method, device and equipment for relational database and data warehouse
US10911447B2 (en) Application error fingerprinting
CN112507027A (en) Incremental data synchronization method, device, equipment and medium based on Kafka
CN111427748B (en) Task alarm method, system, equipment and storage medium
US20200026790A1 (en) Generation and graphical display of data transform provenance metadata
CN110324209B (en) Micro-service system monitoring method and device, electronic equipment and computer readable medium
CN112527382B (en) Method for deploying pipeline engine system, and method and device for continuous integration
CN113065139A (en) Alarm access method and system, electronic device and medium
CN111625460A (en) Method, system, electronic device and storage medium for automatically testing interface
CN115113854A (en) Interface document generation method, device, equipment and computer readable storage medium
CN111178849A (en) Linear process engine implementation method, device, equipment and storage medium
CN110765090B (en) Log data management method and device, storage medium and electronic equipment
CN115033639A (en) Method and related device for generating relation graph for data sharing among clusters
CN113010208A (en) Version information generation method, version information generation device, version information generation equipment and storage medium
CN110347505B (en) Access method and device supporting cross-network-segment scheduling and electronic equipment
CN114047999A (en) Page configuration method, system, electronic equipment and storage medium
CN113010399A (en) Log data processing method, system, device and medium
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN118034672B (en) Spark-based visual data processing analysis method and system
CN117056175B (en) Data processing method, device, electronic equipment and storage medium
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN118227189B (en) Data processing method and abnormality prompting method
CN116450465B (en) Data processing method, device, equipment and medium
CN114936026B (en) Method, system, storage medium and equipment for analyzing semi-structured data
US11513817B2 (en) Preventing disruption within information technology environments

Legal Events

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