Service alarm monitoring method and device, electronic equipment and storage medium

By obtaining the average service availability in different sliding windows and judging the alarm conditions, the problem of ineffective alarms during service availability fluctuations in the prior art is solved, and more accurate and timely fault alarms are achieved, and service stability and reliability are improved.

CN119597590APending Publication Date: 2025-03-11BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311161742.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-08
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, it is difficult to effectively alert when monitoring service availability. When availability fluctuates near the target value, it leads to frequent alarms or inability to issue alarms, reducing the effectiveness of alarms.

Method used

By obtaining the service availability mean values ​​of the first sliding window and the second sliding window, and determining whether the service meets the corresponding alarm conditions based on these mean values. When the service meets two alarm conditions at the same time, an alarm is issued.

Benefits of technology

It realizes timely detection of faults and alarm feedback, improves service quality, reduces service losses, and improves service stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597590A_ABST
    Figure CN119597590A_ABST
Patent Text Reader

Abstract

The invention relates to a service alarm monitoring method and device, electronic equipment and a storage medium, and belongs to the technical field of computer service monitoring. The method comprises the steps that service availability mean values of a first sliding window and a second sliding window in a first sliding window group are obtained, and the first sliding window and the second sliding window slide synchronously and are different in window length; based on the first service availability mean value of the first sliding window, judging whether the service meets a first alarm condition in the first sliding window or not; based on the second service availability mean value of the second sliding window, whether the service meets a second alarm condition in the second sliding window is judged; and if the service meets the first alarm condition and the second alarm condition, giving an alarm to the service. Therefore, according to the scheme, the service is alarmed if the service is judged to meet the first alarm condition and the second alarm condition based on the availability mean value, so that the alarm can be given in time, the loss of the service is reduced, and the stability of the service is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer service monitoring, and in particular to a service alarm monitoring method, device, electronic device and storage medium. Background Art

[0002] Computer services are difficult to guarantee 100% availability due to various factors, such as hardware failures. Usually, availability targets are set for services. In order to ensure that services reach the set availability targets, it is necessary to monitor and alert on the availability of services. Currently, service alerts are still issued based on common rules, but when availability fluctuates around the target value, frequent alerts or no alerts will be issued, reducing the effectiveness of alerts. Summary of the invention

[0003] The present application provides a service alarm monitoring method, device, electronic device, computer-readable storage medium and computer program product to solve the problem that the service cannot be alarmed when the availability fluctuates around the target value. The technical solution of the present application is as follows:

[0004] According to a first aspect of an embodiment of the present application, there is provided an alarm monitoring method for a service, comprising: obtaining a service availability mean of each of a first sliding window and a second sliding window in a first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths; judging whether the service satisfies a first alarm condition in the first sliding window based on the first service availability mean of the first sliding window; judging whether the service satisfies a second alarm condition in the second sliding window based on the second service availability mean of the second sliding window; and alarming the service if the service satisfies both the first alarm condition and the second alarm condition.

[0005] In one embodiment of the present application, the method also includes: for any alarm condition of the first alarm condition and the second alarm condition, determining a target sliding window corresponding to the alarm condition, the target sliding window being the first sliding window or the second sliding window; obtaining a maximum availability loss value of the service within a set time period; obtaining any alarm condition based on the window length of the target sliding window and a preset availability loss value, as well as the maximum availability loss value.

[0006] In one embodiment of the present application, the process of determining the maximum availability loss value includes: obtaining the availability target value of the service; obtaining the number of time units of the service within a set duration; and determining the maximum availability loss value based on the availability target value and the number of time units.

[0007] In one embodiment of the present application, after the alarm is issued for the service, it also includes: sliding the first sliding window and continuing to monitor whether the service satisfies the first alarm condition within the first sliding window; sliding the second sliding window and continuing to monitor whether the service satisfies the second alarm condition within the second sliding window; if the service does not satisfy the first alarm condition and / or the second alarm condition, canceling the alarm for the service.

[0008] In one embodiment of the present application, the method also includes: synchronously performing alarm monitoring on the service through multiple sliding window groups, wherein the multiple sliding window groups include the first sliding window group, and each sliding window group includes two sliding windows with different window lengths; if it is monitored that an alarm needs to be issued for the service, determining a target sliding window group among the multiple sliding window groups that triggers an alarm for the service; and determining an alarm level for the service based on the window lengths of the two sliding windows in the target sliding window group.

[0009] In one embodiment of the present application, the window length of the first sliding window in each sliding window group is greater than the window length of the second sliding window.

[0010] In one embodiment of the present application, the window length of the first sliding window in each sliding window group is N times the window length of the second sliding window, and N>1.

[0011] In one embodiment of the present application, the window lengths between any two sliding window groups among the multiple sliding window groups are in multiples.

[0012] In one embodiment of the present application, the window length of the sliding window group is negatively correlated with the alarm level.

[0013] According to a second aspect of an embodiment of the present application, an alarm monitoring device for a service is provided, comprising: an acquisition module, used to obtain the service availability mean values ​​of a first sliding window and a second sliding window in a first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths; a first judgment module, used to judge whether the service satisfies a first alarm condition in the first sliding window based on the first service availability mean value of the first sliding window; a second judgment module, used to judge whether the service satisfies a second alarm condition in the second sliding window based on the second service availability mean value of the second sliding window; and an alarm module, used to alarm the service if the service satisfies the first alarm condition and the second alarm condition.

[0014] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the method of the first aspect of the embodiment of the present application.

[0015] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0016] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor of an electronic device, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0017] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: by obtaining the service availability mean of each of the first sliding window and the second sliding window, and judging whether the service meets the first alarm condition and the second alarm condition based on the availability mean, when it is determined that the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service, and the fault can be discovered in time and an alarm feedback can be provided, thereby improving the service quality, reducing the service loss, and improving the stability and reliability of the service.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.

[0020] Figure 1 The present invention is a flowchart of a method for monitoring an alarm of a service according to an exemplary embodiment.

[0021] Figure 2 The present invention is a flow chart of an alarm monitoring method for a service according to another exemplary embodiment.

[0022] Figure 3 The diagram is a schematic diagram showing triggering an alarm for a service according to an exemplary embodiment.

[0023] Figure 4 The figure is a schematic diagram showing how to cancel the warning for a service according to an exemplary embodiment.

[0024] Figure 5 The present invention is a flowchart of a method for monitoring an alarm of a service according to another exemplary embodiment.

[0025] Figure 6The present invention is a flowchart of a method for monitoring an alarm of a service according to another exemplary embodiment.

[0026] Figure 7 It is a structural block diagram of an alarm monitoring device for a service according to an exemplary embodiment.

[0027] Figure 8 It is a structural block diagram of an electronic device according to an exemplary embodiment.

[0028] Fig. 9 It is a structural block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0029] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0031] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0032] Figure 1 is a flow chart of a method for monitoring an alarm of a service according to an exemplary embodiment. Figure 1 As shown, the alarm monitoring method for the service in the embodiment of the present application includes the following steps:

[0033] S101, obtaining service availability means of a first sliding window and a second sliding window in a first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths.

[0034] It should be noted that the execution subject of the alarm monitoring method of the service in the embodiment of the present application is an electronic device, which may be an intelligent platform, server, etc. with a service alarm monitoring system, or a computer, user terminal and other intelligent devices. Optionally, the intelligent platform may be an artificial intelligence development platform, or a big data analysis platform, etc. Optionally, the server may be a cloud server, or a server of a distributed system, or a server combined with a blockchain, etc. Optionally, the user terminal includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, etc. The embodiment of the present application is not specifically limited.

[0035] In some implementations, the service availability mean of the first sliding window can be obtained by collecting service availability data of the first sliding window within a set time period and calculating the average value of the data. The service availability mean of the second sliding window can be obtained by collecting service availability data of the second sliding window within a set time period and calculating the average value of the data. The first sliding window and the second sliding window slide synchronously and have different window lengths.

[0036] As an example, between 10 a.m. and 11 a.m., assuming that the window length of the first sliding window is 1 hour and the window length of the second sliding window is 5 minutes, the first sliding window and the second sliding window are slid synchronously, and the service availability data of the first sliding window within the past hour and the service availability data of the second sliding window within the past 5 minutes are collected every 1 minute. Then, the service availability means of the first sliding window and the second sliding window within 10 a.m. and 11 a.m. respectively can be calculated.

[0037] It is understandable that the availability of a service can indicate the effectiveness, efficiency and efficiency of the service. In the Internet industry, the availability of a service refers to the percentage of time that the service can use network resources normally within a given period of time without being affected by unexpected failures or other technical problems. High availability means that the service has little interruption time and can quickly recover from any failure, ensuring that users can always access and use the service. For example, a service availability of 99.9% means that the service will only be interrupted for about 0.1% of the time each year.

[0038] S102: Based on the first service availability mean value in the first sliding window, determine whether the service satisfies a first alarm condition in the first sliding window.

[0039] In some implementations, a first alarm threshold may be set, and by comparing the first service availability mean value in the first sliding window with the first alarm threshold, it is determined whether the service satisfies the first alarm condition in the first sliding window.

[0040] Optionally, if the first service availability mean is less than the first alarm threshold, it is determined that the service satisfies the first alarm condition within the first sliding window. That is, the first alarm condition is less than the first alarm threshold. For example, assuming that the first alarm threshold is 97.84%, if the first service availability mean is 99.9%, which is greater than the first alarm threshold, it is determined that the service does not satisfy the first alarm condition within the first sliding window. If the first service availability mean is 97.81%, which is less than the first alarm threshold, it is determined that the service satisfies the first alarm condition within the first sliding window.

[0041] S103: Based on the second service availability mean value in the second sliding window, determine whether the service satisfies a second alarm condition in the second sliding window.

[0042] In some implementations, a second alarm threshold may be set, and by comparing the second service availability mean value in the second sliding window with the second alarm threshold, it is determined whether the service satisfies the second alarm condition within the second sliding window.

[0043] Optionally, if the second service availability mean is less than the second alarm threshold, it is determined that the service satisfies the second alarm condition within the second sliding window. That is, the second alarm condition is less than the second alarm threshold. For example, assuming that the second alarm threshold is 97.84%, if the second service availability mean is 98.9%, which is greater than the second alarm threshold, it is determined that the service does not satisfy the second alarm condition within the second sliding window. If the second service availability mean is 97.79%, which is less than the second alarm threshold, it is determined that the service satisfies the second alarm condition within the second sliding window.

[0044] S104: If the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service.

[0045] In some implementations, if the service meets the first alarm condition and the second alarm condition, that is, the first service availability mean of the first sliding window is greater than the first alarm threshold, and the second service availability mean of the second sliding window is also greater than the second alarm threshold, the service is alarmed, an alarm notification is triggered, and the problems are reported in a timely manner to reduce service losses.

[0046] In the alarm monitoring method for the service provided in the embodiment of the present application, by obtaining the service availability mean of each of the first sliding window and the second sliding window, and based on the availability mean, it is determined whether the service meets the first alarm condition and the second alarm condition. When it is determined that the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service, and the fault can be discovered in time and an alarm feedback can be provided, thereby improving the service quality, reducing service losses, and improving the stability and reliability of the service.

[0047] Figure 2is a flow chart of a method for monitoring an alarm of a service according to an exemplary embodiment. Figure 2 As shown, the alarm monitoring method for the service in the embodiment of the present application includes the following steps:

[0048] S201, obtaining the service availability means of the first sliding window and the second sliding window in the first sliding window group.

[0049] In the embodiment of the present application, the implementation method of step S201 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0050] S202: For any alarm condition of the first alarm condition and the second alarm condition, determine a target sliding window corresponding to the alarm condition.

[0051] In some implementations, a target sliding window corresponding to any alarm condition is determined, that is, a first alarm condition is determined to correspond to a first sliding window, and a second alarm condition is determined to correspond to a second sliding window, wherein the target sliding window is the first sliding window or the second sliding window.

[0052] S203, obtaining a maximum availability loss value of the service within a set duration.

[0053] In some implementations, the maximum availability loss value may be calculated based on the availability target value and the number of time units within a set duration. The maximum availability loss value is determined by obtaining the availability target value of the service and the number of time units of the service within the set duration, and based on the availability target value and the number of time units.

[0054] Optionally, the target value of service availability may be set according to service demand or user expectation, or the target value of service availability within the current set time period may be set according to the determined value of service availability within the previous set time period.

[0055] For example, assuming that the target value of service availability is a, the set duration is 1 month, and the time unit is 1 minute, the formula for calculating the maximum availability loss value L is as follows:

[0056] L=(1-a)t(1)

[0057] Where L is the maximum availability loss value, a is the target availability value of the service, and t is the number of minutes in a month. For example, if a is 99.9%, and there are 30 days in a month, then the value of t is 43200, and the maximum availability loss value L is 43.2.

[0058] S204, obtaining any alarm condition based on the window length of the target sliding window, the preset availability loss value, and the maximum availability loss value.

[0059] It can be understood that the target sliding window includes a first sliding window and a second sliding window. The window length of the first sliding window is greater than the window length of the second sliding window, and the window length of the first sliding window is N times the window length of the second sliding window, where N>1. For example, if the window length of the first sliding window is 1 hour and the first sliding window is 12 times the second sliding window, then the window length of the second sliding window is 5 minutes.

[0060] In some implementations, the ratio between the window lengths of the target sliding windows is the same as the ratio between the preset availability loss values ​​corresponding to the target sliding windows, that is, the preset availability loss value of the first sliding window is N times the preset availability loss value of the second sliding window, and N> 1. For example, assuming that the preset availability loss value of the first sliding window is v, the preset availability loss value of the second sliding window is v / N.

[0061] It can be understood that the availability loss value v preset in the first sliding window refers to the availability loss value in the first sliding window as v of the total loss, that is, v of the maximum availability loss value. The availability loss value v / N preset in the second sliding window refers to the availability loss value in the second sliding window as v / N of the total loss, that is, v / N of the maximum availability loss value.

[0062] Further, based on the window length of the target sliding window, the preset availability loss value, and the maximum availability loss value, any alarm condition can be calculated. Optionally, the formula for calculating the first alarm condition is as follows:

[0063]

[0064] Among them, avg l is the first alarm condition, l w is the window length of the first sliding window, a is the availability target value of the service, t is the number of time units within the set time length, and v is the preset availability loss value. For example, if the window length of the first sliding window is 1 hour, then t is the number of 1 hours within 30 days.

[0065] Optionally, the formula for calculating the second alarm condition is as follows:

[0066]

[0067] Among them, avg s is the second alarm condition, s wis the window length of the second sliding window, a is the availability target value of the service, t is the number of time units within the set time, and v / N is the preset availability loss value. For example, if the window length of the second sliding window is 5 minutes, t is the number of 1 minutes in 30 days.

[0068] For example, assume that the target availability value of the service is 99.9%, the window length of the first sliding window is 1 hour, the window length of the second sliding window is 5 minutes, and the preset availability loss value of the first sliding window is 3%, then the preset availability loss value of the second sliding window is 0.25%. Substituting it into formula (2) and formula (3), we can get the first alarm condition as avg l <97.84%, the second alarm condition is avg s <97.84%.

[0069] S205: Based on the first service availability mean value in the first sliding window, determine whether the service satisfies a first alarm condition in the first sliding window.

[0070] In the embodiment of the present application, the implementation method of step S205 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0071] S206: Based on the second service availability mean value in the second sliding window, determine whether the service satisfies a second alarm condition in the second sliding window.

[0072] In the embodiment of the present application, the implementation method of step S206 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0073] S207: If the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service.

[0074] In some implementations, after an alarm is issued for a service, the service may continue to be monitored to see whether it satisfies the first alarm condition and the second alarm condition.

[0075] Optionally, by sliding the first sliding window, and continuing to monitor whether the service satisfies the first alarm condition within the first sliding window. By sliding the second sliding window, and continuing to monitor whether the service satisfies the second alarm condition within the second sliding window. The first sliding window and the second sliding window need to slide synchronously.

[0076] Optionally, if the service does not meet the first alarm condition and / or the second alarm condition, the alarm for the service is cancelled. For example, if the first service availability mean value of the first sliding window is less than the second alarm threshold, it is determined that the service meets the first alarm condition. At this time, if the second service availability mean value of the second sliding window is greater than the second alarm threshold, it is determined that the service does not meet the second alarm condition, and the alarm for the service is cancelled.

[0077] It is understandable that when the first sliding window meets the first alarm condition, it is evenly divided into N second sliding windows, and the service availability average of the second sliding windows is higher than the service availability average of the first sliding window, and the service availability average of the second sliding windows is lower than the service availability average of the first sliding window. Therefore, in the next 5 minutes, if the service still meets the alarm condition, it means that the service has lost 2% of its availability and the situation has not improved, and an alarm will be triggered. If the service does not meet the first alarm condition and / or the second alarm condition, it means that the service has been gradually restored, and the alarm for the service is lifted.

[0078] In the alarm monitoring method for the service provided in the embodiment of the present application, by obtaining the maximum availability loss value of the service within the set time length, based on the window length of the target sliding window and the preset availability loss value, any alarm condition is obtained. By obtaining the service availability mean of each of the first sliding window and the second sliding window, and based on the availability mean, it is judged whether the service meets the first alarm condition and the second alarm condition. When it is determined that the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service, and the fault can be discovered in time and an alarm feedback can be performed, thereby improving the service quality, reducing service losses, and improving the stability and reliability of the service. When it is determined that the service does not meet any alarm condition, the alarm for the service is released, which can reduce the waste of resources.

[0079] like Figure 3 The diagram shown is a schematic diagram of triggering an alarm for a service. Figure 3 In the example, the availability target is 99.9%. Within the set time, the loss value of the first sliding window is greater than or equal to 3%, and the loss value of the second sliding window is greater than or equal to 0.25%. The window length of the first sliding window is 1 hour, and the window length of the second sliding window is 5 minutes. Based on formula (2) and formula (3), it can be determined that the service meets the first alarm condition and the second alarm condition, and then an alarm is triggered for the service.

[0080] like Figure 4 The schematic diagram of clearing the alarm for the service is shown. Figure 4In the example, the availability target is 99.9%. Within the set time, the loss value of the first sliding window is greater than or equal to 3%, and the loss value of the second sliding window is less than 0.25%. The window length of the first sliding window is 1 hour, and the window length of the second sliding window is 5 minutes. Based on formula (2) and formula (3), it can be determined that the service meets the first alarm condition but does not meet the second alarm condition, and the alarm for the service is lifted.

[0081] Figure 5 is a flow chart of a method for monitoring an alarm of a service according to an exemplary embodiment. Figure 5 As shown, the alarm monitoring method for the service in the embodiment of the present application includes the following steps:

[0082] S501, synchronously performing alarm monitoring on a service through multiple sliding window groups, wherein the multiple sliding window groups include a first sliding window group, and each sliding window group includes two sliding windows with different window lengths.

[0083] It is understandable that, assuming that the service uses the 3% availability loss value preset by the first sliding window group as the alarm target, if the availability loss value of the service is 2% within 1 hour, which is less than 3%, the alarm for the service will not be triggered. However, within a few dozen hours, the first sliding window group will reach the maximum availability loss value allowed by the service, and the service cannot be alarmed in time. In order to detect this situation, multiple sliding window groups can be set to monitor the alarm of the service synchronously to ensure that the service is alarmed in time.

[0084] In some implementations, the plurality of sliding window groups include a first sliding window group, and each sliding window group includes two sliding windows with different window lengths. Optionally, the window lengths between any two sliding window groups in the plurality of sliding window groups may be set to be multiples.

[0085] It is understandable that the window length of the first sliding window in each sliding window group is greater than the window length of the second sliding window, and the window length of the first sliding window in each sliding window group is N times the window length of the second sliding window, N>1.

[0086] For example, there are three sliding window groups. The window length of the first sliding window in the first sliding window group is 1 hour, and the window length of the second sliding window is 15 minutes. One hour is 12 times of 15 minutes. The window length of the first sliding window in the second sliding window group is 6 hours, and the window length of the second sliding window is 30 minutes. Six hours is 12 times of 30 minutes. The window length of the first sliding window in the third sliding window group is 24 hours, and the window length of the second sliding window is 2 hours. 24 hours is 12 times of 2 hours. Among them, 6 hours is 6 times of 1 hour, and 24 hours is 4 times of 6 hours.

[0087] S502: If it is monitored that an alarm needs to be issued for a service, a target sliding window group that triggers an alarm for the service is determined among multiple sliding window groups.

[0088] In some implementations, a first alarm condition corresponding to a first sliding window and a second alarm condition corresponding to a second sliding window in multiple sliding window groups can be determined based on respective preset availability loss values ​​of the multiple sliding window groups, the window lengths of the sliding windows, and the maximum availability loss value.

[0089] In some implementations, when it is monitored that a service satisfies an alarm condition corresponding to any sliding window group, it is determined that an alarm needs to be issued for the service, and then a target sliding window group that triggers an alarm for the service can be determined among multiple sliding window groups.

[0090] For example, the preset availability loss value of the first sliding window group is 3%, the preset availability loss value of the second sliding window group is 5%, the preset availability loss value of the third sliding window group is 10%, and the maximum availability loss value is still 99.9%. Then, the alarm conditions corresponding to the multiple sliding window groups can be calculated based on formula (2) and formula (3). The alarm condition corresponding to the first sliding window group is avg 1h <97.84% and avg 5min <97.84%, the alarm condition corresponding to the second sliding window group is avg 6h <99.4% and avg 30min <99.4%, the alarm condition corresponding to the third sliding window group is avg 24h <99.7% and avg 2h <99.7%.

[0091] Further, based on the alarm conditions corresponding to the multiple sliding window groups, the range of the average service availability of the alarm conditions corresponding to each sliding window group can be determined. For example, the range of the average service availability of the alarm conditions corresponding to the second sliding window group is 97.84% < avg 6h <99.4% and 97.84% <avg 30min <99.4%.

[0092] For example, if the monitored service availability average is 98.9% and less than 99.4%, it is determined that an alarm needs to be issued for the service. Furthermore, 98.9% is greater than 97.84% and less than 99.4%, which is within the range of the alarm condition corresponding to the second sliding window group, and the target sliding window group for triggering the alarm for the service is determined to be the second sliding window group.

[0093] S503: Determine an alarm level for alarming the service based on the window lengths of the two sliding windows in the target sliding window group.

[0094] In some implementations, a correspondence between the alarm level and the window length of the two sliding windows can be established. After the target sliding window group is determined, the alarm level for the service can be determined by querying the correspondence based on the window length of the two sliding windows.

[0095] It is understandable that the window length of the sliding window group is negatively correlated with the alarm level. That is, the longer the sliding window, the lower the severity of the alarm triggered. For example, the alarm level of the service triggered by the first sliding window of 1 hour is P1, the alarm level of the service triggered by the first sliding window of 6 hours is P2, and the alarm level of the service triggered by the first sliding window of 24 hours is P3. And the severity of P1 is greater than the severity of P2, which is greater than the severity of P3.

[0096] In the embodiment of the present application, the corresponding relationship between the alarm level and the window length of the sliding window is shown in the following Table 1:

[0097] Table 1

[0098] Alarm level First sliding window Second sliding window Availability loss value P1 1 hour 5 minutes 3% P2 6 hours 30 minutes 5% P3 24 hours 2 hours 10%

[0099] Among them, the severity of P1 is greater than the severity of P2 which is greater than the severity of P3.

[0100] In the alarm monitoring method for the service provided in the embodiment of the present application, the alarm monitoring of the service is performed synchronously based on multiple sliding window groups, and the time of alarm triggering can be automatically adjusted according to the actual problem. When it is monitored that an alarm needs to be issued for the service, the target sliding window group for triggering the alarm for the service among the multiple sliding window groups and the alarm level for the alarm for the service are determined, and a more comprehensive and accurate alarm can be issued, thereby improving the service quality, reducing service losses, and improving the stability and reliability of the service.

[0101] Figure 6 is a flow chart of a method for monitoring an alarm of a service according to an exemplary embodiment. Figure 6 As shown, the alarm monitoring method for the service in the embodiment of the present application includes the following steps:

[0102] S601, obtaining service availability means of a first sliding window and a second sliding window in a first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths.

[0103] S602: Based on the first service availability mean value in the first sliding window, determine whether the service satisfies a first alarm condition in the first sliding window.

[0104] S603: Based on the second service availability mean value in the second sliding window, determine whether the service satisfies a second alarm condition in the second sliding window.

[0105] S604: If the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service.

[0106] S605: Slide the first sliding window, and continue to monitor whether the service meets the first alarm condition within the first sliding window.

[0107] S606: Slide the second sliding window, and continue to monitor whether the service meets the second alarm condition within the second sliding window.

[0108] S607: If the service does not meet the first alarm condition and / or the second alarm condition, cancel the alarm for the service.

[0109] In the alarm monitoring method for the service provided in the embodiment of the present application, by obtaining the service availability mean of each of the first sliding window and the second sliding window, and based on the availability mean, it is determined whether the service meets the first alarm condition and the second alarm condition. When it is determined that the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service, and the fault can be discovered in time and an alarm feedback can be provided, thereby improving the service quality, reducing service losses, and improving the stability and reliability of the service.

[0110] This application Figure 7 FIG. 1 is a structural block diagram of an alarm monitoring device for a service according to an exemplary embodiment. Figure 7 The service alarm monitoring device 700 of the embodiment of the present application includes: an acquisition module 701 , a first judgment module 702 , a second judgment module 703 and an alarm module 704 .

[0111] The acquisition module 701 is used to obtain the service availability mean values ​​of the first sliding window and the second sliding window in the first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths.

[0112] The first judgment module 702 is used to judge whether the service meets a first alarm condition in a first sliding window based on the first service availability mean value of the first sliding window.

[0113] The second judgment module 703 is used to judge whether the service meets the second alarm condition in the second sliding window based on the second service availability mean value of the second sliding window.

[0114] The alarm module 704 is used to alarm the service if the service meets the first alarm condition and the second alarm condition.

[0115] In one embodiment of the present application, the device also includes: for any alarm condition of the first alarm condition and the second alarm condition, determining a target sliding window corresponding to the alarm condition, the target sliding window being the first sliding window or the second sliding window; obtaining a maximum availability loss value of the service within a set time period; and obtaining any alarm condition based on the window length of the target sliding window and a preset availability loss value, as well as the maximum availability loss value.

[0116] In one embodiment of the present application, the alarm module 704 is also used to: obtain the availability target value of the service; obtain the number of time units of the service within a set duration; and determine the maximum availability loss value based on the availability target value and the number of time units.

[0117] In one embodiment of the present application, the alarm module 704 is also used to: slide the first sliding window and continue to monitor whether the service satisfies the first alarm condition within the first sliding window; slide the second sliding window and continue to monitor whether the service satisfies the second alarm condition within the second sliding window; if the service does not satisfy the first alarm condition and / or the second alarm condition, cancel the alarm for the service.

[0118] In one embodiment of the present application, the alarm module 704 is also used to: synchronously monitor the alarm of the service through multiple sliding window groups, wherein the multiple sliding window groups include the first sliding window group, and each sliding window group includes two sliding windows with different window lengths; if it is monitored that an alarm needs to be issued for the service, determine a target sliding window group among the multiple sliding window groups that triggers an alarm for the service; and determine an alarm level for the service based on the window lengths of the two sliding windows in the target sliding window group.

[0119] In one embodiment of the present application, the window length of the first sliding window in each sliding window group is greater than the window length of the second sliding window.

[0120] In one embodiment of the present application, the window length of the first sliding window in each sliding window group is N times the window length of the second sliding window, and N>10.

[0121] In one embodiment of the present application, the window lengths between any two sliding window groups among the multiple sliding window groups are in multiples.

[0122] In one embodiment of the present application, the window length of the sliding window group is negatively correlated with the alarm level.

[0123] In the alarm monitoring method for the service provided in the embodiment of the present application, by obtaining the service availability mean of each of the first sliding window and the second sliding window, and based on the availability mean, it is determined whether the service meets the first alarm condition and the second alarm condition. When it is determined that the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service, and the fault can be discovered in time and an alarm feedback can be provided, thereby improving the service quality, reducing service losses, and improving the stability and reliability of the service.

[0124] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0125] like Figure 8 As shown, the electronic device 800 includes a processor 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the memory 806 to the random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processor 801, ROM 802 and RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0126] The following components are connected to the I / O interface 805: a memory 806 including a hard disk, etc.; and a communication part 807 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 807 performs communication processing via a network such as the Internet; a drive 808 is also connected to the I / O interface 805 as needed.

[0127] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 807. When the computer program is executed by the processor 801, the above-mentioned functions defined in the method of the present application are executed.

[0128] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 801 of the electronic device 800 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0129] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0130] Fig. 9 It is a structural block diagram of an electronic device according to an exemplary embodiment. Fig. 9 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Fig. 9 As shown, the electronic device 900 includes a processor 901 and a memory 902. The memory 902 is used to store program codes, and the processor 901 is connected to the memory 902 and is used to read program codes from the memory 902 to implement the service alarm monitoring method in the above embodiment.

[0131] Optionally, the number of processors 901 may be one or more.

[0132] Optionally, the electronic device may further include an interface 903, and the number of the interface 903 may be multiple. The interface 903 may be connected to an application program and may receive data from an external device such as a sensor.

[0133] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0134] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A service alarm monitoring method, characterized in that: The method comprises: Obtaining respective service availability means of a first sliding window and a second sliding window in the first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths; Based on the first service availability mean of the first sliding window, determining whether the service satisfies a first alarm condition within the first sliding window; determining, based on a second service availability mean value of the second sliding window, whether the service satisfies a second alarm condition within the second sliding window; If the service meets the first alarm condition and the second alarm condition, an alarm is issued for the service.

2. The method according to claim 1, characterized in that The method further comprises: For any alarm condition of the first alarm condition and the second alarm condition, determine a target sliding window corresponding to the alarm condition, where the target sliding window is the first sliding window or the second sliding window; Obtaining the maximum availability loss value of the service within a set time period; Based on the window length of the target sliding window and the preset availability loss value, and the maximum availability loss value, any one of the alarm conditions is obtained.

3. The method according to claim 2, characterized in that The process of determining the maximum availability loss value includes: Obtaining an availability target value of the service; Obtain the number of time units of the service within a set duration; The maximum availability loss value is determined based on the availability target value and the number of time units.

4. The method according to claim 1, characterized in that: After the service is warned, the method further includes: Sliding the first sliding window, and continuing to monitor whether the service satisfies the first alarm condition within the first sliding window; Sliding the second sliding window, and continuing to monitor whether the service satisfies the second alarm condition within the second sliding window; If the service does not meet the first alarm condition and / or the second alarm condition, cancel the alarm for the service.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Synchronously performing alarm monitoring on the service through multiple sliding window groups, wherein the multiple sliding window groups include the first sliding window group, and each sliding window group includes two sliding windows with different window lengths; If it is monitored that an alarm needs to be issued for the service, determining a target sliding window group among the multiple sliding window groups for triggering an alarm for the service; An alarm level for alarming the service is determined based on the window lengths of two sliding windows in the target sliding window group.

6. The method according to claim 5, characterized in that The window length of the first sliding window in each sliding window group is greater than the window length of the second sliding window.

7. The method according to claim 6, characterized in that The window length of the first sliding window in each sliding window group is N times the window length of the second sliding window, and N>1.

8. The method according to claim 5, characterized in that The window lengths between any two sliding window groups among the multiple sliding window groups are in multiple relation.

9. The method according to claim 5, characterized in that The window length of the sliding window group is negatively correlated with the alarm level.

10. A service alarm monitoring device, characterized in that: The device comprises: An acquisition module, configured to acquire a service availability mean value of each of a first sliding window and a second sliding window in a first sliding window group, wherein the first sliding window and the second sliding window slide synchronously and have different window lengths; A first judgment module, configured to judge whether the service satisfies a first alarm condition within the first sliding window based on a first service availability mean value of the first sliding window; A second judgment module, configured to judge whether the service satisfies a second alarm condition within a second sliding window based on a second service availability mean value of the second sliding window; An alarm module is used to alarm the service if the service meets the first alarm condition and the second alarm condition.

11. The device according to claim 10, characterized in that The device also includes: For any alarm condition of the first alarm condition and the second alarm condition, determine a target sliding window corresponding to the alarm condition, where the target sliding window is the first sliding window or the second sliding window; Obtaining the maximum availability loss value of the service within a set time period; Based on the window length of the target sliding window and the preset availability loss value, and the maximum availability loss value, any one of the alarm conditions is obtained.

12. The device according to claim 11, characterized in that The alarm module is also used for: Obtaining an availability target value of the service; Obtain the number of time units of the service within a set duration; The maximum availability loss value is determined based on the availability target value and the number of time units.

13. The device according to claim 10, characterized in that The alarm module is also used for: Sliding the first sliding window, and continuing to monitor whether the service satisfies the first alarm condition within the first sliding window; Sliding the second sliding window, and continuing to monitor whether the service satisfies the second alarm condition within the second sliding window; If the service does not meet the first alarm condition and / or the second alarm condition, cancel the alarm for the service.

14. The device according to any one of claims 10 to 13, characterized in that The alarm module is also used for: Synchronously performing alarm monitoring on the service through multiple sliding window groups, wherein the multiple sliding window groups include the first sliding window group, and each sliding window group includes two sliding windows with different window lengths; If it is monitored that an alarm needs to be issued for the service, determining a target sliding window group among the multiple sliding window groups for triggering an alarm for the service; An alarm level for alarming the service is determined based on the window lengths of two sliding windows in the target sliding window group.

15. The device according to claim 14, characterized in that The window length of the first sliding window in each sliding window group is greater than the window length of the second sliding window.

16. The device according to claim 15, characterized in that The window length of the first sliding window in each sliding window group is N times the window length of the second sliding window, and N>10.

17. The device according to claim 14, characterized in that The window lengths between any two sliding window groups among the multiple sliding window groups are in multiple relation.

18. The device according to claim 14, characterized in that The window length of the sliding window group is negatively correlated with the alarm level.

19. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 9.

20. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.