Alarm method, device and system of business service platform

CN115964246BActive Publication Date: 2026-07-21CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CORP LTD
Filing Date
2022-12-19
Publication Date
2026-07-21

Smart Images

  • Figure CN115964246B_ABST
    Figure CN115964246B_ABST
Patent Text Reader

Abstract

The application discloses an alarm method, device and system of a business service platform. The method comprises the following steps: determining the number of interval periods corresponding to a plurality of target monitoring periods within a preset time period for a target business in the business service platform; determining the number of interval periods corresponding to all monitoring periods within the preset time period based on the number of interval periods corresponding to the plurality of target monitoring periods; determining the alarm interval corresponding to all monitoring periods within the preset time period according to all the number of interval periods within the preset time period; and determining an alarm strategy according to the alarm state of each monitoring period within the alarm interval. The alarm method of the business service platform provided by the application at least solves the technical problem of low flexibility of the alarm strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of operation and maintenance management, and more specifically, to an alarm method, device, and system for a business service platform. Background Technology

[0002] Online business systems all require well-defined alarm mechanisms. When a system malfunctions, the system should be notified immediately, not just notified. Alarms are for timely problem detection, prompt handling, and system recovery. Alarm messages must be clear and concise to avoid false alarms. For simple, quickly resolvable problems, intermittent alarms are acceptable. However, for complex issues that take a long time to resolve, continuous alarms are meaningless. Therefore, flexible configuration of the alarm module is crucial.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides an alarm method, apparatus, and system for a business service platform to at least solve the technical problem of low flexibility in alarm strategies.

[0005] According to one aspect of the embodiments of this application, an alarm method for a business service platform is provided, comprising: determining the number of interval periods corresponding to multiple target monitoring periods of a target service in the business service platform within a preset time period; determining the number of interval periods corresponding to all monitoring periods within the preset time period based on the number of interval periods corresponding to the multiple target monitoring periods; determining the alarm interval corresponding to all monitoring periods within the preset time period based on the number of interval periods within the preset time period; and determining an alarm strategy based on the alarm status of each monitoring period within the alarm interval.

[0006] Optionally, based on the interval period number corresponding to multiple target monitoring periods, the interval period number corresponding to all monitoring periods within a preset time period is determined, including: determining multiple first monitoring periods before the monitoring period to be determined among multiple target monitoring periods; determining multiple first interval period numbers corresponding to multiple first monitoring periods; determining the average value of multiple first interval period numbers; determining the interval period number of the monitoring period to be determined by the sum of the average value and the offset corresponding to the monitoring period to be determined; and sequentially adding the determined monitoring periods to be determined to the set composed of multiple target monitoring periods until all monitoring periods to be determined are determined.

[0007] Optionally, the offset corresponding to the monitoring period to be determined is determined by the following methods: determining the smallest index value among multiple target monitoring periods whose period index value is greater than the index value of the monitoring period to be determined, and determining the target monitoring period corresponding to the smallest index value as the second monitoring period; determining the number of interval periods corresponding to the second monitoring period as the second interval period number; determining the monitoring period whose index value is one position before the period to be determined as the third monitoring period, and determining the number of interval periods corresponding to the third monitoring period as the third interval period number; and determining the offset value corresponding to the monitoring period to be determined based on the second interval period number and the third interval period number.

[0008] Optionally, determining the offset value corresponding to the monitoring period to be determined based on the number of periods in the second interval and the number of periods in the third interval includes: determining the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; determining the first difference between the number of periods in the second interval and the number of periods in the third interval; determining the second difference between the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; and determining the ratio of the first difference and the second difference as the offset value corresponding to the monitoring period to be determined.

[0009] Optionally, the alarm intervals corresponding to all monitoring cycles within the preset time period are determined based on the number of intervals within the preset time period, including: determining the monitoring cycle in which an alarm state is detected as the fifth monitoring cycle; determining the number of the fifth interval cycles corresponding to the fifth monitoring cycle; determining the index value of the fifth monitoring cycle as the start point of the alarm interval of the fifth monitoring cycle; determining the sum of the number of the fifth interval cycles and the index value of the fifth monitoring cycle as the end point of the alarm interval of the fifth monitoring cycle; determining the alarm interval of the fifth monitoring cycle as the interval between the start point and the end point; and sequentially determining the alarm intervals of all monitoring cycles after the fifth monitoring cycle.

[0010] Optionally, an alarm strategy is determined based on the alarm status within the alarm interval for each monitoring period, including: sorting by the monitoring period index value in which the alarm status was detected, and sequentially determining the alarm status for each monitoring period; if the monitoring period in which the alarm status was detected does not belong to the alarm interval, directly sending alarm information and setting the alarm interval corresponding to the monitoring period in which the alarm status was detected; if the monitoring period in which the alarm status was detected belongs to the alarm interval, determining the alarm strategy based on the alarm status of all monitoring periods within the alarm interval.

[0011] Optionally, if the monitoring period in which the alarm status is detected falls within an alarm interval, an alarm policy is determined based on the alarm status of all monitoring periods within the alarm interval. This includes: if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is an alarm, then the alarm policy is determined to send an alarm message, where the detection period represents the monitoring period in which the alarm status is detected; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is an alarm, then the alarm policy is determined to record the alarm status and not send an alarm message. Send alarm information; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is recovery, the alarm policy is determined to record the recovery status and not send recovery information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of the monitoring period in the alarm interval exists simultaneously as both alarm and recovery, the alarm policy is determined to send flashover information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods in the alarm interval is recovery, the alarm policy is determined to send recovery information.

[0012] According to another aspect of the embodiments of this application, an alarm device is also provided, comprising: a first determining module, configured to determine the number of interval cycles corresponding to multiple target monitoring cycles within a preset time period; a second determining module, configured to determine the number of interval cycles corresponding to all monitoring cycles within the preset time period based on the number of interval cycles corresponding to the multiple target monitoring cycles; a third determining module, configured to determine the alarm interval corresponding to all monitoring cycles within the preset time period based on the number of interval cycles within all interval cycles within the preset time period; and a fourth determining module, configured to determine an alarm strategy based on the alarm status of each monitoring cycle within the alarm interval.

[0013] According to another aspect of the embodiments of this application, an alarm system for a business service platform is also provided, including: a business server and a monitoring system, wherein the monitoring system is connected to the business server through a monitoring interface in the business server; the business server is used to run various service businesses; the monitoring system is used to determine the number of interval periods corresponding to multiple target monitoring cycles of a target business in the business service platform within a preset time period; based on the number of interval periods corresponding to multiple target monitoring cycles, determine the number of interval periods corresponding to all monitoring cycles within the preset time period; determine the alarm intervals corresponding to all monitoring cycles within the preset time period according to the number of interval periods within all interval periods within the preset time period; and determine the alarm strategy according to the alarm status of each monitoring cycle within the alarm interval.

[0014] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, wherein a program is stored in the non-volatile storage medium, and the program controls the device where the non-volatile storage medium is located to execute the alarm method of the above-mentioned business service platform when it runs.

[0015] According to another aspect of the embodiments of this application, a computer device is also provided, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the program executes the alarm method of the above-mentioned business service platform when it runs.

[0016] In this embodiment, the method involves determining the number of interval periods corresponding to multiple target monitoring periods of a target service in a business service platform within a preset time period; determining the number of interval periods corresponding to all monitoring periods within the preset time period based on the number of interval periods corresponding to multiple target monitoring periods; determining the alarm intervals corresponding to all monitoring periods within the preset time period based on the number of interval periods within all interval periods; and determining the alarm strategy based on the alarm status of each monitoring period within the alarm interval. By setting a target monitoring period and determining the number of interval periods corresponding to the target monitoring period, and then determining the number of interval periods corresponding to all monitoring periods, multiple alarm intervals are obtained. The method of determining the alarm strategy based on the alarm status of all monitoring periods within the same alarm interval achieves the goal of reducing repeated alarms over a long period of time, realizes the technical effect of improving the flexibility of the alarm strategy, and thus solves the technical problem of low flexibility of the alarm strategy. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a hardware structure block diagram of a computer terminal (or mobile device) for an alarm method for a business service platform according to an embodiment of this application.

[0019] Figure 2 This is a flowchart illustrating an alarm method for a business service platform according to this application;

[0020] Figure 3 This is a schematic diagram of the structure of an alarm device for an optional business service platform according to an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of the structure of an alarm system for an optional business service platform according to an embodiment of this application. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] Traditional alarm methods continuously repeat alarms for unresolved issues, requiring manual masking and manual restoration of the alarm policy after fault recovery. This results in low flexibility in alarm policy implementation. To address this problem, this application provides an embodiment of an alarm method for a business service platform. It should be noted that the steps shown in the flowcharts can be executed in a computer system, such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that presented here.

[0025] The methods and embodiments provided in this application can be executed on mobile terminals, computer terminals, or similar computing devices. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing an alarm method for a business service platform is shown. Figure 1As shown, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0026] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0027] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the alarm method of the business service platform in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the alarm method of the business service platform described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0029] The display can be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0030] Under the above operating environment, this application embodiment provides an alarm method for a business service platform, such as... Figure 2 As shown, the method includes the following steps:

[0031] Step S202: Determine the number of interval periods corresponding to multiple target monitoring periods of the target business in the business service platform within a preset time period;

[0032] Step S204: Based on the number of interval cycles corresponding to the multiple target monitoring cycles, determine the number of interval cycles corresponding to all monitoring cycles within the preset time period;

[0033] Step S206: Determine the alarm intervals corresponding to all monitoring cycles within the preset time period based on the number of cycles in all intervals within the preset time period;

[0034] Step S208: Determine the alarm strategy based on the alarm status within the alarm interval for each monitoring period.

[0035] By following the steps above, it is possible to set a target monitoring period, determine the number of interval periods corresponding to the target monitoring period, and then determine the number of interval periods corresponding to all monitoring periods, thereby obtaining multiple alarm intervals. By determining the alarm strategy based on the alarm status of all monitoring periods within the same alarm interval, the goal of reducing repeated alarms over a long period of time is achieved, thus improving the technical effect of alarm strategy flexibility and solving the technical problem of low alarm strategy flexibility.

[0036] It should be noted that the business service platform provides a variety of services, and one or more target services can be selected to set multiple target monitoring periods. In actual application scenarios, the interval period number is used to represent the number of alarm interval periods after an alarm is detected.

[0037] In step S204, based on the number of interval periods corresponding to the multiple target monitoring periods, the number of interval periods corresponding to all monitoring periods within the preset time period is determined. A common approach is to use the moving average method, a common method that uses a set of recent actual data values ​​to predict data for one or more future periods. The moving average method is suitable for immediate forecasting. When product demand neither grows nor declines rapidly, and there are no seasonal factors, the moving average method can effectively eliminate random fluctuations in the forecast.

[0038] The method proposed in this application determines the number of interval periods corresponding to all monitoring periods within a preset time period in the following manner: determining multiple first monitoring periods before the monitoring period to be determined among the multiple target monitoring periods; determining multiple first interval period numbers corresponding to the multiple first monitoring periods; determining the average value of the multiple first interval period numbers; determining the interval period number of the monitoring period to be determined by the sum of the average value and the offset corresponding to the monitoring period to be determined; and sequentially adding the determined monitoring periods to be determined to the set composed of the multiple target monitoring periods until all monitoring periods to be determined are determined.

[0039] The offset corresponding to the monitoring period to be determined is determined by the following methods: determining the smallest index value among the multiple target monitoring periods whose period index value is greater than the index value of the monitoring period to be determined, and determining the target monitoring period corresponding to the smallest index value as the second monitoring period; determining the number of interval periods corresponding to the second monitoring period as the second interval period number; determining the monitoring period whose index value is ranked one position before the period to be determined as the third monitoring period, and determining the number of interval periods corresponding to the third monitoring period as the third interval period number; and determining the offset value corresponding to the monitoring period to be determined based on the second interval period number and the third interval period number.

[0040] Furthermore, the offset value corresponding to the monitoring period to be determined determines the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; the first difference between the number of periods in the second interval and the number of periods in the third interval is determined; the second difference between the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period is determined; and the ratio of the first difference and the second difference is determined as the offset value corresponding to the monitoring period to be determined.

[0041] In summary, the number of monitoring periods for the interval to be determined is determined by the following formula:

[0042]

[0043] In the formula, y t y represents the interval period number of the first monitoring period. t+1 y represents the number of intervals in the monitoring period to be determined.d y represents the number of periods in the second interval. t d represents the number of periods in the third monitoring interval, d represents the index value corresponding to the second monitoring period, and t represents the index value corresponding to the third monitoring period.

[0044] In the above steps, the alarm interval can be determined in the following ways: determining the monitoring period in which the alarm state is detected as the fifth monitoring period; determining the number of the fifth interval corresponding to the fifth monitoring period; determining the index value of the fifth monitoring period as the starting point of the alarm interval of the fifth monitoring period; determining the sum of the number of the fifth interval and the index value of the fifth monitoring period as the ending point of the alarm interval of the fifth monitoring period; determining that the alarm interval of the fifth monitoring period is an interval greater than the starting point and not greater than the ending point; and sequentially determining the alarm intervals of all monitoring periods after the fifth monitoring period.

[0045] Alarm policies can be formulated in the following ways: sorting by the monitoring period index value of the detected alarm status, and determining the alarm status of each monitoring period in turn; if the monitoring period in which the detected alarm status is not within the alarm interval, directly sending alarm information and setting the alarm interval corresponding to the monitoring period in which the detected alarm status is located; if the monitoring period in which the detected alarm status is located within the alarm interval, determining the alarm policy based on the alarm status of all monitoring periods within the alarm interval.

[0046] Specifically, if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is an alarm, then the alarm strategy is determined to be sending alarm information, where the detection period represents the monitoring period in which the alarm status is detected; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected by the detection period is an alarm, then the alarm strategy is determined to be recording the alarm status and not sending alarm information; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected by the detection period is recovery, then the alarm strategy is determined to be recording the recovery status and not sending recovery information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of the monitoring periods within the alarm interval simultaneously exists as both alarm and recovery, then the alarm strategy is determined to be sending flashover information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is recovery, then the alarm strategy is determined to be sending recovery information.

[0047] In practical applications, the first step is to connect each business system to the monitoring system, including the monitoring interfaces for each service and the system initialization interface. For each service, a range of monitoring periods is set. The monitoring system uses this as a basis to apply a feedback moving average method to fit the range of monitoring periods for all monitoring periods. The initial value of the monitoring period index is 0, and it is incremented at monitoring period intervals after an alarm is detected. After a business system restarts, it notifies the monitoring system through the initialization interface to clear the alarm intervals and reset the alarm period index. The monitoring system monitors each service of each business system at monitoring period intervals. When an alarm is detected in a certain monitoring period n, if period n is not within any alarm interval, an alarm message is pushed, and the range of periods Y for period n is obtained. n Set the alarm interval to (n, n+Y) n The system collects alarm status for all monitoring cycles within the interval. At the end of the alarm interval, if the status of all cycles within the interval is recovery, a recovery message is sent; if the status of all cycles within the interval is alarm, an alarm message is sent; if both alarm and recovery exist in all cycles within the interval, a crash message is sent and the crash rate is calculated. When an alarm or crash message is sent in an alarm interval, the system automatically sets the next alarm interval to continue collecting data.

[0048] Taking the interval period corresponding to the target monitoring period as an example, as shown in Table 1:

[0049] Periodicity index value 1 2 24 Number of interval periods 1 2 24

[0050] Table 1

[0051] The number of monitoring periods for the fitted alarm interval is shown in Table 2:

[0052] Periodicity index value 1 2 3 4 5 6 7 8 9 10 11 12 13 Number of interval periods 1 2 2 3 3 4 4 5 5 6 6 7 7 Periodicity index value 14 15 16 17 18 19 20 21 22 23 24 25 26 Number of interval periods 8 8 9 9 11 12 13 14 16 19 24 24 24

[0053] Table 2

[0054] If the target service remains down, the alerting strategy is as follows:

[0055] When detecting period 1, if period 1 does not belong to the alarm interval, an alarm message is sent, the interval period number of period 1 is obtained, Y1=1, and period (1,2] is set as the alarm interval.

[0056] When the detection period is 2, the alarm interval (1,2] ends. If the period within the alarm interval is in an alarm state, an alarm message is sent, the number of intervals Y2 = 2 is obtained for period 2, and (2,4] is set as the alarm interval.

[0057] If the alarm interval (2,4) has not ended during detection cycle 3, only the alarm status will be recorded.

[0058] When the detection period is 4, the alarm interval (2,4] ends. If the period within the alarm interval is in an alarm state, an alarm message is sent, the interval number Y4 = 3 is obtained for period 4, and (4,7] is set as the alarm interval.

[0059] If the alarm interval (4,7) has not ended during detection cycles 5 and 6, only the alarm status will be recorded.

[0060] When the detection period is 7, the alarm interval (4,7] ends. If the period within the alarm interval is in an alarm state, an alarm message is sent, the number of intervals Y7 = 4 is obtained for period 7, and (7,11] is set as the alarm interval.

[0061] If the alarm interval (7,11) has not ended during detection cycles 8, 9, and 10, only the alarm status will be recorded.

[0062] When the detection period is 11, the alarm interval (7,11] ends. If the period within the alarm interval is in an alarm state, then an alarm message is sent, and the number of periods Y in the interval of period 11 is obtained. 11 =6, and set (11,17] as the alarm interval.

[0063] If the alarm interval (11,17) has not ended during the detection cycle of 12-16, only the alarm status will be recorded.

[0064] When the detection period is 17, the alarm interval (11, 17] ends. If the period within the alarm interval is in an alarm state, then an alarm message is sent, and the number of periods Y in the interval of period 17 is obtained. 17 =9, and set (17,26] as the alarm interval.

[0065] If the alarm interval (17,26) has not ended during the detection cycle of 18-25, only the alarm status will be recorded.

[0066] When the detection period is 26, the alarm interval (17, 26] ends. If the period within the alarm interval is in an alarm state, then an alarm message is sent, and the number of periods Y in the interval of period 26 is obtained. 26 =24, and set (26,50] as the alarm interval.

[0067] It can be seen that after a fault occurs, the monitoring system will send alarm information in cycles 1, 2, 4, 7, 11, 17, and 26, and then push an alarm once every 24 hours.

[0068] If the service recovers after 5 cycles of downtime, the following alert will be issued:

[0069] When detecting period 1, if period 1 does not belong to the alarm interval, an alarm message is sent, the interval period number of period 1 is obtained, Y1=1, and period (1,2] is set as the alarm interval.

[0070] When the alarm interval (1,2] ends during detection period 2, and the entire period is in an alarm state, an alarm message is sent, the interval number Y2 = 2 is obtained for period 2, and (2,4] is set as the alarm interval.

[0071] If the alarm interval (2,4) has not ended during detection cycle 3, only the alarm status will be recorded.

[0072] When the detection cycle is 4, the alarm interval (2,4] ends. The interval number of cycle 2 is obtained. Y4 = 3. Then an alarm message is sent and (4,7] is set as the alarm interval.

[0073] If the alarm interval (4,7) has not ended during detection cycle 5, only the alarm status will be recorded.

[0074] If the alarm interval (4,7) has not ended during detection cycle 6, only the recovery status will be recorded.

[0075] When the detection period is 7, the alarm interval (4,7] ends. If there are alarms and recovery states in periods 5, 6, and 7, a flashover message is sent to obtain the interval number of period 7, Y7=4, and (7,11] is set as the alarm interval.

[0076] If the alarm interval (7,11) has not ended during the detection cycle of 8-10, only the recovery status will be recorded.

[0077] When the detection period is 11, the alarm interval (7,11) ends. If the period is in a recovery state, a recovery message is sent.

[0078] As can be seen, the monitoring system sends alarm messages in cycles 1, 2, and 4, a flashback message in cycle 7, and a recovery message in cycle 11.

[0079] If the service crashes every 5 cycles (i.e., on cycles 1, 6, 11, etc.), the following alarm will be triggered:

[0080] When detecting period 1, if period 1 does not belong to the alarm interval, an alarm message is sent, the interval period number of period 1 is obtained, Y1=1, and period (1,2] is set as the alarm interval.

[0081] When the detection period is 2, the alarm interval (1,2] ends. If the period is in a recovery state, a recovery message is sent.

[0082] During detection cycles of 3-5, the period is not within the alarm range, and the status is not recorded.

[0083] When detecting period 6, if period 6 does not belong to the alarm interval, an alarm message is sent, the interval period number of period 6 is obtained, Y6=4, and period (6,10] is set as the alarm interval.

[0084] If the alarm interval (6,10) has not ended during the detection cycle 7-9 and the entire cycle is in a recovery state, then the recovery state is recorded.

[0085] When the detection period is 10, the alarm interval (6,10) ends. If the period is in a recovery state, a recovery message is sent.

[0086] If period 11 is not within the alarm interval during detection, an alarm message is sent, and the interval number of period 11 is obtained, Y. 11 =6, set the period (11,17) as the alarm interval.

[0087] If the alarm interval (11,17) has not ended during the detection period of 12-15 and the entire period is in a recovery state, then the recovery state is recorded.

[0088] If the alarm interval (11,17) has not ended during the detection cycle 16, the alarm status is recorded.

[0089] When the detection period is 17, the alarm interval (11, 17] ends. If there are alarm and recovery states within the period, a flashover message is sent, and the interval number of period 17 is obtained, Y. 17 =9, and set (17,26] as the alarm interval.

[0090] The monitoring interval will gradually expand until it converges to the initial maximum period of 24, meaning that a flashover will be notified every 24 hours. In other words, the monitoring system will issue alarms and recovery messages in the first few periods, and then issue a flashover message.

[0091] This application provides an alarm device, such as... Figure 3 As shown, it includes: a first determining module 30, used to determine the number of interval cycles corresponding to multiple target monitoring cycles within a preset time period; a second determining module 32, used to determine the number of interval cycles corresponding to all monitoring cycles within the preset time period based on the number of interval cycles corresponding to multiple target monitoring cycles; a third determining module 34, used to determine the alarm interval corresponding to all monitoring cycles within the preset time period based on the number of interval cycles within all interval cycles within the preset time period; and a fourth determining module 36, used to determine the alarm strategy based on the alarm status of each monitoring cycle within the alarm interval.

[0092] The second determining module 32 includes: a first determining submodule, used to determine multiple first monitoring periods preceding the monitoring period to be determined among multiple target monitoring periods; a second determining submodule, used to determine multiple first interval period numbers corresponding to the multiple first monitoring periods; a third determining submodule, used to determine the average value of the multiple first interval period numbers; a fourth determining submodule, used to determine the interval period number of the monitoring period to be determined by summing the average value with the offset corresponding to the monitoring period to be determined; and a fifth determining submodule, used to sequentially add the determined monitoring periods to be determined to the set composed of multiple target monitoring periods until all monitoring periods to be determined are determined.

[0093] The fourth determining submodule includes: a first determining unit, used to determine the smallest index value among multiple target monitoring periods whose period index value is greater than the index value of the monitoring period to be determined, and to determine the target monitoring period corresponding to the smallest index value as the second monitoring period; a second determining unit, used to determine the number of interval periods corresponding to the second monitoring period as the second interval period number; a third determining unit, used to determine the monitoring period whose index value is ranked one position before the period to be determined as the third monitoring period, and to determine the number of interval periods corresponding to the third monitoring period as the third interval period number; and a fourth determining unit, used to determine the offset value corresponding to the monitoring period to be determined based on the second interval period number and the third interval period number.

[0094] The fourth determining unit includes: a first determining subunit, used to determine the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; a second determining subunit, used to determine the first difference between the number of periods in the second interval and the number of periods in the third interval; determine the second difference between the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; and determine the ratio of the first difference and the second difference as the offset value corresponding to the monitoring period to be determined.

[0095] Optionally, the alarm intervals corresponding to all monitoring cycles within the preset time period are determined based on the number of intervals within the preset time period, including: determining the monitoring cycle in which an alarm state is detected as the fifth monitoring cycle; determining the number of the fifth interval cycles corresponding to the fifth monitoring cycle; determining the index value of the fifth monitoring cycle as the start point of the alarm interval of the fifth monitoring cycle; determining the sum of the number of the fifth interval cycles and the index value of the fifth monitoring cycle as the end point of the alarm interval of the fifth monitoring cycle; determining the alarm interval of the fifth monitoring cycle as the interval between the start point and the end point; and sequentially determining the alarm intervals of all monitoring cycles after the fifth monitoring cycle.

[0096] Optionally, an alarm strategy is determined based on the alarm status within the alarm interval for each monitoring period, including: sorting by the monitoring period index value in which the alarm status was detected, and sequentially determining the alarm status for each monitoring period; if the monitoring period in which the alarm status was detected does not belong to the alarm interval, directly sending alarm information and setting the alarm interval corresponding to the monitoring period in which the alarm status was detected; if the monitoring period in which the alarm status was detected belongs to the alarm interval, determining the alarm strategy based on the alarm status of all monitoring periods within the alarm interval.

[0097] Optionally, if the monitoring period in which the alarm status is detected falls within an alarm interval, an alarm policy is determined based on the alarm status of all monitoring periods within the alarm interval. This includes: if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is an alarm, then the alarm policy is determined to send an alarm message, where the detection period represents the monitoring period in which the alarm status is detected; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is an alarm, then the alarm policy is determined to record the alarm status and not send an alarm message. Send alarm information; if the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is recovery, the alarm policy is determined to record the recovery status and not send recovery information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of the monitoring period in the alarm interval exists simultaneously as both alarm and recovery, the alarm policy is determined to send flashover information; if the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods in the alarm interval is recovery, the alarm policy is determined to send recovery information.

[0098] This application provides an alarm system for a business service platform, such as... Figure 4 As shown, it includes: a business server 40 and a monitoring system 42, wherein the monitoring system is connected to the business server through a monitoring interface in the business server; the business server is used to run various service businesses; the monitoring system is used to determine the number of interval periods corresponding to multiple target monitoring cycles of the target business in the business service platform within a preset time period; based on the number of interval periods corresponding to multiple target monitoring cycles, determine the number of interval periods corresponding to all monitoring cycles within the preset time period; determine the alarm intervals corresponding to all monitoring cycles within the preset time period according to the number of interval periods within the preset time period; and determine the alarm strategy according to the alarm status of each monitoring cycle within the alarm interval.

[0099] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, wherein a program is stored in the non-volatile storage medium, and the program controls the device where the non-volatile storage medium is located to execute the alarm method of the above-mentioned business service platform when it runs.

[0100] According to another aspect of the embodiments of this application, a computer device is also provided, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the program executes the alarm method of the above-mentioned business service platform when it runs.

[0101] It should be noted that each module in the alarm device of the above-mentioned business service platform can be a program module (for example, a set of program instructions to implement a certain function) or a hardware module. For the latter, it can be manifested in the following forms, but is not limited to them: each of the above modules is manifested as a processor, or the functions of each of the above modules are implemented by a processor.

[0102] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0103] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0104] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0105] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0107] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to related technologies, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0108] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. An alarm method for a business service platform, characterized in that, include: Determine the number of interval periods corresponding to multiple target monitoring periods for the target business within a preset time period in the business service platform; Based on the number of interval cycles corresponding to the multiple target monitoring cycles, determine the number of interval cycles corresponding to all monitoring cycles within the preset time period; The alarm intervals corresponding to all monitoring cycles within the preset time period are determined based on the number of cycles in all intervals within the preset time period. Determine the alarm strategy based on the alarm status within the alarm interval for each monitoring period; Based on the interval period number corresponding to the multiple target monitoring periods, the interval period number corresponding to all monitoring periods within a preset time period is determined, including: determining multiple first monitoring periods before the monitoring period to be determined among the multiple target monitoring periods; determining multiple first interval period numbers corresponding to the multiple first monitoring periods; determining the average value of the multiple first interval period numbers; determining the interval period number of the monitoring period to be determined by summing the average value and the offset corresponding to the monitoring period to be determined; and sequentially adding the determined monitoring periods to be determined to the set composed of the multiple target monitoring periods until all monitoring periods to be determined are determined.

2. The method according to claim 1, characterized in that, The offset corresponding to the monitoring period to be determined is determined by the following methods: Determine the smallest index value among the plurality of target monitoring periods whose period index value is greater than the index value of the monitoring period to be determined, and determine the target monitoring period corresponding to the smallest index value as the second monitoring period; The interval period number corresponding to the second monitoring period is determined as the second interval period number; The monitoring period whose index value is sorted one position before the period to be determined is determined as the third monitoring period, and the number of interval periods corresponding to the third monitoring period is determined as the third interval period number. The offset value corresponding to the monitoring period to be determined is determined based on the number of periods in the second interval and the number of periods in the third interval.

3. The method according to claim 2, characterized in that, Determining the offset value corresponding to the monitoring period to be determined based on the second interval period number and the third interval period number includes: Determine the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; Determine the first difference between the number of periods in the second interval and the number of periods in the third interval; Determine the second difference between the index value corresponding to the second monitoring period and the index value corresponding to the third monitoring period; The ratio of the first difference to the second difference is determined as the offset value corresponding to the monitoring period to be determined.

4. The method according to claim 1, characterized in that, The alarm intervals corresponding to all monitoring cycles within the preset time period are determined based on the number of cycles in all intervals within the preset time period, including: The monitoring period for detecting alarm status is defined as the fifth monitoring period; Determine the number of the fifth interval cycles corresponding to the fifth monitoring cycle; The index value of the fifth monitoring period is determined as the starting point of the alarm interval of the fifth monitoring period; The sum of the fifth interval period number and the index value of the fifth monitoring period is determined as the interval endpoint of the alarm interval of the fifth monitoring period; The alarm interval for the fifth monitoring cycle is defined as the interval between the start point and the end point of the interval. The alarm intervals for all monitoring cycles following the fifth monitoring cycle are determined sequentially.

5. The method according to claim 4, characterized in that, Based on the alarm status within the alarm interval for each monitoring period, determine the alarm strategy, including: Sort by the monitoring period index value of the detected alarm status, and determine the alarm status of each monitoring period in turn; If the monitoring period during which the alarm state is detected does not fall within the alarm interval, an alarm message is sent directly, and the alarm interval corresponding to the monitoring period during which the alarm state is detected is set. If the monitoring period in which the alarm status is detected falls within the alarm interval, an alarm strategy is determined based on the alarm status of all monitoring periods within the alarm interval.

6. The method according to claim 5, characterized in that, If the monitoring period in which the alarm status is detected falls within the alarm interval, an alarm strategy is determined based on the alarm status of all monitoring periods within the alarm interval, including: If the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is an alarm, then the alarm strategy is determined to be to send alarm information. The detection period refers to the monitoring period in which the alarm status is detected. If the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is an alarm, the alarm strategy is determined to be to record the alarm status and not send alarm information. If the index value corresponding to the detection period is different from the end point of the alarm interval and the alarm status detected in the detection period is recovery, the alarm strategy is determined to be to record the recovery status and not send recovery information. If the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of the monitoring period in the alarm interval is both alarm and recovery, the alarm strategy is determined to be to send a flashover message. If the index value corresponding to the detection period is the same as the end point of the alarm interval and the alarm status of all monitoring periods within the alarm interval is recovered, the alarm strategy is determined to be to send recovery information.

7. An alarm device, characterized in that, include: The first determining module is used to determine the number of interval cycles corresponding to multiple target monitoring cycles within a preset time period; The second determining module is used to determine the number of interval cycles corresponding to all monitoring cycles within a preset time period based on the number of interval cycles corresponding to the plurality of target monitoring cycles. Determining the number of interval cycles corresponding to all monitoring cycles within the preset time period based on the number of interval cycles corresponding to the plurality of target monitoring cycles includes: determining a plurality of first monitoring cycles preceding the monitoring cycle to be determined among the plurality of target monitoring cycles; determining a plurality of first interval cycle numbers corresponding to the plurality of first monitoring cycles; determining the average value of the plurality of first interval cycle numbers; determining the number of interval cycles of the monitoring cycle to be determined by summing the average value and the offset corresponding to the monitoring cycle to be determined; and sequentially adding the determined monitoring cycles to be determined to the set composed of the plurality of target monitoring cycles until all monitoring cycles to be determined are determined. The third determining module is used to determine the alarm intervals corresponding to all monitoring cycles within the preset time period based on the number of cycles in all intervals within the preset time period. The fourth determination module is used to determine the alarm strategy based on the alarm status within the alarm interval for each monitoring period.

8. An alarm system for a business service platform, characterized in that, include: A business server and a monitoring system, wherein the monitoring system is connected to the business server through a monitoring interface in the business server; The business server is used to run various service operations; The monitoring system is used to determine the number of interval periods corresponding to multiple target monitoring cycles of a target business in a business service platform within a preset time period; based on the number of interval periods corresponding to the multiple target monitoring cycles, determine the number of interval periods corresponding to all monitoring cycles within the preset time period; determine the alarm intervals corresponding to all monitoring cycles within the preset time period based on the number of interval periods within the preset time period; and determine the alarm strategy based on the alarm status of each monitoring cycle within the alarm interval. The monitoring system is further configured to determine the number of interval cycles corresponding to all monitoring cycles within a preset time period based on the number of interval cycles corresponding to the plurality of target monitoring cycles, including: determining a plurality of first monitoring cycles preceding the monitoring cycle to be determined among the plurality of target monitoring cycles; determining a plurality of first interval cycle numbers corresponding to the plurality of first monitoring cycles; determining the average value of the plurality of first interval cycle numbers; determining the sum of the average value and the offset corresponding to the monitoring cycle to be determined as the number of interval cycles of the monitoring cycle to be determined; and sequentially adding the determined monitoring cycles to be determined to the set composed of the plurality of target monitoring cycles until all monitoring cycles to be determined are determined.

9. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores a program, wherein when the program is executed, it controls the device where the non-volatile storage medium is located to execute the alarm method of the business service platform according to any one of claims 1 to 6.

10. A computer device, characterized in that, include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the alarm method of the business service platform according to any one of claims 1 to 6.