Movatterモバイル変換


[0]ホーム

URL:


CN114036020A - Fault diagnosis and alarm method, apparatus, electronic device and computer readable medium - Google Patents

Fault diagnosis and alarm method, apparatus, electronic device and computer readable medium
Download PDF

Info

Publication number
CN114036020A
CN114036020ACN202111312151.7ACN202111312151ACN114036020ACN 114036020 ACN114036020 ACN 114036020ACN 202111312151 ACN202111312151 ACN 202111312151ACN 114036020 ACN114036020 ACN 114036020A
Authority
CN
China
Prior art keywords
termination point
termination
information
importance
point information
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.)
Granted
Application number
CN202111312151.7A
Other languages
Chinese (zh)
Other versions
CN114036020B (en
Inventor
王芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN202111312151.7ApriorityCriticalpatent/CN114036020B/en
Publication of CN114036020ApublicationCriticalpatent/CN114036020A/en
Application grantedgrantedCritical
Publication of CN114036020BpublicationCriticalpatent/CN114036020B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本公开的实施例公开了故障诊断和报警方法、装置、电子设备和计算机可读介质。该方法的一具体实施方式包括:获取终止点信息集合;从终止点信息集合中选择满足筛选条件的终止点信息作为有效终止点信息,得到有效终止点信息集合;确定有效终止点信息集合中每个有效终止点信息表征的终止点的故障风险率和故障风险增长率;根据终止点类型信息和终止点调用信息序列,确定有效终止点信息集合中各个有效终止点信息表征的终止点的整体风险系数;响应于确定存在大于故障风险率阈值的故障风险率,大于故障风险增长率阈值的故障风险增长率或者整体风险系数大于整体风险系数阈值,执行报警操作。该实施方式可以更为准确、全面的诊断故障并进行报警。

Figure 202111312151

Embodiments of the present disclosure disclose fault diagnosis and alarm methods, apparatuses, electronic devices, and computer-readable media. A specific implementation of the method includes: acquiring a termination point information set; selecting termination point information that satisfies a screening condition from the termination point information set as valid termination point information to obtain a valid termination point information set; determining each item in the valid termination point information set The failure risk rate and failure risk growth rate of the termination point represented by the valid termination point information; according to the termination point type information and termination point call information sequence, determine the overall risk of the termination point represented by each valid termination point information in the valid termination point information set coefficient; in response to determining that there is a failure risk rate greater than the failure risk rate threshold, a failure risk growth rate greater than the failure risk growth rate threshold, or the overall risk coefficient is greater than the overall risk coefficient threshold, an alarm operation is performed. This embodiment can more accurately and comprehensively diagnose faults and issue alarms.

Figure 202111312151

Description

Fault diagnosis and alarm method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a fault diagnosis and alarm method, apparatus, electronic device, and computer-readable medium.
Background
The fault diagnosis and alarm method is used in diagnosing and alarming abnormal condition in program or software running process. At present, when fault diagnosis and alarm operation are performed, the following methods are generally adopted: and detecting abnormal conditions and alarming by manpower or by utilizing a rule-based technology and a counting threshold technology.
However, when the above-described manner is adopted for fault diagnosis and alarm, the following technical problems often occur:
the alarm is carried out manually, the final alarm result is very easily influenced by subjective cognition and experience of people, and the alarm is difficult to be carried out in time. In the rule-based technology, expert knowledge is often structurally expressed as a rule, then a fault is detected through the existing rule and an alarm is given, but the program and software update iteration speed is high, and the fault introduced after the program and software update iteration is difficult to detect through the existing rule. It is difficult to accurately detect the abnormal condition and alarm, which affects the normal operation of the program or software. In the technology based on counting and threshold values, the numerical values of various indexes in the running process of programs and software are recorded, fault diagnosis and alarm are realized only by comparing the index values with the threshold values, and the dependency on the threshold values is high. Resulting in an inaccurate final alarm result. Therefore, it is difficult to find and solve the abnormal situation in the running process of the program or the software in time.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose fault diagnosis and alarm methods, apparatuses, electronic devices and computer readable media to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a fault diagnosis and alarm method, the method including: acquiring a termination point information set, wherein the termination point information in the termination point information set includes termination point type information and a termination point calling information sequence, and the termination point calling information in the termination point calling information sequence includes: the time period information, the termination times and the calling times, wherein the calling information of each termination point in the termination point calling information sequence is arranged according to the sequence of the time represented by the time period information; selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination times and the calling times to obtain an effective termination point information set; determining the fault risk rate and the fault risk growth rate of the termination point represented by each effective termination point information in the effective termination point information set; determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the type information of the termination point and the calling information sequence of the termination point; and executing an alarm operation in response to determining that the fault risk ratio larger than the fault risk ratio threshold value exists, the fault risk increase ratio larger than the fault risk increase ratio threshold value exists or the overall risk coefficient is larger than the overall risk coefficient threshold value.
Optionally, the selecting, according to the termination number and the call number, termination point information that meets the filtering condition from the termination point information set as effective termination point information to obtain an effective termination point information set includes: determining the importance of the termination point represented by each piece of termination point information in the termination point information set according to the termination times and the calling times to obtain a termination point importance set; and selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination point importance set to obtain an effective termination point information set.
Optionally, the determining, according to the termination number and the call number, the termination point importance of the termination point represented by each termination point information in the termination point information set to obtain a termination point importance set includes: determining the information entropy of the termination point represented by each termination point information in the termination point information set according to the termination times and the calling times to obtain an information entropy set; and carrying out normalization processing on each information entropy in the information entropy set, and taking the normalized information entropy as the importance of the termination point to obtain the importance set of the termination point.
Optionally, the determining, according to the termination number and the call number, the information entropy of the termination point represented by each termination point information in the termination point information set to obtain an information entropy set includes: carrying out segmentation processing on a termination point calling information sequence included in the termination point information to obtain a termination point calling information subsequence set; determining the ratio of the termination times to the calling times in each termination point calling information subsequence in the termination point calling information subsequence set as a termination rate to obtain a termination rate subsequence set; determining the arithmetic mean value of each termination rate in each termination rate subsequence in the termination rate subsequence set as a termination probability to obtain a termination probability set; and determining the information entropy of the termination point represented by the termination point information according to the termination probability set.
Optionally, the selecting, according to the termination point importance set, termination point information that meets the screening condition from the termination point information set as effective termination point information to obtain an effective termination point information set includes: according to the preset initial coverage rate and the importance of the initial termination point, executing the following screening steps: determining the difference value between the importance of the termination point corresponding to the initial coverage rate and the importance of the initial termination point as a coverage rate difference value; determining the difference value between the coverage rate corresponding to the importance of the initial termination point and the initial coverage rate as an importance difference value; and in response to the fact that the coverage rate difference value is smaller than or equal to the coverage rate difference value threshold and the importance difference value is smaller than or equal to the importance difference value threshold, selecting the corresponding termination point information with the termination point importance degree larger than the initial termination point importance degree from the termination point information set as effective termination point information, and obtaining an effective termination point information set.
Optionally, the selecting, according to the termination point importance set, termination point information that meets the screening condition from the termination point information set as effective termination point information to obtain an effective termination point information set further includes: in response to determining that the coverage difference is greater than the coverage difference threshold or the importance difference is greater than the importance difference threshold, performing the following adjustment steps: and responding to the fact that the coverage rate difference value is larger than or equal to the importance difference value, adjusting the numerical value of the initial coverage rate by a preset coverage rate increasing step length, and continuing to execute the screening step according to the adjusted initial coverage rate.
Optionally, the selecting, according to the termination point importance set, termination point information that meets the screening condition from the termination point information set as effective termination point information to obtain an effective termination point information set further includes: and adjusting the value of the importance of the initial termination point by a preset importance increasing step length in response to the fact that the coverage difference value is smaller than the importance difference value, and continuously executing the screening step according to the adjusted importance of the initial termination point.
Optionally, the determining a risk of failure and a risk of failure increase rate of the termination point represented by each piece of effective termination point information in the effective termination point information set includes: determining an initial fault risk rate sequence according to the termination point importance corresponding to the effective termination point information and each termination rate subsequence in the termination rate subsequence set; selecting the last initial fault risk rate from the initial fault risk rate sequence as the fault risk rate of the termination point represented by the effective termination point information; and generating a fault risk growth rate according to the initial fault risk rate sequence.
Optionally, the determining an initial fault risk rate sequence according to the termination point importance and each termination rate subsequence in the termination rate subsequence set corresponding to the effective termination point information includes: determining the mode in the termination rate subsequence as a termination rate mode; and determining the product value of the difference value between the last termination rate in the termination rate sub-sequence and the termination rate mode and the termination point importance degree corresponding to the effective termination point information as the initial fault risk rate corresponding to the termination rate sub-sequence.
Optionally, the generating a fault risk growth rate according to the initial fault risk sequence includes: and determining the ratio of the difference value between the penultimate initial fault risk rate and the penultimate initial fault risk rate in the initial fault risk rate sequence to the penultimate initial fault risk rate as a fault risk increase rate.
Optionally, the termination point type information included in the termination point information set is a core flow termination point or a basic flow termination point; and the determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the termination point type information and the termination point calling information sequence includes: determining the termination point of the core flow, the termination point of the basic flow and the weight of the importance of the termination point to obtain the termination point weight of the core flow, the termination point weight of the basic flow and the weight of the importance of the termination point; determining an end point score of an end point represented by each effective end point information in the effective end point information set by using the core process weight, the basic process end point weight and the end point importance weight to obtain an end point score set; determining the end point weight of the end point represented by each effective end point information in the effective end point information set according to the end point score set to obtain an end point weight set; and generating an overall risk coefficient based on the end point score set and the end point weight set.
Optionally, the determining the weights of the end point of the core flow, the end point of the basic flow, and the importance of the end point to obtain the weight of the end point of the core flow, the weight of the end point of the basic flow, and the weight of the importance of the end point includes: constructing a judgment matrix for the core process termination point, the basic process termination point and the termination point importance to obtain a first judgment matrix; and generating the weight of the end point of the core flow, the weight of the end point of the basic flow and the weight of the importance degree of the end point by using the first judgment matrix.
Optionally, the determining, by using the core process weight, the basic process end point weight, and the end point importance weight, an end point score of an end point represented by each piece of effective end point information in the effective end point information set to obtain an end point score set includes: and determining the sum of the weights corresponding to the effective end point information in the core flow end point weight, the basic flow end point weight and the end point importance weight as the end point score of the end point represented by the effective end point information.
Optionally, the determining, according to the end point score set, an end point weight of an end point represented by each piece of effective end point information in the effective end point information set to obtain an end point weight set includes: constructing a second judgment matrix according to the termination point score set; and determining the termination point weight of the termination point represented by each effective termination point information in the effective termination point information set by using the second judgment matrix to obtain a termination point weight set.
Optionally, the generating an overall risk coefficient based on the end point score set and the end point weight set includes: and determining the product value of the horizontal vector formed by each termination point score in the termination point score set and the longitudinal vector formed by each termination point weight in the termination point weight set as an overall risk coefficient.
In a second aspect, some embodiments of the present disclosure provide a fault diagnosis and warning device, the device comprising: an obtaining unit configured to obtain a set of termination point information, wherein the termination point information in the set of termination point information includes termination point type information and a termination point calling information sequence, and the termination point calling information in the termination point calling information sequence includes: the time period information, the termination times and the calling times, wherein the calling information of each termination point in the termination point calling information sequence is arranged according to the sequence of the time represented by the time period information; the selection unit is configured to select termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination times and the calling times to obtain an effective termination point information set; a first determining unit configured to determine a fault risk rate and a fault risk growth rate of a termination point characterized by each effective termination point information in the effective termination point information set; a second determining unit, configured to determine, according to the type information of the termination point and the sequence of the termination point call information, an overall risk coefficient of the termination point represented by each piece of effective termination point information in the set of effective termination point information; an alarm unit configured to perform an alarm operation in response to determining that there is a failure risk greater than the failure risk threshold, a failure risk increase greater than the failure risk increase threshold, or the overall risk coefficient is greater than the overall risk coefficient threshold.
Optionally, the selecting unit includes a first determining subunit and a first selecting subunit. The first determining subunit is configured to determine, according to the termination times and the call times, termination point importance of a termination point represented by each piece of termination point information in the termination point information set, to obtain a termination point importance set; and the first selection subunit is configured to select the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination point importance set to obtain an effective termination point information set.
Optionally, the first determining subunit includes a first determining module and a normalizing module. The first determining module is configured to determine an information entropy of a termination point represented by each piece of termination point information in the termination point information set according to the termination times and the calling times to obtain an information entropy set; and the normalization module is configured to perform normalization processing on each information entropy in the information entropy set, and take the normalized information entropy as the importance of the termination point to obtain the importance set of the termination point.
Optionally, the first determining module includes: the device comprises a segmentation sub-module, a first determination sub-module, a second determination sub-module and a third determination sub-module. The segmentation sub-module is configured to perform segmentation processing on a termination point calling information sequence included in the termination point information to obtain a termination point calling information sub-sequence set; a first determining sub-module, configured to determine a ratio of the termination number to the calling number in each termination point calling information sub-sequence in the termination point calling information sub-sequence set as a termination rate, so as to obtain a termination rate sub-sequence set; a second determining sub-module, configured to determine an arithmetic average of each termination rate in each termination rate sub-sequence in the termination rate sub-sequence set as a termination probability, to obtain a termination probability set; and the third determining submodule is configured to determine the information entropy of the termination point represented by the termination point information according to the termination probability set.
Optionally, the first selecting subunit is further configured to: according to the preset initial coverage rate and the importance of the initial termination point, executing the following screening steps: determining the difference value between the importance of the termination point corresponding to the initial coverage rate and the importance of the initial termination point as a coverage rate difference value; determining the difference value between the coverage rate corresponding to the importance of the initial termination point and the initial coverage rate as an importance difference value; and in response to the fact that the coverage rate difference value is smaller than or equal to the coverage rate difference value threshold and the importance difference value is smaller than or equal to the importance difference value threshold, selecting the corresponding termination point information with the termination point importance degree larger than the initial termination point importance degree from the termination point information set as effective termination point information, and obtaining an effective termination point information set.
Optionally, the first selecting subunit is further configured to: in response to determining that the coverage difference is greater than the coverage difference threshold or the importance difference is greater than the importance difference threshold, performing the following adjustment steps: and responding to the fact that the coverage rate difference value is larger than or equal to the importance difference value, adjusting the numerical value of the initial coverage rate by a preset coverage rate increasing step length, and continuing to execute the screening step according to the adjusted initial coverage rate.
Optionally, the first selecting subunit is further configured to: and adjusting the value of the importance of the initial termination point by a preset importance increasing step length in response to the fact that the coverage difference value is smaller than the importance difference value, and continuously executing the screening step according to the adjusted importance of the initial termination point.
Optionally, the first determining unit includes a second determining subunit, a second selecting subunit, and a first generating subunit. The second determining sub-unit is configured to determine an initial fault risk rate sequence according to the termination point importance corresponding to the effective termination point information and each termination rate sub-sequence in the termination rate sub-sequence set; a second selecting subunit, configured to select a last initial failure risk rate from the initial failure risk rate sequence as a failure risk rate of a termination point characterized by the effective termination point information; and the first generation subunit is configured to generate a fault risk increase rate according to the initial fault risk rate sequence.
Optionally, the second determining subunit includes a second determining module and a third determining module. The second determining module is configured to determine a mode in the termination rate subsequence as a termination rate mode; and a third determining module configured to determine a product value of a difference between a last termination rate in the termination rate sub-sequence and the termination rate mode and a termination point importance corresponding to the effective termination point information as an initial failure risk rate corresponding to the termination rate sub-sequence.
Optionally, the first generating subunit is further configured to determine a ratio of a difference between a penultimate initial failure risk rate and a penultimate initial failure risk rate in the initial failure risk rate sequence and the penultimate initial failure risk rate to the penultimate initial failure risk rate as a failure risk increase rate.
Optionally, the termination point type information included in the termination point information set is a core flow termination point or a basic flow termination point; and the second determining unit includes: a third determining subunit, a fourth determining subunit, a fifth determining subunit, and a second generating subunit. The third determining subunit is configured to determine the weights of the end point of the core flow, the end point of the basic flow and the importance of the end point, and obtain a weight of the end point of the core flow, a weight of the end point of the basic flow and a weight of the importance of the end point; a fourth determining subunit, configured to determine, by using the core process weight, the basic process end point weight, and the end point importance weight, an end point score of an end point represented by each effective end point information in the effective end point information set, so as to obtain an end point score set; a fifth determining subunit, configured to determine, according to the end point score set, an end point weight of an end point represented by each piece of effective end point information in the effective end point information set, to obtain an end point weight set; and a second generating subunit configured to generate an overall risk coefficient based on the end point score set and the end point weight set.
Optionally, the third determining subunit includes a first constructing module and a generating module. The construction module is configured to construct a judgment matrix for the core process termination point, the basic process termination point and the termination point importance degree to obtain a first judgment matrix; a generating module configured to generate the core flow end point weight, the basic flow end point weight, and the end point importance weight by using the first determination matrix.
Optionally, the fourth determining subunit is further configured to determine, as the end point score of the end point represented by the effective end point information, a sum of weights corresponding to the effective end point information in the core flow end point weight, the basic flow end point weight, and the end point importance weight.
Optionally, the fifth determining subunit includes a second constructing module and a fourth determining module. The second construction module is configured to construct a second judgment matrix according to the termination point score set; and a fourth determining module configured to determine, by using the second decision matrix, an endpoint weight of an endpoint represented by each piece of valid endpoint information in the valid endpoint information set, to obtain an endpoint weight set.
Optionally, the second generating subunit is further configured to determine, as the overall risk coefficient, a product value of a horizontal vector formed by each termination point score in the termination point score set and a vertical vector formed by each termination point weight in the termination point weight set.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the fault diagnosis and alarm method of some embodiments of the disclosure, timely and accurate alarm can be performed for abnormal conditions occurring in the running process of a program or software. Specifically, the reasons why the related fault diagnosis and alarm methods are not accurate enough in time are that: the alarm result of manual alarm is easily affected by subjective cognition and experience of people, the rule updating speed in the rule-based technology is slower than the program and software updating iteration speed, and the dependence on the threshold value in the counting and threshold value-based technology is too high. Based on this, the fault diagnosis and alarm method according to some embodiments of the present disclosure determines the parameters related to alarm according to the obtained end point information of each end point itself, and may determine the parameters related to alarm only according to the end point data recorded in the running process of the program or software without depending on externally established rules and set thresholds. And moreover, the abnormal degree of the program or the software in the running process is measured from the three aspects of the fault risk rate, the fault risk growth rate and the overall risk, so that more accurate and comprehensive fault diagnosis and alarm are realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a fault diagnosis and alarm method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a fault diagnosis and warning method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of fault diagnosis and warning methods according to the present disclosure;
FIG. 4 is a schematic diagram of information entropy to generate termination points in some embodiments of fault diagnosis and warning methods according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of the fault diagnosis and warning device of the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of the fault diagnosis and alarm method of some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may obtain a termination point information set 102, where termination point information in the termination point information set 102 includes terminationpoint type information 1021 and a termination point callinginformation sequence 1022, and termination point calling information in the termination point callinginformation sequence 1022 includes: the time period information, the termination times and the call times, and the termination point call information in the termination pointcall information sequence 1022 is arranged according to the sequence of the time represented by the time period information. Then, the computing device 101 may select, from the termination point information set 102, termination point information that satisfies the filtering condition as valid termination point information according to the termination number and the call number, to obtain a valid termination point information set 103. The computing device 101 may then determine a risk offailure 104 and a risk offailure growth 105 for the termination points characterized by each of the sets of validtermination point information 103 described above. Then, the computing device 101 may determine theoverall risk coefficient 106 of the termination point represented by each piece of valid termination point information in the valid termination point information set 103 according to the terminationpoint type information 1021 and the termination point callinginformation sequence 1022. Finally, the computing device 101 may perform analert operation 110 in response to determining that there is a failure risk ratio greater than the failurerisk ratio threshold 107, a failure risk growth ratio greater than the failure riskgrowth ratio threshold 108, or the above-mentionedoverall risk factor 106 greater than the overallrisk factor threshold 109.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, aflow 200 of some embodiments of a fault diagnosis and warning method according to the present disclosure is shown. The fault diagnosis and alarm method comprises the following steps:
step 201, acquiring a termination point information set.
In some embodiments, the performing agent of the fault diagnosis and alarm method (e.g., computing device 101 shown in fig. 1) may read the set of endpoint information from the log file via a wired connection or a wireless connection. Wherein the end point information may be used to characterize an end point. The termination point may be a position where an operation abnormality occurs during the operation of the software or the program. The log file records various information of software or programs in the running process. The termination point information in the termination point information set may include termination point type information and a termination point call information sequence. The termination point type information may be a type of software flow or program flow to which the termination point belongs. The type information of the termination point may be a primary flow, a secondary flow or a tertiary flow. The influence degree of the first-stage flow, the second-stage flow and the third-stage flow on the normal operation of the program or the software is gradually reduced. The termination point call information in the termination point call information sequence may include: time period information, termination times and call times. The time period information, the termination times and the call times in the termination point call information may indicate the times and the call times of the abnormal operation occurring at the position of the termination point in the time period represented by the time period information. Each of the terminating point call information in the terminating point call information sequence may be arranged according to the sequence of the time represented by the time period information. The time period represented by the time period information included in the termination point call information at the head in the termination point call information sequence may be earlier than the time period represented by the time period information included in the termination point call information at the tail.
Step 202, selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination times and the calling times, and obtaining an effective termination point information set.
In some embodiments, the executing body selects, according to the termination number and the call number, termination point information that satisfies the filtering condition from the termination point information set as valid termination point information to obtain a valid termination point information set, and may include the following steps:
first, determining the ratio of the sum of each termination number in the termination point calling information sequence included in each termination point information in the termination point information set to the sum of each calling number as the termination point importance. The filtering condition may be that the importance of the termination point corresponding to the termination point information is greater than a preset threshold of importance of the termination point.
And secondly, selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the importance of the termination point to obtain an effective termination point information set.
Step 203, determining the fault risk rate and the fault risk growth rate of the termination point represented by each effective termination point information in the effective termination point information set.
In some embodiments, the determining, by the execution subject, a fault risk rate and a fault risk growth rate of the termination point characterized by each piece of effective termination point information in the set of effective termination point information may include:
first, the effective score of the end point of the effective end point information is determined as the failure risk.
And secondly, determining the difference value between the ratio of the termination times to the calling times in the last termination point calling information in the termination point calling information sequence included in the effective termination point information and the ratio of the termination times to the calling times in the first termination point calling information as the fault risk growth rate.
And 204, determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the termination point type information and the termination point calling information sequence.
In some embodiments, the determining, by the execution main body, the overall risk coefficient of the termination point represented by each piece of valid termination point information in the valid termination point information set according to the termination point type information and the termination point call information sequence may include:
the method comprises the steps of firstly, determining a product value of a fault risk rate corresponding to each effective termination point information in the effective termination point information set and a type weight value corresponding to the termination point type information included in the effective termination point information as an independent risk coefficient, and obtaining an independent risk coefficient set. The type weight value corresponding to the termination point type information may be preset.
And secondly, determining the arithmetic mean value of each independent risk coefficient in the independent risk coefficient set as the overall risk coefficient.
Step 205, in response to determining that there is a fault risk ratio greater than the fault risk ratio threshold, a fault risk growth ratio greater than the fault risk growth ratio threshold, or an overall risk coefficient greater than the overall risk coefficient threshold, performing an alarm operation.
In some embodiments, the performing agent may perform the alert operation in response to determining that there is a failure risk ratio greater than a failure risk ratio threshold, a failure risk growth ratio greater than a failure risk growth ratio threshold, or the overall risk factor is greater than an overall risk factor threshold. Wherein, the failure risk rate threshold, the failure risk increase rate threshold and the overall risk coefficient may be preset. In practice, the values of the fault risk rate threshold, the fault risk growth rate threshold, and the overall risk coefficient may be set according to an actual application scenario, which is not limited herein. The alarm operation may be sending alarm information to the monitoring terminal. And the alarm equipment can also be controlled to send out alarm prompt tones and the like.
The above embodiments of the present disclosure have the following advantages: by the fault diagnosis and alarm method of some embodiments of the disclosure, timely and accurate alarm can be performed for abnormal conditions occurring in the running process of a program or software. Specifically, the reasons why the related fault diagnosis and alarm methods are not accurate enough in time are that: the alarm result of manual alarm is easily affected by subjective cognition and experience of people, the rule updating speed in the rule-based technology is slower than the program and software updating iteration speed, and the dependence on the threshold value in the counting and threshold value-based technology is too high. Based on this, the fault diagnosis and alarm method according to some embodiments of the present disclosure determines the parameters related to alarm according to the obtained end point information of each end point itself, and may determine the parameters related to alarm only according to the end point data recorded in the running process of the program or software without depending on externally established rules and set thresholds. And moreover, the abnormal degree of the program or the software in the running process is measured from the three aspects of the fault risk rate, the fault risk growth rate and the overall risk, so that more accurate and comprehensive alarm is realized.
With further reference to FIG. 3, aflow 300 of further embodiments of a fault diagnosis and warning method is illustrated. Theprocess 300 of the fault diagnosis and warning method includes the following steps:
step 301, a termination point information set is obtained.
In some embodiments, the performing agent of the fault diagnosis and alarm method (e.g., computing device 101 shown in fig. 1) may obtain the set of endpoint information via a wired connection or a wireless connection. Wherein the end point information may be used to characterize an end point. The termination point may be a position where an operation abnormality occurs during the operation of the software or the program. The termination point information in the termination point information set may include termination point type information and a termination point call information sequence. The termination point type information may be a type of software flow or program flow to which the termination point belongs. The termination point information in the termination point information set may include termination point type information of a core flow termination point, a basic flow termination point, or a normal flow termination point. The influence degree of the core flow termination point, the basic flow termination point and the common flow termination point on the normal operation of the program or the software is gradually reduced. The termination point call information in the termination point call information sequence may include: time period information, termination times and call times. The time period information, the termination times and the call times in the termination point call information may indicate the times and the call times of the abnormal operation occurring at the position of the termination point in the time period represented by the time period information. Each of the terminating point call information in the terminating point call information sequence may be arranged according to a sequence of times represented by the time period information. The time period represented by the time period information included in the termination point call information at the head of the termination point call information sequence may be earlier than the time period represented by the time period information included in the termination point call information at the tail.
Step 302, determining the termination point importance of the termination point represented by each termination point information in the termination point information set according to the termination times and the calling times, so as to obtain a termination point importance set.
In some embodiments, the execution body may determine, as the importance of the termination point, a ratio of a sum of respective termination times in the termination point call information sequence included in each piece of the termination point information in the set of termination point information to a sum of respective call times.
In some optional implementation manners of some embodiments, the determining, by the execution main body, the termination point importance of the termination point represented by each piece of termination point information in the termination point information set according to the termination number and the call number to obtain the termination point importance set may include the following steps:
and step one, determining the information entropy of the termination point represented by each termination point information in the termination point information set according to the termination times and the calling times to obtain an information entropy set.
Optionally, the determining, by the execution main body, the information entropy of the termination point represented by each termination point information in the termination point information set according to the termination number and the call number to obtain an information entropy set may include the following sub-steps:
the first substep, the end point call information sequence included in the above-mentioned end point information is processed by segmentation, get the end point call information subsequence set. The terminating point call information sequence may be segmented according to a preset number of terminating point call information. The number of the terminal point calling information included in each terminal point calling information subsequence in the terminal point calling information subsequence set is equal to the number of the preset terminal point calling information.
And a second substep, determining the ratio of the termination times and the calling times in each termination point calling information subsequence in the termination point calling information subsequence set as a termination rate, and obtaining a termination rate subsequence set.
And a third substep of determining the arithmetic mean of each termination rate in each termination rate subsequence in the termination rate subsequence set as a termination probability to obtain a termination probability set.
And a fourth substep of determining the information entropy of the termination point represented by the termination point information according to the termination probability set. The information entropy formula can be used to determine the information entropy of the termination point represented by the termination point information.
As an example, referring to fig. 4, first, a segmentation process may be performed on the termination pointcall information sequence 402 included in thetermination point information 401, so as to obtain aset 403 of termination point call information subsequences. Then, the ratio of the number of times of termination to the number of times of call in each of the termination point call information subsequences in the termination point call information subsequence set 403 is determined as a termination rate, and a termination rate subsequence set 404 is obtained. Next, the arithmetic mean of each termination rate in each termination rate subsequence in the termination rate subsequence set 404 is determined as a termination probability, and a termination probability set 405 is obtained. Finally, according to the termination probability set 405, aninformation entropy 406 of the termination point represented by thetermination point information 401 is determined.
And secondly, carrying out normalization processing on each information entropy in the information entropy set, and taking the normalized information entropy as the importance of the termination point to obtain the importance set of the termination point. The ratio of each information entropy in the information entropy set to the maximum information entropy in the information entropy set may be determined as the importance of the termination point.
Therefore, the importance degree of the termination point is objectively evaluated by using the information entropy. The larger the information entropy value, the higher the degree of importance of the corresponding end point can be indicated.
And 303, selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination point importance set to obtain an effective termination point information set.
In some embodiments, the execution main body may select, according to the termination point importance set, termination point information that satisfies a filtering condition from the termination point information set as valid termination point information, to obtain a valid termination point information set. The filtering condition may be that the importance of the termination point corresponding to the termination point information is greater than the arithmetic average of the importance of each termination point in the set of importance of the termination point.
In some optional implementation manners of some embodiments, the executing body selects, according to the termination point importance set, termination point information that meets a filtering condition from the termination point information set as effective termination point information to obtain an effective termination point information set, and may include the following steps:
according to the preset initial coverage rate and the importance of the initial termination point, executing the following screening steps:
firstly, determining the difference value between the importance of the termination point corresponding to the initial coverage rate and the importance of the initial termination point as a coverage rate difference value. Wherein the initial coverage and the initial termination point importance may be preset. Coverage is the percentage of the amount of termination point information in the set of termination point information. The importance of the termination point corresponding to the initial coverage may be the importance of the termination point with the smallest value among the importance of the termination points of the previous initial coverage with the largest importance of the termination point in the information set of the termination point.
And secondly, determining the difference value between the coverage rate corresponding to the importance of the initial termination point and the initial coverage rate as an importance difference value. The coverage rate corresponding to the initial termination point importance may be a percentage of the termination point importance in the termination point importance set, where the termination point importance is greater than or equal to the initial termination point importance.
And thirdly, in response to the fact that the coverage rate difference value is smaller than or equal to the coverage rate difference value threshold and the importance difference value is smaller than or equal to the importance difference value threshold, selecting the corresponding termination point information with the termination point importance degree larger than the initial termination point importance degree from the termination point information set as effective termination point information, and obtaining an effective termination point information set. The coverage difference threshold and the importance difference threshold may be preset.
Optionally, the executing body selects, according to the termination point importance set, termination point information that meets the filtering condition from the termination point information set as effective termination point information to obtain an effective termination point information set, and may further include the following steps:
in response to determining that the coverage difference is greater than the coverage difference threshold or the importance difference is greater than the importance difference threshold, performing the following adjustment steps:
and responding to the fact that the coverage rate difference value is larger than or equal to the importance difference value, adjusting the numerical value of the initial coverage rate by a preset coverage rate increasing step length, and continuing to execute the screening step according to the adjusted initial coverage rate.
Optionally, the executing body selects, according to the termination point importance set, termination point information that meets the filtering condition from the termination point information set as effective termination point information to obtain an effective termination point information set, and may further include the following steps:
and adjusting the value of the importance of the initial termination point by a preset importance increasing step length in response to the fact that the coverage difference value is smaller than the importance difference value, and continuing to execute the screening step according to the adjusted importance of the initial termination point.
Therefore, the re-viewpoint with lower importance of the termination point can be used as the noise termination point, and the numerical value of the importance of the initial termination point for eliminating the noise termination point is determined by dynamically adjusting the importance of the initial termination point and the initial coverage rate. Therefore, the interference of the noise termination point on the final alarm operation can be avoided, and the alarm accuracy is improved.
And step 304, determining an initial fault risk rate sequence according to the termination point importance corresponding to the effective termination point information and each termination rate subsequence in the termination rate subsequence set.
In some embodiments, the execution body may determine a product value of an arithmetic average of respective termination rates in the termination rate sub-sequence and a termination point importance corresponding to the effective termination point information as the initial failure risk rate corresponding to the termination rate sub-sequence.
In some optional implementation manners of some embodiments, the determining, by the execution main body, an initial failure risk rate sequence according to the termination point importance and each termination rate subsequence in the termination rate subsequence set corresponding to the effective termination point information may include:
first, determining the mode in the termination rate subsequence as a termination rate mode.
And secondly, determining the product value of the difference value between the last termination rate in the termination rate subsequence and the termination rate mode and the termination point importance degree corresponding to the effective termination point information as the initial fault risk rate corresponding to the termination rate subsequence.
Step 305, selecting the last initial fault risk rate from the initial fault risk rate sequence as the fault risk rate of the termination point characterized by the effective termination point information.
In some embodiments, the execution subject may select a last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point characterized by the valid termination point information.
And step 306, generating a fault risk growth rate according to the initial fault risk rate sequence.
In some embodiments, the execution principal may determine a difference between a last-but-one initial failure risk rate and a positive first initial failure risk rate in the sequence of initial failure risk rates as a failure risk growth rate.
In some optional implementations of some embodiments, the execution subject may determine a ratio of a difference between a penultimate initial failure risk rate and a penultimate initial failure risk rate in the initial failure risk rate sequence and the penultimate initial failure risk rate as the failure risk increase rate.
And 307, determining the termination point of the core flow, the termination point of the basic flow and the importance weight of the termination point, and obtaining the termination point weight of the core flow, the termination point weight of the basic flow and the importance weight of the termination point.
In some embodiments, the execution subject may determine the termination point of the core flow, the termination point of the basic flow, and the importance weight of the termination point, and obtain the termination point weight of the core flow, the termination point weight of the basic flow, and the importance weight of the termination point. The weights of the importance of the core flow termination point, the basic flow termination point, and the termination point may be preset.
In some optional implementation manners of some embodiments, the determining, by the execution agent, weights of a termination point of the core flow, a termination point of the basic flow, and importance of the termination point to obtain a termination point weight of the core flow, a termination point weight of the basic flow, and an importance weight of the termination point may include the following steps:
first, a judgment matrix is constructed for the core flow termination point, the basic flow termination point and the termination point importance, and a first judgment matrix is obtained. The numerical values in the first judgment matrix may be input by a user.
And a second step of generating the weight of the end point of the core flow, the weight of the end point of the basic flow and the weight of the importance degree of the end point by using the first judgment matrix. The feature vector of the first determination matrix may be solved by using an analytic hierarchy process, and values in the feature vector of the first determination matrix are respectively used as a weight of a core process termination point, a weight of the basic process termination point, and a weight of importance of the termination point.
Therefore, the weight of the termination point of the core process, the weight of the termination point of the basic process and the weight of the importance degree of the termination point are comprehensively determined by an analytic hierarchy process according to a decomposition and comparison judgment mode. The influence of subjective factors when the weight is determined artificially is avoided to a certain extent.
And 308, determining the end point score of the end point represented by each effective end point information in the effective end point information set by using the core process weight, the basic process end point weight and the end point importance weight to obtain an end point score set.
In some embodiments, the execution subject may determine, by using the core flow weight, the basic flow termination point weight, and the termination point importance weight, a termination point score of a termination point represented by each piece of effective termination point information in the effective termination point information set, so as to obtain a termination point score set.
In some optional implementation manners of some embodiments, the execution subject may further determine, as the end point score of the end point represented by the effective end point information, a sum of weights corresponding to the effective end point information in the core flow end point weight, the basic flow end point weight, and the end point importance weight. The weight corresponding to the effective end point information may be an end point importance weight, and a weight that matches end point type information included in the effective end point information, among the basic flow end point weight and the end point importance weight.
Step 309, determining the end point weight of the end point represented by each effective end point information in the effective end point information set according to the end point score set, to obtain an end point weight set.
In some embodiments, the execution subject may obtain the termination point weight set by taking a ratio of each termination point score in the termination point score set to a sum of each termination point score in the termination point score set as a termination point weight of the termination point.
In some optional implementation manners of some embodiments, the determining, by the execution main body, a termination point weight of a termination point characterized by each piece of effective termination point information in the effective termination point information set according to the termination point score set to obtain a termination point weight set may include the following steps:
and step one, constructing a second judgment matrix according to the end point score set. The ratio of the scores of two termination points in the termination point score set may be used as the numerical value in the second determination matrix.
And secondly, determining the termination point weight of the termination point represented by each effective termination point information in the effective termination point information set by using the second judgment matrix to obtain a termination point weight set. The feature vector of the second decision matrix may be solved by using an analytic hierarchy process, and a numerical value in the feature vector of the second decision matrix is respectively used as a termination point weight of a termination point represented by each piece of effective termination point information in the effective termination point information set.
Therefore, the termination point weight is comprehensively determined by an analytic and comparative mode through an analytic hierarchy process. The influence of subjective factors when the weight is determined artificially is avoided to a certain extent.
And step 310, generating an overall risk coefficient based on the end point score set and the end point weight set.
In some embodiments, the execution subject may generate an overall risk coefficient based on the set of endpoint scores and the set of endpoint weights.
In some optional implementation manners of some embodiments, the execution subject may determine, as the overall risk factor, a product value of a horizontal vector formed by each termination point score in the termination point score set and a vertical vector formed by each termination point weight in the termination point weight set. The end point weight and the end point score at the same dimension in the vertical vector formed by the end point weights and the horizontal vector formed by the end point scores correspond to the same effective end point information.
Thus, the overall risk of the software or program may be determined in conjunction with the endpoint score and endpoint weight.
Step 311, in response to determining that there is a fault risk ratio greater than the fault risk ratio threshold, a fault risk growth ratio greater than the fault risk growth ratio threshold, or an overall risk coefficient greater than the overall risk coefficient threshold, performing an alarm operation.
In some embodiments, the specific implementation manner and technical effects ofstep 311 may refer to step 205 in those embodiments corresponding to fig. 2, and are not described herein again.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, theflow 300 of the fault diagnosis and alarm method in some embodiments corresponding to fig. 3 embodies the steps of screening valid termination point information from the termination point information set by using the information entropy, and determining the overall risk coefficient by using the decision matrix. Therefore, the scheme described in the embodiments can accurately determine the degree of the abnormal condition occurring in the running process of the program or the code, and further perform more accurate alarm.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a fault diagnosis and warning device, which correspond to those of the method embodiments illustrated in fig. 2, and which may be particularly applicable in various electronic devices.
As shown in fig. 5, the fault diagnosis andwarning device 500 of some embodiments includes: anacquisition unit 501, aselection unit 502, afirst determination unit 503, asecond determination unit 504 and analarm unit 505. The obtaining unit 501 is configured to obtain a termination point information set, where termination point information in the termination point information set includes termination point type information and a termination point calling information sequence, and termination point calling information in the termination point calling information sequence includes: the time period information, the termination times and the calling times, wherein the calling information of each termination point in the termination point calling information sequence is arranged according to the sequence of the time represented by the time period information; a selecting unit 502 configured to select, according to the termination times and the call times, termination point information that meets the screening condition from the termination point information set as effective termination point information, to obtain an effective termination point information set; a first determining unit 503, configured to determine a risk of failure and a risk of failure increase rate of the termination point represented by each piece of effective termination point information in the set of effective termination point information; a second determining unit 504, configured to determine, according to the type information of the termination point and the sequence of the termination point call information, an overall risk coefficient of the termination point represented by each piece of effective termination point information in the set of effective termination point information; an alarm unit 505 configured to perform an alarm operation in response to determining that there is a failure risk ratio greater than the failure risk ratio threshold, a failure risk increase ratio greater than the failure risk increase ratio threshold, or the above-mentioned overall risk coefficient greater than the overall risk coefficient threshold.
In an optional implementation manner of some embodiments, the selection unit includes a first determination subunit and a first selection subunit. The first determining subunit is configured to determine, according to the termination times and the call times, termination point importance of a termination point represented by each piece of termination point information in the termination point information set, to obtain a termination point importance set; and the first selection subunit is configured to select the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination point importance set to obtain an effective termination point information set.
In an optional implementation manner of some embodiments, the first determining subunit includes a first determining module and a normalizing module. The first determining module is configured to determine an information entropy of a termination point represented by each piece of termination point information in the termination point information set according to the termination times and the calling times to obtain an information entropy set; and the normalization module is configured to perform normalization processing on each information entropy in the information entropy set, and take the normalized information entropy as the importance of the termination point to obtain the importance set of the termination point.
In an optional implementation manner of some embodiments, the first determining module includes: the device comprises a segmentation sub-module, a first determination sub-module, a second determination sub-module and a third determination sub-module. The segmentation sub-module is configured to perform segmentation processing on a termination point calling information sequence included in the termination point information to obtain a termination point calling information sub-sequence set; a first determining sub-module, configured to determine a ratio of the termination number to the calling number in each termination point calling information sub-sequence in the termination point calling information sub-sequence set as a termination rate, so as to obtain a termination rate sub-sequence set; a second determining sub-module, configured to determine an arithmetic average of each termination rate in each termination rate sub-sequence in the termination rate sub-sequence set as a termination probability, to obtain a termination probability set; and the third determining submodule is configured to determine the information entropy of the termination point represented by the termination point information according to the termination probability set.
In an optional implementation of some embodiments, the first selecting subunit is further configured to: according to the preset initial coverage rate and the importance of the initial termination point, executing the following screening steps: determining the difference value between the importance of the termination point corresponding to the initial coverage rate and the importance of the initial termination point as a coverage rate difference value; determining the difference value between the coverage rate corresponding to the importance of the initial termination point and the initial coverage rate as an importance difference value; and in response to the fact that the coverage rate difference value is smaller than or equal to the coverage rate difference value threshold and the importance difference value is smaller than or equal to the importance difference value threshold, selecting the corresponding termination point information with the termination point importance degree larger than the initial termination point importance degree from the termination point information set as effective termination point information, and obtaining an effective termination point information set.
In an optional implementation of some embodiments, the first selecting subunit is further configured to: in response to determining that the coverage difference is greater than the coverage difference threshold or the importance difference is greater than the importance difference threshold, performing the following adjustment steps: and responding to the fact that the coverage rate difference value is larger than or equal to the importance difference value, adjusting the numerical value of the initial coverage rate by a preset coverage rate increasing step length, and continuing to execute the screening step according to the adjusted initial coverage rate.
In an optional implementation of some embodiments, the first selecting subunit is further configured to: and adjusting the value of the importance of the initial termination point by a preset importance increasing step length in response to the fact that the coverage difference value is smaller than the importance difference value, and continuously executing the screening step according to the adjusted importance of the initial termination point.
In an optional implementation manner of some embodiments, the first determining unit includes a second determining subunit, a second selecting subunit, and a first generating subunit. The second determining sub-unit is configured to determine an initial fault risk rate sequence according to the termination point importance corresponding to the effective termination point information and each termination rate sub-sequence in the termination rate sub-sequence set; a second selecting subunit, configured to select a last initial failure risk rate from the initial failure risk rate sequence as a failure risk rate of a termination point characterized by the effective termination point information; and the first generation subunit is configured to generate a fault risk increase rate according to the initial fault risk rate sequence.
In an optional implementation manner of some embodiments, the second determining subunit includes a second determining module and a third determining module. The second determining module is configured to determine a mode in the termination rate subsequence as a termination rate mode; and a third determining module configured to determine a product value of a difference between a last termination rate in the termination rate sub-sequence and the termination rate mode and a termination point importance corresponding to the effective termination point information as an initial failure risk rate corresponding to the termination rate sub-sequence.
In an optional implementation manner of some embodiments, the first generating subunit is further configured to determine a ratio of a difference between a penultimate initial failure risk rate and a penultimate initial failure risk rate in the initial failure risk rate sequence and the penultimate initial failure risk rate as the failure risk increase rate.
In an optional implementation manner of some embodiments, the termination point type information included in the termination point information set is a core flow termination point or a basic flow termination point; and the second determining unit includes: a third determining subunit, a fourth determining subunit, a fifth determining subunit, and a second generating subunit. The third determining subunit is configured to determine the weights of the end point of the core flow, the end point of the basic flow and the importance of the end point, and obtain a weight of the end point of the core flow, a weight of the end point of the basic flow and a weight of the importance of the end point; a fourth determining subunit, configured to determine, by using the core process weight, the basic process end point weight, and the end point importance weight, an end point score of an end point represented by each effective end point information in the effective end point information set, so as to obtain an end point score set; a fifth determining subunit, configured to determine, according to the end point score set, an end point weight of an end point represented by each piece of effective end point information in the effective end point information set, to obtain an end point weight set; and a second generating subunit configured to generate an overall risk coefficient based on the end point score set and the end point weight set.
In an alternative implementation of some embodiments, the third determining subunit includes a first constructing module and a generating module. The construction module is configured to construct a judgment matrix for the core process termination point, the basic process termination point and the termination point importance degree to obtain a first judgment matrix; a generating module configured to generate the core flow end point weight, the basic flow end point weight, and the end point importance weight by using the first determination matrix.
In an optional implementation manner of some embodiments, the fourth determining subunit is further configured to determine, as the end point score of the end point represented by the effective end point information, a sum of weights corresponding to the effective end point information in the core flow end point weight, the base flow end point weight, and the end point importance weight.
In an alternative implementation of some embodiments, the fifth determining subunit includes a second constructing module and a fourth determining module. The second construction module is configured to construct a second judgment matrix according to the termination point score set; and a fourth determining module configured to determine, by using the second decision matrix, an endpoint weight of an endpoint represented by each piece of valid endpoint information in the valid endpoint information set, to obtain an endpoint weight set.
In an optional implementation manner of some embodiments, the second generation subunit is further configured to determine, as the overall risk coefficient, a product value of a horizontal vector composed of each termination point score in the termination point score set and a vertical vector composed of each termination point weight in the termination point weight set.
It will be understood that the elements described in theapparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to theapparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, shown is a schematic diagram of anelectronic device 600 suitable for use in implementing some embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6,electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In theRAM 603, various programs and data necessary for the operation of theelectronic apparatus 600 are also stored. Theprocessing device 601, theROM 602, and theRAM 603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
Generally, the following devices may be connected to the I/O interface 605:input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.;output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and acommunication device 609. The communication means 609 may allow theelectronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates anelectronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through thecommunication device 609, or installed from thestorage device 608, or installed from theROM 602. The computer program, when executed by theprocessing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a termination point information set, wherein the termination point information in the termination point information set includes termination point type information and a termination point calling information sequence, and the termination point calling information in the termination point calling information sequence includes: the time period information, the termination times and the calling times, wherein the calling information of each termination point in the termination point calling information sequence is arranged according to the sequence of the time represented by the time period information; selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination times and the calling times to obtain an effective termination point information set; determining the fault risk rate and the fault risk growth rate of the termination point represented by each effective termination point information in the effective termination point information set; determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the type information of the termination point and the calling information sequence of the termination point; and executing an alarm operation in response to determining that the fault risk ratio larger than the fault risk ratio threshold value exists, the fault risk increase ratio larger than the fault risk increase ratio threshold value exists or the overall risk coefficient is larger than the overall risk coefficient threshold value.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a selection unit, a first determination unit, a second determination unit, and an alarm unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the acquisition unit may also be described as a "unit that acquires a set of termination point information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

Claims (18)

1. A fault diagnosis and warning method comprising:
acquiring a termination point information set, wherein the termination point information in the termination point information set comprises termination point type information and a termination point calling information sequence, and the termination point calling information in the termination point calling information sequence comprises: the method comprises the steps that time period information, termination times and calling times are obtained, and each piece of termination point calling information in a termination point calling information sequence is arranged according to the sequence of time represented by the time period information;
selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination times and the calling times to obtain an effective termination point information set;
determining a fault risk rate and a fault risk growth rate of a termination point represented by each effective termination point information in the effective termination point information set;
determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the termination point type information and the termination point calling information sequence;
in response to determining that there is a failure risk ratio greater than the failure risk ratio threshold, a failure risk growth ratio greater than the failure risk growth ratio threshold, or the overall risk coefficient is greater than the overall risk coefficient threshold, performing an alarm operation.
2. The method according to claim 1, wherein the selecting, according to the termination number and the call number, termination point information that satisfies a filtering condition from the termination point information set as valid termination point information to obtain a valid termination point information set includes:
determining the importance of the termination point represented by each piece of termination point information in the termination point information set according to the termination times and the calling times to obtain a termination point importance set;
and selecting the termination point information meeting the screening condition from the termination point information set as effective termination point information according to the termination point importance set to obtain an effective termination point information set.
3. The method according to claim 2, wherein the determining, according to the termination number and the call number, the termination point importance of the termination point represented by each piece of termination point information in the termination point information set to obtain a termination point importance set includes:
determining the information entropy of the termination points represented by each piece of termination point information in the termination point information set according to the termination times and the calling times to obtain an information entropy set;
and carrying out normalization processing on each information entropy in the information entropy set, and taking the normalized information entropy as the importance of the termination point to obtain the importance set of the termination point.
4. The method according to claim 3, wherein the determining, according to the number of times of termination and the number of times of invocation, the information entropy of the termination point characterized by each piece of termination point information in the set of termination point information to obtain a set of information entropy includes:
carrying out segmentation processing on a termination point calling information sequence included by the termination point information to obtain a termination point calling information subsequence set;
determining the ratio of the termination times to the calling times in each termination point calling information subsequence in the termination point calling information subsequence set as a termination rate to obtain a termination rate subsequence set;
determining the arithmetic mean value of each termination rate in each termination rate subsequence in the termination rate subsequence set as a termination probability to obtain a termination probability set;
and determining the information entropy of the termination point represented by the termination point information according to the termination probability set.
5. The method according to claim 2, wherein the selecting, according to the set of importance degrees of termination points, termination point information that satisfies a filtering condition from the set of termination point information as valid termination point information to obtain a set of valid termination point information includes:
according to the preset initial coverage rate and the importance of the initial termination point, executing the following screening steps:
determining the difference value between the importance of the termination point corresponding to the initial coverage rate and the importance of the initial termination point as a coverage rate difference value;
determining the difference value between the coverage rate corresponding to the importance of the initial termination point and the initial coverage rate as an importance difference value;
and in response to the fact that the coverage rate difference value is smaller than or equal to the coverage rate difference value threshold and the importance difference value is smaller than or equal to the importance difference value threshold, selecting the corresponding termination point information with the termination point importance degree larger than the initial termination point importance degree from the termination point information set as effective termination point information, and obtaining an effective termination point information set.
6. The method according to claim 5, wherein the selecting, according to the set of importance degrees of termination points, termination point information that satisfies a filtering condition from the set of termination point information as valid termination point information to obtain a set of valid termination point information further comprises:
in response to determining that the coverage difference is greater than the coverage difference threshold or the importance difference is greater than the importance difference threshold, performing the following adjustment steps:
and adjusting the value of the initial coverage by a preset coverage increasing step length in response to the determination that the coverage difference value is greater than or equal to the importance difference value, and continuing to execute the screening step according to the adjusted initial coverage.
7. The method according to claim 6, wherein the selecting, according to the set of importance degrees of termination points, termination point information that satisfies a filtering condition from the set of termination point information as valid termination point information to obtain a set of valid termination point information further comprises:
adjusting the value of the importance of the initial termination point by a preset importance increasing step length in response to determining that the coverage difference value is smaller than the importance difference value, and continuing to execute the screening step according to the adjusted importance of the initial termination point.
8. The method of claim 4, wherein the determining a risk of failure rate and a risk of failure growth rate for the termination points characterized by each valid termination point information in the set of valid termination point information comprises:
determining an initial fault risk rate sequence according to the termination point importance corresponding to the effective termination point information and each termination rate subsequence in the termination rate subsequence set;
selecting the last initial fault risk rate from the initial fault risk rate sequence as the fault risk rate of the termination point represented by the effective termination point information;
and generating a fault risk growth rate according to the initial fault risk rate sequence.
9. The method according to claim 8, wherein the determining an initial fault risk rate sequence according to the termination point importance and each termination rate subsequence in the termination rate subsequence set corresponding to the valid termination point information comprises:
determining a mode in the termination subsequence as a termination mode;
and determining the product value of the difference value between the last termination rate in the termination rate sub-sequence and the termination rate mode and the termination point importance degree corresponding to the effective termination point information as the initial fault risk rate corresponding to the termination rate sub-sequence.
10. The method of claim 8, wherein said generating a fault risk growth rate from said initial fault risk rate sequence comprises:
and determining the ratio of the difference value of the penultimate initial fault risk rate and the penultimate initial fault risk rate in the initial fault risk rate sequence to the penultimate initial fault risk rate as a fault risk increase rate.
11. The method according to claim 2, wherein the termination point information in the termination point information set includes termination point type information that is a core flow termination point or a basic flow termination point; and
the determining the overall risk coefficient of the termination point represented by each effective termination point information in the effective termination point information set according to the termination point type information and the termination point calling information sequence includes:
determining the termination point of the core flow, the termination point of the basic flow and the weight of the importance of the termination point to obtain the termination point weight of the core flow, the termination point weight of the basic flow and the weight of the importance of the termination point;
determining a termination point score of a termination point represented by each effective termination point information in the effective termination point information set by using the core process weight, the basic process termination point weight and the termination point importance weight to obtain a termination point score set;
determining the termination point weight of the termination point represented by each effective termination point information in the effective termination point information set according to the termination point score set to obtain a termination point weight set;
generating an overall risk coefficient based on the set of end point scores and the set of end point weights.
12. The method of claim 11, wherein the determining weights of the end point of the core flow, the end point of the basic flow and the importance of the end point to obtain the weight of the end point of the core flow, the weight of the end point of the basic flow and the weight of the importance of the end point comprises:
constructing a judgment matrix for the core process termination point, the basic process termination point and the importance of the termination point to obtain a first judgment matrix;
and generating the weight of the core process end point, the weight of the basic process end point and the weight of the importance of the end point by using the first judgment matrix.
13. The method according to claim 11, wherein the determining, by using the core process weight, the basic process termination point weight, and the termination point importance weight, a termination point score of a termination point characterized by each piece of effective termination point information in the effective termination point information set to obtain a termination point score set includes:
and determining the sum of the weights corresponding to the effective termination point information in the core flow termination point weight, the basic flow termination point weight and the termination point importance weight as the termination point score of the termination point represented by the effective termination point information.
14. The method of claim 11, wherein determining, according to the set of end point scores, an end point weight of an end point characterized by each piece of effective end point information in the set of effective end point information to obtain a set of end point weights comprises:
constructing a second judgment matrix according to the ending point score set;
and determining the termination point weight of the termination point represented by each effective termination point information in the effective termination point information set by using the second judgment matrix to obtain a termination point weight set.
15. The method of claim 11, wherein generating an overall risk coefficient based on the set of end point scores and the set of end point weights comprises:
and determining the product value of the horizontal vector formed by each termination point score in the termination point score set and the longitudinal vector formed by each termination point weight in the termination point weight set as an overall risk coefficient.
16. A fault diagnosis and warning device comprising:
an obtaining unit configured to obtain a set of termination point information, wherein the termination point information in the set of termination point information includes termination point type information and a termination point call information sequence, and the termination point call information in the termination point call information sequence includes: the method comprises the steps that time period information, termination times and calling times are obtained, and each piece of termination point calling information in a termination point calling information sequence is arranged according to the sequence of time represented by the time period information;
the selecting unit is configured to select termination point information meeting a screening condition from the termination point information set as effective termination point information according to the termination times and the calling times to obtain an effective termination point information set;
a first determining unit configured to determine a fault risk rate and a fault risk growth rate of a termination point characterized by each effective termination point information in the effective termination point information set;
a second determining unit configured to determine, according to the termination point type information and the termination point call information sequence, an overall risk coefficient of a termination point represented by each effective termination point information in the effective termination point information set;
an alarm unit configured to perform an alarm operation in response to determining that there is a failure risk ratio greater than a failure risk ratio threshold, a failure risk growth ratio greater than a failure risk growth ratio threshold, or the overall risk coefficient is greater than an overall risk coefficient threshold.
17. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-15.
18. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-15.
CN202111312151.7A2021-11-082021-11-08Fault diagnosis and alarm method, device, electronic equipment and computer readable mediumActiveCN114036020B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111312151.7ACN114036020B (en)2021-11-082021-11-08Fault diagnosis and alarm method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111312151.7ACN114036020B (en)2021-11-082021-11-08Fault diagnosis and alarm method, device, electronic equipment and computer readable medium

Publications (2)

Publication NumberPublication Date
CN114036020Atrue CN114036020A (en)2022-02-11
CN114036020B CN114036020B (en)2025-08-19

Family

ID=80143184

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111312151.7AActiveCN114036020B (en)2021-11-082021-11-08Fault diagnosis and alarm method, device, electronic equipment and computer readable medium

Country Status (1)

CountryLink
CN (1)CN114036020B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080263400A1 (en)*2007-04-232008-10-23Microsoft CorporationFault insertion system
US20160323163A1 (en)*2013-12-192016-11-03Bae Systems PlcMethod and apparatus for detecting fault conditions in a network
CN110224858A (en)*2019-05-162019-09-10平安科技(深圳)有限公司Alarm method and relevant apparatus based on log
CN112734138A (en)*2021-01-272021-04-30珠海格力电器股份有限公司Fault early warning method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080263400A1 (en)*2007-04-232008-10-23Microsoft CorporationFault insertion system
US20160323163A1 (en)*2013-12-192016-11-03Bae Systems PlcMethod and apparatus for detecting fault conditions in a network
CN110224858A (en)*2019-05-162019-09-10平安科技(深圳)有限公司Alarm method and relevant apparatus based on log
CN112734138A (en)*2021-01-272021-04-30珠海格力电器股份有限公司Fault early warning method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN114036020B (en)2025-08-19

Similar Documents

PublicationPublication DateTitle
CN108880931B (en)Method and apparatus for outputting information
CN113360359A (en)Index abnormal data tracing method, device, equipment and storage medium
CN114358581B (en) Method, device, equipment, and storage medium for determining abnormal thresholds of performance indicators
CN114500339A (en)Node bandwidth monitoring method and device, electronic equipment and storage medium
CN114928574B (en)Information transmission method, apparatus, electronic device, and computer-readable medium
CN116028255A (en) Abnormal detection method and device, system, electronic equipment and storage medium
CN111932348B (en)Alarm method and device for abnormal order, electronic equipment and readable medium
CN113486968B (en)Method, device, equipment and medium for monitoring life cycle of camera
CN119316364A (en) Network traffic optimization method, device, equipment, storage medium and product
CN114036020B (en)Fault diagnosis and alarm method, device, electronic equipment and computer readable medium
CN118245341B (en)Service model switching method, device, electronic equipment and computer readable medium
CN116541251B (en)Display device state early warning method, device, equipment and computer readable medium
CN116881097B (en)User terminal alarm method, device, electronic equipment and computer readable medium
CN118227416A (en)Equipment fault information generation method, device, equipment and computer readable medium
CN115169852B (en)Information transmission method, apparatus, electronic device, medium, and computer program product
CN113779335A (en)Information generation method and device, electronic equipment and computer readable medium
CN115374302A (en) Object retrieval method, apparatus, electronic device and computer readable medium
CN113064812A (en) A method, device and medium for predicting quality defects in project development process
CN113765730A (en) Method and device for monitoring data link network
CN112015625A (en)Alarm device control method, device, electronic device and computer readable medium
CN118648879B (en)Data processing system and method for intensive care alarm management
CN114399355B (en)Information pushing method and device based on user conversion rate and electronic equipment
CN115292081B (en)Information sending method, device, electronic equipment and medium
CN111310901B (en) Methods and devices for obtaining samples
CN113421036B (en) Information display method, apparatus, electronic device and computer readable medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp