Alarm information sending method and device, and storage medium

By generating and sending alarm information on the server, the problem of low operational efficiency caused by data interruption was solved, resulting in reduced operational costs and improved efficiency.

CN116232870BActive Publication Date: 2026-05-01CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2022-12-05
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

During the system data acquisition process, situations such as data acquisition service failure, server crash, and abnormal data transmission components may occur, leading to data interruption and anomalies, increasing the manpower cost of operation and maintenance, and reducing the efficiency of system operation and maintenance.

Method used

The server obtains multiple batches of data, determines the target value based on the component information, and if the value exceeds a preset threshold, it generates and sends an alarm message to the terminal, indicating that the component information of the target component has not been obtained.

Benefits of technology

By generating and sending alarm information in a timely manner, administrators can receive it promptly, reducing the manpower costs of operation and maintenance and improving the efficiency of system operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232870B_ABST
    Figure CN116232870B_ABST
Patent Text Reader

Abstract

The application provides a method and device for sending alarm information and a storage medium, relates to the field of communication, and is used for improving the efficiency of system operation and maintenance. The method is applied to a server. The method comprises the following steps: acquiring a plurality of first batches of data, wherein the first batches of data comprise component information of at least one component, and the at least one component is a component in the server; determining a target value according to the plurality of first batches of data and the component information of a target component, wherein the target value is the number of second batches of data, and the second batches of data are batches of data in the plurality of first batches of data that do not comprise the component information of the target component; if the target value is greater than a preset number threshold, generating alarm information, wherein the alarm information is used for indicating that the component information of the target component is not acquired; and sending the alarm information to a terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular to a method, apparatus and storage medium for sending alarm information. Background Technology

[0002] During the data acquisition process, situations may occur such as the data acquisition service crashing, the server freezing, or data transmission components malfunctioning. This could result in the system failing to acquire data, indicating a data interruption and data anomalies.

[0003] To prevent system data interruptions that could lead to widespread data anomalies, administrators need to continuously monitor the system and review monitoring data in real time. When an interruption is detected, administrators must promptly investigate the abnormal data and take corrective action. This may increase maintenance manpower costs and reduce system maintenance efficiency. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for sending alarm information to improve the efficiency of system operation and maintenance.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, this application provides a method for sending alarm information. This method can be applied to a server, which can acquire multiple batches of data, each batch including component information of at least one component, where the at least one component is a component within the server. The server can determine a target value based on the multiple batches of data and the component information of a target component. The target value is the quantity of a second batch of data, which consists of batches of data where component information for the target component is not present in the initial batches. If the target value exceeds a preset threshold, the server can generate an alarm message indicating that component information for the target component has not been acquired. Subsequently, the server can send the alarm message to a terminal.

[0007] Optionally, the method described above, in which "the server determines the target value based on multiple batches of first-batch data and component information of the target component," may further include: when determining the first batch of second-batch data from at least one third batch of data, the server may generate a first value, which indicates that the quantity of the second batch of data is 1, and that the at least one third batch of data is a portion of the first batch of data. After generating the first value, for each fourth batch of data in at least one fourth batch of data, if the component information of the target component does not exist in the fourth batch of data, the server may update the first value, where the fourth batch of data is the batch of data other than the third batch of data in multiple first-batch data. Specifically, when the first second batch of data is determined, the target value is the first value; after updating the first value, the target value is the updated first value.

[0008] Optionally, the above method of "the server acquiring multiple batches of data" may further include: the server acquiring target data, which includes component information from multiple batches of data. Then, the server may divide the target data into multiple batches of data according to a target sliding window and a target step size, where the target sliding window and the target step size are the same.

[0009] Optionally, the server stores component information of the target component, which is a component configured with an alarm policy.

[0010] Secondly, this application provides an alarm information sending device, which is applied to a server and includes an acquisition module, a processing module, and a sending module.

[0011] The acquisition module acquires multiple batches of data, each batch including component information for at least one component, which is a component located on the server. The processing module determines a target value based on the batches of data and the target component's information. The target value is the quantity of a second batch of data, which consists of batches of data for components for which the target component's information is not present in the first batches. The processing module also generates an alarm message if the target value exceeds a preset threshold, indicating that the target component's information was not acquired. The sending module sends the alarm message to the terminal.

[0012] Optionally, the processing module is specifically configured to generate a first value when the first second batch of data is determined from at least one third batch of data. The first value indicates that the quantity of the second batch of data is 1, and that the at least one third batch of data is a portion of the first batch of data. The processing module is further configured to, after generating the first value, update the first value for each fourth batch of data in at least one fourth batch of data if the target component's component information does not exist in the fourth batch of data. The fourth batch of data consists of multiple batches of data from the first batch, excluding the third batch of data. Specifically, when the first second batch of data is determined, the target value is the first value; after updating the first value, the target value is the updated first value.

[0013] Optionally, an acquisition module is used to acquire target data, which includes component information from multiple batches of data. A processing module is also used to divide the target data into multiple batches of data according to a target sliding window and a target step size, where the target sliding window and target step size are the same.

[0014] Optionally, the server stores component information of the target component, which is a component configured with an alarm policy.

[0015] Thirdly, this application provides an alarm information sending apparatus, comprising a processor and a memory. The processor and the memory are coupled. The memory stores one or more programs, which include computer-executable instructions. When the alarm information sending apparatus is running, the processor executes the computer-executable instructions stored in the memory to implement the alarm information sending method as described in any possible implementation of the first aspect.

[0016] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the alarm information sending method described in any of the possible implementations of the first aspect above.

[0017] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, causes the computer to implement a method for sending alarm information as described in any possible implementation of the first aspect.

[0018] The technical problems that can be solved and the technical effects that can be achieved by the alarm information sending device, computer equipment, computer storage medium or computer program product in the above solution can be referred to the technical problems and technical effects solved in the first aspect above, and will not be repeated here.

[0019] The technical solution provided in this application offers at least the following advantages: The server can acquire multiple batches of data, each batch including component information of at least one component, where the at least one component is a component within the server. Based on the multiple batches of data and the component information of the target component, the server determines a target value, which is the quantity of a second batch of data. The second batch of data consists of batches of data containing component information of the target component within the multiple batches of data. The server then determines whether the target value exceeds a preset threshold. If the target value exceeds the preset threshold, the server generates an alarm message. The server then sends the alarm message to the terminal. In this way, the server can generate and send alarm messages to the terminal when data acquisition is interrupted, enabling administrators to receive alarm messages promptly, reducing maintenance manpower costs, and thus improving maintenance efficiency. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application, and do not constitute an undue limitation of this application.

[0021] Figure 1 This is a schematic diagram illustrating an architecture for sending alarm information according to an exemplary embodiment;

[0022] Figure 2 This is a flowchart illustrating a method for sending alarm information according to an exemplary embodiment;

[0023] Figure 3 This is a flowchart illustrating a method for sending alarm information according to an exemplary embodiment;

[0024] Figure 4 This is a flowchart illustrating a method for sending alarm information according to an exemplary embodiment;

[0025] Figure 5 This is a structural block diagram of an alarm information sending device according to an exemplary embodiment;

[0026] Figure 6 This is a schematic diagram of the structure of an alarm information sending device according to an exemplary embodiment;

[0027] Figure 7 This is a conceptual partial view of a computer program product according to an exemplary embodiment. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] In this article, the character " / " generally indicates that the objects before and after it are in an "or" relationship. For example, A / B can be understood as A or B.

[0030] The terms “first” and “second” in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.

[0031] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the steps or modules listed, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to such process, method, product, or device.

[0032] Furthermore, in the embodiments of this application, the words "exemplary" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design that is described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design options. Specifically, the use of the words "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0033] For ease of understanding, the terminology used in the embodiments of this application will be introduced below.

[0034] 1. Kafka.

[0035] Kafka is a distributed subscription messaging system with high scalability and high throughput, making it suitable for monitoring scenarios involving massive amounts of streaming data.

[0036] 2. Spark Streaming.

[0037] Spark Streaming is a streaming processing framework that supports scalable, high-throughput, and fault-tolerant real-time data streaming. Real-time data sources can include Kafka and Flume (a system for collecting, aggregating, and transmitting massive amounts of logs). Advanced, complex operators can be used to process streaming data. Finally, the processed data can be stored in file systems, databases, etc., for convenient real-time visualization.

[0038] Before providing a detailed description of the alarm information sending method in this application embodiment, the implementation environment and application scenarios of this application embodiment will be introduced first.

[0039] During the data acquisition process, situations may occur such as the data acquisition service crashing, the server freezing, or data transmission components malfunctioning. This could result in the system failing to acquire data, indicating a data interruption and data anomalies.

[0040] Currently, to avoid undetected system data interruptions leading to widespread data anomalies, administrators need to continuously monitor the system and view monitoring data in real time. When an interruption is detected, administrators need to promptly investigate the abnormal data and manage the system. This may increase maintenance manpower costs and reduce system maintenance efficiency.

[0041] To address the aforementioned issues, this application provides a method for sending alarm information. This method is applied to a server, which can acquire multiple batches of initial data, each including component information for at least one component. The server can determine the quantity of a second batch of data based on the multiple batches of initial data and the component information of the target component. The second batch of data consists of batches of data for which component information for the target component is not present in the initial batches. The server can then determine whether the quantity of the second batch of data exceeds a preset threshold. If the target quantity exceeds the preset threshold, the server generates an alarm message indicating that component information for the target component was not acquired. The server then sends the alarm message to the terminal. In this way, the server can generate and send alarm messages to the terminal when data acquisition is interrupted, allowing administrators to receive alarm messages promptly, reducing maintenance manpower costs, and thus improving system maintenance efficiency.

[0042] The implementation environment of the embodiments of this application is described below.

[0043] Figure 1 This is a schematic diagram illustrating an architecture for sending alarm information according to an exemplary embodiment. The architecture includes: component 101, server 102, and terminal 103. Component 101 and server 102 can communicate wirelessly. Server 102 and terminal 103 can communicate wirelessly.

[0044] Component 101 can be a software entity within a software system that has relatively independent functions, can be deployed independently, and can be assembled. For example, a component can be a virtual machine. Another example is a database within a virtual machine. Yet another example is a network component. Component 101 can be used to send component information to server 102.

[0045] Terminal 103 can be used to receive alarm information and visualize the alarm information.

[0046] In this embodiment of the application, the server may be deployed with a Kafka cluster, a Spark Streaming framework, and a database (DataBash).

[0047] The Kafka cluster can connect to the Spark Streaming framework. It can store component information and alerts from multiple components. It can also connect to endpoints and send alerts to those endpoints.

[0048] The Spark Streaming framework can retrieve component information from a Kafka cluster. Spark Streaming can also be used to determine if component information for a target component exists within the component information of multiple components. The target component is the component configured with an alerting policy.

[0049] The database can be connected to the Spark Streaming framework. It can be used to store component information for target components. Furthermore, it can store component identifiers for multiple components, mappings between multiple targets, and multiple alerting policies. The target mappings are the correspondence between component identifiers and alerting policies.

[0050] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0051] like Figure 2 The image shows a method for sending alarm information provided in an embodiment of this application. The method includes:

[0052] S201, The server retrieves multiple batches of data.

[0053] The first batch of data includes component information for at least one component, and the at least one component is a component in the server.

[0054] In one possible design, component information may include: component identifier, component performance identifier, and component performance parameters.

[0055] For example, suppose at least one component may include: a virtual machine and a database. Component information of at least one component may include: the virtual machine's CPU utilization is 75%, the virtual machine's memory utilization is 50%, the database has 7 threads, and the database's data pool has 2 connectable nodes.

[0056] In one possible implementation, the server can use a pre-defined acquisition technique to obtain multiple batches of initial data.

[0057] It should be noted that the preset data collection technology is not limited in the embodiments of this application. For example, the preset data collection technology can be Telegraf monitoring technology. For example, the preset data collection technology can be Flume log collection technology. Yet another example is Logstash data collection technology.

[0058] In another possible implementation, the server can acquire target data, which includes component information from multiple initial batches of data. The server can then divide the target data into multiple initial batches according to a target sliding window and a target step size.

[0059] For example, if the target data is data with a total duration of 15 minutes, the target sliding window is 5 minutes, and the target step size is 5 minutes, then the multiple first batch data include: data from 0 minutes to 5 minutes, data from 5 minutes to 10 minutes, and data from 10 minutes to 15 minutes.

[0060] In this embodiment, the target sliding window is the same as the target step size.

[0061] It should be noted that, in the embodiments of this application, the target sliding window and the target step size are not limited. For example, the target sliding window and the target step size can both be 5 minutes. Another example is that the target sliding window and the target step size can both be 10 minutes. Yet another example is that the target sliding window and the target step size can both be 7 minutes.

[0062] Understandably, setting the target sliding window to the same size as the target step ensures that multiple batches of data come from different time periods, thus avoiding data duplication.

[0063] S202. The server determines the target value based on multiple initial batch data and component information of the target component.

[0064] The target value is the number of data in the second batch, which consists of multiple batches of data for which the target component was not present in the first batch.

[0065] It should be noted that, in this embodiment, if the first batch of data contains component information of the target component, it indicates that the server has obtained the data and no data interruption occurred during the data acquisition process. If the first batch of data does not contain component information of the target component, it indicates that the server has not obtained the data and a data interruption occurred during the data acquisition process.

[0066] In one possible design, the component information of the target component may include: the component identifier of the target component.

[0067] In one possible implementation, for each batch of data in a plurality of first-batch data sets, the server can determine whether each first-batch data set is a second-batch data set based on a first operation. The first operation includes: the server determining whether there exists a component identifier in the component identifiers of a component in the target first-batch data set that is identical to the component identifier of the target component. Here, the target first-batch data set is any one of the plurality of first-batch data sets.

[0068] In one possible design, if there is no component identifier in the component identifier of the target component in the first batch of data, the server determines the first batch of data as the second batch of data.

[0069] For example, if the component identifiers in the first batch of target data include virtual machine A, virtual machine B, and virtual machine C, and the component identifier of the target component is virtual machine D, then the server can determine that the first batch of target data is the second batch of data.

[0070] In another possible design, if the component identifier of a component in the first batch of target data contains the same component identifier as the component identifier of the target component, the server can determine that the first batch of target data is not the second batch of data.

[0071] For example, if the component identifiers in the first batch of target data include virtual machine A, virtual machine B, and virtual machine C, and the component identifier of the target component is virtual machine C, then the server can determine that the first batch of target data is not the second batch of data.

[0072] It should be noted that, in this embodiment of the application, for each batch of data in a plurality of batches, the server can determine whether each batch of data is a second batch of data based on the first operation. That is, the server can perform the first operation on each batch of data to determine whether each batch of data is a second batch of data.

[0073] Then, the server can determine the target value based on the quantity of the second batch of data.

[0074] For example, if the second batch of data contains 5 items, then the target value is 5.

[0075] It should be noted that the order of S201 and S202 is not limited in this embodiment. For example, the server can first obtain multiple batches of data, then determine whether each batch of data contains component information of the target component, and then determine the target value. Alternatively, for each batch of data, the server can first obtain the batch of data, then determine whether the batch of data contains component information of the target component, and then determine the target value.

[0076] S203. The server determines whether the target value is greater than the preset quantity threshold.

[0077] It should be noted that, in this embodiment, the preset quantity threshold is not limited. For example, the preset quantity threshold can be 6. Or, for example, the preset quantity threshold can be 10. Or, for example, the preset quantity threshold can be 3.

[0078] In some embodiments, if the server determines that the target data is less than a preset data threshold, the server may delete the target value.

[0079] In some embodiments, if the server determines that the target value is greater than a preset quantity threshold, the server may execute S204.

[0080] Optionally, if the server determines that the target value is equal to a preset quantity threshold, the server can execute S204.

[0081] S204, The server generates alarm information.

[0082] The alarm information is used to indicate that the component information of the target component has not been obtained.

[0083] It should be noted that in this embodiment of the application, if the server does not obtain the component information of the target component, it indicates that a data interruption occurred during the data acquisition process.

[0084] In one possible implementation, the server can generate an alarm message when the target value exceeds a preset data threshold.

[0085] S205. The server sends an alarm message to the terminal.

[0086] For example, the server can send alarm information to the terminal via SMS.

[0087] In this embodiment of the application, after the server sends alarm information to the terminal, the terminal can receive the alarm information from the server and visualize the alarm information.

[0088] Understandably, the server can acquire multiple batches of data. Each batch includes component information for at least one component, which is a component within the server. Based on these batches and the component information of the target component, the server determines a target value, which is the quantity of a second batch of data. This second batch consists of batches of data containing component information of the target component from the first batches. The server then determines whether the target value exceeds a preset threshold. If the target value exceeds the threshold, the server generates an alarm message and sends it to the terminal. This allows the server to generate and send alarm messages to the terminal when data acquisition is interrupted, enabling administrators to receive alarms promptly, reducing maintenance manpower costs, and improving maintenance efficiency.

[0089] In some embodiments, such as Figure 3 As shown, the method by which the server determines the target value (S202) based on multiple initial batch data and component information of the target component may further include:

[0090] S301. When the first second batch of data is determined from at least one third batch of data, the server generates a first value.

[0091] Among them, at least one third batch of data is a portion of the first batch of data.

[0092] For example, if multiple first batch data include 10 first batch data, and these 10 first batch data are sorted in a preset order. If the server determines the first second batch data from the fourth first batch data, then at least one third batch data includes the first four first batch data, namely the first first batch data, the second first batch data, the third first batch data, and the fourth first batch data.

[0093] It should be noted that, in this embodiment, the preset order can be the order in which the time periods of each batch of data in multiple batches are divided. Alternatively, the preset order can be the order in which each batch of data in multiple batches is acquired.

[0094] In this embodiment of the application, the first value is used to indicate that the quantity of the second batch of data is 1.

[0095] It should be noted that the first numerical value is not limited in the embodiments of this application. For example, the first numerical value can be 1. Or, for example, the first numerical value can be 3. Or, for example, the first numerical value can be 5.

[0096] In some embodiments, after the server generates the first value, the server may execute S302 for each of the fourth batches of data in at least one fourth batch.

[0097] The fourth batch of data consists of multiple batches of data from the first batch, excluding the third batch.

[0098] For example, if multiple first batch data include 10 first batch data, and these 10 first batch data are sorted in a preset order. If the server determines the first second batch data from the fourth first batch data, then at least one third batch data includes batch data other than the first four first batch data, namely the fifth, sixth, seventh, eighth, ninth, and tenth first batch data.

[0099] S302. The server determines whether the fourth batch of data contains component information of the target component.

[0100] In one possible implementation, the server can determine whether the component identifier of the target component exists in the component identifiers of the components in the fourth batch of data.

[0101] In one possible design, if the component identifier of the target component does not exist in the component identifier of the component in the fourth batch of data, the server determines that the fourth batch of data does not contain the component information of the target component.

[0102] In another possible design, if the component identifier of the target component exists in the component identifier of the component in the fourth batch of data, the server determines that the fourth batch of data contains the component information of the target component.

[0103] It should be noted that, in the embodiments of this application, the description of the component information for determining whether the fourth batch of data contains the target component can be found in the description of the first operation in S202, and will not be repeated here.

[0104] In some embodiments, if the target component's component information is not found in the fourth batch of data, the server may execute S303.

[0105] S303, Server updates first value.

[0106] For example, if the first value is 1, the updated first value can be 2.

[0107] In this embodiment of the application, when the server determines the first batch of data, the target value is the first value. After the server updates the first value, the target value becomes the updated first value.

[0108] It should be noted that, in this embodiment, the server can first determine whether the target component's component information exists in each of the multiple fourth batches of data, and then update the first value. Alternatively, for each of the multiple fourth batches of data, the server can first determine whether the target component's component information exists in the fourth batch of data, and then update the first value.

[0109] In some embodiments, the server stores component information of a target component, which is a component configured with an alarm policy.

[0110] In one possible implementation, the server stores component identifiers for multiple components, multiple alarm policies, and multiple target mappings, where the target mappings are the correspondences between component identifiers and alarm policies. The server can determine the target component based on the multiple target mappings and the component identifiers of the multiple components.

[0111] For example, suppose the component identifiers of multiple components include: Virtual Machine A, Virtual Machine B, and Virtual Machine C; multiple alarm policies include: Policy A (e.g., trigger an alarm when CPU utilization is greater than 70%), Policy B (e.g., trigger an alarm when memory utilization is greater than 80%), and Policy C (e.g., trigger an alarm when disk utilization is greater than 80%); and multiple target correspondences include: Virtual Machine A corresponds to Policy A, Virtual Machine A corresponds to Policy B, and Virtual Machine B corresponds to Policy B. Then the target components include: Virtual Machine A and Virtual Machine B.

[0112] The method for sending alarm information according to this application will be described below with reference to specific embodiments. Figure 4As shown, the server stores an alarm instance information table, an instance-to-alarm-policy mapping table, and an alarm condition table. The alarm instance information table includes component identifiers for multiple components; the instance-to-alarm-policy mapping table includes multiple target mappings; and the alarm condition table includes multiple alarm policies. The server can acquire target data. Then, the server can divide the target data into multiple batches of data, with a target sliding window of 5 minutes and a target step size of 5 minutes. Next, the server can determine whether component information of the target component exists in each batch of data. If component information of the target component exists in the batch of data, the server determines that no data interruption occurred during the acquisition of the batch of data. If component information of the target component does not exist in the batch of data, the server determines that a data interruption occurred during the acquisition of the batch of data. The server can determine the number of times data interruptions occurred during the acquisition of each batch of data. Then, the server can determine whether the number of data interruptions reaches a preset data threshold. If the number of data interruptions reaches the preset data threshold, the server generates an alarm message. If the number of data interruptions does not reach the preset data threshold, the server does not generate an alarm message.

[0113] The above description primarily focuses on the solutions provided by the embodiments of this application from the perspective of computer devices. It is understood that, in order to achieve the aforementioned functions, the computer device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the alarm information sending methods and steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed through hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0114] This application also provides an alarm information sending device. The alarm information sending device can be a computer device, the CPU of the aforementioned computer device, a module in the aforementioned computer device for sending alarm information, or a client in the aforementioned computer device for sending alarm information.

[0115] This application embodiment can divide the sending of alarm information into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0116] like Figure 5 The diagram shown is a structural schematic of an alarm information sending device provided in an embodiment of this application. This device is applied to a server. The alarm information sending device is used to perform... Figure 2 , Figure 3 and Figure 4 The alarm information sending method is shown. The alarm information sending device may include an acquisition module 501, a processing module 502, and a sending module 503.

[0117] The acquisition module 501 is used to acquire multiple batches of data, each batch including component information of at least one component, where the at least one component is a component in the server. The processing module 502 is used to determine a target value based on the multiple batches of data and the component information of the target component. The target value is the quantity of a second batch of data, which consists of batches of data for which component information of the target component is not present in the first batches. The processing module 502 is also used to generate an alarm message if the target value exceeds a preset threshold, indicating that component information of the target component has not been acquired. The sending module 503 is used to send the alarm message to the terminal.

[0118] Optionally, processing module 502 is specifically configured to generate a first value when determining the first second batch of data from at least one third batch of data. The first value indicates that the quantity of the second batch of data is 1, and that the at least one third batch of data is a portion of the first batch of data. Processing module 502 is further configured to, after generating the first value, update the first value for each fourth batch of data in at least one fourth batch of data if the target component's component information does not exist in the fourth batch of data. The fourth batch of data consists of multiple batches of data from the first batch, excluding the third batch of data. Specifically, when the first second batch of data is determined, the target value is the first value; after updating the first value, the target value is the updated first value.

[0119] Optionally, the acquisition module 501 is specifically used to acquire target data, which includes component information from multiple batches of data. The processing module 502 is further used to divide the target data into multiple batches of data according to the target sliding window and the target step size, wherein the target sliding window and the target step size are the same.

[0120] Optionally, the server stores component information of the target component, which is a component configured with an alarm policy.

[0121] Figure 6 This is a schematic diagram of the hardware structure of an alarm information sending device according to an exemplary embodiment. The alarm information sending device may include a processor 601, which is used to execute application code to implement the alarm information sending method of this application.

[0122] The processor 601 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0123] like Figure 6 As shown, the alarm information sending device may further include a memory 602. The memory 602 stores the application code that executes the scheme of this application, and its execution is controlled by the processor 601.

[0124] Memory 602 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory 602 may exist independently and be connected to processor 601 via bus 604. Memory 602 may also be integrated with processor 601.

[0125] like Figure 6As shown, the alarm information sending device may further include a communication interface 603, wherein the processor 601, memory 602, and communication interface 603 may be coupled to each other, for example, through a bus 604. The communication interface 603 is used for information exchange with other devices, for example, supporting information exchange between the alarm information sending device and other devices.

[0126] It should be pointed out that, Figure 6 The device structure shown does not constitute a limitation on the device for sending the alarm information, except... Figure 6 In addition to the components shown, the alarm information sending device may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0127] In actual implementation, the functions implemented by processing module 502 can be derived by... Figure 6 The processor 601 shown calls the program code in memory 602 to implement this.

[0128] This application also provides a computer-readable storage medium storing instructions that, when executed by a processor of a computer device, enable the computer to perform the alarm information sending method provided in the above-described embodiments. For example, the computer-readable storage medium may be a memory 602 including instructions, which may be executed by a processor 601 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.

[0129] Figure 7 A conceptual partial view of a computer program product provided in an embodiment of this application is shown schematically. The computer program product includes a computer program for executing computer processes on a computing device.

[0130] In one embodiment, a computer program product is provided using a signal bearer medium 700. The signal bearer medium 700 may include one or more program instructions that, when executed by one or more processors, can provide the above-mentioned... Figure 2 , Figure 3 and Figure 4 The described function or part of the function. Therefore, for example, refer to... Figure 2 In the embodiment shown, one or more features of S201 to S205 can be fulfilled by one or more instructions associated with the signal carrying medium 700. Furthermore, Figure 7 The program instructions in the document also describe example instructions.

[0131] In some examples, the signal carrying medium 700 may include a computer-readable medium 701, such as, but not limited to, a hard disk drive, a compact disc (CD), a digital video optical disc (DVD), a digital magnetic tape, a memory, a read-only memory (ROM), or a random access memory (RAM), etc.

[0132] In some implementations, the signal carrying medium 700 may include a computer recordable medium 702, such as, but not limited to, a memory, a read / write (R / W) CD, an R / W DVD, and so on.

[0133] In some implementations, the signal carrying medium 700 may include a communication medium 703, such as, but not limited to, digital and / or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0134] The signal-bearing medium 700 can be transmitted by a wireless communication medium 703. One or more program instructions may be, for example, computer-executable instructions or logical implementation instructions.

[0135] In some examples, such as targeting Figure 5 The alarm information sending device described can be configured to provide various operations, functions, or actions in response to one or more program instructions in a computer-readable medium 701, a computer-recordable medium 702, and / or a communication medium 703.

[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0137] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only 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 apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0138] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the constituent units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0139] 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.

[0140] 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 readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor 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 USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0141] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for sending alarm information, characterized in that, Applied to a server, the method includes: Obtain multiple batches of data, wherein the batches of data include component information of at least one component, and the at least one component is a component in the server; Based on the component information of the multiple first batches of data and the target component, a target value is determined. The target value is the number of second batches of data, which are batches of data in which the component information of the target component does not exist in the multiple first batches of data. The target component is a component configured with an alarm policy. If the target value is greater than a preset quantity threshold, an alarm message is generated. The alarm message is used to indicate that the component information of the target component has not been obtained. The failure to obtain the component information of the target component indicates that a data interruption occurred during the data acquisition process. The alarm information is sent to the terminal.

2. The method according to claim 1, characterized in that, The step of determining the target value based on the plurality of first-batch data and the component information of the target component includes: When the first second batch of data is determined from the at least one third batch of data, a first value is generated, which indicates that the quantity of the second batch of data is 1, and the at least one third batch of data is a portion of the first batch of data. After generating the first value, for each fourth batch of data in at least one fourth batch of data, if there is no component information of the target component in the fourth batch of data, then the first value is updated. The fourth batch of data is the batch of data other than the third batch of data in the plurality of first batches of data. Specifically, when the first batch of data in the second batch is determined, the target value is the first value; after the first value is updated, the target value is the updated first value.

3. The method according to claim 1 or 2, characterized in that, The acquisition of multiple batches of data includes: Acquire target data, which includes component information from the plurality of first-batch data; The target data is divided into multiple first-batch data according to the target sliding window and the target step size, wherein the target sliding window is the same as the target step size.

4. The method according to claim 1 or 2, characterized in that, The server stores component information of the target component.

5. An alarm information sending device, characterized in that, Applied to a server, the device includes: An acquisition module is used to acquire multiple batches of data, wherein the batches of data include component information of at least one component, and the at least one component is a component in the server; The processing module is used to determine a target value based on the multiple first batch data and the component information of the target component. The target value is the number of second batch data, and the second batch data is the batch data in which the component information of the target component does not exist in the multiple first batch data. The target component is a component configured with an alarm policy. The processing module is further configured to generate an alarm message if the target value is greater than a preset quantity threshold. The alarm message is used to indicate that the component information of the target component has not been acquired. The failure to acquire the component information of the target component indicates that a data interruption has occurred during the data acquisition process. The sending module is used to send the alarm information to the terminal.

6. The apparatus according to claim 5, characterized in that, The processing module is specifically used to generate a first value when the first second batch of data is determined from the at least one third batch of data. The first value is used to indicate that the quantity of the second batch of data is 1, and the at least one third batch of data is a portion of the first batch of data. The processing module is further configured to, after generating the first value, update the first value for each fourth batch of data in at least one fourth batch of data if there is no component information of the target component in the fourth batch of data, wherein the fourth batch of data is the batch of data other than the third batch of data in the plurality of first batches of data. Specifically, when the first batch of data in the second batch is determined, the target value is the first value; after the first value is updated, the target value is the updated first value.

7. The apparatus according to claim 5 or 6, characterized in that, The acquisition module is specifically used to acquire target data, which includes component information from the plurality of first batch data. The processing module is further configured to divide the target data into the plurality of first-batch data according to the target sliding window and the target step size, wherein the target sliding window is the same as the target step size.

8. The apparatus according to claim 7, characterized in that, The server stores component information of the target component.

9. An alarm information sending device, characterized in that, include: Processor and memory; The processor and the memory are coupled; The memory is used to store one or more programs, which include computer-executable instructions. When the alarm information sending device is running, the processor executes the computer-executable instructions stored in the memory to cause the alarm information sending device to perform the alarm information sending method as described in any one of claims 1-4.

10. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the alarm information sending method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Service alarm processing method and device, equipment and storage medium

    CN114138615A