CN114826877B - Asset alarm processing method, device, computer equipment and storage medium - Google Patents

Asset alarm processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114826877B
CN114826877B CN202210173978.2A CN202210173978A CN114826877B CN 114826877 B CN114826877 B CN 114826877B CN 202210173978 A CN202210173978 A CN 202210173978A CN 114826877 B CN114826877 B CN 114826877B
Authority
CN
China
Prior art keywords
alarm
information
component
state information
leaf node
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.)
Active
Application number
CN202210173978.2A
Other languages
Chinese (zh)
Other versions
CN114826877A (en
Inventor
王勇旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210173978.2A priority Critical patent/CN114826877B/en
Publication of CN114826877A publication Critical patent/CN114826877A/en
Application granted granted Critical
Publication of CN114826877B publication Critical patent/CN114826877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • H04L41/0636Management 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 based on a decision tree 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/0604Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
    • H04L41/0618Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on the physical or logical position
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to an asset alarm processing method, an asset alarm processing device, computer equipment and a storage medium, wherein the method comprises the following steps: establishing all components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all components; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; the alarm state information is processed based on the state information of the leaf node, so that the method can quickly inquire the alarm record by constructing a part relation tree, can quickly process the alarm when the alarm is generated or recovered, quickens the overview of the alarm information and improves the inquiring efficiency.

Description

Asset alarm processing method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of data processing, in particular to an asset alarm processing method, an asset alarm processing device, computer equipment and a storage medium.
Background
In some scenarios where the number of assets is large, such as a large number of servers in a nanotube, a storage server, and a network server, a large number of alarms or alarm recovery are often generated in a short time, and it is necessary to know the alarm conditions of all the assets, the alarm conditions of all the asset components, and the alarm conditions of a single asset. For the active monitoring scenario, the alarm recovery information needs to be sent uninterruptedly, and the second-level alarm and recovery situation may exist, so that the system performance and efficiency problems need to be fully considered.
The monitoring and recovery of asset alarms is commonly performed in the following manner: 1. based on the database, the generation and recovery of the alarms are realized based on the database, after each alarm generation, whether the alarm record exists is inquired in the database, if so, the alarm record is updated, and otherwise, an alarm is newly inserted; when the alarm is recovered, if the alarm is in the table, deleting the alarm to complete the alarm recovery logic. 2. Based on the database and the cache, the generation and recovery of the alarm are realized based on the database and the cache, after each alarm is generated, whether the alarm record exists in the cache is firstly inquired, and if so, the alarm record is updated; if the alarm record is not in the cache, inquiring whether the alarm record exists in the database, if so, updating the alarm record, otherwise, inserting an alarm, and updating the alarm record into the cache; when the alarm is recovered, if the alarm is in the table, deleting the alarm and clearing the buffer memory to complete the logic of alarm recovery.
However, the above method for monitoring and recovering the asset alarm requires repeated database query, which is inefficient, thereby reducing the alarm recovery efficiency.
Disclosure of Invention
In view of the above, in order to solve the above technical problems or some of the technical problems, embodiments of the present invention provide an asset alarm processing method, apparatus, computer device, and storage medium.
In a first aspect, an embodiment of the present invention provides an asset alarm processing method, including:
establishing all components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all components;
acquiring real-time alarm state information;
inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information;
and processing the alarm state information based on the state information of the leaf node.
In one possible embodiment, the method further comprises:
and if the state information of the leaf node under the target component exists and the alarm state information is alarm information, updating the original alarm information stored in the leaf node based on the alarm information.
In one possible embodiment, the method further comprises:
and if the state information of the leaf node under the target component is nonexistent and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information, and storing the alarm information in the target leaf node.
In one possible embodiment, the method further comprises:
and if the state information of the leaf node under the target component exists and the alarm state information is alarm recovery information, deleting the leaf node based on the alarm recovery information.
In one possible embodiment, the method further comprises:
and if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is the component node, deleting the component relation tree branch where the target component is located.
In one possible embodiment, the method further comprises:
identifying physical and logical relationships between all components of the target asset;
all components of the target asset are built into a component relationship tree having a hierarchical relationship based on the entity relationship and the logical relationship.
In a second aspect, an embodiment of the present invention provides an asset alarm processing apparatus, including:
the building module is used for building all the components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all the components;
the acquisition module is used for acquiring real-time alarm state information;
the query module is used for querying the state information of leaf nodes under the target component in the component relation tree based on the target component information for sending the alarm state information;
and the processing module is used for processing the alarm state information based on the state information of the leaf node.
In one possible implementation manner, the processing module is specifically configured to update the original alarm information stored in the leaf node based on the alarm information if the state information of the leaf node under the target component is present and the alarm state information is the alarm information.
In a third aspect, an embodiment of the present invention provides a computer apparatus, including: the system comprises a processor and a memory, wherein the processor is used for executing an asset alarm processing program stored in the memory so as to realize the asset alarm processing method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, including: the storage medium stores one or more programs executable by one or more processors to implement the asset alert processing method described in the first aspect above.
According to the asset alarm processing scheme provided by the embodiment of the invention, all parts of the target asset are built into a part relation tree with a hierarchical relation based on the working relation among the parts; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; compared with the prior art that alarms are recorded based on a database or based on the database and a cache mode, the method has the advantages that the database is required to be queried repeatedly, so that query efficiency is low, and the problem of reducing alarm recovery efficiency is solved.
Drawings
FIG. 1 is a schematic diagram of an asset component relationship tree according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an asset alarm processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for processing an asset alert according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an asset alarm processing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the purpose of facilitating an understanding of the embodiments of the present invention, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the invention.
FIG. 1 is a schematic diagram of an asset component relationship tree according to an embodiment of the present invention, as shown in FIG. 1, in an asset composed of multiple components, such as a server, the server includes a central processing unit, a memory, a chipset, an I/O bus, an I/O device, a power supply, a chassis, and other components. The components of the server have a physical hierarchical relationship or a logical hierarchical relationship, and the components can be further split down into a plurality of sub-components, and finally split into atomic components (physical or logical) capable of monitoring or obtaining key information, for example, a central processor may contain a plurality of sub-processors, the central processor and the plurality of sub-processors belong to the hierarchical relationship on hardware, and the hierarchical components form a tree structure, which is called an asset component relationship tree in the embodiment of the present invention.
In the asset component relationship tree, the leaf nodes can be used for storing real alarm information, and the intermediate nodes are used for maintaining the structure among components and accelerating the functions of indexing, inquiring and alarm overview.
Fig. 2 is a flow chart of an asset alarm processing method according to an embodiment of the present invention, as shown in fig. 2, where the method specifically includes:
s21, based on the working relation among all the components of the target asset, establishing all the components into a component relation tree with a hierarchical relation.
In the embodiment of the invention, all the components of the target asset can be established into the component relation tree with hierarchical relation based on the working relation among all the components.
For example, the target asset is a server, which includes components such as a central processing unit, a memory, a chipset, an I/O bus, an I/O device, a power supply, and a chassis, when a user performs a login or logout operation, an abnormal login or logout condition of the user is involved, and at this time, the memory of the server changes, and the memory change may cause a change in the working state of other components, so that it is preferable to build all components into a component relationship tree having a hierarchical relationship according to the working relationship of the working influences among all components.
S22, acquiring real-time alarm state information.
In the running process of the target asset, abnormal alarm information generated when the component runs abnormally or alarm recovery information generated when the abnormal component recovers may occur; the abnormal alarm information and the alarm recovery information are collectively referred to as alarm state information. And acquiring alarm state information in real time.
S23, inquiring the state information of leaf nodes under the target component in the component relation tree based on the target component information for sending the alarm state information.
And determining a target component for sending the alarm state information based on the received alarm state information, and inquiring the state information of leaf nodes under the target component in the component relation tree according to the component relation tree, wherein the state information of the leaf nodes is the existence or nonexistence of the leaf nodes.
S24, processing the alarm state information based on the state information of the leaf node.
In the embodiment of the invention, the alarm state information is correspondingly processed based on the state information of the leaf node under the target component for sending the alarm state information. The specific processing is illustrated in the embodiment of fig. 3 and will not be described in detail here.
According to the asset alarm processing method provided by the embodiment of the invention, all parts of the target asset are built into a part relation tree with a hierarchical relation based on the working relation among the parts; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; compared with the prior art that alarms are recorded based on a database or based on the database and a cache mode, the method has the advantages that the database is required to be queried repeatedly, so that query efficiency is low, and the problem of reducing alarm recovery efficiency is solved.
Fig. 3 is a flow chart of another asset alarm processing method according to an embodiment of the present invention, as shown in fig. 3, where the method specifically includes:
s31, identifying the entity relationship and the logic relationship among all the components of the target asset.
S32, based on the entity relationship and the logic relationship, all the components of the target asset are built into a component relationship tree with a hierarchical relationship.
In the embodiment of the invention, all the components can be established into the component relation tree with hierarchical relation based on the entity relation and the logic relation among all the components of the target asset.
For example, the target asset is a server, including a central processing unit, a memory, a chipset, an I/O bus, an I/O device, a power supply, a chassis, etc., where each component of the server has a physical hierarchical relationship, each component may be further split down into a plurality of sub-components, and finally split into atomic components that can monitor or obtain key information, for example, the central processing unit may include a plurality of sub-processors, where the central processing unit and the plurality of sub-processors belong to the physical hierarchical relationship on hardware.
When a user performs a login or logout operation, abnormal login or logout conditions of the user are involved, and at this time, the memory of the server changes, and the memory change may cause the working states of other components to change, so that the working influences among all the components have a logical relationship.
All components of the target asset are built into a component relationship tree having a hierarchical relationship based on the physical and logical relationships between all components.
S33, if the state information of the leaf node under the target component exists and the alarm state information is alarm information, updating the original alarm information stored in the leaf node based on the alarm information.
In the running process of the target asset, abnormal alarm information generated when the component runs abnormally or alarm recovery information generated when the abnormal component recovers may occur; the abnormal alarm information and the alarm recovery information are collectively referred to as alarm state information. And acquiring alarm state information in real time.
And determining a target component for sending the alarm state information based on the received alarm state information, and inquiring the state information of leaf nodes under the target component in the component relation tree according to the component relation tree.
If the state information of the leaf node under the target component is existing, namely the leaf node exists, and the alarm state information is alarm information, and the alarm information is characterized in that the leaf node stores alarm information of the same type as the current alarm information, the original alarm information stored in the leaf node is updated based on the alarm information. As shown in fig. 1, when an Alarm occurs, through traversing the component relation tree, if the leaf node already exists, for example, alarm id=12, the Alarm information of the node is directly updated, and the information of all parent nodes is updated as required, the Alarm information carries some parameters, for example, the Alarm time, and the update parent node storage can quickly find the Alarm when the Alarm occurs next time. Alternatively, the alarm information, the key information of the alarm and the like which are repeatedly generated in a certain time period can be searched, and the alarm record of the same type as the current alarm information can be accelerated.
And S34, if the state information of the leaf node under the target component is nonexistent and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information, and storing the alarm information in the target leaf node.
If the state information of the leaf node under the target component is absent and the Alarm state information is Alarm information, then generating the target leaf node under the target component based on the Alarm information and storing the Alarm information in the newly generated target leaf node, as shown in fig. 1, when a new Alarm id=14 occurs, since the Alarm is a new Alarm and there is no component to which the Alarm is attached in the component relation tree, when the Alarm is inserted, it is necessary to simultaneously create upper component information of the Alarm and update all information of the Alarm to the root node.
And S35, if the state information of the leaf node under the target component exists and the alarm state information is alarm recovery information, deleting the leaf node based on the alarm recovery information.
And S36, deleting the component relation tree branch where the target component is located if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is the component node.
If the state information of the leaf node under the target component is present and the Alarm state information is Alarm recovery information, the Alarm information stored in the leaf node is recovered, as shown in fig. 1, when a new recovery is generated, for example, an Alarm id=11 node on the left side, because the component relation tree is preset to store the Alarm information only by the leaf node, when the Alarm id=11 is deleted, the father node artifacts and Asset level where the Alarm id=11 is located are also deleted together, and the tree characteristic of the component relation tree is maintained.
According to the asset alarm processing method provided by the embodiment of the invention, all parts of the target asset are built into a part relation tree with a hierarchical relation based on the working relation among the parts; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; compared with the prior art that alarms are recorded based on a database or based on the database and a cache mode, the method has the advantages that the database is required to be queried repeatedly, so that query efficiency is low, and the problem of reducing alarm recovery efficiency is solved.
Fig. 4 is a schematic structural diagram of an asset alarm processing device according to an embodiment of the present invention, as shown in fig. 4, specifically including:
an establishing module 401, configured to establish all components of the target asset as a component relationship tree with a hierarchical relationship based on a working relationship between the all components;
an acquisition module 402, configured to acquire real-time alarm state information;
a query module 403, configured to query state information of leaf nodes under a target component in the component relationship tree based on target component information that sends the alarm state information;
and the processing module 404 is configured to process the alarm state information based on the state information of the leaf node.
In one possible implementation, the establishing module 401 is specifically configured to identify physical relationships and logical relationships between all components of the target asset; all components of the target asset are built into a component relationship tree having a hierarchical relationship based on the entity relationship and the logical relationship.
In a possible implementation manner, the processing module 404 is specifically configured to update the original alarm information stored in the leaf node based on the alarm information if the state information of the leaf node under the target component is present and the alarm state information is the alarm information.
In a possible implementation manner, the processing module 404 is further configured to generate a target leaf node under the target component based on the alarm information if the state information of the leaf node under the target component is not present and the alarm state information is the alarm information, and store the alarm information in the target leaf node.
In a possible implementation manner, the processing module 404 is further configured to delete the leaf node based on the alarm recovery information if the state information of the leaf node under the target component is present and the alarm state information is the alarm recovery information.
In a possible implementation manner, the processing module 404 is further configured to delete the part relationship tree branch where the target part is located if the current leaf node in the part relationship tree branch where the target part is located after deleting the leaf node is a part node.
The asset alarm processing device provided in this embodiment may be an asset alarm processing device as shown in fig. 4, and may perform all the steps of the asset alarm processing method as shown in fig. 2-3, so as to achieve the technical effects of the asset alarm processing method as shown in fig. 2-3, and the detailed description of the asset alarm processing device is referred to in fig. 2-3, and is omitted herein for brevity.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and the computer device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in computer device 500 are coupled together by bus system 505. It is understood that bus system 505 is used to enable connected communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 505 in fig. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 502 in embodiments of the invention can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like for realizing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 5022.
In the embodiment of the present invention, the processor 501 is configured to execute the method steps provided by the method embodiments by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, for example, including:
establishing all components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all components; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; and processing the alarm state information based on the state information of the leaf node.
In one possible implementation manner, if the state information of the leaf node under the target component is present and the alarm state information is alarm information, the original alarm information stored in the leaf node is updated based on the alarm information.
In one possible implementation, if the state information of the leaf node under the target component is not present and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information, and storing the alarm information in the target leaf node.
In one possible implementation, if the state information of the leaf node under the target component is present and the alarm state information is alarm recovery information, the leaf node is deleted based on the alarm recovery information.
In one possible implementation manner, if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is a component node, deleting the component relation tree branch where the target component is located.
In one possible implementation, identifying physical and logical relationships between all components of the target asset; all components of the target asset are built into a component relationship tree having a hierarchical relationship based on the entity relationship and the logical relationship.
The method disclosed in the above embodiment of the present invention may be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 501. The processor 501 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software elements in a decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 502, and the processor 501 reads information in the memory 502 and, in combination with its hardware, performs the steps of the method described above.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (dspev, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The computer device provided in this embodiment may be a computer device as shown in fig. 5, and may perform all the steps of the asset alarm processing method as shown in fig. 2-3, so as to achieve the technical effects of the asset alarm processing method as shown in fig. 2-3, and the detailed description of the method is referred to in fig. 2-3, which is omitted herein for brevity.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium here stores one or more programs. Wherein the storage medium may comprise volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
When the one or more programs in the storage medium are executable by the one or more processors, the above-described asset alert processing method performed on the computer device side is implemented.
The processor is used for executing the asset alarm processing program stored in the memory to realize the following steps of the asset alarm processing method executed on the side of the computer equipment:
establishing all components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all components; acquiring real-time alarm state information; inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information; and processing the alarm state information based on the state information of the leaf node.
In one possible implementation manner, if the state information of the leaf node under the target component is present and the alarm state information is alarm information, the original alarm information stored in the leaf node is updated based on the alarm information.
In one possible implementation, if the state information of the leaf node under the target component is not present and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information, and storing the alarm information in the target leaf node.
In one possible implementation, if the state information of the leaf node under the target component is present and the alarm state information is alarm recovery information, the leaf node is deleted based on the alarm recovery information.
In one possible implementation manner, if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is a component node, deleting the component relation tree branch where the target component is located.
In one possible implementation, identifying physical and logical relationships between all components of the target asset; all components of the target asset are built into a component relationship tree having a hierarchical relationship based on the entity relationship and the logical relationship.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (6)

1. An asset alert processing method, comprising:
establishing all components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all components;
acquiring real-time alarm state information;
inquiring the state information of leaf nodes under a target component in the component relation tree based on the target component information for sending the alarm state information;
if the state information of the leaf node under the target component exists and the alarm state information is alarm information, updating original alarm information stored in the leaf node based on the alarm information;
if the state information of the leaf node under the target component is nonexistent and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information and storing the alarm information in the target leaf node;
if the state information of the leaf node under the target component exists and the alarm state information is alarm recovery information, deleting the leaf node based on the alarm recovery information;
and if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is the component node, deleting the component relation tree branch where the target component is located.
2. The method of claim 1, wherein the building all components into a component relationship tree having a hierarchical relationship based on the operational relationship between all components of the target asset comprises:
identifying physical and logical relationships between all components of the target asset;
all components of the target asset are built into a component relationship tree having a hierarchical relationship based on the entity relationship and the logical relationship.
3. An asset alert processing device comprising:
the building module is used for building all the components of the target asset into a component relation tree with a hierarchical relation based on the working relation among the all the components;
the acquisition module is used for acquiring real-time alarm state information;
the query module is used for querying the state information of leaf nodes under the target component in the component relation tree based on the target component information for sending the alarm state information;
the processing module is used for updating original alarm information stored in the leaf node based on the alarm information if the state information of the leaf node under the target component exists and the alarm state information is the alarm information; if the state information of the leaf node under the target component is nonexistent and the alarm state information is alarm information, generating a target leaf node under the target component based on the alarm information and storing the alarm information in the target leaf node; if the state information of the leaf node under the target component exists and the alarm state information is alarm recovery information, deleting the leaf node based on the alarm recovery information; and if the current leaf node in the component relation tree branch where the target component is located after deleting the leaf node is the component node, deleting the component relation tree branch where the target component is located.
4. The asset alert processing device of claim 3 wherein the processing module is specifically configured to update original alert information stored in a leaf node under the target component based on alert information if the status information of the leaf node is present and the alert status information is alert information.
5. A computer device, comprising: a processor and a memory, the processor being configured to execute an asset alert processing program stored in the memory to implement the asset alert processing method of any of claims 1-2.
6. A storage medium storing one or more programs executable by one or more processors to implement the asset alert processing method of any of claims 1-2.
CN202210173978.2A 2022-02-24 2022-02-24 Asset alarm processing method, device, computer equipment and storage medium Active CN114826877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210173978.2A CN114826877B (en) 2022-02-24 2022-02-24 Asset alarm processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210173978.2A CN114826877B (en) 2022-02-24 2022-02-24 Asset alarm processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114826877A CN114826877A (en) 2022-07-29
CN114826877B true CN114826877B (en) 2023-07-14

Family

ID=82527550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210173978.2A Active CN114826877B (en) 2022-02-24 2022-02-24 Asset alarm processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114826877B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308158B (en) * 2023-03-09 2023-10-20 广东铭太信息科技有限公司 National asset supervision and management system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145841A (en) * 2007-06-27 2008-03-19 中兴通讯股份有限公司 A method for optical transmission network processing reporting alarming information
CN101163032A (en) * 2006-10-11 2008-04-16 中兴通讯股份有限公司 Method of managing alarm inquiry
CN105187499A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Distributed scheduling method and system based on zookeeper biplanar data architecture
CN107562556A (en) * 2017-08-14 2018-01-09 腾讯科技(深圳)有限公司 Restoration methods, recovery device and the storage medium of failure
CN113055213A (en) * 2019-12-27 2021-06-29 中兴通讯股份有限公司 Alarm information management method, alarm information management system and server
WO2021174835A1 (en) * 2020-03-04 2021-09-10 平安科技(深圳)有限公司 Alarm information processing method and apparatus, and computer apparatus and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163032A (en) * 2006-10-11 2008-04-16 中兴通讯股份有限公司 Method of managing alarm inquiry
CN101145841A (en) * 2007-06-27 2008-03-19 中兴通讯股份有限公司 A method for optical transmission network processing reporting alarming information
CN105187499A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Distributed scheduling method and system based on zookeeper biplanar data architecture
CN107562556A (en) * 2017-08-14 2018-01-09 腾讯科技(深圳)有限公司 Restoration methods, recovery device and the storage medium of failure
CN113055213A (en) * 2019-12-27 2021-06-29 中兴通讯股份有限公司 Alarm information management method, alarm information management system and server
WO2021174835A1 (en) * 2020-03-04 2021-09-10 平安科技(深圳)有限公司 Alarm information processing method and apparatus, and computer apparatus and storage medium

Also Published As

Publication number Publication date
CN114826877A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN107943951B (en) Method and system for retrieving block chain service information
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
KR102455884B1 (en) Data processing method and apparatus, computer device, and storage medium
US20150026167A1 (en) Discovering fields to filter data returned in response to a search
CN111177043B (en) Method, system, device and medium for accelerating reading of field replaceable unit information
CN114826877B (en) Asset alarm processing method, device, computer equipment and storage medium
KR20210042865A (en) Data processing method and apparatus
CN112416710A (en) User operation recording method and device, electronic equipment and storage medium
JP2022522790A (en) Methods and devices for tracking blockchain transactions
CN117376092A (en) Fault root cause positioning method, device, equipment and storage medium
CN113312234B (en) Health detection optimization method and terminal
CN112651840B (en) Business data log processing method and system based on blockchain and digital finance
CN111786849B (en) Monitoring method, device and system of domain name server and computer equipment
US11372832B1 (en) Efficient hashing of data objects
CN111680036A (en) Method and device for realizing configuration management library based on graph storage
CN112637293B (en) Data recovery system, method, device, electronic equipment and storage medium
CN114745249B (en) Method for generating management information base and electronic equipment
CN114036171B (en) Application data management method, device, computer equipment and storage medium
US20220019603A1 (en) Systems and methods for classifying data received from unknown entities
CN114942599A (en) Information processing method, device, equipment and storage medium
CN109101187B (en) Method and device for reconstructing data
CN114416886A (en) Method, device and equipment for determining data relationship and storage medium
CN117093452A (en) File floor monitoring method and device, computer equipment and storage medium
CN118193547A (en) Log management method, log management system and storage medium
CN118113569A (en) Log analysis method, device, equipment and storage medium of edge equipment

Legal Events

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