CN115643155A - Method and device for sending alarm message, electronic equipment and readable storage medium - Google Patents

Method and device for sending alarm message, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115643155A
CN115643155A CN202211238121.0A CN202211238121A CN115643155A CN 115643155 A CN115643155 A CN 115643155A CN 202211238121 A CN202211238121 A CN 202211238121A CN 115643155 A CN115643155 A CN 115643155A
Authority
CN
China
Prior art keywords
alarm
event
information
transmission path
alarm event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211238121.0A
Other languages
Chinese (zh)
Inventor
苏鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211238121.0A priority Critical patent/CN115643155A/en
Publication of CN115643155A publication Critical patent/CN115643155A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Alarm Systems (AREA)

Abstract

The application discloses a method and a device for sending an alarm message, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: receiving M alarm information, wherein the M alarm information corresponds to M alarm events one by one, and M is a positive integer; sending an alarm message based on an alarm event response parameter corresponding to a target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting historical alarm messages of the target alarm event; the target alarm event is at least one of M alarm events corresponding to M alarm information, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event.

Description

Method and device for sending alarm message, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a method and a device for sending an alarm message, electronic equipment and a readable storage medium.
Background
In order to ensure the normal development of communication services, it is necessary to timely and effectively monitor, report and process the alarm event generated by the communication device, so that the network operation and maintenance personnel can timely handle the corresponding fault, thereby providing a good communication service.
At present, when an alarm event occurs in a communication service, the alarm function entity may send an alarm message corresponding to the alarm event to a specific device of a network operation and maintenance worker according to preset configuration information, so as to notify the network operation and maintenance worker to process the alarm event in time.
However, according to the method, since the preset configuration information only indicates that the alarm message is fixedly sent to a device of a specific network operation and maintenance worker, and a response problem of the alarm message is not considered, sending the alarm message according to the configuration information may result in a low response efficiency of the alarm message.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a readable storage medium for sending an alarm message, which can solve the problem of poor flexibility in processing an alarm event.
In a first aspect, an embodiment of the present application provides a method for sending an alarm message, where the method includes: receiving M alarm information, wherein the M alarm information corresponds to M alarm events one by one, and M is a positive integer; sending an alarm message based on an alarm event response parameter corresponding to a target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting a historical alarm message of a target alarm event; the target alarm event is at least one of M alarm events corresponding to M alarm information, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event.
In a second aspect, an embodiment of the present application provides an apparatus for sending an alarm message, where the apparatus includes a receiving module and a sending module; the receiving module is used for receiving M pieces of alarm information, wherein the M pieces of alarm information correspond to M pieces of alarm events one by one, and M is a positive integer; a sending module, configured to send an alarm message based on an alarm event response parameter corresponding to a target transmission path, where the target transmission path is: each transmission path for transmitting historical alarm messages of the target alarm event; the target alarm event is at least one of M alarm events corresponding to M alarm information, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, M pieces of alarm information can be received, wherein the M pieces of alarm information correspond to M alarm events one by one, and M is a positive integer; and sending an alarm message based on the alarm event response parameter corresponding to the target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting historical alarm messages of the target alarm event; the target alarm event is at least one of M alarm events corresponding to M alarm information, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event. Through the scheme, after receiving the M pieces of alarm information, the electronic equipment can correspondingly evaluate the alarm event response parameters of the response rate of the corresponding alarm object to the target alarm event and send the alarm information based on each transmission path of the historical alarm information for sending the target alarm event, namely the electronic equipment can send the alarm information according to the response rate of the alarm object corresponding to each transmission path to the target alarm event, and the alarm information is not fixedly sent to the equipment of a specific network operation and maintenance person only according to the preset configuration information, so that the response efficiency of the alarm information can be improved.
Drawings
Fig. 1 is a flowchart of a method for sending an alarm message according to an embodiment of the present application;
fig. 2 is a schematic diagram of a method for sending an alarm message according to an embodiment of the present application;
fig. 3 is a second schematic diagram of a method for sending an alarm message according to an embodiment of the present application;
fig. 4 is a third schematic diagram of a method for sending an alarm message according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of a sending method of an alarm message according to an embodiment of the present application;
fig. 6 is a fifth schematic diagram of a method for sending an alarm message according to an embodiment of the present application;
fig. 7 is a sixth schematic diagram of a sending method of an alarm message according to an embodiment of the present application;
fig. 8 is a schematic diagram of an apparatus for sending an alert message according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an electronic device provided by an embodiment of the application;
fig. 10 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived from the embodiments in the present application by a person skilled in the art, are within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The method, the apparatus, the electronic device, and the readable storage medium for sending an alert message according to the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In order to ensure the normal development of communication services, it is necessary to timely and effectively monitor, report and process the alarm event generated by the communication device, so that the network operation and maintenance personnel can timely handle the corresponding fault, thereby providing a good communication service.
Currently, the existing alarm event processing flow is roughly as follows:
event occurrence → alarm sending;
for example, 00. Although the existing alarm capability can meet the alarm of a common emergency, the requirement is difficult to meet for a complex scene:
1. if the alarm event is not processed all the time, the corresponding alarm message is continuously sent all the time;
2. only the alarm message can be sent to the equipment of the pre-configured specific network operation and maintenance personnel.
3. When sending the alarm message, the alarm message may be sent to the device of an unrelated network operation and maintenance person.
In order to solve the above problem, in the sending method of the alarm message provided in the embodiment of the present application, M alarm messages may be received, where the M alarm messages correspond to M alarm events one to one, and M is a positive integer; and sending an alarm message based on the alarm event response parameter corresponding to the target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting a historical alarm message of a target alarm event; the target alarm event is at least one of M alarm events corresponding to M alarm information, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event. Through the scheme, after receiving the M pieces of alarm information, the electronic equipment can correspondingly evaluate the alarm event response parameters of the response rate of the corresponding alarm object to the target alarm event and send the alarm information based on each transmission path of the historical alarm information for sending the target alarm event, namely the electronic equipment can send the alarm information according to the response rate of the alarm object corresponding to each transmission path to the target alarm event, and the alarm information is not fixedly sent to the equipment of a specific network operation and maintenance person only according to the preset configuration information, so that the response efficiency of the alarm information can be improved.
Therefore, by the scheme, the electronic equipment can form an alarm strategy adjustment scheme based on a data analysis technology and a reinforcement learning algorithm so as to adjust strategies for different alarm events and corresponding alarm message sending ways, so that alarm messages from various monitoring systems can be intelligently processed, and a complete scheme of alarm event closed-loop control is further realized.
An embodiment of the present application provides a method for sending an alarm message, and fig. 1 shows a flowchart of the method for sending an alarm message provided in the embodiment of the present application. As shown in fig. 1, a method for sending an alert message according to an embodiment of the present application may include steps 101 and 102 described below.
The method is exemplarily described below by taking an electronic device (e.g., a network function entity, a network element, a gateway, or the like) to execute the method as an example.
Step 101, the electronic device receives M alarm messages.
In the embodiment of the present application, the M pieces of alarm information correspond to M pieces of alarm events one to one, where M is a positive integer.
Optionally, in this embodiment of the present application, each alarm information may include a type, a name, and the like of a corresponding alarm event.
Optionally, in this embodiment of the present application, the alarm event may be any possible alarm event such as a machine network failure, an alarm clock reminder, or a schedule reminder.
Optionally, in this embodiment of the application, the electronic device may receive the M pieces of alarm information through the unified alarm module.
Illustratively, as shown in fig. 2, the unified alarm module provides a hypertext Transfer Protocol (HTTP) Interface and an Application Programming Interface (API) of another Protocol to a monitoring collection function, a temporary alarm function, an internal abnormal traversal monitoring function and the like of an upper layer, so that the electronic device may call each Interface through the unified alarm module to receive alarm information and perform unified alarm management (e.g., event recording, event alarm, setting an alarm object and the like) on the received alarm information through the unified alarm module.
Optionally, in this embodiment of the present application, the M alarm events may be: events needing alarm are monitored by different monitoring modules.
Optionally, in this embodiment of the present application, the M pieces of alarm information may be: and the alarm information in the specific unified information format is reported by different monitoring modules.
For example, if a machine with internet protocol (ip) 10.197.80.77 detects a machine network failure at 16 7/2022, and a machine with ip 10.197.80.78 detects a machine network failure at 16/7/2022, then the two events may be formatted as reported in table 1 below:
TABLE 1
Figure BDA0003883181550000061
Optionally, in this embodiment of the present application, the unified warning module and the monitoring module may be function modules in the same electronic device, or may be function modules in different electronic devices.
And 102, the electronic equipment sends an alarm message based on the alarm event response parameter corresponding to the target transmission path.
In the embodiment of the present application, the target transmission path is: each transmission path for sending historical alert messages for a target alert event.
In this embodiment, the target alarm event is at least one of M alarm events corresponding to the M alarm information.
In the embodiment of the present application, each transmission path corresponds to one alarm object, and the alarm event response parameter corresponding to any transmission path is used to evaluate the response rate of the alarm object corresponding to any transmission path to the target alarm event.
Optionally, in this embodiment of the application, the alarm object may be a network operation and maintenance person or an alarm event responsible person.
Optionally, in this embodiment of the application, the electronic device may sequence all transmission paths based on the alarm event response parameter corresponding to each transmission path.
For example, the electronic device may rank the alarm event response parameters corresponding to each transmission path as follows: 1. user a-transmission path a,2, user a-transmission path b,3, user c-transmission path b,4, user b-transmission path a,5, user c-transmission path a, etc.
Optionally, in this embodiment of the application, the electronic device may send the warning message according to a first rule based on the warning event response parameter.
Optionally, in this embodiment of the present application, the first rule may include the following 1 to 5:
1. sending alarm message to the first user in the sequence and corresponding to the nodes N (a) and N (a) in the transmission path i ) Value of +1.
2. If the warning message is unread within the time t1 after the warning message is sent to the user positioned at the first position in the sequence, the warning message is sent to the user positioned at the second position in the sequence, andcorresponding to N (a) and N (a) of nodes on the transmission path i ) And so on until the alarm message is processed.
3. If the alarm message is read and unprocessed within the time t2 after the alarm message is sent to the user positioned at the first position in the sequence, deleting the item where the user is positioned, sending the alarm message to the user positioned at the second position in the sequence, and sending the N (a) and the N (a) of the nodes on the corresponding transmission path i ) And so on until the alarm message is processed.
4. If the alarm message is processed, backtracking the result: (1) If the alarm event is read, the weight Q (a) of the transmission path is transmitted i ) A value of +1; (2) If the alarm event has been processed, the value of the weight Q (a) of the user +1 will be passed.
5. And storing a search tree corresponding to the alarm event, wherein the root node of the search tree is the alarm event, the second-layer node is an alarm object (namely a user), and the third-layer node is the last-level node (namely a leaf node) and is a transmission path.
Optionally, in this embodiment of the present application, after sending the alarm message, the electronic device may traverse each stored alarm message, and update the information content of each alarm message.
Exemplarily, as shown in fig. 3, the alarm information reported in the current round is the alarm information of event 1, the alarm information of event 3, and the alarm information of event 4 (i.e., M alarm information), and after sending the alarm information, the electronic device may update the stored information content of each alarm information, that is, the number of triggering events of an alarm event, the last update event of an alarm event, the update loading, and the like; it can be seen that, since the electronic device does not receive the alarm information of the event 2 in the current round, that is, the event 2 is processed, the update state of the event 2 is updated from the ongoing state to the completed state, so that the stored alarm information of the event 2 can be deleted, and the alarm information of the event 2 is not loaded in the subsequent alarm event processing process, thereby saving the overhead of the system.
In the method for sending an alarm message provided in the embodiment of the present application, after receiving M pieces of alarm information, the electronic device may send the alarm message based on the alarm event response parameter for evaluating the response rate of the corresponding alarm object to the target alarm event and based on each transmission path of the historical alarm message used for sending the target alarm event, that is, the electronic device may send the alarm message according to the response rate of the alarm object corresponding to each transmission path to the target alarm event, instead of fixedly sending the alarm message to a device of a specific network operation and maintenance worker according to preset configuration information, so that the response efficiency of the alarm message may be improved.
Optionally, in this embodiment, before the step 102, the sending method of the warning message provided in this embodiment may further include the following step 103.
Step 103, the electronic device determines an alarm event response parameter corresponding to each transmission path based on the path information of each transmission path.
In this embodiment of the present application, the path information of each transmission path includes: the object information of the alarm object corresponding to each transmission path, and the information of the transmission path corresponding to the alarm object.
Optionally, in this embodiment of the present application, the transmission path may be a short message, a telephone, an alarm application, or the like.
Optionally, in this embodiment of the present application, each alert object may correspond to at least one transmission path.
A specific method for determining the alarm event response parameter corresponding to each transmission path by the electronic device is exemplarily described below with reference to the accompanying drawings.
Optionally, in this embodiment of the present application, the electronic device may first construct a search tree for each alarm event.
Illustratively, fig. 4 shows a search tree constructed by the electronic device for an alarm event a, as shown in fig. 4, the search tree includes a plurality of transmission paths, and the electronic device may store two values Q (a) and N (a) at each node of the search tree, wherein Q (a) is used to indicate the success number of node a (if node a is a user node, Q (a) indicates the number of times the alarm message has been processed; if node a is a transmission path node, Q (a) indicates the number of times the alarm message has been read), and N (a) is used to indicate the number of attempts of node a, i.e. the number of times the alarm event is sent to node a; the initial value stored in each node of the search tree may be an average value of values stored in each node of the search tree of other created alarm events. Then, the electronic device may score each transmission path according to the following formula (1), so as to determine an alarm event response parameter corresponding to each transmission path:
Figure BDA0003883181550000091
wherein m is user weight, n is transmission path weight, and k is opportunity quantity;
Figure BDA0003883181550000092
sending the alarm message corresponding to the alarm event A for N (a) times to the user a, wherein the alarm event A is processed after Q (a) times is responded;
Figure BDA0003883181550000093
using route a for user a i Receiving the response rate of the alarm message corresponding to the alarm event A, e.g. N (a) is sent to user a i ) Secondary alarm mail (i.e. alarm message) in which Q (a) has been read i ) Next, the process is carried out.
It can be seen that the first two terms of the above formula (1) are the weighted summation of the response rates of the current transmission paths, and the higher the score is, the higher the processing rate of the above alarm event a is. However, the score calculated by only the first two terms of the formula (1) is not an optimal solution, and if the user with the highest score processes the alarm event a each time, other network operation and maintenance personnel who have not tried to receive the alarm message corresponding to the alarm event a cannot receive the alarm message. The last term of the equation (1) is therefore used to add extra weight to the transmission path with less access, which is a solution in reinforcement learning and monte carlo search tree, and the function graph is shown in fig. 5, when the access number of sub path is less, the equation (1)The last entry of (a) adds an opportunity point to the corresponding node, and follows the number of accesses of the sub-path (N (a) i ) With the probability score of 0), the warning message can be sent to the high-ranking user with less contact times while the warning message is sent to the high-ranking user with the probability score of 0.
Optionally, in this embodiment of the present application, the electronic device may adjust the weights of the user, the transmission path, and the new path opportunity in the scoring algorithm by configuring the weight parameters m, n, and k, so as to adapt to different scenarios. For example, the electronic device may configure the weight ratio m: n: k to be 4.
In the embodiment of the present application, since the electronic device may determine the alarm event response parameter corresponding to each transmission path based on the object information of the alarm object corresponding to each transmission path and the information of the transmission path corresponding to the alarm object, when sending the alarm message based on the alarm event response parameter, the electronic device may send the alarm message according to the object information and the information of the transmission path, so as to improve the response success rate of the alarm message.
Optionally, in this embodiment, before the step 102, the method for sending an alarm message provided in this embodiment may further include the following steps 104 and 105.
Step 104, the electronic device obtains alarm message configuration information corresponding to one alarm event for each alarm event in the M alarm events.
In this embodiment, the alarm message configuration information includes an alarm time interval set.
In this embodiment of the present application, the alarm time interval set includes: a time interval corresponding to each alarm in the at least one alarm.
For example, the set of alarm time intervals is {72h,24h }, and it can be seen that the event interval between the second alarm and the first alarm of the electronic device for the one alarm event is 72 hours, the event interval between the third alarm and the second alarm is 24 hours, and the event interval between the fourth alarm and the third alarm is 24 hours.
Optionally, in this embodiment of the application, if the number of times of alarms of the electronic device on the one alarm event exceeds the number of time intervals included in the alarm time interval set, the time interval between each alarm that exceeds and the previous alarm is the last time interval in the alarm time interval set.
For example, if the set of alarm time intervals is {72h,24h }, the event interval between the fifth alarm and the fourth alarm of the one alarm event by the electronic device is 24 hours, the event interval between the sixth alarm and the fifth alarm is also 24 hours, and so on.
Optionally, in this embodiment of the present application, the alarm message configuration information may further include alarm switch information, where the alarm switch information may be used to indicate a switch state of the alarm function, and if the alarm function is in an on state, the alarm processing may be performed, and if the alarm function is in an off state, the alarm processing may not be performed.
Optionally, in this embodiment, the electronic device may obtain the alarm switch information by analyzing an alarm switch field in an alarm message configuration field, where the alarm message configuration field may indicate the alarm message configuration information.
For example, the alarm message configuration fields are shown in table 2 below:
TABLE 2
Figure BDA0003883181550000111
The alarm interval field may indicate the alarm time interval set, the alarm switch field is used to indicate a switch of an alarm function, the alarm setting field is used to indicate the configuration of the alarm message configuration information, and the alarm content field is used to indicate the information content of the alarm message.
Step 105, if the electronic equipment determines that one alarm event meets a first condition based on the alarm message configuration information, determining the alarm event as a target alarm event; if not, giving up the alarm of the alarm event.
Optionally, in this embodiment of the present application, the first condition may include: the first time interval of the alarm event is greater than the time interval corresponding to the current alarm of the alarm event.
Wherein the first time interval is: and receiving the receiving time of the alarm information and the time interval of the sending time of the last alarm message of the alarm event corresponding to the alarm information.
In the embodiment of the present application, the first condition may include: the first time interval of the one alarm event is greater than the time interval corresponding to the current alarm of the one alarm event, so that the electronic device can determine whether to process the alarm event according to the relationship between the first time interval of the one alarm event and the time interval corresponding to the current alarm of the one alarm event, and therefore the alarm message corresponding to the one alarm event does not need to be continuously sent all the time, and the flexibility of processing the alarm event can be improved.
Optionally, in this embodiment of the present application, if the electronic device determines the one alarm event as a target alarm event, that is, sends a corresponding alarm message, the electronic device may update the alarm information corresponding to the one alarm event after sending the corresponding alarm message; and if the electronic equipment gives up the alarm of the alarm event, the electronic equipment only updates the alarm information corresponding to the alarm event.
The following describes an exemplary method for sending an alert message according to an embodiment of the present application with reference to the drawings.
Exemplarily, assuming that the alarm message configuration information corresponding to one alarm event acquired by the electronic device for each alarm event includes an alarm time interval set {72h,48h,24h, 6h }, as shown in fig. 6, the electronic device receives alarm information corresponding to the alarm event for multiple times, respectively, and when the alarm information is received for the first time, the electronic device sends a first alarm message (i.e., performs the first alarm), and if the time interval between the receiving time of receiving the alarm information for the second time and the sending time of the first alarm message (i.e., the last alarm message) (i.e., the first time interval) is greater than 72 hours (i.e., the time interval corresponding to the alarm of this time), determines the alarm event as a target alarm event to send the second alarm message; if the time interval is less than or equal to 72 hours, giving up the alarm of the alarm event; and so on, the electronic device may determine whether to alarm the alarm information received this time according to the number of times of receiving the alarm information and the corresponding time interval in the alarm time interval set. Therefore, the electronic equipment can reduce the alarm frequency while ensuring the alarm effect so as to avoid the sensitivity reduction of the user to the alarm message.
In this embodiment, before sending the alarm message, the electronic device may first obtain alarm message configuration information corresponding to one alarm event for each alarm event, determine whether the one alarm event satisfies the first condition based on the alarm message configuration information, determine the one alarm event as a target alarm event, or abandon the alarm of the one alarm event, so that the flexibility of processing the alarm event may be further improved.
Optionally, in this embodiment, before the step 105, the method for sending an alarm message provided in this embodiment may further include the following steps 106 and 107.
And step 106, the electronic equipment updates the information content of the M pieces of alarm information according to the stored historical alarm information.
Optionally, in this embodiment of the present application, the historical alarm information includes: and historical information corresponding to at least one alarm information in the M alarm information.
Optionally, in this embodiment of the application, if the history alarm information does not include history information corresponding to one of the M alarm information, the alarm event corresponding to the one alarm information is stored in a cache of the electronic device as a new alarm event; and if the historical alarm information comprises the historical information corresponding to one alarm information in the M alarm information, updating the information content of the alarm information.
Optionally, in this embodiment of the present application, the information content may include: number of triggers, last update time, etc.
The following describes an exemplary method for sending an alert message according to an embodiment of the present application with reference to the drawings.
Exemplarily, it is assumed that the electronic device receives alarm information of event 1, alarm information of event 3, and alarm information of event 4 (i.e., M alarm information) on its own turn, and as shown in (a) in fig. 7, the history alarm information stored by the electronic device includes the alarm information of event 1 (including the number of triggers: 2, last update time: 2027-7 00), the alarm information of event 2 (including the number of triggers: 2, last update time: 2022-7-16) and the alarm information of event 4 (including the number of triggers: 2, last update time: 2022-7-00; the electronic device may update the information content of the alarm information of event 1, the information of the alarm information of event 3, and the information of the alarm information of event 4 based on the historical alarm information.
It can be seen that the alarm information of the event 1 and the alarm information of the event 4 are the alarm information reported before, and the alarm information of the event 3 is the alarm information reported for the first time, then as shown in (b) in fig. 7, the electronic device may update the triggering times corresponding to the event 1 and the event 4 to 3, respectively, and update the last update events corresponding to the event 1 and the event 4 to the current time 2022-7 of the system, respectively, according to the historical alarm information: 00; and storing the event 3 as a new alarm event in a cache of the electronic device, wherein the stored alarm information of the event 3 comprises: triggering times are as follows: 1, last update time: 2022 7-7 20:00. and the alarm information of the event 2 is not the alarm information received in the current round, so the alarm information of the event 2 does not need to be updated.
Step 107, the electronic device determines whether an alarm event meets the first condition according to the M alarm messages after updating the information content and the alarm message configuration information.
Optionally, in this embodiment of the application, the electronic device may determine, for each alarm information in the M alarm information, whether one alarm event satisfies the first condition according to the triggering times (that is, the alarm times) included in one alarm information after the information content is updated and the corresponding alarm information configuration information.
For a specific method for determining whether the alarm event satisfies the first condition by the electronic device, reference may be made to the related description in the foregoing embodiments, and details are not described here again to avoid repetition.
In the embodiment of the application, the electronic device may update the information contents of the M alarm information according to the stored historical alarm information, and determine whether the alarm event satisfies the first condition according to the M alarm information after updating the information contents and the alarm message configuration information, that is, the electronic device may determine whether the corresponding alarm event satisfies the first condition according to the updated alarm information, so that the accuracy of determining whether the alarm event satisfies the first condition by the electronic device may be improved.
According to the method for sending the alarm message provided by the embodiment of the application, the execution main body can be a device for sending the alarm message. In the embodiment of the present application, a sending apparatus for an alarm message, which is provided in the embodiment of the present application, is described by taking an example in which the sending apparatus for an alarm message executes a sending method for an alarm message.
With reference to fig. 8, an apparatus 80 for sending an alert message according to an embodiment of the present disclosure may include a receiving module 81 and a sending module 82. The receiving module 81 may be configured to receive M alarm information, where the M alarm information corresponds to M alarm events one to one, and M is a positive integer. The sending module 82 may be configured to send the alarm message based on the alarm event response parameter corresponding to the target transmission path, where the target transmission path is: each transmission path for sending historical alert messages for a target alert event. The target alarm event is at least one of the M alarm events corresponding to the M alarm information, each transmission path corresponds to an alarm object, and the alarm event response parameter corresponding to any transmission path is used to evaluate the response rate of the alarm object corresponding to any transmission path to the target alarm event.
In a possible implementation, the sending device 80 of the warning message may further include a determination module. The determining module may be configured to determine the alarm event response parameter corresponding to each transmission path based on the path information of each transmission path before the sending module 82 sends the alarm message based on the alarm event response parameter corresponding to the target transmission path. The path information of each transmission path may include: the object information of the alarm object corresponding to each transmission path, and the information of the transmission path corresponding to the alarm object.
In a possible implementation manner, the sending apparatus 80 of the alarm message may further include an obtaining module and a processing module. An obtaining module, configured to obtain, before the sending module 82 sends the alarm message based on the alarm event response parameter corresponding to the target transmission path, alarm message configuration information corresponding to one alarm event for each alarm event in the M alarm events, where the alarm message configuration information includes an alarm time interval set, and the alarm time interval set includes: a time interval corresponding to each alarm in the at least one alarm. A processing module operable to: if it is determined that the one alarm event satisfies a first condition based on the alarm message configuration information, determining the one alarm event as a target alarm event; and if not, giving up the alarm of the alarm event.
In one possible implementation, the first condition may include: the first time interval of the alarm event is greater than the time interval corresponding to the current alarm of the alarm event; wherein the first time interval is: receiving the receiving time of the alarm information and the time interval of the sending time of the last alarm message of the alarm event corresponding to the alarm information.
In a possible implementation, the sending device 80 of the warning message may further include an updating module. An update module, configured to determine, at the processing module, the one alarm event as a target alarm event if it is determined that the one alarm event satisfies a first condition based on the alarm message configuration information; and if the alarm event does not meet the preset alarm condition, the information content of the M pieces of alarm information is updated according to the stored historical alarm information before the alarm of the alarm event is given up. The processing module may be further configured to determine whether the alarm event satisfies a first condition according to the M pieces of alarm information after updating the information content and the alarm message configuration information.
In the sending apparatus of the alarm message provided in the embodiment of the present application, after receiving M pieces of alarm information, the sending apparatus of the alarm message may send the alarm message based on each transmission path of the historical alarm message used for sending the target alarm event, and the corresponding alarm event response parameter used for evaluating the response rate of the corresponding alarm object to the target alarm event, that is, the sending apparatus of the alarm message may send the alarm message according to the response rate of the alarm object corresponding to each transmission path to the target alarm event, instead of only being able to fixedly send the alarm message to the device of the specific network operation and maintenance staff according to the preset configuration information, so the response efficiency of the alarm message may be improved.
The sending device of the alarm message in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The sending device of the alarm message in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The apparatus for sending an alarm message provided in this embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 to fig. 7, and is not described here again to avoid repetition.
As shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901 and a memory 902, where the memory 902 stores a program or an instruction that can be executed on the processor 901, and when the program or the instruction is executed by the processor 901, the steps of the above-mentioned embodiment of sending a warning message are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The radio frequency unit 1001 may be configured to receive M alarm information, where the M alarm information corresponds to M alarm events one to one, and M is a positive integer; and sending an alarm message based on the alarm event response parameter corresponding to the target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting historical alert messages for a target alert event. The target alarm event is at least one of the M alarm events corresponding to the M alarm information, each transmission path corresponds to an alarm object, and the alarm event response parameter corresponding to any transmission path is used to evaluate the response rate of the alarm object corresponding to any transmission path to the target alarm event.
In a possible implementation manner, the processor 1010 may be configured to determine, before the radio frequency unit 1001 sends the alarm message based on the alarm event response parameter corresponding to the target transmission path, the alarm event response parameter corresponding to each transmission path based on the path information of each transmission path. Wherein, the path information of each transmission path may include: the object information of the alarm object corresponding to each transmission path, and the information of the transmission path corresponding to the alarm object.
In a possible implementation manner, the processor 1010 may be further configured to, before the radio frequency unit 1001 sends the alarm message based on an alarm event response parameter corresponding to a target transmission path, acquire, for each alarm event in the M alarm events, alarm message configuration information corresponding to one alarm event, where the alarm message configuration information includes an alarm time interval set, and the alarm time interval set includes: the time interval corresponding to each alarm in at least one alarm; if the alarm event meets the first condition based on the alarm message configuration information, determining the alarm event as a target alarm event; if not, giving up the alarm of the alarm event.
In one possible implementation, the first condition may include: the first time interval of the alarm event is greater than the time interval corresponding to the current alarm of the alarm event; wherein the first time interval is: receiving the receiving time of the alarm information and the time interval of the sending time of the last alarm message of the alarm event corresponding to the alarm information.
In a possible implementation manner, the processor 1010 may be further configured to determine the one alarm event as a target alarm event if it is determined that the one alarm event satisfies the first condition based on the alarm message configuration information; if not, giving up the alarm of the current time of the alarm event, and updating the information contents of the M pieces of alarm information according to the stored historical alarm information; and determining whether the alarm event meets a first condition according to the M pieces of alarm information after the information content is updated and the alarm information configuration information.
In the electronic device provided in the embodiment of the present application, after receiving M pieces of alarm information, the electronic device may send an alarm message based on each transmission path of the historical alarm message used for sending the target alarm event, corresponding alarm event response parameters used for evaluating a response rate of a corresponding alarm object to the target alarm event, that is, the electronic device may send the alarm message according to the response rate of the alarm object corresponding to each transmission path to the target alarm event, instead of only being able to fixedly send the alarm message to a device of a specific network operation and maintenance person according to preset configuration information, so that the response efficiency of the alarm message may be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the above-mentioned embodiment of the method for sending an alarm message is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the processes of the above-mentioned method for sending an alarm message, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes in the above-mentioned method for sending an alarm message embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for sending an alarm message, the method comprising:
receiving M pieces of alarm information, wherein the M pieces of alarm information correspond to M pieces of alarm events one by one, and M is a positive integer;
sending an alarm message based on an alarm event response parameter corresponding to a target transmission path, wherein the target transmission path is as follows: each transmission path for transmitting a historical alarm message of a target alarm event;
the target alarm event is at least one of M alarm events corresponding to the M alarm information, each transmission path corresponds to an alarm object, and the alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event.
2. The method of claim 1, wherein before sending the alert message based on the alert event response parameter corresponding to the target transmission path, the method further comprises:
determining an alarm event response parameter corresponding to each transmission path based on the path information of each transmission path;
wherein the path information of each transmission path includes: the object information of the alarm object corresponding to each transmission path and the information of the transmission path corresponding to the alarm object.
3. The method of claim 1, wherein before sending the alert message based on the alert event response parameter corresponding to the target transmission path, the method further comprises:
for each alarm event in the M alarm events, acquiring alarm message configuration information corresponding to one alarm event, where the alarm message configuration information includes an alarm time interval set, and the alarm time interval set includes: a time interval corresponding to each alarm in at least one alarm;
if it is determined that the one alarm event satisfies a first condition based on the alarm message configuration information, determining the one alarm event as the target alarm event; and if not, giving up the alarm of the alarm event.
4. The method of claim 3, wherein the first condition comprises: the first time interval of the alarm event is greater than the time interval corresponding to the current alarm of the alarm event;
wherein the first time interval is: receiving the receiving time of the alarm information and the time interval of the sending time of the last alarm message of the alarm event corresponding to the alarm information.
5. The method according to claim 3 or 4, wherein the one alarm event is determined as the target alarm event if it is determined that the one alarm event satisfies a first condition based on the alarm message configuration information; if not, before giving up the current alarm of the alarm event, the method further comprises:
updating the information contents of the M pieces of alarm information according to the stored historical alarm information;
and determining whether the alarm event meets the first condition or not according to the M pieces of alarm information after the information content is updated and the alarm information configuration information.
6. The sending device of the alarm message is characterized by comprising a receiving module and a sending module;
the receiving module is used for receiving M pieces of alarm information, wherein the M pieces of alarm information correspond to M alarm events one by one, and M is a positive integer;
the sending module is configured to send an alarm message based on an alarm event response parameter corresponding to a target transmission path, where the target transmission path is: each transmission path for transmitting a historical alarm message of a target alarm event;
the target alarm event is at least one of M alarm events corresponding to the M alarm messages, each transmission path corresponds to an alarm object, and an alarm event response parameter corresponding to any transmission path is used for evaluating the response rate of the alarm object corresponding to any transmission path to the target alarm event.
7. The apparatus of claim 6, further comprising a determination module;
the determining module is configured to determine an alarm event response parameter corresponding to each transmission path based on the path information of each transmission path before the sending module sends the alarm message based on the alarm event response parameter corresponding to the target transmission path;
wherein the path information of each transmission path includes: the object information of the alarm object corresponding to each transmission path and the information of the transmission path corresponding to the alarm object.
8. The apparatus of claim 6, further comprising an acquisition module and a processing module;
the obtaining module is configured to obtain alarm message configuration information corresponding to one alarm event for each alarm event in the M alarm events before the sending module sends the alarm message based on the alarm event response parameter corresponding to the target transmission path, where the alarm message configuration information includes an alarm time interval set, and the alarm time interval set includes: the time interval corresponding to each alarm in at least one alarm;
the processing module is configured to: if it is determined that the one alarm event satisfies a first condition based on the alarm message configuration information, determining the one alarm event as the target alarm event; and if not, giving up the alarm of the alarm event.
9. The apparatus of claim 8, wherein the first condition comprises: the first time interval of the alarm event is larger than the time interval corresponding to the current alarm of the alarm event;
wherein the first time interval is: receiving the receiving time of the alarm information and the time interval of the sending time of the last alarm message of the alarm event corresponding to the alarm information.
10. The apparatus of claim 8 or 9, further comprising an update module;
the updating module is configured to determine, at the processing module, the one alarm event as the target alarm event if it is determined that the one alarm event satisfies the first condition based on the alarm message configuration information; if not, giving up the alarm of the current time of the alarm event, and updating the information content of the M pieces of alarm information according to the stored historical alarm information;
the processing module is further configured to determine whether the one alarm event satisfies the first condition according to the M alarm messages after the information content is updated and the alarm message configuration information.
11. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of sending an alert message according to any of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method of sending an alert message according to any one of claims 1-5.
CN202211238121.0A 2022-10-10 2022-10-10 Method and device for sending alarm message, electronic equipment and readable storage medium Pending CN115643155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211238121.0A CN115643155A (en) 2022-10-10 2022-10-10 Method and device for sending alarm message, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211238121.0A CN115643155A (en) 2022-10-10 2022-10-10 Method and device for sending alarm message, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115643155A true CN115643155A (en) 2023-01-24

Family

ID=84944250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211238121.0A Pending CN115643155A (en) 2022-10-10 2022-10-10 Method and device for sending alarm message, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115643155A (en)

Similar Documents

Publication Publication Date Title
US9414208B2 (en) Method and apparatus for generating a suggested message to be sent over a network
CN105553740B (en) Data-interface monitoring method and device
CN106256116B (en) A kind of method and terminal controlling application program
CN107872494B (en) Message pushing method and device
CN104584000A (en) Tag latency monitoring and control system for enhanced web page performance
US9141944B2 (en) Synchronization of alarms between devices
JP2017174375A (en) Risk early warning method and apparatus
JP2021106035A (en) Method, apparatus, device and storage medium for processing disease information
US20130055271A1 (en) Apparatus and method for controlling polling
CN101350795A (en) Information notification apparatus, method and program
AU2015213307A1 (en) Method for setting heartbeat timer, terminal and server
US20160057086A1 (en) Method and System for Cross Device Notification
US11080107B2 (en) Event notification method, server device, event notification apparatus, and medium
CN111311014A (en) Service data processing method and device, computer equipment and storage medium
CN112256748B (en) Abnormality detection method and device, electronic equipment and storage medium
CN106686204B (en) Event-handling method and device
CN115643155A (en) Method and device for sending alarm message, electronic equipment and readable storage medium
CN115775436A (en) Plain forest fire situation recognition processing method and device
CN112363895B (en) System fault positioning method and device and electronic equipment
CN111818548B (en) Data processing method, device and equipment
JP5096807B2 (en) Safety confirmation system
JP2009245321A (en) Context device and program
CN115378792B (en) Alarm processing method, device and storage medium
CN111986060B (en) Intelligent routing method and system for triggering state of fire-fighting equipment
CN116471206A (en) Business network anomaly handling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination