Disclosure of Invention
In view of this, embodiments of the present invention provide a fault location method, an apparatus, an electronic device, and a computer storage medium, so as to solve the problem in the prior art that the speed of locating a fault service influence is slow.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiments of the present invention shows a fault location method, where the method includes:
acquiring fault alarm information, analyzing the fault alarm information and determining fault related information;
determining a global tracking number corresponding to each transaction related to the fault by using the fault related information;
determining target detail data corresponding to a preset query condition from transaction detail information aiming at a global tracking number corresponding to each transaction, wherein the transaction detail information is obtained by querying a transaction processing database according to the global tracking number;
determining a target channel component and target transaction influence index information in each target detail datum;
and displaying the business influence information generated based on the target channel component and the target transaction influence index information.
Optionally, the determining, from the transaction detail information, target detail data corresponding to a preset query condition includes:
inquiring a transaction processing database according to the global tracking number aiming at the global tracking number corresponding to each transaction to obtain transaction detail information of the global tracking number corresponding to each transaction;
and inquiring transaction detail information corresponding to the global tracking number according to a preset inquiry condition aiming at the global tracking number corresponding to each transaction, and determining target detail data.
Optionally, the determining target channel components and target transaction influence index information in each of the target detail data includes:
recording a first channel component and first transaction influence index information in each target detail datum;
counting the number of the transaction codes in the first channel component and the first transaction index information to obtain a statistical table which is sorted from high to low according to the statistical times;
determining a first channel component with the highest statistical frequency and first transaction index information corresponding to a transaction code with the highest statistical frequency from the statistical table;
the first channel component is used as a target channel component, and the first transaction index information is used as target transaction influence index information.
Optionally, the method further includes:
determining a preset number of first channel components and transaction codes based on the sorting of the statistical table;
judging whether a first channel component with a first statistical number exceeding a first preset threshold exists in the preset number of first channel components and whether a transaction code with a second statistical number exceeding a second preset threshold exists in the preset number of transaction codes, wherein the first statistical number is the number of times of occurrence of the same channel component, and the second statistical number is the number of times of occurrence of the same transaction code;
and if the transaction number of the transaction codes exceeds the first preset threshold, packaging the first channel component with the first statistical number exceeding the first preset threshold and the first transaction index information corresponding to the transaction code with the second statistical number exceeding the first preset threshold to generate service influence information, and displaying the service influence information.
A second aspect of the embodiments of the present invention shows a fault location apparatus, including: the acquisition unit is used for acquiring fault alarm information, analyzing the fault alarm information and determining fault related information;
the first determining unit is used for determining a global tracking number corresponding to each transaction related to the fault by using the fault related information;
the second determining unit is used for determining target detail data corresponding to a preset query condition from the transaction detail information aiming at the global tracking number corresponding to each transaction, wherein the transaction detail information is obtained by querying the transaction processing database according to the global tracking number;
the positioning unit is used for determining a target channel component and target transaction influence index information in each target detail datum;
and the display unit is used for displaying the business influence information generated based on the target channel component and the target transaction influence index information.
Optionally, the second determining unit includes: the first inquiry subunit is used for inquiring the transaction processing database according to the global tracking number aiming at the global tracking number corresponding to each transaction to obtain the transaction detail information of the global tracking number corresponding to each transaction;
and the second inquiry subunit is used for inquiring the transaction detail information corresponding to the global tracking number according to a preset inquiry condition aiming at the global tracking number corresponding to each transaction and determining target detail data.
Optionally, the positioning unit includes:
the recording subunit is used for recording the first channel component and the first transaction influence index information in each target detail datum;
the counting subunit is used for counting the number of the transaction codes in the first channel component and the first transaction index information to obtain a counting table which is ordered from high to low according to the counting times;
the determining subunit is used for determining a first channel component with the highest statistical frequency and first transaction index information corresponding to the transaction code with the highest statistical frequency from the statistical table; the first channel component is used as a target channel component, and the first transaction index information is used as target transaction influence index information.
Optionally, the method further includes:
the third determining unit is used for determining a preset number of first channel components and transaction codes based on the sorting of the statistical table;
the judging unit is used for judging whether a first channel component with a first statistical frequency exceeding a first preset threshold exists in the preset number of first channel components and whether a transaction code with a second statistical frequency exceeding a second preset threshold exists in the preset number of transaction codes, wherein the first statistical frequency is the frequency of the same channel component, and the second statistical frequency is the frequency of the same transaction code; if the two signals exist, executing a processing display unit;
and the processing and displaying unit is used for packaging the first channel component with the first statistical number exceeding a first preset threshold value and the first transaction index information corresponding to the transaction code with the second statistical number exceeding the first preset threshold value to generate service influence information and displaying the service influence information.
A third aspect of the embodiment of the present invention shows an electronic device, where the electronic device is configured to run a program, where the program executes the fault location method shown in the first aspect of the embodiment of the present invention when running.
A fourth aspect of the embodiments of the present invention shows a computer storage medium, where the storage medium includes a storage program, and when the program runs, a device in which the storage medium is located is controlled to execute the fault location method shown in the first aspect of the embodiments of the present invention.
Based on the above fault location method, apparatus, electronic device and computer storage medium provided by the embodiments of the present invention, the method includes: acquiring fault alarm information, analyzing the fault alarm information and determining fault related information; determining a global tracking number corresponding to each transaction related to the fault by using the fault related information; determining target detail data corresponding to a preset query condition from transaction detail information aiming at a global tracking number corresponding to each transaction, wherein the transaction detail information is obtained by querying a transaction processing database according to the global tracking number; determining a target channel component and target transaction influence index information in each target detail datum; and displaying the business influence information generated based on the target channel component and the target transaction influence index information. In the embodiment of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; then, each global tracking number is used as a query condition to be queried, and the transaction detail information corresponding to each global tracking number is determined; and then analyzing the transaction detail information of each global tracking number, determining target detail data corresponding to preset query conditions in each global tracking number, further determining and displaying the target channel component with the highest positioning fault influence possibility and the target transaction influence index information. The fault service influence can be quickly positioned.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the embodiment of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; then, each global tracking number is used as a query condition to be queried, and the transaction detail information corresponding to each global tracking number is determined; and then analyzing the transaction detail information of each global tracking number, determining target detail data corresponding to preset query conditions in each global tracking number, further determining and displaying the target channel component with the highest positioning fault influence possibility and the target transaction influence index information. The fault service influence can be quickly positioned.
Referring to fig. 1, a schematic flow chart of a fault location method according to an embodiment of the present invention is shown, where the method includes:
s101: and acquiring fault alarm information, analyzing the fault alarm information and determining fault related information.
Specific contents of S101: if the monitored system gives an alarm, acquiring alarm information of the system, and analyzing the alarm information to obtain information such as an alarm view, an alarm object, alarm time, alarm component information and the like which can be used as query fault related information; and querying the transaction detail recorded in the transaction processing database by using the information such as the alarm view, the alarm object, the alarm time, the alarm component information and the like to determine the fault related information corresponding to the alarm view, the alarm object, the alarm time and the alarm component information.
It should be noted that the specific process of querying the transaction details recorded in the transaction processing database by using the information such as the alarm view, the alarm object, the alarm time, and the alarm component information to determine the fault-related information corresponding to the alarm view, the alarm object, the alarm time, and the alarm component information is as follows: and inquiring the transaction detail about the alarm component in the alarm time in the transaction processing database by using the transaction code shown in the alarm view so as to take the inquired transaction detail as fault coherent information.
For example: suppose the transaction code shown in the alarm view is A12345678 and the alarm time is yyyy-MM-dd-HH-MM-ss; the alarm component is Q. And inquiring the transaction detail K related to the alarm component Q in the alarm time yyyy-MM-dd-HH-MM-ss in the transaction processing database by using the transaction code A12345678 shown in the alarm view so as to take the inquired transaction detail K as fault coherent information.
The fault alarm information refers to an emergency report which is reported when the component has a fault, and comprises an alarm object, occurrence time, an alarm index and an index value.
The transaction code refers to a code corresponding to a particular transaction name.
S102: and determining a global tracking number corresponding to each transaction related to the fault by using the fault related information.
Specific contents of S102: and traversing the fault related information, acquiring the global tracking number from the fault related information, and performing deduplication processing on the acquired global tracking number to obtain different global tracking numbers.
It should be noted that the global tracking number refers to a unique mark generated in each system for a transaction, the same global tracking number represents that a transaction is completed, and at least one transaction code exists in a transaction.
Optionally, a global tracking number list may be generated based on the global tracking numbers obtained after the deduplication processing, so as to implement the following steps and contents in various embodiments by using the global tracking numbers in the list.
S103: and determining target detail data corresponding to a preset query condition from the transaction detail information aiming at the global tracking number corresponding to each transaction.
In S103, the transaction detail information is obtained by querying the transaction processing database according to the global tracking number.
It should be noted that, the specific process of implementing step S103 includes the following steps:
s11: and inquiring a transaction processing database according to the global tracking number aiming at the global tracking number corresponding to each transaction to obtain transaction detail information corresponding to each global tracking number.
S12: and inquiring transaction detail information corresponding to the global tracking number according to a preset inquiry condition aiming at the global tracking number corresponding to each transaction, and determining target detail data.
It should be noted that the preset query condition is set by a technician in advance according to experiments, for example: the preset query condition may be set as a detail with the minimum initiation time.
Details of S11 and S12: and traversing the transaction processing database by using the global tracking number aiming at the global tracking number corresponding to each transaction so as to inquire the transaction detail information corresponding to the global tracking number. And traversing the transaction detail information of each global tracking number, searching the detail with the minimum initiation time, and taking the detail as target detail data.
It is noted that the target detail data includes a plurality of first channel components and a plurality of first transaction impact indicator information.
Further, it should be noted that the first transaction influence index information includes index data that can quickly realize system fault service influence positioning, such as a channel transaction code, a fault transaction code, a transaction amount, a transaction proportion, and the like.
The first channel component is referred to as a transaction initiating end system.
S104: and determining a target channel component and target transaction influence index information in each target detail datum.
Specific contents of S104: recording a first channel component and first transaction influence index information in each target detail datum; counting the number of the transaction codes in the first channel component and the first transaction index information to obtain a statistical table which is sorted from high to low according to the statistical times; determining a first channel component with the highest statistical frequency and first transaction index information corresponding to a transaction code with the highest statistical frequency based on the statistical table; and finally, taking the first channel component as a target channel component, and taking the first transaction index information as target transaction influence index information.
S105: and displaying the business influence information generated based on the target channel component and the target transaction influence index information.
In the process of implementing step S105 specifically, the target channel component and the target transaction influence index information are packaged to generate and display the business influence information. So as to quickly locate the range of the influence of the fault service, that is, determine which services are influenced to be normally processed when the alarm component is in fault.
In the embodiment of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; then, each global tracking number is used as a query condition to be queried, and the transaction detail information corresponding to each global tracking number is determined; and then analyzing the transaction detail information of each global tracking number, determining target detail data corresponding to a preset query condition in each global tracking number, further determining a target channel component with the highest fault influence positioning possibility and target transaction influence index information, and displaying service influence information generated based on the target channel component and the target transaction influence index information so as to quickly position fault service influence and quickly help operation and maintenance personnel to position the influence range of the fault.
Based on the above fault location method shown in the embodiment of the present invention, as shown in fig. 2, another method for generating service impact information shown in the embodiment of the present invention includes the following steps:
s201: and determining a preset number of first channel components and transaction codes based on the sorting of the statistical table.
Specific contents of S201: after a statistical table which is sorted from high to low according to the statistical times is generated, the preset number of first channel components and transaction codes are sequentially obtained according to the sorting from high to low in the statistical table.
It should be noted that the preset value is set by a technician according to experience, and may be set to 3, for example.
For example: and acquiring 3 first channel components and transaction codes in sequence according to the sequence from high to low in the statistical table, namely acquiring the first channel component and transaction code with the top 3 of the statistical times sequence.
S202: judging whether a first channel assembly with a first statistical number exceeding a first preset threshold exists in the preset number of first channel assemblies and whether a transaction code with a second statistical number exceeding a second preset threshold exists in the preset number of transaction codes, if so, executing step S203, and if not, executing service influence information display operation.
In S202, the first statistical number is the number of times that the same channel component appears, and the second statistical number is the number of times that the same transaction code appears.
Specific contents of S202: determining respective first statistical times of a preset number of first channel components from the statistical table, and determining respective second statistical times of preset number of transaction codes from the statistical table; then, the ratio of each first statistical frequency to the first preset total value and the ratio of each second statistical frequency to the second preset total value are calculated. Judging whether the ratio of each first statistical frequency to the first preset total value is greater than a preset ratio or not, and judging whether the ratio of each second statistical frequency to the second preset total value is greater than the preset ratio or not; if at least one ratio of the first statistical number to the first preset total value is larger than a preset ratio, and the ratio of the second statistical number to the second preset total value is larger than the preset ratio, S13 is executed, and if both are smaller, the operation of displaying the service influence information is executed.
It should be noted that the first preset total value refers to the fault transaction amount of all the first channel components, and the second preset total value refers to the fault transaction amount of all the transaction codes.
The preset ratio is set by a calculator according to experience in advance, such as: may be set to 25%.
The first preset threshold is the product of the first preset total value and the preset ratio, and the second preset threshold is the product of the second preset total value and the preset ratio.
S203: and packaging the first channel component with the first statistical times exceeding a first preset threshold value and the first transaction index information corresponding to the transaction code with the second statistical times exceeding the first preset threshold value to generate service influence information, and displaying the service influence information.
Specific contents of S203: and packaging the first transaction index information corresponding to the transaction code of which the ratio of each first statistical time to the first preset total numerical value is greater than the preset ratio, and the ratio of each second statistical time to the second preset total numerical value is greater than the preset ratio to generate service influence information, and displaying the service influence information.
In the embodiment of the invention, after the statistical table sorted from high to low according to the statistical times is obtained, the preset number of first channel components and transaction codes are sequentially obtained according to the sorting from high to low in the statistical table. Determining respective first statistical times of a preset number of first channel components from the statistical table, and determining respective second statistical times of preset number of transaction codes from the statistical table; and then when at least one first statistic number is determined to exist, wherein the ratio of the first statistic number to the first preset total value is larger than a preset ratio, and the ratio of the second statistic number to the second preset total value is larger than the preset ratio, packaging first transaction index information corresponding to a transaction code, wherein the ratio of each first statistic number to the first preset total value is larger than the preset ratio, and the ratio of each second statistic number to the second preset total value is larger than the preset ratio, to generate service influence information, and displaying the service influence information. The fault service influence can be quickly positioned, and operation and maintenance personnel can be quickly helped to position the influence range of the fault.
Based on the fault location method shown in the embodiment of the present invention, the embodiment of the present invention also correspondingly discloses a fault location device, as shown in fig. 3, which is a schematic structural diagram of the fault location device shown in the embodiment of the present invention, and the device includes:
the obtaining unit 301 is configured to obtain the fault warning information, analyze the fault warning information, and determine fault-related information.
The first determining unit 302 is configured to determine, by using the fault-related information, a global tracking number corresponding to each transaction related to the fault.
The second determining unit 303 is configured to determine, from the transaction detail information, target detail data corresponding to a preset query condition according to the global tracking number corresponding to each transaction, where the transaction detail information is obtained by querying the transaction processing database according to the global tracking number.
A location unit 304, configured to determine target channel components and target transaction impact indicator information in each target detail data.
A display unit 305, configured to display the business impact information generated based on the target channel component and the target transaction impact index information.
It should be noted that, the specific principle and the implementation process of each unit in the fault location device disclosed in the above embodiment of the present invention are the same as the fault location method shown in the above embodiment of the present invention, and reference may be made to corresponding parts in the fault location method disclosed in the above embodiment of the present invention, and details are not described here again.
In the implementation of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; then, each global tracking number is used as a query condition to be queried, and the transaction detail information corresponding to each global tracking number is determined; and then analyzing the transaction detail information of each global tracking number, determining target detail data corresponding to a preset query condition in each global tracking number, further determining a target channel component and target transaction influence index information for positioning fault influence, and displaying service influence information generated based on the target channel component and the target transaction influence index information so as to quickly position fault service influence and quickly help operation and maintenance personnel to position the influence range of the fault.
Based on the fault location device shown in the above embodiment of the present invention, the second determining unit 303 includes:
and the first inquiry subunit is used for inquiring the transaction processing database according to the global tracking number aiming at the global tracking number corresponding to each transaction to obtain the transaction detail information of the global tracking number corresponding to each transaction.
And the second inquiry subunit is used for inquiring the transaction detail information corresponding to the global tracking number according to a preset inquiry condition aiming at the global tracking number corresponding to each transaction and determining target detail data.
In the embodiment of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; aiming at the global tracking number corresponding to each transaction, inquiring a transaction processing database according to the global tracking number to obtain transaction detail information of the global tracking number corresponding to each transaction; and inquiring transaction detail information corresponding to the global tracking number according to a preset inquiry condition aiming at the global tracking number corresponding to each transaction, and determining target detail data. So as to subsequently determine the target channel component for positioning the fault influence and the target transaction influence index information. The fault service influence can be quickly positioned, and operation and maintenance personnel can be quickly helped to position the influence range of the fault.
Based on the above fault location device shown in the embodiment of the present invention, the location unit 304 includes:
and the recording subunit is used for recording the first channel component and the first transaction influence index information in each target detail datum.
And the counting subunit is used for counting the number of the transaction codes in the first channel component and the first transaction index information to obtain a counting table which is sorted from high to low according to the counting times.
The determining subunit is used for determining a first channel component with the highest statistical frequency and first transaction index information corresponding to the transaction code with the highest statistical frequency from the statistical table; the first channel component is used as a target channel component, and the first transaction index information is used as target transaction influence index information.
In the embodiment of the invention, the fault warning information is analyzed, and then the global tracking number corresponding to each transaction related to the fault is determined according to the fault related information obtained by analysis; then, each global tracking number is used as a query condition to be queried, and the transaction detail information corresponding to each global tracking number is determined; analyzing the transaction detail information of each global tracking number, and determining target detail data corresponding to preset query conditions in each global tracking number; recording a first channel component and first transaction influence index information in each target detail datum; counting the number of the transaction codes in the first channel component and the first transaction index information to obtain a statistical table which is sorted from high to low according to the statistical times; determining a first channel component with the highest statistical frequency and first transaction index information corresponding to a transaction code with the highest statistical frequency based on the statistical table; the first channel component is used as a target channel component, and the first transaction index information is used as target transaction influence index information. The fault service influence can be quickly positioned, and operation and maintenance personnel can be quickly helped to position the influence range of the fault.
The fault locating device shown based on the above embodiment of the present invention, as shown in fig. 4 in combination with fig. 3, further includes:
a third determining unit 306, configured to determine a preset number of first channel components and transaction codes based on the sorting of the statistical table.
A determining unit 307, configured to determine whether there are first channel components in a preset number of first channel components, where a first statistical number exceeds a first preset threshold, and whether there are transaction codes in the preset number of transaction codes, where a second statistical number exceeds a second preset threshold, where the first statistical number is the number of times that a same channel component appears, and the second statistical number is the number of times that a same transaction code appears; if both exist, the processing display unit 308 is executed.
And the processing and displaying unit 308 is configured to package the first channel component with the first statistical number exceeding the first preset threshold and the first transaction index information corresponding to the transaction code with the second statistical number exceeding the first preset threshold to generate service influence information, and display the service influence information.
In the embodiment of the invention, after the statistical table sorted from high to low according to the statistical times is obtained, the preset number of first channel components and transaction codes are sequentially obtained according to the sorting from high to low in the statistical table. Determining respective first statistical times of a preset number of first channel components from the statistical table, and determining respective second statistical times of preset number of transaction codes from the statistical table; and then when at least one first statistic number is determined to exist, wherein the ratio of the first statistic number to the first preset total value is larger than a preset ratio, and the ratio of the second statistic number to the second preset total value is larger than the preset ratio, packaging first transaction index information corresponding to a transaction code, wherein the ratio of each first statistic number to the first preset total value is larger than the preset ratio, and the ratio of each second statistic number to the second preset total value is larger than the preset ratio, to generate service influence information, and displaying the service influence information. The fault service influence can be quickly positioned, and operation and maintenance personnel can be quickly helped to position the influence range of the fault.
The embodiment of the invention also discloses electronic equipment, which is used for operating the database storage process, wherein the product recommendation method disclosed in the figure 3 is executed when the database storage process is operated.
The embodiment of the invention also discloses a computer storage medium, which comprises a storage database storage process, wherein when the storage database storage process runs, the equipment where the storage medium is located is controlled to execute the product recommendation method disclosed in the figure 3.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.