CN116225859A - Operation and maintenance platform server data maintenance method and device - Google Patents

Operation and maintenance platform server data maintenance method and device Download PDF

Info

Publication number
CN116225859A
CN116225859A CN202310486562.0A CN202310486562A CN116225859A CN 116225859 A CN116225859 A CN 116225859A CN 202310486562 A CN202310486562 A CN 202310486562A CN 116225859 A CN116225859 A CN 116225859A
Authority
CN
China
Prior art keywords
information
node
alarm
data
maintenance
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
CN202310486562.0A
Other languages
Chinese (zh)
Inventor
赵国强
蔡莉莉
鲁帅
张轶涵
张丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202310486562.0A priority Critical patent/CN116225859A/en
Publication of CN116225859A publication Critical patent/CN116225859A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a method and a device for maintaining data of an operation and maintenance platform server. According to the invention, the function of data maintenance is transferred to the background program, and the Web server page is only responsible for calling data for display, so that the data maintenance is not performed any more, and the memory occupation and the interface display pressure are reduced. The invention adopts a maintenance method of a tree structure to uniformly maintain the display information of the sub-network, the equipment, the link, the alarm and the like, and has high efficiency in processing; the front and back initialization interfaces are normalized, the Web server can acquire all required data only by calling a special interface, the front and back interfaces cannot be changed due to the structural change of related objects, the repeated calling of the interfaces during initialization is reduced, and meanwhile, the consistency and the instantaneity of the data are ensured; when the data is changed, the background is used for processing, and the Web server is used for directly displaying, so that the recalculation and maintenance are not needed.

Description

Operation and maintenance platform server data maintenance method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for maintaining data of an operation and maintenance platform server.
Background
The operation and maintenance platform is mostly realized by adopting a B/S architecture, and needs to display the running state, connection relation, position information, alarm information and the like of equipment in an operation and maintenance environment, a user logs in a Web server page through a browser, and a Web server program requests background data through a REST interface and performs data maintenance. When the data change, the background pushes the data to the Web server through the Websocket, the Web server needs to maintain the data after receiving the change information, and the display of the browser page is changed according to the state of the monitored equipment, so that the purpose of real-time display is achieved. In the initialization process, in order to acquire real-time data, the existing operation and maintenance platform needs to call a plurality of rest interfaces to acquire data of different elements, a certain time delay exists in the calling of the interfaces, the real-time performance and consistency of the data cannot be ensured, and once a certain interface changes, an interface code needs to be changed, so that the development is troublesome; the Web server occupies a large amount of memory for data maintenance, and when the data amount is large, the Web server processes slowly, which can cause delay in page display; when multiple users log in, the Web server maintains one data for each user, so that the logic is complex and the expansion is not easy.
Disclosure of Invention
The invention provides a method and a device for maintaining data of an operation and maintenance platform server.
An operation and maintenance platform server data maintenance method, comprising the following steps:
constructing a tree structure according to the equipment information and the alarm information;
when the device information or the alarm information is updated, the tree structure is updated.
Further, the tree structure specifically includes:
the whole architecture is based on a tree form, a root node and an intermediate node of the tree form are established according to a parent-child level subnet relation, and equipment and links are used as leaf nodes of the subnet nodes to which the equipment and links belong, so that a tree structure from root to leaf is formed;
each node in the structure contains alarm statistical information belonging to the node, and the alarm statistical information is only related to the node as a device or a link of the leaf node; as the sub-network of the intermediate node and the root node, the alarm statistical information thereof comprises the alarm statistical information of the sub-network, the equipment and the links under the sub-network.
Further, the constructing a tree structure according to the device information and the alarm information specifically includes:
the background acquires a subnet, equipment, a link and an alarm set;
constructing a root node and an intermediate node of the structure by subnet information;
and constructing leaf nodes of the structure according to the subnet information of the equipment and the links.
Further, the building of the tree structure according to the device information and the alarm information specifically further includes:
setting alarm statistical information of the subnet node to be null and setting alarm statistical information of the leaf node to be null when constructing the tree structure and initializing;
and traversing and updating the alarm information after the tree structure is constructed.
Further, the traversing and updating the alarm information specifically includes:
finding out related nodes and updating alarm statistical information of the nodes; recursively updating alarm statistical information of the parent node of the node; until the alarm information is traversed.
Further, when the device information or the alarm information is updated, updating the tree structure specifically includes:
adding a subnet, a device or a link, and adding a structure intermediate node or a leaf node;
newly adding or deleting the alarm, and traversing and updating the alarm information;
deleting the subnet, the equipment or the link, pruning the intermediate node or the leaf node of the structure, finding out the highest parent node of the current subnet or the link as a new node, and updating the alarm information.
An operation and maintenance platform server data maintenance system, comprising: a Web server and a back-end server;
the Web server requests data to the back-end server through a special rest interface, and the back-end server inquires corresponding information from the tree structure according to the user authority and jurisdiction information and returns the corresponding information to the Web server for processing so as to be displayed by the Web server;
the back-end server is operated with a maintenance data program for realizing the operation and maintenance platform server-end data maintenance method.
Further, when the data of any node of the tree structure maintained on the back-end server changes, the changed information is stored in a change set, after the information updating is finished, the change set is pushed to the Web server through the Websocket, and after the Web server receives the information, the Web server processes and renders the information, so that the page display of the browser is changed.
An operation and maintenance platform server data maintenance device, comprising: a construction unit and an updating unit;
the construction unit is used for constructing a tree structure according to the equipment information and the alarm information;
and the updating unit is used for updating the tree structure when the equipment information or the alarm information is updated.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the data maintenance method of the operation and maintenance platform server side when executing the program stored in the memory.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the above-described method for maintaining data on a server side of an operation and maintenance platform.
The invention has at least the following beneficial effects:
according to the invention, the function of data maintenance is transferred to the background program, and the Web server page is only responsible for calling data for display, so that the data maintenance is not performed any more, and the memory occupation and the interface display pressure are reduced. The invention adopts a maintenance method of a tree structure, uniformly maintains the display information of the sub-network, the equipment, the link, the alarm and the like, and has high treatment efficiency; the front and back initialization interfaces are normalized, the Web server can acquire all required data only by calling a special interface, the front and back interfaces cannot be changed due to the structural change of related objects, the repeated calling of the interfaces during initialization is reduced, and meanwhile, the consistency and the instantaneity of the data are ensured; when the data is changed, the background is used for processing, and meanwhile, the changed data is pushed to the Web server through the Websocket, and the Web server can directly display the data without calculation and maintenance again. When the permission and jurisdiction control exists, the Web server can acquire data of different permissions and ranges without changing interface call, and program expansion is easy.
Based on the structure of the B/S architecture operation and maintenance platform, the invention transfers the function of maintaining data to the back-end application server, designs a tree-based maintenance structure, uniformly maintains the running state, connection relation, position information, alarm information and the like of the equipment, and only needs to maintain one data in the background no matter how many users log in the Web server, thereby reducing the occupation of memory and improving the processing speed and efficiency. When a user requests data, the Web server requests the data to the back-end server through a special rest interface, and the back-end queries corresponding information from the tree structure according to the information of the user authority, the jurisdiction range and the like and returns the corresponding information to the Web server for processing so as to be displayed by the Web server. The special single rest interface avoids the safety problem caused by multi-interface call, and facilitates the expansion of Web service and back-end service. When the state of the rear end changes, the tree structure is updated, changed information is recorded, and the change information is sent to the Web server through the Websocket.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data maintenance method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data maintenance device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a B/S architecture of a conventional operation and maintenance platform;
FIG. 4 is a schematic diagram of an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data maintenance portion according to an embodiment of the present invention;
FIG. 6 is an initialization flow chart of an embodiment of the present invention;
FIG. 7 is a flow chart of recursively updating node alarms 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.
Under the existing structure, when the operation and maintenance of the server side data are carried out, when the overall data are larger, or the number of logged-in users is larger, the occupation of the memory by the maintenance data and the operation of updating the maintenance data can bring great pressure to the operation of the Web server; the Web server calls a plurality of backstage rest interfaces, the calling sequence of the interfaces and the calling time can influence the consistency and the safety of the data; once the data of a certain interface object is changed, the calling logic of the interface needs to be modified again, and the development and maintenance are troublesome.
Therefore, the invention provides a method and a device for maintaining service end data of an operation and maintenance platform, comprising the method for maintaining service end data of the operation and maintenance platform, the device for maintaining service end data of the operation and maintenance platform, the system for maintaining service end data of the operation and maintenance platform, electronic equipment and a computer readable storage medium.
According to the invention, the function of data maintenance is transferred to the background program, and the Web server page is only responsible for calling data for display, so that the data maintenance is not performed any more, and the memory occupation and the interface display pressure are reduced. The invention adopts a maintenance method of a tree structure to uniformly maintain the display information of the sub-network, the equipment, the link, the alarm and the like, and has high efficiency in processing; the front and back initialization interfaces are normalized, the Web server can acquire all required data only by calling a special interface, the front and back interfaces cannot be changed due to the structural change of related objects, the repeated calling of the interfaces during initialization is reduced, and meanwhile, the consistency and the instantaneity of the data are ensured; when the data is changed, the background is used for processing, and meanwhile, the changed data is pushed to the Web server through the Websocket, and the Web server can directly display the data without calculation and maintenance again. When the permission and jurisdiction control exists, the Web server can acquire data of different permissions and ranges without changing interface call, and program expansion is easy.
In a first aspect, as shown in fig. 1, the present invention provides a method for maintaining data at a service end of an operation and maintenance platform, where the method includes:
constructing a tree structure according to the equipment information and the alarm information;
when the device information or the alarm information is updated, the tree structure is updated.
In this embodiment, the tree structure specifically includes:
the whole architecture is based on a tree form, a root node and an intermediate node of the tree form are established according to a parent-child level subnet relation, and equipment and links are used as leaf nodes of the subnet nodes to which the equipment and links belong, so that a tree structure from root to leaf is formed;
each node in the structure contains alarm statistical information belonging to the node, and the alarm statistical information is only related to the node as a device or a link of the leaf node; as the sub-network of the intermediate node and the root node, the alarm statistical information thereof comprises the alarm statistical information of the sub-network, the equipment and the links under the sub-network.
In the specific implementation, in the operation and maintenance service platform, two means exist for the alarm processing of the link, namely, the alarm of the link is attributable to the relevant equipment port, namely, the system only has the equipment port alarm, the alarm of the link does not exist, and the link on the page does not have the prompts such as color change and the like when the alarm occurs; secondly, the alarms related to the links are independently defined, when the alarms appear, the devices on the page are displayed normally, and the links among the devices display the colors of the alarms.
The default system in the invention is the second type, the functions completely comprise the first type, and the covered functions are more abundant. Under this setting, both the device and the link will generate alarms, and are equivalent in position, and therefore, both are treated as nodes.
Each node of the tree structure contains several attribute information, such as node device information, alarm statistics information, etc.
In this embodiment, the building a tree structure according to the device information and the alarm information specifically includes:
the background acquires a subnet, equipment, a link and an alarm set;
constructing a root node and an intermediate node of the structure by subnet information;
and constructing leaf nodes of the structure according to the subnet information of the equipment and the links.
In this embodiment, the building a tree structure according to the device information and the alarm information specifically further includes:
setting alarm statistical information of the subnet node to be null and setting alarm statistical information of the leaf node to be null when constructing the tree structure and initializing;
and traversing and updating the alarm information after the tree structure is constructed.
In this embodiment, the traversing and updating the alarm information specifically includes:
finding out related nodes and updating alarm statistical information of the nodes; recursively updating alarm statistical information of the parent node of the node; until the alarm information is traversed.
In this embodiment, when the device information or the alarm information is updated, updating the tree structure specifically includes:
adding a subnet, a device or a link, and adding a structure intermediate node or a leaf node;
newly adding or deleting the alarm, and traversing and updating the alarm information;
deleting the subnet, the equipment or the link, pruning the intermediate node or the leaf node of the structure, finding out the highest parent node of the current subnet or the link as a new node, and updating the alarm information.
In this embodiment, when the data of any node in the background changes, the changed information is stored in the change set, and after the information updating is finished, the change set is pushed to the Web server through the Websocket, and after the Web server receives the information, the Web server processes and renders the information, so as to change the page display of the browser.
In a second aspect, as shown in fig. 2, the present invention provides an operation and maintenance platform server data maintenance device, including: a construction unit and an updating unit;
the construction unit is used for constructing a tree structure according to the equipment information and the alarm information;
and the updating unit is used for updating the tree structure when the equipment information or the alarm information is updated.
In specific implementation, the processes of the data maintenance device and the data maintenance method of the operation and maintenance platform are in one-to-one correspondence, and are not repeated here.
In a third aspect, the present invention provides an operation and maintenance platform server data maintenance system, including: a Web server and a back-end server;
the Web server requests data to the back-end server through a special rest interface, and the back-end server inquires corresponding information from the tree structure according to the user authority and jurisdiction information and returns the corresponding information to the Web server for processing so as to be displayed by the Web server;
the back-end server is operated with a maintenance data program for realizing the operation and maintenance platform server-end data maintenance method.
Further, when the data of any node of the tree structure maintained on the back-end server changes, the changed information is stored in a change set, after the information updating is finished, the change set is pushed to the Web server through the Websocket, and after the Web server receives the information, the Web server processes and renders the information, so that the page display of the browser is changed.
In a fourth aspect, the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the data maintenance method of the operation and maintenance platform server side when executing the program stored in the memory.
In a fifth aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the foregoing method for maintaining data on a service side of an operation and maintenance platform.
The computer-readable storage medium may be embodied in the apparatus/means described in the above embodiments; or may exist alone without being assembled into the apparatus/device. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
In order for those skilled in the art to better understand the present invention, the principles of the present invention are described below with reference to the accompanying drawings:
the conventional B/S architecture operation platform mainly comprises the following structure, as shown in fig. 3. When a user logs in, the Web server firstly calls a plurality of background rest interfaces to acquire required data, and meanwhile, an independent memory is allocated for each user, the user lower data is maintained, and a response is generated and returned to the browser for display. When the system data changes, the back-end server sends the changed information to the Web server through the Websocket, and the Web server updates the maintenance data of the logged-in user after receiving the information and simultaneously changes the display of each browser page.
Under the existing structure, when the whole data is larger or the number of logged users is larger, the occupation of the memory by the maintenance data and the operation of updating the maintenance data bring great pressure to the operation of the Web server; the Web server calls a plurality of backstage rest interfaces, the calling sequence of the interfaces and the calling time can influence the consistency and the safety of the data; once the data of a certain interface object is changed, the calling logic of the interface needs to be modified again, and the development and maintenance are troublesome.
The modified architecture is shown in fig. 4, and based on the structure of the operation and maintenance platform of the B/S architecture, the invention transfers the function of maintaining data to the back-end application server, designs a maintenance structure based on tree form, uniformly maintains the operation state, connection relation, position information, alarm information and the like of the equipment, only needs to maintain one data in the background no matter how many users log in the Web server, reduces the occupation of memory, and improves the processing speed and efficiency. When a user requests data, the Web server requests the data to the back-end server through a special rest interface, and the back-end queries corresponding information from the tree structure according to the information of the user authority, the jurisdiction range and the like and returns the corresponding information to the Web server for processing so as to be displayed by the Web server. The special single rest interface avoids the safety problem caused by multi-interface call, and facilitates the expansion of Web service and back-end service. When the state of the rear end changes, the tree structure is updated, changed information is recorded, and the change information is sent to the Web server through the Websocket.
Taking a common operation and maintenance platform as an example, the system mainly comprises three core functions of equipment management and control, topology display and alarm management. An administrator can define jurisdictions (manage subnets of different ranges) for different users as required, and the users can only see equipment, links and alarm information in the jurisdictions after logging in.
The data maintenance structure of the present invention is described as follows: as shown in fig. 5, the overall architecture is based on a tree shape, and according to the parent-child level subnet relation, the root node and the intermediate node of the tree shape are established, and the equipment and the links are used as leaf nodes of the subnet nodes to which the equipment and the links belong, so that a tree structure from root to leaf is formed. Wherein each node in the structure contains alarm statistical information belonging to the node, and the alarm statistical information is only related to the node as a device or a link of the leaf node; as the sub-network of the intermediate node and the root node, the alarm statistical information thereof comprises the alarm statistical information of the sub-network, the equipment and the links under the sub-network.
The main flow of the data maintenance structure provided by the invention is as follows:
1. the initialization flow is as shown in fig. 6:
the background acquires a subnet, equipment, a link and an alarm set;
constructing a root node and an intermediate node of the structure by subnet information;
setting alarm statistical information of the subnet node to be null;
constructing leaf nodes of the structure according to the subnet information of the equipment and the links;
setting alarm statistical information of leaf nodes to be null;
traversing the alarm information, finding out related nodes, and updating alarm statistical information of the nodes;
recursively updating alarm statistical information of the parent node of the node;
and finishing the alarm information traversal and the initialization process.
2. The node alarm flow is recursively updated as shown in fig. 7:
setting the node to which the alarm belongs as the current node;
updating the current node alarm information (deleting or adding);
finding a parent node of the current node, and setting the node as the current node;
ending the flow if the current node is empty, otherwise, turning to step 2;
3. data updating flow:
adding a subnet, equipment and a link, and adding a structure intermediate node or a leaf node;
newly adding/deleting alarm, and turning to a node alarm updating flow;
deleting the subnet/equipment/link, and pruning the intermediate node or leaf node of the structure;
finding out the highest parent node in the step 3 as a current node, and turning to an updated node alarm flow;
when the data of any background node changes, the changed information is stored in a change set, after the information updating is finished, the change set is pushed to a Web server through a Websocket, and after the Web server receives the information, the Web server processes and renders the information, so that the page display of the browser is changed.
According to the invention, one data is not required to be maintained for each user, so that the occupation of the memory is reduced, and the data updating processing speed and efficiency are improved;
the data maintenance of the invention is transferred from the Web server to the back-end server, so that the pressure of the Web server is reduced.
The tree data maintenance structure design improves the processing efficiency and only pushes the change information.
The operation and maintenance system of the invention can be compared with any other system with the same father-son relationship; the maintenance structure of the background is not limited to a tree shape, and can be expanded according to the requirement.
Although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. The method for maintaining the data of the service end of the operation and maintenance platform is characterized by comprising the following steps:
when initializing, constructing a tree structure according to the equipment information and the alarm information;
when the device information or the alarm information is updated, the tree structure is updated.
2. The method for maintaining data at a service end of an operation and maintenance platform according to claim 1, wherein,
the tree structure specifically comprises:
the whole architecture is based on a tree form, a root node and an intermediate node of the tree form are established according to a parent-child level subnet relation, and equipment and links are used as leaf nodes of the subnet nodes to which the equipment and links belong, so that a tree structure from root to leaf is formed; taking equipment and links as nodes, wherein each node contains alarm statistical information of sub-nodes;
each node in the structure contains alarm statistical information belonging to the node, and the alarm statistical information is only related to the node as a device or a link of the leaf node; as the sub-network of the intermediate node and the root node, the alarm statistical information thereof comprises the alarm statistical information of the sub-network, the equipment and the links under the sub-network.
3. The method for maintaining data at a service end of an operation and maintenance platform according to claim 1, wherein,
the construction of the tree structure according to the equipment information and the alarm information specifically comprises the following steps:
the background acquires a subnet, equipment, a link and an alarm set;
constructing a root node and an intermediate node of the structure by subnet information;
and constructing leaf nodes of the structure according to the subnet information of the equipment and the links.
4. The method for maintaining data at a service end of an operation and maintenance platform according to claim 3, wherein,
the construction of the tree structure according to the equipment information and the alarm information specifically further comprises:
setting alarm statistical information of the subnet node to be null and setting alarm statistical information of the leaf node to be null when constructing the tree structure and initializing;
and traversing and updating the alarm information after the tree structure is constructed.
5. The method for maintaining data at a service end of an operation and maintenance platform according to claim 4, wherein,
the traversing and updating the alarm information specifically comprises the following steps:
finding out related nodes and updating alarm statistical information of the nodes; recursively updating alarm statistical information of the parent node of the node; until the alarm information is traversed.
6. The method for maintaining data at a service end of an operation and maintenance platform according to claim 1, wherein,
when the equipment information or the alarm information is updated, updating the tree structure specifically comprises:
when a subnet, a device or a link is newly added, a structure intermediate node or a leaf node is added;
when alarms are newly added or deleted, related nodes are found, and alarm statistical information of the nodes is updated; recursively updating alarm statistical information of the parent node of the node; until the alarm information is traversed;
when deleting the subnet, the equipment or the link, pruning the intermediate node or the leaf node of the structure, finding out the highest parent node of the current subnet or the link as a new node, and updating the alarm information.
7. The utility model provides an operation and maintenance platform server data maintenance system which characterized in that includes: a Web server and a back-end server;
the Web server requests data to the back-end server through a special rest interface, and the back-end server inquires corresponding information from the tree structure according to the user authority and jurisdiction information and returns the corresponding information to the Web server for processing so as to be displayed by the Web server;
the back-end server is operated with a maintenance data program for realizing the operation and maintenance platform service-end data maintenance method according to any one of claims 1-6.
8. The system for maintaining data on an operation and maintenance platform according to claim 7, wherein,
when the data of any node of the tree structure maintained on the back-end server changes, the changed information is stored into a change set, after the information updating is finished, the change set is pushed to the Web server through the Websocket, and after the Web server receives the information, the Web server processes and renders the information, so that the page display of the browser is changed.
9. The utility model provides an operation and maintenance platform service end data maintenance device which characterized in that includes: a construction unit and an updating unit;
the construction unit is used for constructing a tree structure according to the equipment information and the alarm information;
and the updating unit is used for updating the tree structure when the equipment information or the alarm information is updated.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
the processor is configured to implement the method for maintaining data on an operation and maintenance platform server according to any one of claims 1 to 6 when executing a program stored in the memory.
11. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method for maintaining data on a service side of an operation and maintenance platform according to any one of claims 1 to 6.
CN202310486562.0A 2023-05-04 2023-05-04 Operation and maintenance platform server data maintenance method and device Pending CN116225859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310486562.0A CN116225859A (en) 2023-05-04 2023-05-04 Operation and maintenance platform server data maintenance method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310486562.0A CN116225859A (en) 2023-05-04 2023-05-04 Operation and maintenance platform server data maintenance method and device

Publications (1)

Publication Number Publication Date
CN116225859A true CN116225859A (en) 2023-06-06

Family

ID=86587509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310486562.0A Pending CN116225859A (en) 2023-05-04 2023-05-04 Operation and maintenance platform server data maintenance method and device

Country Status (1)

Country Link
CN (1) CN116225859A (en)

Citations (5)

* 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
CN103973807A (en) * 2014-05-19 2014-08-06 武汉双微电气科技有限公司 Information network based on low-voltage distribution network
CN111010364A (en) * 2018-10-04 2020-04-14 甲骨文国际公司 System for offline object-based storage and simulation of REST responses
CN113055213A (en) * 2019-12-27 2021-06-29 中兴通讯股份有限公司 Alarm information management method, alarm information management system and server
CN114237824A (en) * 2021-12-17 2022-03-25 中国电信股份有限公司 Fault positioning method and device, computer readable medium and electronic equipment

Patent Citations (5)

* 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
CN103973807A (en) * 2014-05-19 2014-08-06 武汉双微电气科技有限公司 Information network based on low-voltage distribution network
CN111010364A (en) * 2018-10-04 2020-04-14 甲骨文国际公司 System for offline object-based storage and simulation of REST responses
CN113055213A (en) * 2019-12-27 2021-06-29 中兴通讯股份有限公司 Alarm information management method, alarm information management system and server
CN114237824A (en) * 2021-12-17 2022-03-25 中国电信股份有限公司 Fault positioning method and device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108564164B (en) Parallel deep learning method based on SPARK platform
CN109831334B (en) Network topology construction method and device and terminal equipment
CN108848132B (en) Power distribution scheduling main station system based on cloud
CN112104486A (en) Kubernetes container-based network endpoint slicing method and system
CN110399747A (en) A kind of user right correlating method, querying method and device
CN103532731A (en) method and device for preventing network configuration of virtual machine from losing
CN106021370A (en) Memory database instance management method and device
CN110147407A (en) A kind of data processing method, device and Database Administration Server
CN110362380A (en) A kind of multiple-objection optimization virtual machine deployment method in network-oriented target range
US11683316B2 (en) Method and device for communication between microservices
CN104022913A (en) Test method and device for data cluster
CN105608197A (en) Method and system for obtaining Memcache data under high concurrency
CN103051478A (en) Large-capacity telecommunication network management system as well as setting and application methods thereof
CN116225859A (en) Operation and maintenance platform server data maintenance method and device
CN108306780B (en) Cloud environment-based virtual machine communication quality self-optimization system and method
CN109995890A (en) A kind of method and server managing network address translation NAT gateway
CN113284039B (en) Bitmap management method, device and equipment and readable storage medium
CN115129267A (en) Domain address changing method, device and equipment and readable storage medium
CN112905118B (en) Cluster storage pool creating method
CN113760538B (en) Acceleration card type management and control method, system and device based on AI platform
CN112769806B (en) Method and device for controlling operation behaviors on terminal equipment and electronic equipment
CN114218236A (en) Database cluster metadata management method
CN101183974B (en) Topology refreshing method of network management system
JPH08181772A (en) Mib configuration method in network operation system and its backup method
CN108762677A (en) A kind of intelligent scanning method and system of storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230606

RJ01 Rejection of invention patent application after publication