CN115809273A - Alarm data acquisition method and device, electronic equipment and storage medium - Google Patents

Alarm data acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115809273A
CN115809273A CN202211622246.3A CN202211622246A CN115809273A CN 115809273 A CN115809273 A CN 115809273A CN 202211622246 A CN202211622246 A CN 202211622246A CN 115809273 A CN115809273 A CN 115809273A
Authority
CN
China
Prior art keywords
alarm
data
alarm data
maintenance center
supplementary
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
CN202211622246.3A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202211622246.3A priority Critical patent/CN115809273A/en
Publication of CN115809273A publication Critical patent/CN115809273A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application provides an alarm data acquisition method, an alarm data acquisition device, electronic equipment and a storage medium. The method comprises the following steps: sending a data complementary acquisition request to at least one operation and maintenance center; acquiring a plurality of supplement alarm data returned by at least one operation maintenance center in response to the data supplement and acquisition request, wherein the supplement alarm data are alarm data which are not uploaded to the electronic equipment during the estimated communication interruption period; acquiring a plurality of alarm data of at least one operation maintenance center during the estimated communication interruption period from an alarm database; on the basis of a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, pairing a plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data to obtain alarm data updated in a plurality of states; and caching the alarm data of the plurality of state updates to the alarm. By adopting the method, the accuracy of the alarm data stored in the alarm database can be improved.

Description

Alarm data acquisition method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to alarm data technologies, and in particular, to an alarm data collecting method and apparatus, an electronic device, and a storage medium.
Background
With the development of the alarm data technology, the electronic device of the operator can collect the alarm data reported by the Operation and Maintenance Center (OMC) of each province end in a direct collection mode through the Enterprise Service Bus (ESB), and store the alarm data in the alarm database to ensure the integrity of the alarm data in the alarm database.
At present, when communication interruption occurs between an operation and maintenance center and an electronic device, a communication interruption period is determined first, and then alarm data of each operation and maintenance center during the communication interruption period is acquired.
However, since the alarm data collected in each operation and maintenance center is out of order, the accuracy of the alarm data stored in the alarm database is low by directly storing the out-of-order alarm data in the alarm database.
Disclosure of Invention
The application provides an alarm data acquisition method, an alarm data acquisition device, electronic equipment and a storage medium, which are used for solving the technical problem that the accuracy of complementary acquisition of alarm data is low in the prior art.
In a first aspect, the present application provides an alarm data collecting method, including:
sending a data complementary acquisition request to at least one operation and maintenance center;
acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary warning data are warning data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is located within the estimated communication interruption period;
acquiring a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption period from an alarm database;
matching the plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data based on a preset matching strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain alarm data updated in a plurality of states;
and caching the alarm data of the plurality of state updates into an alarm database.
In one embodiment, the sending of the data replenishment request to the at least one operation and maintenance center includes:
judging whether serial numbers of a plurality of real-time alarm data uploaded by an operation maintenance center of each provincial terminal within a preset time length are continuous or not;
and if the serial numbers of the real-time alarm data uploaded by at least one operation and maintenance center are determined to be discontinuous, issuing a data complementary acquisition request to the at least one operation and maintenance center.
In an embodiment, before the determining whether serial numbers of the plurality of alarm data uploaded by the operation and maintenance center at each provincial terminal within the preset time period are continuous, the method further includes:
in the process of uploading a plurality of real-time alarm data of the operation and maintenance center of each provincial terminal to the alarm database in real time, matching the received first real-time alarm data with corresponding second real-time alarm data according to the preset matching strategy; the first real-time alarm data is the real-time alarm data of which the alarm event is in an active alarm state, and the second real-time alarm data is the same alarm event as the first real-time alarm data and is in a clear alarm state;
and storing the second real-time alarm data which cannot be paired.
In one embodiment, the obtaining of the plurality of supplementary advisory alarm data returned by the at least one operations and maintenance center in response to the data supplementary acquisition request comprises:
judging whether the quantity of the plurality of supplementary warning data is larger than a preset value or not;
if the judgment result is smaller than the preset value, acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center through a real-time data transmission channel;
and if the number of the operation maintenance centers is larger than or equal to the preset value, acquiring a plurality of supplementary warning data returned by the at least one operation maintenance center through a file transmission channel.
In a second aspect, the present application provides an alarm data collecting device, comprising:
the data supplementing and collecting request acquisition module is used for sending a data supplementing and collecting request to at least one operation and maintenance center;
the supplementary transmission data acquisition module is used for acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary transmission alarm data are alarm data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is positioned within the estimated communication interruption period;
the alarm data acquisition module is used for acquiring a plurality of alarm data of the at least one operation maintenance center during the estimated communication interruption period from an alarm database;
the data pairing module is used for pairing the plurality of alarm data during the estimated communication interruption period with the corresponding supplementary transmission alarm data based on a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain the alarm data with a plurality of updated states;
and the paired data caching module is used for caching the alarm data of the plurality of state updates into an alarm database.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to the first aspect when executed by a processor.
The alarm data acquisition method, the alarm data acquisition device, the electronic equipment and the storage medium send a data complementary acquisition request to at least one operation maintenance center; acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary warning data are warning data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is located within the estimated communication interruption period; obtaining a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption from an alarm database; matching the plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data based on a preset matching strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain alarm data updated in a plurality of states; and caching the alarm data of the plurality of state updates into an alarm database. After the multiple supplementary alarm data are collected, the multiple alarm data in the estimated communication interruption period are paired with the corresponding supplementary alarm data according to the preset pairing strategy that the clearing alarm state of the same alarm event occurs after the active alarm state, so that the alarm event in the estimated communication interruption period is in the active alarm state and can be paired with the same alarm event in the subsequent clearing alarm state in the supplementary acquisition period and the alarm event in the clearing alarm state in the estimated communication interruption period is matched with the same alarm event in the active alarm state in the previous direction in the supplementary acquisition period, thereby updating the state of the alarm data in the alarm database and obtaining accurate alarm data.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a timing disorder caused by complementary mining according to an embodiment of the present application;
FIG. 2 is a diagram of an application scenario for implementing the alarm data collection method according to the embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a method for implementing alarm data collection according to an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating a method for implementing alarm data collection according to another embodiment of the present application;
FIG. 5 is a schematic structural diagram of a method for implementing alarm data collection according to the present application;
fig. 6 is a schematic structural diagram of an electronic device for implementing the alarm data collection method.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
For a clear understanding of the technical solutions of the present application, a detailed description of the prior art solutions is first provided.
Conventionally, when a communication interruption occurs between an operation and maintenance center and an electronic device, alarm data in which an alarm event of each operation and maintenance center is an active alarm state is usually adopted. However, since the data acquired by each operation and maintenance center is out of order, the accuracy of the alarm data stored in the alarm database is reduced by directly storing the out-of-order alarm data in the alarm database. The defects of the conventional scheme can be specifically understood as follows: because of the reason of each operation and maintenance center, the alarm data acquired from each operation and maintenance center to the electronic device is out of order, the alarm clearing state of the same alarm event often reaches the electronic device before the active alarm state, and because the active alarm state of the corresponding alarm event does not reach the electronic device yet, in the traditional scheme, the alarm clearing state of the alarm event is cleared by the electronic device. Since the clear alarm state of the alarm event is first reached and discarded, and then the active alarm state of the uploaded alarm event is always active and cannot be cleared, the alarm event is actually disarmed, and the alarm event derived from the alarm database is still in the alarm state.
Illustratively, as shown in fig. 1, a network outage occurs between time 2 and time 3, resulting in the electronic device not receiving the active alarm and clear alarm between sequence number 2 and sequence number 1200, and these lost alarm data are complemented between time 5 and time 6 by the above-mentioned complementary mining mechanism. After the loss and complementary collection mechanism, the sequence numbers of the alarm data listed above, which actually receive the alarm at the electronic device, are changed into: sequence number 1 (active alarm 1), sequence number 1300 (clear alarm 3), sequence number 2 (active alarm 2), sequence number 1200 (active alarm 3). Wherein, the active alarm 1 is that the alarm event 1 is in the active alarm state, the active alarm 2 is that the alarm event 2 is in the active alarm state, the active alarm 3 is that the alarm event 3 is in the active alarm state, and the clear alarm 3 is that the alarm event is in the clear alarm state.
It can be seen that for a pair of alarm data (active alarm 3 and clear alarm 3) in the normal order before going through the above process, the order of the alarms arriving at the electronic device has been reversed, i.e. clear alarm 3 arrives before active alarm 3. When the clearing alarm 3 arrives, the electronic equipment does not have the active alarm 3, the updating operation has no effect, and the clearing alarm is discarded after the updating operation; and after the active alarm 3 arrives and enters the warehouse, the active alarm 3 is always in an active state and cannot be cleared because the previous clearing alarm 3 arrives and is discarded.
Therefore, in the face of the technical problems of the prior art, the inventor finds out through creative research that the accuracy of the alarm data stored in the alarm database is improved. Therefore, the electronic equipment firstly adopts the supplementary data to obtain a plurality of supplementary report alarm data, and then matches the supplementary data with a plurality of alarm data stored in the alarm database during the estimated communication interruption period based on a preset matching strategy to obtain a plurality of alarm data with updated states and store the alarm data in the alarm database. After a plurality of supplementary alarm data are collected, a plurality of alarm data in the estimated communication interruption period and the corresponding supplementary alarm data are paired according to the preset pairing strategy that the clearing alarm state of the same alarm event occurs after the active alarm state, so that the alarm event in the estimated communication interruption period in the active alarm state can be paired with the same alarm event in the supplementary collecting period which occurs in the clearing alarm state later and the alarm event in the estimated communication interruption period which is in the clearing alarm state can be matched with the same alarm event in the supplementary collecting period which occurs in the active alarm state earlier, thereby updating the state of the alarm data in the alarm database and obtaining each accurate alarm data.
As shown in fig. 2, in an application scenario of the alarm data collection method provided in the embodiment of the present application, a corresponding network architecture in the application scenario includes an electronic device 10 and at least one operation and maintenance center 20, and the electronic device 10 and the at least one operation and maintenance center 20 are in communication connection. The electronic equipment 10 sends a data replenishment request to at least one operation and maintenance center 20; and acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center 20 in response to the data supplementary acquisition request, wherein the plurality of supplementary warning data are warning data which are not uploaded to the electronic equipment 10 during the predicted communication interruption period, and the actual communication interruption period is within the predicted communication interruption period. Obtaining a plurality of alarm data of at least one operation and maintenance center 20 during the estimated communication interruption from an alarm database; on the basis of a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, pairing a plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data to obtain alarm data updated in a plurality of states; and caching the alarm data of the plurality of state updates into an alarm database.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 3 is a method for acquiring alarm data according to an embodiment of the present application, and as shown in fig. 3, an execution main body of the method for acquiring alarm data according to the embodiment is an electronic device. The alarm data collecting method provided by this embodiment includes the following steps:
step 101, sending a data complementary acquisition request to at least one operation and maintenance center.
The operation and maintenance center refers to each functional entity in the operation and maintenance system, and a plurality of network devices can be managed under the operation and maintenance center. After the electronic device establishes a real-time alarm set connection with a certain operation and maintenance center of the province end through a Socket transmission channel of an enterprise service bus, the operation and maintenance center reports related alarm data of network devices managed by the operation and maintenance center in real time, and each sent alarm data is marked with an alarm serial number label. The operation maintenance center may report related alarm data of the network device managed by the operation maintenance center in real time, which may be understood that each operation maintenance center may report a network fault, a power supply fault, and the like of multiple network devices managed by the operation maintenance center through an Enterprise Service Bus ESB (Enterprise Service Bus). For alarm events, active alarm states and clear alarm states, this can be understood as follows: for example, a network failure or a power failure of the a network device may be regarded as an alarm event and is in an active alarm state. After a period of time, the alarm event is changed to a clear alarm state after the network equipment A with the network fault is maintained. Each alarm data includes an alarm event and a status of the alarm event, the status of the alarm event being an active alarm status or a clear alarm status.
When the alarm data is uploaded by each operation and maintenance center, the alarm data is transmitted independently and in parallel, and the alarm data is not influenced mutually, so that when one operation and maintenance center is disconnected with an enterprise service bus of the electronic equipment, the operation and maintenance centers of other provincial terminals cannot be influenced. And at the electronic equipment side, a plurality of alarm data subareas of each operation and maintenance center can be set for storage, and each subarea carries the identifier of the corresponding operation and maintenance center, so that when the alarm data of a certain subarea is detected to be discontinuous, the operation and maintenance center which is interrupted in communication with the electronic equipment can be immediately determined based on the identifier of the operation and maintenance center carried by the subarea.
The interruption of communication can cause that part of alarm data can not be uploaded to the electronic equipment, and the operation and maintenance center still has cache, because after the network disconnection between the operation and maintenance center and the electronic equipment, a data supplementary acquisition request can be sent to the operation and maintenance center to retrieve the alarm data which can not be successfully uploaded before.
And step 102, acquiring a plurality of supplement alarm data returned by the at least one operation and maintenance center in response to the data supplement and collection request.
The plurality of supplementary warning data are warning data which are not uploaded to the electronic equipment during the estimated communication interruption period. The actual communication interruption period is within the estimated communication interruption period. The actual communication interruption period refers to a period during which the operation and maintenance center and the electronic device start to be disconnected from each other and reconnected. The actual communication interruption period is within the estimated communication interruption period, and means that the disconnection time point during the estimated communication interruption period is earlier than the disconnection time point during the actual communication interruption period, and the reconnection time point during the estimated communication interruption period is later than the reconnection time point during the actual communication interruption period. The reason for acquiring the alarm data which is not uploaded to the electronic equipment during the estimated communication interruption period is that the clock mechanism between the operation maintenance center and the electronic equipment has deviation and the two are separated by a plurality of network layer transmissions, and the alarm data has transmission delay in transmission, so that the electronic equipment cannot accurately know when the actual communication interruption period starts to be disconnected and when the actual communication interruption period is reconnected, and a longer time period (the estimated communication interruption period) is used as an interval for supplementing the alarm data, so that the alarm data to be supplemented can be prevented from being missed.
Each supplemental alert data includes an alarm event and a status of the alarm event. The state of the alarm event is either the active alarm state or the clear alarm state as described above.
103, acquiring a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption from an alarm database.
Wherein the at least one operation and maintenance center, that is, the at least one operation and maintenance center in step 101, is an operation and maintenance center in which communication with the electronic device is interrupted. The alarm data of at least one operation maintenance center obtained from the alarm database during the estimated communication interruption period is the alarm data uploaded to the alarm database in real time through the Socket transmission channel before and after the actual communication interruption. For example, the actual communication interruption period is 11-00-11, the predicted communication interruption period is 10.
And 104, based on a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, pairing the plurality of alarm data during the estimated communication interruption period with the corresponding supplementary transmission alarm data to obtain the alarm data with a plurality of updated states.
The preset pairing strategy is determined according to the principle that the clearing alarm state of the same alarm event should occur after the active alarm state, and can be used for changing the state of the alarm event in the alarm data from the active alarm state to the clearing alarm state. The reason why the clear alarm state of the same alarm event is set to occur after the active alarm state is that any alarm event occurs first (i.e., the active alarm state) and then the alarm is released (i.e., the clear alarm state).
As described above, since the acquired alarm data (i.e., the plurality of alarm data during the estimated communication interruption period) are out of order, the electronic device corrects the time sequence of the acquired alarm data, and compares the acquired plurality of additional alarm data with the alarm data of the corresponding time period (the estimated communication interruption period) stored in the alarm database, thereby changing/updating the state of the alarm data in the alarm database and obtaining accurate alarm data.
And the comparison process is that based on a preset pairing strategy that the clearing alarm state of the same alarm event occurs after the active alarm state, a plurality of alarm data during the estimated communication interruption period are respectively paired with the corresponding supplementary transmission alarm data to obtain a plurality of alarm data with updated states.
Step 105, caching the alarm data of the plurality of state updates into an alarm database.
That is, the alarm data of the state update is the alarm data in which the state of the alarm event is accurately changed, and the alarm data of the plurality of state updates is cached in the alarm database, so that the accuracy of storing the alarm data in the alarm database can be improved.
In the application, a data complementary acquisition request is sent to at least one operation and maintenance center; acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary warning data are warning data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is located within the estimated communication interruption period; obtaining a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption from an alarm database; matching the plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data based on a preset matching strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain a plurality of alarm data with updated states; and caching the alarm data of the plurality of state updates into an alarm database. After the multiple supplementary alarm data are collected, the multiple alarm data in the estimated communication interruption period are paired with the corresponding supplementary alarm data according to the preset pairing strategy that the clearing alarm state of the same alarm event occurs after the active alarm state, so that the alarm event in the estimated communication interruption period is in the active alarm state and can be paired with the same alarm event in the subsequent clearing alarm state in the supplementary acquisition period and the alarm event in the clearing alarm state in the estimated communication interruption period is matched with the same alarm event in the active alarm state in the previous direction in the supplementary acquisition period, thereby updating the state of the alarm data in the alarm database and obtaining accurate alarm data.
As an alternative implementation, as shown in fig. 4, in this embodiment, step 102 includes the following steps:
step 201, judging whether serial numbers of a plurality of real-time alarm data uploaded by operation maintenance centers of provincial ends within a preset time length are continuous.
Wherein the preset duration is set manually. Whether communication interruption exists between the operation and maintenance center and the electronic equipment is determined by checking whether serial numbers of the plurality of real-time alarm data within a preset time length are continuous. There is no communication interruption if continuous, and there is communication interruption if discontinuous.
Real-time alarm data, i.e. alarm data, is distinguished only by name. The active alarm state and the clear alarm state of the same alarm event respectively occupy a serial number. For example, in fig. 1, when the alarm event 3 is in the active alarm state, the serial number is sequence number 1200, and when the alarm event 3 is in the clear alarm state, the serial number is sequence number 1300.
Step 202, if it is determined that serial numbers of a plurality of real-time alarm data uploaded by at least one operation and maintenance center are not continuous, a data complementary acquisition request is issued to the at least one operation and maintenance center.
If the serial numbers of the real-time alarm data uploaded by the at least one operation and maintenance center are determined to be discontinuous, which indicates that communication interruption exists between the at least one operation and maintenance center and the electronic device, in order to compensate the alarm data during the communication interruption, the alarm data may also be alarm data of a longer time period (for example, estimated communication interruption period), so as to issue a data compensation request to the at least one operation and maintenance center to instruct the at least one operation and maintenance center to upload the alarm data again.
In this embodiment, whether serial numbers of a plurality of real-time alarm data uploaded by an operation maintenance center of each provincial terminal within a preset time length are continuous is judged; and if the serial numbers of the real-time alarm data uploaded by at least one operation and maintenance center are determined to be discontinuous, issuing a data complementary acquisition request to the at least one operation and maintenance center. And determining whether communication interruption occurs between each operation and maintenance center and the electronic equipment according to whether serial numbers of the real-time alarm data uploaded by the operation and maintenance center are continuous, so that the data supplementing and collecting request can be accurately issued to at least one operation and maintenance center which should be supplemented and transmitted.
As an optional implementation manner, in this embodiment, before the step 101, the following steps are further included:
step 301, in the process of uploading a plurality of real-time alarm data of the operation and maintenance center of each provincial terminal to the alarm database in real time, matching the corresponding real-time clear alarm state for each received real-time activity alarm state according to the preset countermeasure, wherein the real-time alarm data is the real-time activity alarm state or the real-time clear alarm state.
The real-time alarm data may be first real-time alarm data or second real-time alarm data. The first real-time alarm data is the real-time alarm data for which the alarm event is an active alarm state, and the second real-time alarm data is the same alarm event as the first real-time alarm data and is a clear alarm state.
That is, before the completion, in the process of normally uploading the real-time alarm data, a plurality of real-time alarm data of the operation and maintenance center of each provincial side are uploaded to the alarm database in real time through a Socket transmission channel of the enterprise service bus. When each real-time alarm data is uploaded to an alarm database, inserting operation is carried out on each first real-time alarm data, and when second real-time alarm data which is the same alarm event as the first real-time alarm data and is in an alarm clearing state is received, the first real-time alarm data and the second real-time alarm data are paired. When the first real-time alarm data and the second real-time alarm data are paired, the first real-time alarm data and the second real-time alarm data are paired according to a preset pairing strategy.
Step 302, storing the unpaired second real-time alarm data in the alarm database.
Here, unlike the conventional scheme, the method of deleting the unpaired second real-time alarm data is different, in the embodiment, the unpaired second real-time alarm data is stored. After the storage, in the complementary mining process, the unpaired second real-time alarm data may be paired in step 104, so as to prevent the first real-time alarm data that can be paired with the unpaired second real-time alarm data from always failing to change state, which may result in an error in alarm data.
The first real-time alarm data cannot necessarily find the corresponding second real-time alarm data at this stage, and the first real-time alarm data which is not paired can be used as the alarm data stored in the alarm database in step 103. When the corresponding supplement alarm data is obtained by the supplement collection, the corresponding state updated alarm data can be obtained.
In this embodiment, in the process of uploading a plurality of real-time alarm data of the operation and maintenance center of each provincial terminal to the alarm database in real time, the received first real-time alarm data are paired with the corresponding second real-time alarm data according to the preset pairing strategy; the first real-time alarm data is the real-time alarm data of which the alarm event is in an active alarm state, and the second real-time alarm data is the same alarm event as the first real-time alarm data and is in a clear alarm state; and storing the second real-time alarm data which cannot be paired. The first real-time alarm data and the second real-time alarm data which can be paired are paired, and the second real-time alarm data which cannot be paired are stored, so that the states of the first real-time alarm data which are acquired after the first real-time alarm data which are paired with the second real-time alarm data which cannot be paired are acquired, can be changed, and the states of the alarm data stored in the alarm database are accurate.
As an alternative implementation manner, in this embodiment, step 102 includes the following steps:
step 401, determining whether the number of the plurality of supplementary warning data is greater than a preset value.
The preset values may be determined according to empirical values, for example, 1000 preset values are set.
And 402, if the data is determined to be smaller than the preset value, acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center through the real-time data transmission channel.
Wherein, the real-time data transmission channel is a Socket transmission channel. If the quantity of the supplementary alarm data is smaller than the preset value, the at least one operation and maintenance center is indicated to report the supplementary alarm data according to the original Socket transmission channel in real-time processing, so that the electronic equipment can acquire a plurality of supplementary alarm data returned by the at least one operation and maintenance center through the real-time data transmission channel.
And step 403, if it is determined that the value is greater than or equal to the preset value, acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center through the file transmission channel.
Among them, the file transfer channel is an FTP (file transfer protocol) transfer channel. And if the quantity of the supplementary warning data is larger than or equal to the preset value, indicating at least one operation and maintenance center to report the supplementary warning data through the FTP transmission channel, so that the electronic equipment can acquire a plurality of supplementary warning data returned by the at least one operation and maintenance center through the file transmission channel.
Specifically, if the operation maintenance center determines that the retransmission alarm data is greater than or equal to the preset value, the operation maintenance center stores the retransmission alarm data generation files in the designated directories of the operation maintenance center, the FTP transmission channel of the electronic device periodically scans the designated directories of the operation maintenance center, and if new file generation is found, the new file is moved to the designated directories of the enterprise service bus, so that the retransmission alarm data is uploaded.
In this embodiment, it is determined whether the number of the plurality of supplementary warning data is greater than a preset value; if the judgment result is smaller than the preset value, acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center through a real-time data transmission channel; and if the judgment result is larger than or equal to the preset value, acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center through a file transmission channel. The quantity of the supplementary warning data is compared with a preset value so as to adopt different data transmission channels to transmit the supplementary warning data, so that the data transmission channels can be efficiently utilized. And when the data volume is large, the file transmission channel is adopted to transmit data, so that the data transmission efficiency is higher.
As an alternative implementation manner, in this embodiment, the step 104 includes the following steps:
and step 501, sequencing the plurality of alarm data based on the time stamps of the plurality of supplementary alarm data and the time stamps of the plurality of alarm data during the estimated communication interruption.
All alarm data uploaded to the electronic equipment by the operation and maintenance center carry time stamps. The time stamp carried by the supplementary warning data refers to the occurrence time of the supplementary warning data. The time stamp carried by the alarm data during the estimated communication interruption period refers to the occurrence time of the alarm data during the estimated communication interruption period. The multiple supplementary transmission alarm data and the multiple alarm data during the estimated communication interruption period are sequenced according to the time stamps, so that the time sequence relation between each alarm data and the multiple supplementary transmission alarm data during the estimated communication interruption period can be determined.
Step 502, based on a preset pairing strategy that the clear alarm state of the same alarm event occurs after the active alarm state, pairing the first alarm data during the estimated communication interruption period with the corresponding first supplementary alarm data, and pairing the second alarm data during the estimated communication interruption period with the corresponding second supplementary alarm data.
The first alarm data is the alarm data of the alarm event which is estimated to be in the active alarm state during the communication interruption, and the first supplementary alarm data is the supplementary alarm data which is the same alarm event as the first alarm data and is in the clear alarm state. The second alarm data is the alarm data which is estimated that the alarm event is in a clear alarm state during the communication interruption and is not paired, and the second supplementary alarm data is the supplementary alarm data which is the same alarm event as the second alarm data and is in an active alarm state.
The step can pair the first alarm data during the estimated communication interruption period with the first supplementary transmission alarm data from the supplementary acquisition, and pair the second alarm data during the estimated communication interruption period with the second supplementary transmission alarm data from the supplementary acquisition, so that the first alarm data during the estimated communication interruption period can be paired with the corresponding first supplementary transmission alarm data which is not uploaded during the actual communication interruption period, and the second alarm data during the estimated communication interruption period can be paired with the corresponding second supplementary transmission alarm data which is not uploaded during the actual communication interruption period, thereby realizing the state change of the alarm event.
It should be noted that, the relationship between the predicted second alarm data during the communication interruption and the unpaired second real-time alarm data in step 302 may be understood that the predicted second alarm data during the communication interruption is a part of the unpaired second real-time alarm data in step 302, and is taken as the second real-time alarm data of the predicted part during the communication interruption.
Step 503, obtaining the alarm data of the plurality of status updates.
And respectively pairing all the second alarm data during the estimated communication interruption period with the corresponding second supplementary transmission alarm data to obtain a plurality of state updated alarm data. Here, it should be understood that the second alarm data during the estimated communication interruption is alarm event clear alarm state and unpaired alarm data, and in order to avoid that a plurality of second supplementary alarm data from supplementary acquisition are not paired, so that the alarm state cannot be cleared, all the second alarm data are paired. The first warning data during the estimated communication interruption period may not be able to find the corresponding first supplementary warning data in the supplementary warning data from the current supplementary acquisition, so that it is not necessary to match all the first warning data during the estimated communication interruption period.
In this embodiment, the sequencing is performed based on the timestamps of the plurality of supplementary warning data and the timestamps of the plurality of warning data during the estimated communication interruption period; based on a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, pairing the first alarm data during the estimated communication interruption period with corresponding first supplementary transmission alarm data; the second alarm data during the estimated communication interruption period is paired with the corresponding second supplementary alarm data; alarm data for the plurality of status updates is obtained. The first alarm data during the estimated communication interruption period is paired with the corresponding first supplementary alarm data and the second alarm data during the estimated communication interruption period is paired with the corresponding second supplementary alarm data based on the timestamps of the supplementary alarm data and the plurality of alarm data during the estimated communication interruption period and the preset pairing strategy, so that the states of the alarm events of the alarm data during the estimated communication interruption period can be accurately updated after the postharvest.
As an optional implementation manner, in this embodiment, step 105 further includes the following steps:
step 601, responding to a data query request sent by a user terminal, wherein the data query request comprises alarm time.
The alarm time refers to the time when an alarm occurs, and may be a specific time point or a period of time. A user sends a data query request through a user terminal, which is generally based on the requirements of a service scenario, for example, alarm data analysis is performed for a period of time or a certain time point in the past to determine the subsequent usable condition of each network device, or whether maintenance is required.
Step 602, obtaining the alarm data corresponding to the alarm time from the alarm database, and sending the alarm data to the user terminal.
That is, based on the alarm data required by the user, the alarm data is returned to the user terminal.
In this embodiment, a data query request sent by a user terminal is responded, where the data query request includes an alarm time; and acquiring alarm data corresponding to the alarm time from the alarm database, and sending the alarm data to the user terminal. Since the states of alarm events in the alarm data stored in the alarm database are accurate after the processing of steps 101 to 104, the alarm data obtained by querying the alarm database can be effectively used when being used in other service scenarios.
Fig. 5 is a schematic structural diagram of an alarm data collecting device according to an embodiment of the present application, and as shown in fig. 5, if an alarm data collecting device 40 according to the present embodiment is located in an electronic device, the alarm data collecting device 40 according to the present embodiment includes:
a replenishment request acquisition module 41, configured to send a data replenishment request to at least one operation and maintenance center;
an upload data obtaining module 42, configured to obtain multiple pieces of upload warning data returned by the at least one operation and maintenance center in response to the data upload request, where the multiple pieces of upload warning data are warning data that are not uploaded to the electronic device during an estimated communication interruption period, and an actual communication interruption period is located within the estimated communication interruption period;
an alarm data obtaining module 43, configured to obtain, from an alarm database, a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption;
a data pairing module 44, configured to pair the multiple alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data based on a preset pairing policy that a clear alarm state of the same alarm event occurs after an active alarm state, so as to obtain alarm data updated in multiple states;
and a paired data caching module 45, configured to cache the alarm data of the plurality of status updates in an alarm database.
Optionally, the replenishment request obtaining module 41, when sending the data replenishment request to at least one operation and maintenance center, is specifically configured to: judging whether serial numbers of a plurality of real-time alarm data uploaded by an operation maintenance center of each provincial terminal within a preset time length are continuous or not; and if the serial numbers of the real-time alarm data uploaded by at least one operation and maintenance center are determined to be discontinuous, issuing a data complementary acquisition request to the at least one operation and maintenance center.
Optionally, before the determining whether serial numbers of the plurality of alarm data uploaded by the operation and maintenance center at each provincial end within the preset time period are continuous, the alarm data collecting device 40 is further specifically configured to: in the process of uploading a plurality of real-time alarm data of the operation and maintenance center of each provincial terminal to the alarm database in real time, matching the received first real-time alarm data with corresponding second real-time alarm data according to the preset matching strategy; the first real-time alarm data is the real-time alarm data of which the alarm event is in an active alarm state, and the second real-time alarm data is the same alarm event as the first real-time alarm data and is in a clear alarm state; and storing the second real-time alarm data which cannot be paired.
Optionally, the supplementary transmission data obtaining module 42, when obtaining a plurality of supplementary transmission alarm data returned by at least one operation and maintenance center in response to the data supplementary acquisition request, is specifically configured to: judging whether the quantity of the plurality of supplementary warning data is greater than a preset value or not; if the judgment result is smaller than the preset value, acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center through a real-time data transmission channel; and if the number of the operation maintenance centers is larger than or equal to the preset value, acquiring a plurality of supplementary warning data returned by the at least one operation maintenance center through a file transmission channel.
Optionally, the data pairing module 44 is specifically configured to, when the preset pairing policy that the clear alarm state based on the same alarm event occurs after the active alarm state is used to pair the multiple alarm data during the estimated communication interruption period with the corresponding supplementary alert data to obtain the alarm data with multiple updated states: sorting based on the time stamps of the plurality of complementary alarm data and the time stamps of the plurality of alarm data during the estimated communication interruption; matching the first alarm data during the estimated communication interruption period with corresponding first supplementary transmission alarm data based on a preset matching strategy that the alarm clearing state of the same alarm event occurs after the active alarm state; the first alarm data is alarm data which predicts that an alarm event is in an active alarm state during communication interruption, and the first supplementary alarm data is supplementary alarm data which is the same alarm event as the first alarm data and is in a clear alarm state; the second alarm data during the estimated communication interruption period is paired with the corresponding second supplementary alarm data; the second alarm data is alarm data which is estimated that an alarm event is in a clear alarm state during communication interruption and is not paired, and the second supplementary alarm data is supplementary alarm data which is the same alarm event as the second alarm data and is in an active alarm state; alarm data for the plurality of status updates is obtained.
Optionally, the alarm data collecting device 40 is further configured to, after caching the alarm data of the plurality of status updates in the alarm database: responding to a data query request sent by a user terminal, wherein the data query request comprises alarm time; and acquiring alarm data corresponding to the alarm time from the alarm database, and sending the alarm data to the user terminal.
Fig. 6 is a block diagram illustrating an electronic device according to an example embodiment, which may be the electronic device shown in fig. 6, including: a memory 51, a processor 52; memory 51 is a memory for storing processor-executable instructions; the processor 52 is used to run a computer program or instructions to implement the alarm data collection method provided in any of the above embodiments.
The memory 51 is used for storing programs. In particular, the program may include program code including computer operating instructions. The memory 51 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 52 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present disclosure.
Alternatively, in a specific implementation, if the memory 51 and the processor 52 are implemented independently, the memory 51 and the processor 52 may be connected to each other through the bus 53 and perform communication with each other. The bus 53 may be an Industry Standard Architecture (ISA) bus 53, a Peripheral Component Interconnect (PCI) bus 53, an Extended ISA (EISA) bus 53, or the like. The bus 53 may be divided into an address bus 53, a data bus 53, a control bus 53, and the like. For ease of illustration, only one thick line is shown in fig. 6, but does not indicate only one bus 53 or one type of bus 53.
Alternatively, in a specific implementation, if the memory 51 and the processor 52 are integrated on a chip, the memory 51 and the processor 52 may complete the same communication through an internal interface.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the above-mentioned alarm data collection method of the electronic device.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for collecting alarm data is characterized in that each alarm data comprises an alarm event and the state of the alarm event; applied to an electronic device, the method comprises the following steps:
sending a data complementary acquisition request to at least one operation and maintenance center;
acquiring a plurality of supplementary warning data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary warning data are warning data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is located within the estimated communication interruption period;
obtaining a plurality of alarm data of the at least one operation and maintenance center during the estimated communication interruption from an alarm database;
matching the plurality of alarm data during the estimated communication interruption period with corresponding supplementary transmission alarm data based on a preset matching strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain alarm data updated in a plurality of states;
and caching the alarm data of the plurality of state updates into an alarm database.
2. The method of claim 1, wherein sending a data replenishment request to at least one operation and maintenance center comprises:
judging whether serial numbers of a plurality of real-time alarm data uploaded by an operation maintenance center of each provincial terminal within a preset time length are continuous or not;
and if the serial numbers of the real-time alarm data uploaded by at least one operation and maintenance center are determined to be discontinuous, issuing a data complementary acquisition request to the at least one operation and maintenance center.
3. The method according to claim 2, before the determining whether serial numbers of the plurality of alarm data uploaded by the operation and maintenance centers of the respective provincial terminals within the preset time period are consecutive, further comprising:
in the process of uploading a plurality of real-time alarm data of the operation and maintenance center of each provincial terminal to the alarm database in real time, matching the received first real-time alarm data with corresponding second real-time alarm data according to the preset matching strategy; the first real-time alarm data is the real-time alarm data of which the alarm event is in an active alarm state, and the second real-time alarm data is the same alarm event as the first real-time alarm data and is in a clear alarm state;
storing the unpaired second real-time alarm data in the alarm database.
4. The method of claim 2, wherein the obtaining of the plurality of replenishment alert data returned by the at least one operation and maintenance center in response to the data replenishment request comprises:
judging whether the quantity of the plurality of supplementary warning data is greater than a preset value or not;
if the judgment result is smaller than the preset value, acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center through a real-time data transmission channel;
and if the number of the operation maintenance centers is larger than or equal to the preset value, acquiring a plurality of supplementary warning data returned by the at least one operation maintenance center through a file transmission channel.
5. The method according to claim 1, wherein the pairing of the plurality of alarm data during the pre-estimated communication interruption with the corresponding supplementary alert data based on the preset pairing strategy that the clear alarm state of the same alarm event occurs after the active alarm state to obtain a plurality of state updated alarm data comprises:
sorting based on timestamps of the plurality of supplemental alert data and timestamps of the plurality of alert data during the projected communication disruption;
based on a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, pairing the first alarm data during the estimated communication interruption period with corresponding first supplementary transmission alarm data; the first alarm data is the alarm data which predicts that the alarm event is in an active alarm state during the communication interruption, and the first supplementary alarm data is the supplementary alarm data which is the same alarm event as the first alarm data and is in a clear alarm state;
the second alarm data during the estimated communication interruption period is paired with the corresponding second supplementary alarm data; the second alarm data is alarm data which is estimated that an alarm event is in a clear alarm state during communication interruption and is not paired, and the second supplementary alarm data is supplementary alarm data which is the same alarm event as the second alarm data and is in an active alarm state;
alarm data for the plurality of status updates is obtained.
6. The method of claim 1, wherein after caching the alarm data for the plurality of status updates into an alarm database, further comprising:
responding to a data query request sent by a user terminal, wherein the data query request comprises alarm time;
and acquiring alarm data corresponding to the alarm time from the alarm database, and sending the alarm data to the user terminal.
7. An alarm data collection device, the device comprising:
the data supplementing and collecting request acquisition module is used for sending a data supplementing and collecting request to at least one operation and maintenance center;
the supplementary transmission data acquisition module is used for acquiring a plurality of supplementary transmission alarm data returned by the at least one operation and maintenance center in response to the data supplementary acquisition request, wherein the supplementary transmission alarm data are alarm data which are not uploaded to the electronic equipment during the estimated communication interruption period, and the actual communication interruption period is positioned within the estimated communication interruption period;
the alarm data acquisition module is used for acquiring a plurality of alarm data of the at least one operation maintenance center during the estimated communication interruption period from an alarm database;
the data pairing module is used for pairing the plurality of alarm data during the estimated communication interruption period with the corresponding supplementary transmission alarm data based on a preset pairing strategy that the alarm clearing state of the same alarm event occurs after the active alarm state, so as to obtain a plurality of alarm data with updated states;
and the paired data caching module is used for caching the alarm data of the plurality of state updates into an alarm database.
8. The apparatus according to claim 7, wherein the anaplerosis request obtaining module, when sending a data anaplerosis request to at least one operation and maintenance center, is specifically configured to: judging whether serial numbers of a plurality of real-time alarm data uploaded by an operation maintenance center of each provincial terminal within a preset time length are continuous or not; and if the serial numbers of the plurality of real-time alarm data uploaded by at least one operation and maintenance center are determined to be discontinuous, issuing a data complementary acquisition request to the at least one operation and maintenance center.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-6.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 1-6.
CN202211622246.3A 2022-12-16 2022-12-16 Alarm data acquisition method and device, electronic equipment and storage medium Pending CN115809273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211622246.3A CN115809273A (en) 2022-12-16 2022-12-16 Alarm data acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211622246.3A CN115809273A (en) 2022-12-16 2022-12-16 Alarm data acquisition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115809273A true CN115809273A (en) 2023-03-17

Family

ID=85486211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211622246.3A Pending CN115809273A (en) 2022-12-16 2022-12-16 Alarm data acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115809273A (en)

Similar Documents

Publication Publication Date Title
CN112422684B (en) Target message processing method and device, storage medium and electronic device
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
CN110661705B (en) Hardware network switching engine and network fault processing system and method
CN111740877A (en) Link detection method and system
CN110224872B (en) Communication method, device and storage medium
CN111818582A (en) Data transmission method and device and electronic equipment
CN115809273A (en) Alarm data acquisition method and device, electronic equipment and storage medium
CN115378841B (en) Method and device for detecting state of equipment accessing cloud platform, storage medium and terminal
CN110597672A (en) Method and device for main/standby switching of ATCA switching system
CN113434604B (en) Time sequence database synchronization method, system, equipment and storage medium
CN116319670A (en) Method and system for automatically switching multi-domain name IP in charging and battery-changing cabinet
CN112437146B (en) Equipment state synchronization method, device and system
CN112068978B (en) Method and device for prolonging timing period of VIEW-CHANGE secondary start timer
CN114116906A (en) Data synchronization method, device, electronic device and storage medium
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN111338573B (en) Terminal data management method and system, server and communication terminal
CN114422335A (en) Communication method, communication device, server and storage medium
CN114331092A (en) Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment
CN115426209B (en) High-reliability message queue broadcast control method based on message processing
CN110932878A (en) Management method, equipment and system of distributed network
CN115412483B (en) Method and system for cross-device link aggregation keep-alive message interaction
CN109274516B (en) Extended network bridge and online control method thereof
CN112769889B (en) Service data pushing method and device, storage medium and electronic device
CN117857525B (en) Industrial data system based on efficient transmission protocol
CN114339850B (en) Base station data transmission method and device, storage medium and electronic 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