CN110838940B - Underground cable inspection task configuration method and device - Google Patents
Underground cable inspection task configuration method and device Download PDFInfo
- Publication number
- CN110838940B CN110838940B CN201911039614.XA CN201911039614A CN110838940B CN 110838940 B CN110838940 B CN 110838940B CN 201911039614 A CN201911039614 A CN 201911039614A CN 110838940 B CN110838940 B CN 110838940B
- Authority
- CN
- China
- Prior art keywords
- log
- processed
- abnormal
- fault
- logs
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000007689 inspection Methods 0.000 title claims abstract description 109
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000002159 abnormal effect Effects 0.000 claims abstract description 162
- 238000012545 processing Methods 0.000 claims abstract description 47
- 238000004590 computer program Methods 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 238000002360 preparation method Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 238000010276 construction Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C1/00—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
- G07C1/20—Checking timed patrols, e.g. of watchman
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to a method and a device for configuring an underground cable inspection task. The method comprises the following steps: acquiring logs stored in a database, and extracting abnormal logs to be processed from the logs according to log labels; extracting the fault position of the faulted underground cable from the abnormal log to be processed; classifying the abnormal logs to be processed according to the fault positions; acquiring the number of abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value or not; if the number exceeds a preset value, generating a routing inspection task according to the abnormal log to be processed; and sending the inspection task to a processing terminal corresponding to the fault position. The method can be used for polling the position with high failure rate, and pre-transmission preparation is made in advance to prevent failure.
Description
Technical Field
The application relates to the technical field of data processing, in particular to a method and a device for configuring an underground cable inspection task.
Background
Cables buried underground are often exploded due to the temperature rise of the cables during power transmission; or, the underground laid pipeline is filled with water, so that the cable is damaged, and the normal transmission of the cable is influenced.
Generally, after an underground cable fault is found, construction is carried out by a corresponding construction team, then the underground cable is maintained, and after the maintenance is finished, the underground cable at the position cannot be processed any more, so that the maintenance condition and the like cannot be grasped in time, and the fault cannot be eliminated before the fault does not occur, so that the fault frequently occurs.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for configuring an underground cable inspection task, which can perform troubleshooting before a failure occurs, in order to solve the above technical problems.
A method for configuring an underground cable inspection task, the method comprising:
acquiring logs stored in a database, and extracting abnormal logs to be processed from the logs according to log labels;
extracting the fault position of the faulted underground cable from the abnormal log to be processed;
classifying the abnormal logs to be processed according to the fault positions;
acquiring the number of abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value or not;
if the number exceeds a preset value, generating a routing inspection task according to the abnormal log to be processed;
and sending the inspection task to a processing terminal corresponding to the fault position.
In one embodiment, the obtaining the log stored in the database and extracting the to-be-processed exception log from the log according to the log tag includes:
acquiring logs stored in the database and abnormal logs of generated routing inspection tasks;
extracting an initial abnormal log from the log according to the log label;
and obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
In one embodiment, after obtaining the exception log to be processed according to the generated exception log of the patrol task and the initial exception log, the method further includes:
extracting a fault position of the generated inspection task, and judging whether the abnormal log to be processed has an abnormal log to be processed corresponding to the fault position;
if so, extracting the fault type in the abnormal log to be processed;
comparing the extracted fault type with a fault type corresponding to the inspection task;
and if the extracted fault type is the same as the fault type corresponding to the inspection task, sending information of processing failure to a terminal corresponding to the fault position.
In one embodiment, before sending the information of processing failure to the terminal corresponding to the failure location, the method further includes:
acquiring first generation time of a routing inspection task and second generation time of the abnormal log to be processed;
calculating a difference between the first generation time and the second generation time;
and if the difference is smaller than the preset time value, continuously sending information of processing failure to the terminal corresponding to the fault position.
In one embodiment, after the sending the information of processing failure to the terminal corresponding to the failure location, the method further includes:
acquiring performance scores of responsible persons of the terminals corresponding to the fault positions;
reducing the responsible person performance score.
In one embodiment, the generating a polling task according to the to-be-processed exception log includes:
extracting a fault type from the abnormal log to be processed;
counting the failure times and occurrence time corresponding to each failure type;
sorting the fault types according to the fault times and the occurrence time respectively;
and generating the routing inspection task according to the fault types of the preset number sequenced at the top.
An underground cable inspection task configuration device, the device comprising:
the log acquisition module is used for acquiring logs stored in the database and extracting abnormal logs to be processed from the logs according to the log labels;
the fault position extraction module is used for extracting the fault position of the underground cable with the fault from the abnormal log to be processed;
the classification module is used for classifying the abnormal logs to be processed according to the fault positions;
the first judgment module is used for acquiring the number of the abnormal logs to be processed in each classification and judging whether the number exceeds a preset value;
the inspection task generating module is used for generating an inspection task according to the abnormal log to be processed if the number exceeds a preset value;
and the first sending module is used for sending the inspection task to the processing terminal corresponding to the fault position.
In one embodiment, the log obtaining module includes:
the log acquisition unit is used for acquiring logs stored in the database and abnormal logs of generated inspection tasks;
the log extraction unit is used for extracting an initial abnormal log from the log according to the log label;
and the abnormal log obtaining unit is used for obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above
According to the underground cable inspection task configuration method, the device, the computer equipment and the storage medium, the logs are processed, the fault positions of the underground cables with faults are extracted from the abnormal logs to be processed, then the abnormal logs to be processed are classified, so that the number of the abnormal logs to be processed in each classification is obtained, and whether the number exceeds a preset value is judged; if the number exceeds a preset value, generating a polling task according to the abnormal log to be processed; and sending the polling task to a processing terminal corresponding to the fault position, so that polling can be performed on the fault high-rate position, pre-sending preparation is made in advance, and the fault is prevented from occurring.
Drawings
FIG. 1 is a diagram of an application scenario of a configuration method for an underground cable inspection task according to an embodiment;
FIG. 2 is a schematic flow chart diagram of a configuration method for an underground cable inspection task in one embodiment;
FIG. 3 is a block diagram of an embodiment of an underground cable inspection task configuration device;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The underground cable inspection task configuration method can be applied to the application environment shown in fig. 1. Wherein the processing terminal 102 and the server 104 communicate over a network. The server 104 may obtain the stored log from the database, the log is generated according to the processing procedure of the data collected by the underground cable information collection device 106, then extract the log of the exception to be processed from the log according to the log label, i.e., extracting logs corresponding to the faulty underground cable, so that the server 104 can extract the fault location of the faulty underground cable from the logs of the abnormal condition to be processed, then classifying the abnormal logs to be processed according to the fault position, so that the server acquires the number of the abnormal logs to be processed corresponding to each geographical position, i.e., the number of faults occurring at each geographic location, such that the server 104 determines whether to trigger generation of a routing inspection task by determining whether the number exceeds a preset value, and if the fault location exceeds the preset value, generating an inspection task and sending the inspection task to the processing terminal 102 corresponding to the fault location. The processing terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for configuring an underground cable inspection task is provided, which is described by taking the method as an example of being applied to the server in fig. 1, and includes the following steps:
s202: and acquiring a log stored in a database, and extracting an abnormal log to be processed from the log according to a log label.
The log is used for recording information of hardware, software and system problems in the system and monitoring events occurring in the system, wherein the server can judge whether the underground cable is in fault according to current operation data and current environment data acquired by a data acquisition system of the underground cable, and the judging result and the judging process are stored to obtain the log. And if the judgment result is that the log is in fault, adding a fault label to the log, otherwise, adding no label or adding a normal label, so that the server can extract the abnormal log to be processed from the log according to the log label.
S204: and extracting the fault position of the faulted underground cable from the abnormal log to be processed.
Specifically, the to-be-processed abnormal log not only stores the judgment result and the judgment process, but also includes current operation data, current environment data, the fault position and the fault type of the underground cable, and the like.
S206: and classifying the abnormal logs to be processed according to the fault positions.
Specifically, the server classifies the abnormal logs to be processed according to the fault positions, namely, the geographical positions are firstly obtained, then whether the abnormal logs to be processed are new geographical positions is judged, if yes, classification is added, otherwise, the abnormal logs to be processed are added into the existing classification, and therefore the abnormal logs to be processed are classified.
S208: and acquiring the number of the abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value.
Specifically, the step of acquiring, by the server, the number of the abnormal logs to be processed in each classification may be performed in the classification process, that is, acquiring the geographic position, and then determining whether the geographic position is a new geographic position, if not, adding the geographic position to the existing classification, and performing an adding operation with respect to the statistical number of the existing classification, so that when the classification is completed, the number of the abnormal logs to be processed is also acquired.
The preset number is a preset reference value for measuring whether to generate the inspection task, and optionally, the frequency of abnormal occurrence can be calculated according to the number and the corresponding time span of the abnormal logs to be processed, and then whether the frequency exceeds the preset value is judged, if yes, it is indicated that the underground cable at the geographic position often breaks down, and therefore regular inspection is needed.
S210: and if the number exceeds a preset value, generating a routing inspection task according to the to-be-processed abnormal log.
S212: and sending the inspection task to a processing terminal corresponding to the fault position.
Specifically, if the number exceeds a preset value, an inspection task is generated according to the abnormal log to be processed, the inspection task can extract a judgment result, a judgment process, current operation data, current environment data, the fault position and the fault type of the underground cable and the like from the abnormal log to be processed, the inspection task can be obtained by encrypting the information, the encrypted inspection task is sent to the processing terminal, the processing terminal can process the inspection task in time, and the processing terminal corresponding to the fault position can ensure that the inspection task can be performed in time.
According to the underground cable inspection task configuration method, the logs are processed, the fault positions of the faulted underground cables are extracted from the abnormal logs to be processed, then the abnormal logs to be processed are classified, so that the number of the abnormal logs to be processed in each classification is obtained, and whether the number exceeds a preset value is judged; if the number exceeds a preset value, generating a polling task according to the abnormal log to be processed; and sending the polling task to a processing terminal corresponding to the fault position, so that polling can be performed on the fault high-speed position, and pre-sending preparation is made in advance to prevent the fault.
In one embodiment, the obtaining the log stored in the database and extracting the to-be-processed exception log from the log according to the log tag includes: acquiring logs stored in the database and abnormal logs of generated routing inspection tasks; extracting an initial abnormal log from the log according to the log label; and obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
Specifically, since the generation of the inspection task may be obtained according to a plurality of abnormal logs, in order to ensure that the processed abnormal logs are not processed again, when the to-be-processed abnormal logs are obtained, the logs stored in the database and the abnormal logs of the generated inspection task may be obtained, wherein the abnormal logs of the generated inspection task may be distinguished in advance in a form of a tag, and then the server may extract the initial abnormal logs from the logs according to the log tag, and delete the abnormal logs of the generated inspection task to obtain the to-be-processed abnormal logs.
Therefore, the routing inspection task needs to judge the abnormal log within a period of time, so that the processed abnormal log can not be processed again, and the processing efficiency and accuracy are improved.
In one embodiment, after obtaining the to-be-processed exception log according to the generated exception log of the inspection task and the initial exception log, the method further includes: extracting a fault position of the generated inspection task, and judging whether the abnormal log to be processed has an abnormal log to be processed corresponding to the fault position; if so, extracting the fault type in the abnormal log to be processed; comparing the extracted fault type with a fault type corresponding to the inspection task; and if the extracted fault type is the same as the fault type corresponding to the inspection task, sending information of processing failure to a terminal corresponding to the fault position.
Specifically, the generated polling task is already processed for the fault location, and if a fault still occurs at the fault location, it is determined that a new fault may exist or the previous fault has not been solved, and therefore it is necessary to determine whether a to-be-processed abnormal log corresponding to the fault location exists in the to-be-processed abnormal log, and if the to-be-processed abnormal log exists, extract the fault type in the to-be-processed abnormal log, compare the extracted fault type with the fault type corresponding to the polling task, and if the types are the same, it is determined that the previous processing has failed, so that the information can be sent to the previous processing terminal, so that the previous processing terminal can continue polling the location.
In one embodiment, before sending the information of processing failure to the terminal corresponding to the failure location, the method further includes: acquiring first generation time of a routing inspection task and second generation time of the abnormal log to be processed; calculating a difference between the first generation time and the second generation time; and if the difference is smaller than the preset time value, continuously sending information of processing failure to the terminal corresponding to the fault position.
Specifically, if the generation time of the current exception log to be processed is far from the generation time of the previous polling task, it indicates that the previous task is completed, which is a new problem, and therefore the server may obtain the first generation time of the polling task and the second generation time of the exception log to be processed; and calculating the difference value between the first generation time and the second generation time, and judging whether the difference value is smaller than a preset value, wherein the preset value is a preset value of time, and if the difference value is smaller than the preset value, the fault is the original fault, so that the information of processing failure is continuously sent to the terminal corresponding to the fault position.
In one embodiment, after the sending the information of processing failure to the terminal corresponding to the failure location, the method further includes: acquiring performance scores of responsible persons of the terminals corresponding to the fault positions; reducing the responsible person performance score.
Specifically, if information of processing failure is sent to the terminal corresponding to the fault position, that is, the responsible person does not process the fault well, the performance score of the responsible person can be reduced, so that the corresponding performance is reduced to perform penalty.
In one embodiment, the generating a polling task according to the to-be-processed exception log includes: extracting a fault type from the abnormal log to be processed; counting the failure times and occurrence time corresponding to each failure type; sorting the fault types according to the fault times and the occurrence time respectively; and generating the routing inspection task according to the fault types of the preset number sequenced at the top.
Specifically, when the routing inspection task is generated, the server can extract the fault type from the to-be-processed abnormal log in order to facilitate the checking of a user; and counting the failure times and the occurrence time corresponding to each failure type, sequencing according to the failure times, displaying the corresponding occurrence time within a preset time period, such as one month, and displaying in a delayed manner if the failure times exceed one month, so that a user can view the failure types with a large number of failure times by a terminal when viewing the inspection task.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided an underground cable inspection task configuration device including:
the log obtaining module 100 is configured to obtain logs stored in a database, and extract an abnormal log to be processed from the logs according to a log tag;
a fault position extraction module 200, configured to extract a fault position of a faulty underground cable from the to-be-processed abnormal log;
a classification module 300, configured to classify the to-be-processed abnormal log according to the fault location;
the first judging module 400 is configured to obtain the number of the abnormal logs to be processed in each classification, and judge whether the number exceeds a preset value;
the inspection task generating module 500 is configured to generate an inspection task according to the to-be-processed abnormal log if the number exceeds a preset value;
and a first sending module 600, configured to send the inspection task to the processing terminal corresponding to the fault location.
In one embodiment, the log obtaining module includes:
the log acquisition unit is used for acquiring logs stored in the database and abnormal logs of generated inspection tasks;
the log extraction unit is used for extracting an initial abnormal log from the log according to the log label;
and the abnormal log obtaining unit is used for obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
In one embodiment, the underground cable inspection task configuration device may further include:
the second judgment module is used for extracting the fault position of the generated routing inspection task and judging whether the to-be-processed abnormal log corresponding to the fault position exists or not;
the fault type extraction module is used for extracting the fault type in the abnormal log to be processed when the fault type exists;
the comparison module is used for comparing the extracted fault type with the fault type corresponding to the inspection task;
and the second sending module is used for sending processing failure information to the terminal corresponding to the fault position if the extracted fault type is the same as the fault type corresponding to the inspection task.
In one embodiment, the underground cable inspection task configuration device may further include:
the time acquisition module is used for acquiring first generation time of the inspection task and second generation time of the abnormal log to be processed;
a difference calculation unit configured to calculate a difference between the first generation time and the second generation time;
and the second sending module is further configured to continue to send information of processing failure to the terminal corresponding to the fault location if the difference is smaller than a preset time value.
In one embodiment, the underground cable inspection task configuration device may further include:
the performance score acquisition module is used for acquiring the performance score of a responsible person of the terminal corresponding to the fault position;
a score reduction module to reduce the responsible person performance score.
In one embodiment, the patrol task generating module includes:
the fault type extraction unit is used for extracting a fault type from the to-be-processed abnormal log;
the statistical unit is used for counting the failure times and the occurrence time corresponding to each failure type;
the sorting unit is used for sorting the fault types according to the fault times and the occurrence time respectively;
and the generating unit is used for generating the routing inspection tasks according to the fault types of the preset number sequenced in the front.
For specific limitations of the underground cable inspection task configuration device, reference may be made to the above limitations of the underground cable inspection task configuration method, which will not be described herein again. All or part of each module in the underground cable inspection task configuration device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing log data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for underground cable inspection task configuration.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring a log stored in a database, and extracting an abnormal log to be processed from the log according to a log label; extracting the fault position of the faulted underground cable from the abnormal log to be processed; classifying the abnormal logs to be processed according to the fault positions; acquiring the number of abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value or not; if the number exceeds a preset value, generating a polling task according to the abnormal log to be processed; and sending the inspection task to a processing terminal corresponding to the fault position.
In one embodiment, the obtaining logs stored in the database and extracting the to-be-processed exception log from the logs according to the log tags, which is implemented when the processor executes the computer program, includes: acquiring logs stored in the database and abnormal logs of generated routing inspection tasks; extracting an initial abnormal log from the log according to the log label; and obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
In one embodiment, after obtaining the to-be-processed exception log according to the exception log of the generated patrol task and the initial exception log when the processor executes the computer program, the method further includes: extracting a fault position of the generated inspection task, and judging whether the abnormal log to be processed has an abnormal log to be processed corresponding to the fault position; if so, extracting the fault type in the abnormal log to be processed; comparing the extracted fault type with a fault type corresponding to the inspection task; and if the extracted fault type is the same as the fault type corresponding to the inspection task, sending information of processing failure to a terminal corresponding to the fault position.
In one embodiment, before the sending of the information of processing failure to the terminal corresponding to the fault location, which is implemented when the processor executes the computer program, the method further includes: acquiring first generation time of a routing inspection task and second generation time of the abnormal log to be processed; calculating a difference between the first generation time and the second generation time; and if the difference is smaller than the preset time value, continuously sending information of processing failure to the terminal corresponding to the fault position.
In one embodiment, after the sending of the information of processing failure to the terminal corresponding to the fault location is performed by the processor when the processor executes the computer program, the method further includes: acquiring performance scores of responsible persons of the terminals corresponding to the fault positions; reducing the responsible person performance score.
In one embodiment, the generating of the patrol task according to the to-be-processed exception log, which is implemented when the processor executes the computer program, includes: extracting a fault type from the abnormal log to be processed; counting the failure times and occurrence time corresponding to each failure type; sorting the fault types according to the fault times and the occurrence time respectively; and generating the routing inspection task according to the fault types of the preset number sequenced at the top.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of: acquiring logs stored in a database, and extracting abnormal logs to be processed from the logs according to log labels; extracting the fault position of the faulted underground cable from the abnormal log to be processed; classifying the abnormal logs to be processed according to the fault positions; acquiring the number of abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value or not; if the number exceeds a preset value, generating a routing inspection task according to the abnormal log to be processed; and sending the inspection task to a processing terminal corresponding to the fault position.
In one embodiment, the obtaining logs stored in a database and extracting the exception log to be processed from the logs according to the log tags, which is implemented when the computer program is executed by the processor, includes: acquiring logs stored in the database and abnormal logs of generated routing inspection tasks; extracting an initial abnormal log from the log according to the log label; and obtaining an abnormal log to be processed according to the generated abnormal log of the routing inspection task and the initial abnormal log.
In one embodiment, after obtaining the to-be-processed exception log according to the exception log of the generated patrol task and the initial exception log, the computer program when executed by the processor further includes: extracting a fault position of the generated routing inspection task, and judging whether the abnormal log to be processed corresponding to the fault position exists in the abnormal log to be processed; if so, extracting the fault type in the abnormal log to be processed; comparing the extracted fault type with a fault type corresponding to the inspection task; and if the extracted fault type is the same as the fault type corresponding to the inspection task, sending information of processing failure to a terminal corresponding to the fault position.
In one embodiment, before the sending the information of processing failure to the terminal corresponding to the fault location is performed by the processor, the computer program further includes: acquiring first generation time of a polling task and second generation time of the abnormal log to be processed; calculating a difference between the first generation time and the second generation time; and if the difference is smaller than the preset time value, continuously sending information of processing failure to the terminal corresponding to the fault position.
In one embodiment, after the sending of the information of processing failure to the terminal corresponding to the fault location, the computer program when executed by the processor further includes: acquiring performance scores of responsible persons of the terminals corresponding to the fault positions; reducing the responsible person performance score.
In one embodiment, the generating of the patrol task from the pending exception log, as implemented when the computer program is executed by the processor, comprises: extracting a fault type from the abnormal log to be processed; counting the failure times and occurrence time corresponding to each failure type; sorting the fault types according to the fault times and the occurrence time respectively; and generating the inspection tasks according to the fault types with the preset number in the front.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (8)
1. A method for configuring an underground cable inspection task, the method comprising:
acquiring logs stored in a database, and extracting abnormal logs to be processed from the logs according to log labels, wherein the log labels comprise fault labels and normal labels;
extracting the fault position of the faulted underground cable from the abnormal log to be processed;
classifying the abnormal logs to be processed according to the fault positions;
acquiring the number of abnormal logs to be processed in each classification, and judging whether the number exceeds a preset value or not;
if the number exceeds a preset value, generating a routing inspection task according to the abnormal log to be processed;
sending the inspection task to a processing terminal corresponding to the fault position;
the acquiring the log stored in the database and extracting the abnormal log to be processed from the log according to the log label comprises the following steps:
acquiring logs stored in the database and abnormal logs of generated routing inspection tasks;
extracting an initial abnormal log from the log according to the log label;
and obtaining an abnormal log to be processed according to the abnormal log of the generated inspection task and the initial abnormal log, wherein the abnormal log of the generated inspection task is deleted from the initial abnormal log to obtain the abnormal log to be processed.
2. The method according to claim 1, wherein after obtaining the exception log to be processed according to the exception log of the generated patrol task and the initial exception log, the method further comprises:
extracting a fault position of the generated inspection task, and judging whether the abnormal log to be processed has an abnormal log to be processed corresponding to the fault position;
if so, extracting the fault type in the abnormal log to be processed;
comparing the extracted fault type with a fault type corresponding to the inspection task;
and if the extracted fault type is the same as the fault type corresponding to the inspection task, sending information of processing failure to a terminal corresponding to the fault position.
3. The method according to claim 2, wherein before sending the information of processing failure to the terminal corresponding to the failure location, further comprising:
acquiring first generation time of a routing inspection task and second generation time of the abnormal log to be processed;
calculating a difference between the first generation time and the second generation time;
and if the difference is smaller than the preset time value, continuously sending information of processing failure to the terminal corresponding to the fault position.
4. The method according to claim 3, wherein after sending the information of processing failure to the terminal corresponding to the failure location, further comprising:
obtaining the performance score of a responsible person of a terminal corresponding to the fault position;
reducing the responsible person performance score.
5. The method of claim 1, wherein generating a patrol task from the to-be-processed exception log comprises:
extracting a fault type from the abnormal log to be processed;
counting the failure times and occurrence time corresponding to each failure type;
sorting the fault types according to the fault times and the occurrence time respectively;
and generating the routing inspection task according to the fault types of the preset number sequenced at the top.
6. The utility model provides an underground cable patrols and examines task configuration device which characterized in that, the device includes:
the log acquisition module is used for acquiring logs stored in the database and extracting abnormal logs to be processed from the logs according to log labels, wherein the log labels comprise fault labels and normal labels;
the fault position extraction module is used for extracting the fault position of the underground cable with the fault from the abnormal log to be processed;
the classification module is used for classifying the abnormal logs to be processed according to the fault positions;
the first judgment module is used for acquiring the number of the abnormal logs to be processed in each classification and judging whether the number exceeds a preset value;
the inspection task generating module is used for generating an inspection task according to the abnormal log to be processed if the number exceeds a preset value;
the first sending module is used for sending the inspection task to a processing terminal corresponding to the fault position;
the log obtaining module comprises:
the log acquisition unit is used for acquiring logs stored in the database and abnormal logs of generated inspection tasks;
the log extraction unit is used for extracting an initial abnormal log from the log according to the log label;
and the abnormal log acquiring unit is used for acquiring an abnormal log to be processed according to the abnormal log of the generated inspection task and the initial abnormal log, and deleting the abnormal log of the generated inspection task from the initial abnormal log to acquire the abnormal log to be processed.
7. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911039614.XA CN110838940B (en) | 2019-10-29 | 2019-10-29 | Underground cable inspection task configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911039614.XA CN110838940B (en) | 2019-10-29 | 2019-10-29 | Underground cable inspection task configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110838940A CN110838940A (en) | 2020-02-25 |
CN110838940B true CN110838940B (en) | 2022-09-30 |
Family
ID=69575841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911039614.XA Active CN110838940B (en) | 2019-10-29 | 2019-10-29 | Underground cable inspection task configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110838940B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590432A (en) * | 2021-09-28 | 2021-11-02 | 云和恩墨(北京)信息技术有限公司 | Database inspection method and device |
CN115272890B (en) * | 2022-07-27 | 2023-08-22 | 杭州亚太工程管理咨询有限公司 | Hydraulic engineering data acquisition system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6845148B1 (en) * | 2000-06-16 | 2005-01-18 | Bellsouth Intellectual Property Corporation | Utilities module for proactive maintenance application |
CN107994539A (en) * | 2017-12-06 | 2018-05-04 | 国网山东省电力公司滨州市滨城区供电公司 | A kind of distribution line failure detecting system based on Cloud Server |
CN108593260A (en) * | 2018-04-24 | 2018-09-28 | 国家电网公司 | Lightguide cable link fault location and detection method and terminal device |
CN108759933A (en) * | 2018-08-10 | 2018-11-06 | 广州供电局有限公司 | Monitoring device and system for underground cable |
CN109905885A (en) * | 2018-04-12 | 2019-06-18 | 华为技术有限公司 | A kind of method and inspection device of determining inspection station list |
-
2019
- 2019-10-29 CN CN201911039614.XA patent/CN110838940B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6845148B1 (en) * | 2000-06-16 | 2005-01-18 | Bellsouth Intellectual Property Corporation | Utilities module for proactive maintenance application |
CN107994539A (en) * | 2017-12-06 | 2018-05-04 | 国网山东省电力公司滨州市滨城区供电公司 | A kind of distribution line failure detecting system based on Cloud Server |
CN109905885A (en) * | 2018-04-12 | 2019-06-18 | 华为技术有限公司 | A kind of method and inspection device of determining inspection station list |
CN108593260A (en) * | 2018-04-24 | 2018-09-28 | 国家电网公司 | Lightguide cable link fault location and detection method and terminal device |
CN108759933A (en) * | 2018-08-10 | 2018-11-06 | 广州供电局有限公司 | Monitoring device and system for underground cable |
Also Published As
Publication number | Publication date |
---|---|
CN110838940A (en) | 2020-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452845B2 (en) | Generic framework to detect cyber threats in electric power grid | |
CN110868241B (en) | Underground cable fault early warning method and device based on multiple models | |
EP3373552A1 (en) | Multi-modal, multi-disciplinary feature discovery to detect cyber threats in electric power grid | |
CN110798245B (en) | Underground cable fault early warning method and device based on single model | |
CN112087334B (en) | Alarm root cause analysis method, electronic device and storage medium | |
CN114514141A (en) | Charging station monitoring method and device | |
CN110875851B (en) | Underground cable fault early warning method and device | |
CN110763952A (en) | Underground cable fault monitoring method and device | |
CN111444072B (en) | Abnormality identification method and device for client, computer equipment and storage medium | |
CN110838940B (en) | Underground cable inspection task configuration method and device | |
CN110391840B (en) | Method and system for judging abnormality of telemetry parameters of sun synchronous orbit satellite | |
CN110837956A (en) | Underground cable inspection task distribution method and device | |
CN113704018A (en) | Application operation and maintenance data processing method and device, computer equipment and storage medium | |
CN110618890A (en) | Fault processing method and device, electronic equipment and computer readable storage medium | |
CN110866634A (en) | Underground cable fault early warning method and device based on model selection | |
CN111949718A (en) | Data anomaly analysis method based on cloud computing | |
CN115980585A (en) | Battery fault detection method and device, computer equipment and storage medium | |
CN110674149B (en) | Service data processing method and device, computer equipment and storage medium | |
CN114118295A (en) | Anomaly detection model training method, anomaly detection device and medium | |
CN115967166A (en) | Power transmission line monitoring method and device, computer equipment and storage medium | |
CN115795359A (en) | Signal type distinguishing method and device and computer equipment | |
CN110781232A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN110890977B (en) | Host node monitoring method and device of cloud platform and computer equipment | |
CN115529219A (en) | Alarm analysis method and device, computer readable storage medium and electronic equipment | |
CN110954780A (en) | Underground cable fault detection method and device based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240112 Address after: 411102 No.16, Xingfu Road, Bantang Street, High tech Zone, Xiangtan City, Hunan Province Patentee after: HUNAN GUOAO POWER EQUIPMENT Co.,Ltd. Address before: 411100 66 new road, twin Horse Street, Xiangtan high tech Zone, Hunan Patentee before: HUNAN GUOAO POWER EQUIPMENT Co.,Ltd. Patentee before: Yuan Maoyin |
|
TR01 | Transfer of patent right |