WO2020082911A1 - Method and apparatus for sending information - Google Patents
Method and apparatus for sending information Download PDFInfo
- Publication number
- WO2020082911A1 WO2020082911A1 PCT/CN2019/104687 CN2019104687W WO2020082911A1 WO 2020082911 A1 WO2020082911 A1 WO 2020082911A1 CN 2019104687 W CN2019104687 W CN 2019104687W WO 2020082911 A1 WO2020082911 A1 WO 2020082911A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- user terminal
- online
- time
- alarm information
- terminal
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000005540 biological transmission Effects 0.000 claims description 71
- 238000004891 communication Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 claims description 12
- 230000008707 rearrangement Effects 0.000 claims description 7
- 230000010365 information processing Effects 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/90—Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
Definitions
- This application relates to the field of security technology, in particular to an information sending method and device.
- the alarm platform in the security system can issue an alarm message for the danger that has occurred or the potential danger, so as to notify relevant personnel to deal with it in time.
- the alarm platform After the alarm platform obtains the relevant alarm information, the alarm platform will send the alarm information to all the personnel responsible for processing the alarm information. After receiving the alarm information issued by the alarm platform, the personnel responsible for processing the alarm information can According to the alarm information, carry out corresponding processing to eliminate the dangers targeted by the alarm information.
- the alarm platform sends the alarm information to all the personnel responsible for processing the alarm information.
- all the personnel responsible for processing the alarm information receive the alarm information and are in the idle state, all the personnel responsible for processing the alarm information will go to Processing the same alarm message currently received, which results in the same alarm message being processed repeatedly.
- all the personnel responsible for processing the alarm message will process the previous alarm message, and the subsequent alarm messages will be put on hold, which affects the timeliness of the alarm processing. , Resulting in untimely processing of alarm information.
- the purpose of the embodiments of the present application is to provide an information sending method and device, which takes a relatively small number of user terminals to be processed as a target user terminal, and sends only the alarm information to be delivered to the target user terminal, so as to solve the problem Repeated processing and untimely problems.
- the specific technical solutions are as follows:
- an embodiment of the present application provides an information sending method, and the method includes:
- a first user terminal is selected from each of the online user terminals as the target user terminal, and the first user terminal The number is less than the number of other user terminals to be processed except the first user terminal in each online user terminal;
- a second user terminal is selected from each online user terminal as the target user terminal, and the number of the second user terminals is less than the online user terminals quantity;
- the method further includes:
- a third user terminal is selected from the first user terminals as the target user terminal, the first of the third user terminals
- the processing time is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal;
- the selecting the second user terminal from the online user terminals according to a preset selection rule includes: selecting the second user terminal from each online user terminal according to each first processing time, the The first processing time is earlier than the first processing time of each of the online user terminals except the second user terminal.
- the method further includes:
- the selecting the second user terminal from the online user terminals according to a preset selection rule includes: selecting the second user terminal from the online user terminals according to the online time of each online user terminal, the first The online time of the second user terminal is earlier than the online time of the other user terminals except the second user terminal in each online user terminal.
- the method further includes:
- the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;
- each alarm information sending time selects a fourth user terminal from the first user terminal as the target user terminal, the fourth user terminal alarm information
- the sending time is earlier than the sending time of the alarm information of other user terminals except the fourth user terminal in the first user terminal;
- the selecting a second user terminal from the online user terminals according to a preset selection rule includes: selecting a second user terminal from each online user terminal according to each alarm information sending time, The alarm information transmission time is earlier than the alarm information transmission time of the other user terminals except the second user terminal in each online user terminal.
- the method further includes:
- the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;
- each alarm information sending time select the fifth user terminal from the third user terminal as the target user terminal, the alarm information of the fifth user terminal
- the transmission time is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- the method further includes:
- selecting the first user terminal from the online user terminals as the target user terminal includes:
- the user terminals are sorted to obtain the user terminal queue;
- the user terminals with the first number of terminals are sequentially selected from the user terminal queue as the target user terminals.
- the method further includes:
- the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;
- the online user terminals are sorted according to the size of the to-be-processed quantity.
- the The equal number of user terminals to be processed are sorted to obtain a user terminal queue, including:
- Sort the online user terminals according to the size of the number to be processed, and when there are user terminals with the same number to be processed in each of the online user terminals, according to the order of the first processing time, the Sort the equal number of user terminals.
- the equal number of pending terminals and the first The user terminals with the same processing time are sorted to obtain the user terminal queue.
- the method further includes:
- the user terminal queue is rearranged according to the size of the number of online user terminals to be processed in the user terminal queue, the order of first processing time and the time of sending alarm information, wherein ,
- the preset event includes at least one of the following: a user terminal is online on the alarm platform, a user terminal is offline from the alarm platform, the alarm platform issues alarm information, and the user terminal processes the alarm information Finished.
- an information sending apparatus the apparatus includes:
- the first acquisition module is set to execute the acquisition of the number of unprocessed alarm information of each online user terminal as the number of each online user terminal to be processed;
- the first selection module is configured to execute the selection of the first user terminal from each of the online user terminals as the target user terminal according to the size of the number of to-be-processed when the to-be-processed numbers of the on-line user terminals are not completely equal.
- the number of to-be-processed of the first user terminal is less than the number of to-be-processed of other user terminals except the first user terminal in each online user terminal;
- the second selection module is configured to execute the selection of the second user terminal from the online user terminals as the target user terminal according to a preset selection rule when the number of to-be-processed terminals of the online user terminals is completely equal.
- the number of second user terminals is less than the number of online user terminals;
- the delivery module is configured to execute sending the alarm information to be delivered to the target user terminal.
- the device further includes:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module is specifically configured to execute when the number of the first user terminals is greater than a first preset threshold, select a third user terminal from the first user terminals as the target according to each first processing time User terminal, the first processing time of the third user terminal is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal;
- the second selection module is specifically configured to execute: select a second user terminal from each online user terminal according to each first processing time, the first processing time of the second user terminal is earlier than that of each online user terminal The first processing time of user terminals other than the second user terminal.
- the device further includes:
- the second obtaining module is set to execute obtaining the online time of each online user terminal
- the second selection module is specifically configured to execute: select a second user terminal from the online user terminals according to the online time of each online user terminal, the online time of the second user terminal is earlier than each online user The online time of other user terminals except the second user terminal in the terminal.
- the device further includes:
- the third acquisition module is set to perform acquisition of the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module is specifically configured to execute when the number of the first user terminals is greater than a second preset threshold, select a fourth user terminal from the first user terminals as the target according to the sending time of each alarm information User terminal, the alarm information transmission time of the fourth user terminal is earlier than the alarm information transmission time of other user terminals except the fourth user terminal in the first user terminal;
- the second selection module is specifically configured to execute: select a second user terminal from each online user terminal according to each alarm information transmission time, the alarm information transmission time of the second user terminal is earlier than each online user terminal Alarm information sending time of user terminals other than the second user terminal.
- the device further includes:
- the third acquisition module is set to perform acquisition of the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module is specifically set to execute when the number of the third user terminals is greater than a third preset threshold, select the fifth user terminal from the third user terminals as the target according to the sending time of each alarm information User terminal, the alarm information transmission time of the fifth user terminal is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- the device further includes:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module is specifically configured to sort the online user terminals according to the size of the to-be-processed quantity, and when there are equal number of user terminals to be processed among the online user terminals, according to The order of the first processing time is to sort the user terminals with equal number of processing to obtain the user terminal queue;
- the order of the user terminal queue sequentially select the user terminals with the first number of terminals from the user terminal queue as the target user terminals.
- the device further includes:
- the second obtaining module is used to obtain the sending time of the alarm information of each online user terminal.
- the sending time of the alarm information is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;
- the first selection module is specifically configured to execute:
- Sort the online user terminals according to the size of the number to be processed, and when there are user terminals with the same number to be processed in each of the online user terminals, according to the order of the first processing time, the Sort the equal number of user terminals.
- the equal number of pending terminals and the first The user terminals with the same processing time are sorted to obtain the user terminal queue.
- the device further includes:
- the rearrangement module is set to execute when a preset event occurs, according to the size of the number of each online user terminal in the user terminal queue to be processed, the first processing time and the alarm information sending time
- the user terminal queue is rearranged, wherein the preset event includes at least one of the following: a user terminal is online on the alarm platform, a user terminal is offline from the alarm platform, and the alarm platform issues an alarm
- the information and user terminal process the alarm information.
- an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
- Memory used to store computer programs
- the processor is configured to execute any of the steps of the information sending method described above when executing the program stored in the memory.
- an embodiment of the present application provides a machine-readable storage medium that stores a computer program in the machine-readable storage medium, and when the computer program is executed by a processor, implements any of the foregoing information sending methods step.
- an embodiment of the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform any of the steps of the information sending method described above.
- the number of unprocessed alarm information of each online user terminal is obtained as the number of pending processing of each online user terminal; when the number of pending processing of each online user terminal is not exactly equal, according to each pending The size of the number of processing, select the first user terminal from each online user terminal as the target user terminal, the number of the first user terminal to be processed is smaller than the number of other user terminals in the online user terminal except the first user terminal When the number of online user terminals to be processed is completely equal, according to a preset selection rule, select a second user terminal from each online user terminal as the target user terminal, the number of second user terminals is less than the number of online user terminals; Send the alarm information to be delivered to the target user terminal.
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and further Improve the timeliness of the processing of alarm information.
- FIG. 2 is another flowchart of the information sending method provided by the embodiment of the present application.
- FIG. 3 is a schematic diagram of a scenario of an information sending method provided by an embodiment of this application.
- FIG. 4 is a schematic structural diagram of an information sending device provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- embodiments of the present application provide an information sending method and device, where the information sending method includes:
- the number of to-be-processed of each online user terminal is not completely equal, according to the size of each to-be-processed, select the first user terminal from each of the online user terminals as the target user terminal, the number of to-be-processed of the first user terminal is less than each online The number of pending user terminals other than the first user terminal in the user terminal;
- a second user terminal is selected from each online user terminal as the target user terminal, and the number of second user terminals is less than the number of online user terminals;
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and Improve the timeliness of the processing of alarm information.
- the information sending method provided in the embodiments of the present application may be applied to an alarm platform, and may also be applied to other electronic devices that are communicatively connected to the alarm platform, which is not limited herein.
- the information sending method provided by the embodiment of the present application includes the following steps.
- the online user terminal refers to a user terminal that is online on the alarm platform.
- the online user terminal establishes a communication connection with the alarm platform and can receive information sent by the alarm platform.
- the information can be different types of information such as alarm information and instruction information.
- Each online user terminal corresponds to at least one processing personnel, and the processing personnel can perform corresponding processing according to the alarm information received by the online user terminal to resolve the matters indicated by the alarm information.
- each online user terminal corresponds to a processor, where online user terminal A corresponds to processor A, and online user terminal B corresponds to processor B.
- the processor A handles the dispute expressed by the alarm message.
- the unprocessed alarm information of each online user terminal refers to the alarm information issued to the online user terminal by the alarm platform and processed by the online user terminal but not yet processed and being processed.
- the online user terminal For each online user terminal, whenever the alarm information is received, if it cannot be processed in time, the online user terminal can store the received alarm information locally as unprocessed alarm information. When there are multiple unprocessed alarm messages, they can be arranged in chronological order, so that the processing personnel can process each unprocessed alarm message in sequence according to the order in which the unprocessed alarm messages are arranged.
- Each online user terminal online on the alarm platform corresponds to a quantity to be processed. For example, when the quantity to be processed corresponding to the online user terminal A is 0, it means that the online user terminal A currently has no unprocessed alarm information. When the number of to-be-processed corresponding to the online user terminal B is 3, it means that the online user terminal B currently has 3 unprocessed alarm messages.
- an unprocessed alarm information corresponding to each online user terminal may be recorded by an alarm platform.
- the alarm platform records the number of unprocessed alarm information for each online user terminal. After an online user terminal completes the processing of the alarm information, the online user terminal feeds back the processed information to the alarm platform, so that the alarm platform updates the recorded amount of unprocessed alarm information.
- the alarm platform records the amount of unprocessed alarm information for each online user terminal, and each online user terminal can also record its own amount of unprocessed alarm information.
- Each online user terminal can feed back the amount of unprocessed alarm information to the alarm platform according to a preset time point or interval duration, so that the alarm platform can update the locally stored amount of unprocessed alarm information of each online user terminal in time.
- the preset time point or interval duration can be set by user.
- the number of unprocessed alarm information of each online user terminal can be obtained directly from the local.
- S102 When the number of to-be-processed terminals of each online user terminal is not completely equal, select the first user terminal from each of the online user terminals as the target user terminal according to the size of each to-be-processed number.
- the number of the first user terminal to be processed is smaller than the number of the other user terminals except the first user terminal in each online user terminal. In this way, the number of selected first user terminals is smaller than the number of online user terminals. Wherein, the number of the first user terminals selected from the online user terminals may be set by the user.
- the number of pending first user terminals is less than the other online users in each online user terminal except the first user terminal The number of terminals to be processed.
- the number of the first user terminal may be one or more. When the number of first user terminals is multiple. The number of pending processing of the first user terminal is less than the number of pending processing of other user terminals except the first user terminal in each online user terminal, which means that the number of pending processing of any first user terminal is less than that of each online user terminal The number of any other user terminals to be processed outside the first user terminal. The number of to-be-processed of one first user terminal among the plurality of first user terminals may be greater than or equal to the number of to-be-processed of other first user terminals.
- the first user terminal is selected from each online user terminal as the target user terminal according to the size of the number to be processed, and then the alarm information to be issued is sent to the target user terminal for processing.
- the number of target user terminals to be processed is relatively small, and the alarm information to be issued can be processed as soon as possible after being sent to the target user terminal, thereby increasing The processing efficiency and timeliness of the alarm information have been introduced.
- the first processing time may also be considered to further improve the timeliness of the alarm information.
- the alarm processing completion message sent by each online user terminal is received, and the first processing time of each online user terminal is updated.
- the alarm platform records the first processing time of each online user terminal, and the alarm platform can update the recorded first processing time.
- the first processing time may be the time when the alarm platform receives the alarm processing completion message sent by the online user terminal.
- the first processing time may also refer to the completion time of the online user terminal for processing the alarm information.
- the online user terminal will carry the The alarm processing completion message of the completion time is sent to the alarm platform, and the alarm platform updates the first processing time according to the completion time.
- the first processing time of the online user terminal is the time when the alarm information closest to the current time is processed. For example, for the online user terminal A, an alarm message is processed at 11 o'clock, and an alarm message is completed at 11:20. If the current time is 11:30, the alarm message closest to the current 11:30 The processing time is 11:20, that is, 11:20 is the first processing time of the online user terminal A.
- the first processing time corresponding to the same online user terminal at different moments may be the same or different.
- the first processing time of each online user terminal at the same time may be the same or different.
- the third user terminal is selected from the first user terminals as the target user according to each first processing time terminal.
- the first preset threshold may be set by custom.
- the first processing time of the third user terminal is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal.
- online user terminals include: terminal A, terminal B, terminal C, terminal D, and terminal E, where terminal A, terminal B, and terminal C are selected as the first user terminal according to the size of the number to be processed, according to the first processing At time, terminal A and terminal B are selected from the first user terminal as the third user terminal, that is, the target user terminal. Then, the terminal A, terminal B, and terminal C each have a smaller amount of to-be-processed than the terminal D and terminal E, and the first processing time of the terminal A and the terminal B is earlier than the first processing time of the terminal C.
- the first user terminals are sorted according to the order of the first processing time from morning to night, and according to the order, the user terminals are sequentially selected from the first user terminals as the third user terminal.
- the third user terminal is the target user terminal.
- the selected first user terminals include: terminal A, terminal B, terminal C, and terminal D, where the first user terminals are sorted according to the order of the first processing time from early to late, and the resulting order is: For terminal D, terminal B, terminal C, and terminal A, it can be known from the ranking that terminal D has the earliest processing time, terminal B is the second, terminal C is later than terminal D and terminal B, and terminal A is the latest.
- terminal D For terminal D, terminal B, terminal C, and terminal A, it can be known from the ranking that terminal D has the earliest processing time, terminal B is the second, terminal C is later than terminal D and terminal B, and terminal A is the latest.
- the selection of the target user terminal may also consider the sending time of the alarm information.
- the alarm platform can obtain the alarm information sending time of each online user terminal.
- the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to be sent to the online user terminal.
- the alarm platform sends an alarm message to the online user terminal B at 11 o'clock.
- the alarm message transmission time of the online user terminal B is 11 o'clock.
- the alarm platform sends an alarm message to the online user terminal B at 11:20, and sends an alarm message to the online user terminal B at 12 o'clock. If the current time is 13:00, the sending time of the alarm information of the online user terminal B is 12:00.
- the sending time is based on each alarm information , Select the fifth user terminal from the third user terminals as the target user terminal.
- the third preset threshold may be set by self-definition, and the third preset threshold may be the same as or different from the above-mentioned first preset threshold. No limitation here.
- the number of fifth user terminals is less than or equal to the third preset threshold.
- the alarm information transmission time of the fifth user terminal is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- the third preset threshold is 1, and the third user terminal includes: terminal A, terminal B, and terminal C, wherein the alarm information transmission time of terminal A is 9 o'clock, and the terminal B alarm information transmission time is 10 o'clock, the terminal The alarm information transmission time of C is 11 o'clock, and then terminal A is selected as the fifth user terminal according to the order of the alarm information transmission time.
- the alarm information transmission time of terminal A is earlier than that of terminal B and terminal C.
- the third user terminals are sorted according to the order in which the alarm information is sent from morning to night, and a queue based on the time when the alarm information is sent is obtained. According to the queue, the user terminals are sequentially selected from the third user terminals as the For the fifth user terminal, the selected fifth user terminal is the target user terminal.
- the third user terminal includes: terminal A, terminal B, terminal C, and terminal D, where the third user terminal is sorted according to the order of sending the alarm information from early to late, and the resulting queue is: terminal D, From terminal B, terminal C, and terminal A, it can be known from the queue that the alarm information of terminal D is sent the earliest, terminal B is the second, terminal C is later than terminal D and terminal B, and terminal A is the latest.
- the terminal D and the terminal B are successively selected as the fifth user terminal according to the above queue.
- the alarm information sending time for the alarm platform to deliver the alarm information to each user terminal is considered, the earlier the alarm information sending time is online
- the user terminal has priority as the target user terminal to further improve the timeliness of the alarm information.
- the alarm information sending time of each online user terminal may be obtained.
- the fourth user terminal is selected from the first user terminals as the target user terminal according to the sending time of each alarm information.
- the second preset threshold may be set by the user, and the second preset threshold may be the same as or different from the first preset threshold and the third preset threshold described above. No limitation here.
- the number of fourth user terminals is less than or equal to the second preset threshold.
- the alarm information transmission time of the fourth user terminal is earlier than the alarm information transmission time of other user terminals except the fourth user terminal in the first user terminal
- the second preset threshold is 2
- the first user terminal includes: terminal A, terminal B, terminal C, and terminal D
- the alarm information transmission time of terminal A is 9 o'clock
- the alarm information transmission time of terminal B is 10 Point
- terminal C's alarm information transmission time is 11 o'clock
- terminal D's alarm information transmission time is 13 o'clock
- the alarm information transmission time of B is earlier than that of terminal C and terminal D.
- the first user terminals are sorted according to the order in which the alarm information is sent from morning to night, and a queue based on the time when the alarm information is sent is obtained. According to the queue, the user terminals are sequentially selected from the first user terminals as the For the fourth user terminal, the selected fourth user terminal is the target user terminal.
- the first user terminal includes: terminal A, terminal B, terminal C, and terminal D, where the first user terminal is sorted according to the order of sending the alarm information from early to late, and the resulting queue is: terminal D, From terminal B, terminal C, and terminal A, it can be known from the queue that the alarm information of terminal D is sent the earliest, terminal B is the second, terminal C is later than terminal D and terminal B, and terminal A is the latest.
- the terminal D and the terminal B are successively selected as the fourth user terminal according to the above queue.
- the alarm information sending time for the alarm platform to deliver the alarm information to each user terminal is considered, and the online user terminal with the earlier alarm information sending time takes priority as the target user terminal To further improve the timeliness of the alarm information.
- the preset selection rule may be set by custom, and the number of second user terminals is smaller than the number of online user terminals.
- the preset selection rule may be random selection, that is, a second user terminal is randomly selected from each online user terminal as the target user terminal.
- the subsequent alarm platform only sends the alarm information to a small number of target user terminals for processing, which avoids the same alarm information being processed by all online user terminals and reduces repeated processing The number of times has further improved the processing efficiency of the entire alarm system.
- the preset selection rule may also be selected according to the first processing time.
- a second user terminal is selected from each online user terminal, and the selected second user terminal is the target user terminal.
- the first processing time of the second user terminal is earlier than the first processing time of other user terminals except the second user terminal in each online user terminal.
- the number of second user terminals may be set by custom. For example, if only one user terminal is selected as the second user terminal from each online user terminal, the first processing time of the second user terminal is the earliest among all online user terminals.
- an online user terminal includes: terminal A, terminal B, terminal C, terminal D, and terminal E, where terminal A and terminal B are selected as the second user terminal according to the first processing time, then terminal A and terminal B The first processing time is earlier than the first processing time of terminal C, terminal D, and terminal E.
- the target user terminal is selected according to the first processing time, and the first processing time of the selected target user terminal is relatively earlier.
- the alarm platform delivers the alarm information to these target user terminals
- the target user terminal can The alarm information is processed as soon as possible, thereby improving the processing efficiency and timeliness of the alarm information.
- a user terminal whose first processing time is before a preset time is selected from each online user terminal as the second user terminal.
- the preset time can also be customized.
- the N online user terminals may be used as second user terminals.
- N is a positive integer.
- online user terminals include: terminal A, terminal B, terminal C, and terminal D, where the first processing time of terminal A is 10 o'clock, the first processing time of terminal B is 13 o'clock, and the first processing time of terminal C It is 11:00, and the first processing time of terminal D is 15:00. If the preset time is 12 o'clock, the user terminals satisfying the first processing time before the preset time are terminal A and terminal C, and then terminal A and terminal C are determined as second user terminals.
- an online user terminal may be arbitrarily selected from each online user terminal as the second user terminal.
- the alarm platform records the online time of each online user terminal.
- the online time of the online user terminal refers to the time that the user terminal is online on the alarm platform.
- the alarm platform can obtain the online time of each online user terminal, and select a second user terminal from each online user terminal according to the online time of each online user terminal.
- the online time of the second user terminal is earlier than the online time of other user terminals except the second user terminal in each online user terminal.
- online user terminals include: terminal A, terminal B, terminal C, and terminal D, where terminal A's online time is 10:00, terminal B's online time is 11:00, terminal C's online time is 12:00, terminal D The online time is 13 o'clock. If two online user terminals are selected as the second user terminal, terminal A and terminal B are determined as second user terminals, and the online time of terminal A and terminal B is earlier than the online time of terminal C and terminal D.
- the online user terminals are sorted according to the order of the online time to obtain a queue based on the online time. Select the user terminals as the second user terminals in sequence from the obtained queue.
- online user terminals include: terminal A, terminal B, terminal C, and terminal D, where terminal A's online time is 13:00, terminal B's online time is 11:00, terminal C's online time is 15:00, terminal D The online time is 10 o'clock. Then, the queues sorted according to the order of online time are: terminal D, terminal B, terminal A, and terminal C. If two user terminals are selected as the second user terminal, then terminal D and terminal B are selected as the second User terminal.
- the preset selection rule can also be selected according to the sending time of the alarm information.
- the alarm platform can obtain the sending time of the alarm information of each online user terminal, and select the first from the online user terminals according to the sending time of each alarm information. Two user terminals.
- the alarm information transmission time of the second user terminal is earlier than the alarm information transmission time of the other user terminals except the second user terminal in each online user terminal.
- online user terminals include: terminal A, terminal B, terminal C, and terminal D, where the alarm information transmission time of terminal A is 10 o'clock, the alarm information transmission time of terminal B is 11 o'clock, and the terminal C alarm information transmission time It is 12 o'clock, and the alarm information sending time of terminal D is 13 o'clock. If two online user terminals are selected as the second user terminal, then terminal A and terminal B are determined as the second user terminal, the alarm information sending time of terminal A and terminal B is earlier than that of terminal C and terminal D .
- the online user terminals are sorted according to the order of the alarm information transmission time, and a queue based on the alarm information transmission time can be obtained. Select the user terminals as the second user terminals in sequence from the obtained queue.
- online user terminals include: terminal A, terminal B, terminal C, and terminal D, where the alarm information transmission time of terminal A is 13:00, the alarm information transmission time of terminal B is 11:00, and the terminal C alarm information transmission time It is 15 o'clock, and the alarm information sending time of terminal D is 10 o'clock.
- the queues obtained by sorting according to the order in which the alarm information is sent are: terminal D, terminal B, terminal A and terminal C. If two user terminals are selected as the second user terminal, terminal D and terminal B are selected in order The second user terminal.
- S104 Send the alarm information to be sent to the target user terminal.
- the alarm platform When the alarm platform generates alarm information that needs to be issued, the alarm information is used as the alarm information to be issued, and the alarm information to be issued is sent to the target user terminal.
- the alarm information to be issued is processed only by the processing personnel of the target user terminal, to avoid repeated processing of the same alarm information by all processing personnel, and when there is only one target user terminal, the alarm information to be issued at this time It is only handled by the processing personnel of one user terminal, avoiding repeated processing of the same alarm information.
- the target user terminal is selected according to the order from small to large, so the target user terminal has a relatively small number of user terminals, which is conducive to faster delivery of alarm information issued by the alarm platform Is processed to further improve the timeliness of alarm information processing.
- the number of unprocessed alarm information of each online user terminal is obtained as the number of pending processing of each online user terminal; when the number of pending processing of each online user terminal is not exactly equal, according to each pending The size of the number of processing, select the first user terminal from each online user terminal as the target user terminal, the number of the first user terminal to be processed is smaller than the number of other user terminals in the online user terminal except the first user terminal When the number of online user terminals to be processed is completely equal, according to a preset selection rule, select a second user terminal from each online user terminal as the target user terminal, the number of second user terminals is less than the number of online user terminals; Send the alarm information to be delivered to the target user terminal.
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and further Improve the timeliness of the processing of alarm information.
- An embodiment of the present application further provides an information sending method. As shown in FIG. 2, the information sending method includes the following steps.
- S201 is the same as S101 in the foregoing embodiment, and details are not described herein again.
- S202 Receive an alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal.
- S202 is the same as the implementation manner in the foregoing embodiment, and details are not described herein again.
- S203 Sort each online user terminal according to the number of to-be-processed. When there are user terminals with equal numbers of to-be-processed in each online user terminal, sort the user terminals with equal to-be-processed according to the order of the first processing time To get the user terminal queue.
- the online user terminals are sorted according to the order of the number to be processed from small to large.
- the equal number of user terminals to be processed are sorted according to the order of the first processing time to obtain a user terminal queue.
- online user terminals include: terminal A, terminal B, terminal C, terminal D, and terminal E, where the number of pending processing of terminal A is 1, the number of pending processing of terminal B is 4, and the number of pending processing of terminal C is 2
- the number of terminals D to be processed is 2, and the number of terminals E to be processed is 2.
- terminal A is ranked first, and terminal B is ranked last.
- terminal C For terminal C, terminal D and terminal E, it is further sorted according to the order of the first processing time, where the first processing time of terminal C is 11 o'clock and the first processing time of terminal D is 11:15, the terminal The first processing time of E is 12 o'clock, the order for terminal C, terminal D and terminal E is: terminal C, terminal D and terminal E.
- the resulting user terminal queue is: terminal A, terminal C, terminal D. Terminal E and Terminal B.
- the alarm platform can obtain the sending time of the alarm information of each online user terminal.
- the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to be sent to the online user terminal.
- online user terminals include: terminal A, terminal B, terminal C, terminal D, and terminal E, where the number of pending processing of terminal A is 1, the number of pending processing of terminal B is 4, and the number of pending processing of terminal C is 2
- the number of terminals D to be processed is 2, and the number of terminals E to be processed is 2.
- terminal A is ranked first, and terminal B is ranked last.
- terminal C terminal D and terminal E, they are sorted according to the first processing time, where the first processing time of terminal C is 11 o'clock, the first processing time of terminal D is 11:15, and the first terminal E If the processing time is 11 o'clock, then in the order of the first processing time from early to late, terminal D is ranked in front of terminal C and terminal E.
- terminal C and terminal E that is, user terminals with the same number of to-be-processed and the same first processing time, they are sorted according to the sending time of the alarm information, where the sending time of the alarm information of terminal C is 9 o'clock and the sending of the alarm information of terminal E
- the order of terminal C and terminal E is as follows: terminal C and terminal E according to the order of sending the alarm information from morning to night.
- the obtained user terminal queue is: terminal A, terminal D, terminal C, terminal E, and terminal B.
- step S204 according to the order of the user terminal queue, the user terminals with the first number of terminals are sequentially selected from the user terminal queue as the target user terminals.
- the number of the first terminal may be set by customization. For example, if the number of first terminals is 1, the first user terminal in the user terminal queue is determined as the target user terminal.
- the order of the user terminal queue is: terminal B, terminal A, terminal D, and terminal C, and the number of the first terminal is 2, then select terminal B and terminal A in sequence as the target user terminal.
- the number of any terminal to be processed is selected from the user terminals of the first number of terminals in the order of the user terminal queue, Theoretically, it is smaller than the number of unselected user terminals in the user terminal queue to be processed. Therefore, the number of user terminals of the first terminal selected in this manner is equivalent to the first user terminal mentioned in S102. Therefore, S202-S204 can be regarded as a possible implementation manner of selecting the first user terminal from each online user terminal.
- S205 Send the alarm information to be delivered to the target user terminal.
- S205 is the same as S104 in the foregoing embodiment, and details are not described herein.
- the user terminal queue is rearranged according to the size of the number of online user terminals to be processed in the user terminal queue, the order of the first processing time and the time of sending the alarm information .
- the preset event includes at least one of the following: the presence of a user terminal going online on the alarm platform, the presence of a user terminal going offline from the alarm platform, the alarm platform delivering alarm information, and the user terminal processing the alarm information.
- the first processing time and the alarm information sending time after rearranging the user terminal queue, two results will appear.
- the first result The user terminal queue has changed, the second result, the user terminal queue has not changed. Regardless of the above result, the queue before the rearrangement is updated with the rearranged user terminal queue, and the user terminal queue after the update is the rearranged user terminal queue.
- Table 1 is used as an example for description, where the number of target user terminals is 1.
- the online user terminals online on the alarm platform include U1, U2, and U3, and go online in the order of U1, U2, and U3.
- the number of U1, U2, and U3 to be processed are all 0, and there is no
- the records of the first processing time and the sending time of the alarm information are therefore recorded as 0, and the user terminal queue is U1, U2, U3.
- the alarm platform needs to send the alarm information a to be issued.
- U1 can be determined as the target user terminal, and the alarm platform sends the alarm information a to U1.
- the number of U1 to be processed becomes 1, the alarm information sending time is t2, and the user terminal queue is rearranged as: U2, U3, U1.
- the alarm platform needs to send the alarm information b to be issued.
- U2 can be determined as the target user terminal, and then the alarm platform sends the alarm information b to be sent to U2.
- the number of U2 to be processed becomes 1, the alarm information sending time is t3, and the user terminal queue is rearranged as: U3, U1, U2.
- the alarm platform needs to send the alarm information c to be issued.
- U3 can be determined as the target user terminal, and then the alarm platform sends the alarm information c to be sent to U3.
- the number of U3 to be processed becomes 1, and the alarm information sending time is t4.
- the number to be processed is the same, all are 1, the first processing time is the same, all are 0, then the user terminal queue is rearranged into U1, U2, U3.
- U2 finishes processing the alarm information b, which is the alarm information b to be issued by the alarm platform.
- the number of U2 to be processed becomes 0, the first processing time is t5, and the alarm information sending time is unchanged, which is still t3.
- U2 has the least number of to-be-processed, ranking first, and sorts U1 and U3 into U1 and U3 according to the order in which the alarm information is sent.
- the obtained user terminal queues are U2, U1, and U3.
- U3 finishes processing the alarm information c, which is the alarm information c to be issued by the alarm platform.
- the number of U3 to be processed becomes 0, the first processing time is t6, and the alarm information sending time is unchanged, still t4.
- the least to be processed are U2 and U3, both of which are 0, then U2 and U3 are sorted according to the order of the first processing time: U2, U3, U1 has a relatively large number of to be processed, and is ranked last.
- the obtained user terminal queues are: U2, U3, U1.
- U4 goes online on the alarm platform, and is rearranged based on the user terminal queue at time t6.
- the number of U4 to be processed is the smallest, it is 0, and there is no record of the first processing time, so it is also recorded as 0.
- the obtained user terminal queue is U4, U2, U3, U1.
- the alarm platform needs to send the pending alarm information d.
- U4 can be determined as the target user terminal, and the alarm platform sends the pending alarm information d to U4.
- the number of U4 to be processed becomes 1, and the alarm information sending time is t8.
- U2 and U3 have the least number of to-be-processed, which are both 0, and U2 and U3 are sorted according to the order of the first processing time: U2, U3.
- the number to be processed is the same, and the first processing time is the same, then U1 and U4 are sorted into U1 and U4 according to the order in which the alarm information is sent.
- the obtained user terminal queues are: U2, U3, U1, U4.
- the alarm platform needs to send the alarm information e to be issued.
- U2 can be determined as the target user terminal, and the alarm platform sends the alarm information e to be sent to U2.
- the number of U2 to be processed becomes 1, the alarm information transmission time is t9, and the first processing time is unchanged, which is still t5.
- the number of U3 to be processed is 0, which is the least, ranking first.
- the number of to-be-processed is the same, all are 1, then compare the first processing time, where the first processing time of U1 and U4 are the same, are recorded as 0, so U2 ranks the last bit.
- the alarm information is sent in the order of time: U1, U4.
- the resulting user terminal queue is: U3, U1, U4, U2.
- the alarm platform needs to send the alarm information f to be issued.
- U3 can be determined as the target user terminal, and the alarm platform sends the alarm information f to be sent to U3.
- the number of U3 to be processed becomes 1, the alarm information sending time is t10, and the first processing time is unchanged, which is still t6.
- the number of U1, U2, U3, U4 to be processed is the same, all are 1, then compare the first processing time, where the first processing time of U1 and U4 are the same, and the first processing time of U2 and U3 are late
- U2 and U3 are ranked after U1 and U4, and the order of U2 and U3 is: U2, U3.
- the alarm information is sent in the order of time: U1, U4.
- the obtained user terminal queues are: U1, U4, U2, U3.
- the alarm platform needs to send the alarm information g to be issued.
- U1 can be determined as the target user terminal, and the alarm platform sends the alarm information g to be sent to U1.
- the number of U1 to be processed becomes 2, the alarm information sending time is t11, and the first processing time is unchanged, still 0.
- U1 has the largest number of pending processing, ranking last.
- the number of U2, U3, U4 to be processed is the same, all are 1, then the first processing time is compared, and sorted according to the order of the first processing time: U4, U2, U3.
- the obtained user terminal queues are: U4, U2, U3, U1.
- the alarm platform needs to send the pending alarm information h.
- U4 can be determined as the target user terminal, and the alarm platform sends the pending alarm information h to U4.
- the number of U4 to be processed becomes 2
- the alarm information sending time is t12
- the first processing time remains unchanged, still 0.
- the number of U1 and U4 to be processed and the first processing time are the same, according to the order of the alarm information sending time: U1, U4, U2 and U3 are the same, according to the order of the first processing time
- the order is: U2, U3. Because the number of U2 and U3 to be processed is smaller than that of U1 and U4, U2 and U3 are ranked in front of U1 and U4.
- the obtained user terminal queues are: U2, U3, U1, U4.
- U1 processes the alarm information a
- the alarm information a is the alarm information a to be issued by the alarm platform.
- the number of U1 to be processed becomes 1, the first processing time is t13, and the alarm information sending time is unchanged, which is still t11.
- the least to be processed are U1, U2, and U3, which are all 1, and then U1, U2, and U3 are sorted according to the order of the first processing time: U2, U3, U1, and the number of U4 to be processed is relatively Many, ranked last.
- the obtained user terminal queues are: U2, U3, U1, U4.
- the alarm platform only sends to one user terminal each time it sends an alarm message to be issued.
- the alarm platform has 4 alarm messages to be issued, namely: alarm information 1, alarm information 2 , Alarm information 3 and alarm information 4, the user terminals online on the alarm platform include terminal A, terminal B, terminal C and terminal D, the number of pending processing at terminal A, terminal B, terminal C and terminal D, the first processing time
- the alarm platform will send 4 alarm messages to 4 user terminals on average: send alarm message 1 to terminal A, send alarm message 2 to terminal B, and send alarm message 3 To terminal C, send the alarm message 4 to terminal D.
- the four alarm messages can be processed at the same time, which improves the efficiency of alarm message processing.
- the network bandwidth required for the alarm platform to deliver the M1 piece of alarm information to be issued is: a1 ⁇ M1 ⁇ N1
- the occupied network bandwidth is: a1 ⁇ M1
- the network bandwidth required for the alarm platform to deliver the M1 piece of alarm information to be issued is: a1 ⁇ M1
- the occupied network bandwidth is: a1 ⁇ M1 / N1. It can be seen that compared with the prior art, the network bandwidth required by the technical solution provided by the embodiments of the present application is reduced.
- a1 500KB
- N1 5
- M1 10
- an alarm message is 500KB
- an embodiment of the present application further provides an information sending device.
- the information sending device includes:
- the first obtaining module 410 is configured to perform the obtaining of the number of unprocessed alarm information of each online user terminal as the number of pending processing of each online user terminal;
- the first selection module 420 is configured to select the first user terminal from each online user terminal as the target user terminal according to the size of each to-be-processed number when the number of each online user terminal to be processed is not completely equal.
- the number of pending processing of a user terminal is less than the number of pending processing of other user terminals except the first user terminal in each online user terminal;
- the second selection module 430 is configured to execute the selection of the second user terminal from the online user terminals as the target user terminal and the second user terminal according to a preset selection rule when the number of online user terminals to be processed is completely equal The number is less than the number of online user terminals;
- the delivery module 440 is configured to execute sending the alarm information to be delivered to the target user terminal.
- the device may further include:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module 420 is specifically configured to execute when the number of first user terminals is greater than a first preset threshold, select a third user terminal from the first user terminals as the target user terminal according to each first processing time, The first processing time of the third user terminal is earlier than the first processing time of other user terminals in the first user terminal except the third user terminal;
- the second selection module 430 is specifically configured to execute: select the second user terminal from each online user terminal according to each first processing time, the first processing time of the second user terminal is earlier than the second user terminal except the second The first processing time of a user terminal other than the user terminal.
- the device may further include:
- the second obtaining module is set to execute obtaining the online time of each online user terminal
- the second selection module 430 is specifically configured to execute: according to the online time of each online user terminal, select the second user terminal from each online user terminal, the online time of the second user terminal is earlier than each online user terminal except the second The online time of user terminals other than the user terminal.
- the device may further include:
- the third acquisition module is set to execute the acquisition of the alarm information transmission time of each online user terminal, and the alarm information transmission time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module 420 is specifically configured to execute the selection of the fourth user terminal from the first user terminals as the target user terminal according to the sending time of each alarm information when the number of first user terminals is greater than the second preset threshold, The alarm information transmission time of the fourth user terminal is earlier than the alarm information transmission time of other user terminals except the fourth user terminal in the first user terminal;
- the second selection module 430 is specifically configured to execute: select a second user terminal from each online user terminal according to each alarm information sending time, and the second user terminal's alarm information sending time is earlier than each online user terminal except the second The alarm information sending time of user terminals other than the user terminal.
- the device may further include:
- the third acquisition module is set to execute the acquisition of the alarm information transmission time of each online user terminal, and the alarm information transmission time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module 420 is configured to execute the selection of the fifth user terminal from the third user terminals as the target user terminal according to each alarm information transmission time when the number of third user terminals is greater than the third preset threshold.
- the alarm information transmission time of the fifth user terminal is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- the device further includes:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module 420 is specifically set to perform sorting of each online user terminal according to the size of the number to be processed. When there are user terminals with the same number to be processed in each online user terminal, according to the order of the first processing time, Sort the equal number of user terminals to be processed to obtain the user terminal queue;
- the user terminals with the first number of terminals are sequentially selected from the user terminal queue as the target user terminals.
- the device may further include:
- the second obtaining module is used to obtain the sending time of the alarm information of each online user terminal.
- the sending time of the alarm information is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;
- the first selection module 420 is specifically configured to execute:
- the user terminals to be processed with equal number are sorted according to the order of the first processing time.
- the user terminals with the same to-be-processed number and the same first processing time are sorted according to the sequence of the alarm information sending time to obtain a user terminal queue.
- the device may further include:
- the rearrangement module is set to execute when the preset event occurs, according to the size of the number of each online user terminal in the user terminal queue to be processed, the first processing time and the alarm information sending time, the user terminal queue Rearrangement, wherein the preset event includes at least one of the following: the presence of a user terminal going online on the alarm platform, the presence of a user terminal going offline from the alarm platform, the alarm platform issuing alarm information, and the user terminal processing the alarm information.
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and further Improve the timeliness of the processing of alarm information.
- An embodiment of the present application also provides an information sending apparatus, where the apparatus includes a processor and a memory.
- the processor is used to execute the following program modules stored in the memory:
- the first acquisition module is set to execute the acquisition of the number of unprocessed alarm information of each online user terminal as the number of each online user terminal to be processed;
- the first selection module is configured to execute the selection of the first user terminal from each of the online user terminals as the target user terminal according to the size of the number of to-be-processed when the to-be-processed numbers of the on-line user terminals are not completely equal.
- the number of to-be-processed of the first user terminal is less than the number of to-be-processed of other user terminals except the first user terminal in each online user terminal;
- the second selection module is configured to execute the selection of the second user terminal from the online user terminals as the target user terminal according to a preset selection rule when the number of to-be-processed terminals of the online user terminals is completely equal.
- the number of second user terminals is less than the number of online user terminals;
- the delivery module is configured to execute sending the alarm information to be delivered to the target user terminal.
- the processor is also used to execute the following program modules stored in the memory:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module is specifically configured to execute when the number of first user terminals is greater than the first preset threshold, according to each first processing time, select a third user terminal from the first user terminal as the target user terminal, The first processing time of the three user terminals is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal;
- the second selection module is specifically set to be executed: according to each first processing time, a second user terminal is selected from each online user terminal, the first processing time of the second user terminal is earlier than each online user terminal except the second user The first processing time of user terminals other than the terminal.
- the processor is also used to execute the following program modules stored in the memory:
- the second obtaining module is set to execute obtaining the online time of each online user terminal
- the second selection module is specifically configured to execute: according to the online time of each online user terminal, the second user terminal is selected from each online user terminal, the online time of the second user terminal is earlier than the second user terminal except the second user The online time of user terminals other than the terminal.
- the processor is also used to execute the following program modules stored in the memory:
- the third acquisition module is set to execute the acquisition of the alarm information transmission time of each online user terminal, and the alarm information transmission time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module is specifically configured to execute when the number of first user terminals is greater than the second preset threshold, select a fourth user terminal from the first user terminals as the target user terminal according to each alarm information transmission time, and The alarm information transmission time of the four user terminals is earlier than the alarm information transmission time of other user terminals except the fourth user terminal in the first user terminal;
- the second selection module is specifically set to execute: select the second user terminal from each online user terminal according to the sending time of each alarm information, and the sending time of the alarm information of the second user terminal is earlier than that of each online user terminal except the second user The alarm information sending time of user terminals other than the terminal.
- the processor is also used to execute the following program modules stored in the memory:
- the third acquisition module is set to execute the acquisition of the alarm information transmission time of each online user terminal, and the alarm information transmission time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;
- the first selection module is configured to execute, when the number of third user terminals is greater than the third preset threshold, select the fifth user terminal from the third user terminals as the target user terminal according to each alarm information transmission time, The alarm information transmission time of the fifth user terminal is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- the processor is also used to execute the following program modules stored in the memory:
- the receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;
- the first selection module is specifically set to perform sorting of each online user terminal according to the number of to-be-processed.
- the first Sort the equal number of user terminals to obtain the user terminal queue;
- the processor is also used to execute the following program modules stored in the memory:
- the second acquisition module is set to execute the acquisition of the alarm information sending time of each online user terminal.
- the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to be sent to the online user terminal;
- the first selection module is specifically set to execute:
- the user terminals to be processed with equal number are sorted according to the order of the first processing time.
- the user terminals with the same to-be-processed number and the same first processing time are sorted according to the sequence of the alarm information sending time to obtain a user terminal queue.
- the processor is also used to execute the following program modules stored in the memory:
- the rearrangement module is set to execute when the preset event occurs, according to the size of the number of each online user terminal in the user terminal queue to be processed, the first processing time and the alarm information sending time, the user terminal queue Rearrangement, wherein the preset event includes at least one of the following: the presence of a user terminal going online on the alarm platform, the presence of a user terminal going offline from the alarm platform, the alarm platform issuing alarm information, and the user terminal processing the alarm information.
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and further Improve the timeliness of the processing of alarm information.
- An embodiment of the present application also provides an electronic device, as shown in FIG. 5, including a processor 510, a communication interface 520, a memory 530, and a communication bus 540, where the processor 510, the communication interface 520, and the memory 530 pass through the communication bus 540 Complete communication with each other;
- the memory 530 is used to store computer programs
- the number of to-be-processed of each online user terminal is not completely equal, according to the size of each to-be-processed, select the first user terminal from each of the online user terminals as the target user terminal, the number of to-be-processed of the first user terminal is less than each online The number of pending user terminals other than the first user terminal in the user terminal;
- a second user terminal is selected from each online user terminal as the target user terminal, and the number of second user terminals is less than the number of online user terminals;
- the user terminal with a relatively small number to be processed is taken as the target user terminal, and when the number to be processed is completely equal, the second user selected as the target user terminal
- the number of terminals is smaller than the number of online user terminals. In other words, the number of selected target user terminals is less than the number of online user terminals, and the alarm information to be issued is only sent to the target user terminal, so that only the target user terminal that has received the alarm information to be issued will treat the alarm information to be issued
- the processing is carried out to avoid the repeated processing of an alarm message by all user terminals.
- the user terminal with a relatively small number to be processed is used as the target user terminal to receive the alarm information to be issued, so that the alarm information to be issued can be processed as soon as possible, and further Improve the timeliness of the processing of alarm information.
- the communication bus mentioned in the above electronic device may be a peripheral component interconnection standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure (Extended Industry Standard Architecture, EISA) bus, etc.
- PCI peripheral component interconnection standard
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, and a control bus.
- the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the electronic device and other devices.
- the memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory.
- RAM Random Access Memory
- NVM Non-Volatile Memory
- the memory may also be at least one storage device located away from the foregoing processor.
- the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc .; it may also be a digital signal processor (Digital Signal Processing, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- a central processor Central Processing Unit, CPU
- NP Network Processor
- DSP Digital Signal Processing
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- an embodiment of the present application further provides a machine-readable storage medium in which a computer program is stored, and the computer program is processed by a processor When executed, any one of the above-mentioned steps of the information sending method corresponding to FIG. 1 and FIG. 1 is realized.
- the communication bus mentioned in the above electronic device may be a peripheral component interconnection standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure (Extended Industry Standard Architecture, EISA) bus, etc.
- PCI peripheral component interconnection standard
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, and a control bus.
- the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the electronic device and other devices.
- the memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory.
- RAM Random Access Memory
- NVM Non-Volatile Memory
- the memory may also be at least one storage device located away from the foregoing processor.
- the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc .; it may also be a digital signal processor (Digital Signal Processing, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- a central processor Central Processing Unit, CPU
- NP Network Processor
- DSP Digital Signal Processing
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- an embodiment of the present application further provides a machine-readable storage medium in which a computer program is stored, and the computer program is processed by a processor When executed, any one of the above-mentioned steps of the information sending method corresponding to FIG. 2 and FIG. 2 is realized.
- an embodiment of the present application further provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute any of the above-mentioned figures 1 and the steps of the information transmission method corresponding to FIG. 1.
- an embodiment of the present application also provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute any of the above-mentioned figures 2 and the information transmission method steps corresponding to FIG. 2.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmit to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
- the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Emergency Management (AREA)
- Environmental & Geological Engineering (AREA)
- Public Health (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (19)
- 一种信息发送方法,包括:An information sending method, including:获取各在线用户终端的未处理报警信息的数量,作为各在线用户终端的待处理数量;Obtain the number of unprocessed alarm information of each online user terminal as the number of pending processing of each online user terminal;当各在线用户终端的待处理数量不完全相等时,按照各待处理数量的大小,从所述各在线用户终端中选择第一用户终端,作为目标用户终端,所述第一用户终端的待处理数量小于各在线用户终端中除第一用户终端外的其他用户终端的待处理数量;When the number of to-be-processed terminals of each online user terminal is not completely equal, according to the size of each to-be-processed value, a first user terminal is selected from each of the online user terminals as the target user terminal, and the first user terminal The number is less than the number of other user terminals to be processed except the first user terminal in each online user terminal;当各在线用户终端的待处理数量完全相等时,根据预设选取规则,从所述各在线用户终端中选择第二用户终端,作为目标用户终端,所述第二用户终端的数量小于在线用户终端的数量;When the number of each online user terminal to be processed is completely equal, according to a preset selection rule, a second user terminal is selected from each online user terminal as the target user terminal, and the number of the second user terminals is less than the online user terminals quantity;将待下发报警信息发送至所述目标用户终端。Sending the alarm information to be issued to the target user terminal.
- 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:接收各在线用户终端发送的报警处理完成消息,并更新各在线用户终端的第一处理时间;Receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;当所述第一用户终端的数量大于第一预设阈值时,根据各第一处理时间,从第一用户终端中选择第三用户终端,作为目标用户终端,所述第三用户终端的第一处理时间早于所述第一用户终端中除第三用户终端外的其他用户终端的第一处理时间;When the number of the first user terminals is greater than the first preset threshold, according to each first processing time, a third user terminal is selected from the first user terminals as the target user terminal, the first of the third user terminals The processing time is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal;所述根据预设选取规则,从所述各在线用户终端中选择第二用户终端,包括:根据各第一处理时间,从各在线用户终端中选择第二用户终端,所述第二用户终端的第一处理时间早于各在线用户终端中除第二用户终端外的其他用户终端的第一处理时间。The selecting the second user terminal from the online user terminals according to a preset selection rule includes: selecting the second user terminal from each online user terminal according to each first processing time, the The first processing time is earlier than the first processing time of each of the online user terminals except the second user terminal.
- 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:获取各在线用户终端的上线时间;Obtain the online time of each online user terminal;所述根据预设选取规则,从所述各在线用户终端中选择第二用户终端,包括:根据各在线用户终端的上线时间,从所述各在线用户终端中选择第二 用户终端,所述第二用户终端的上线时间早于各在线用户终端中除第二用户终端外的其他用户终端的上线时间。The selecting the second user terminal from the online user terminals according to a preset selection rule includes: selecting the second user terminal from the online user terminals according to the online time of each online user terminal, the first The online time of the second user terminal is earlier than the online time of the other user terminals except the second user terminal in each online user terminal.
- 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送待下发报警信息的时间;Obtain the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;当所述第一用户终端的数量大于第二预设阈值时,根据各报警信息发送时间,从第一用户终端中选择第四用户终端,作为目标用户终端,所述第四用户终端的报警信息发送时间早于所述第一用户终端中除第四用户终端外的其他用户终端的报警信息发送时间;When the number of the first user terminals is greater than the second preset threshold, according to each alarm information sending time, select a fourth user terminal from the first user terminal as the target user terminal, the fourth user terminal alarm information The sending time is earlier than the sending time of the alarm information of other user terminals except the fourth user terminal in the first user terminal;所述根据预设选取规则,从所述各在线用户终端中选择第二用户终端,包括:根据各报警信息发送时间,从各在线用户终端中选择第二用户终端,所述第二用户终端的报警信息发送时间早于各在线用户终端中除第二用户终端外的其他用户终端的报警信息发送时间。The selecting a second user terminal from the online user terminals according to a preset selection rule includes: selecting a second user terminal from each online user terminal according to each alarm information sending time, The alarm information transmission time is earlier than the alarm information transmission time of the other user terminals except the second user terminal in each online user terminal.
- 根据权利要求2所述的方法,所述方法还包括:The method according to claim 2, further comprising:获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送待下发报警信息的时间;Obtain the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;当所述第三用户终端的数量大于第三预设阈值时,根据各报警信息发送时间,从第三用户终端中选择第五用户终端,作为目标用户终端,所述第五用户终端的报警信息发送时间早于所述第三用户终端中除第五用户终端外的其他用户终端的报警信息发送时间。When the number of the third user terminals is greater than the third preset threshold, according to each alarm information sending time, select the fifth user terminal from the third user terminal as the target user terminal, the alarm information of the fifth user terminal The transmission time is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:接收各在线用户终端发送的报警处理完成消息,并更新各在线用户终端的第一处理时间;Receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;所述当各在线用户终端的待处理数量不完全相等时,按照各待处理数量的大小,从所述各在线用户终端中选择第一用户终端,作为目标用户终端,包括:When the number of to-be-processed terminals of each online user terminal is not completely equal, according to the size of each to-be-processed value, selecting the first user terminal from the online user terminals as the target user terminal includes:按照所述待处理数量的大小,对所述各在线用户终端进行排序,当所述 各在线用户终端中存在待处理数量相等的用户终端时,按照第一处理时间的先后,对待处理数量相等的用户终端进行排序,得到用户终端队列;Sort the online user terminals according to the size of the number to be processed, and when there are user terminals with equal numbers of to-be-processed in each of the online user terminals, according to the order of the first processing time, the equal number to be processed The user terminals are sorted to obtain the user terminal queue;按照所述用户终端队列的顺序,依次从所述用户终端队列中选择第一终端数量的用户终端,作为目标用户终端。According to the order of the user terminal queue, sequentially select the user terminals with the first number of terminals from the user terminal queue as the target user terminals.
- 根据权利要求6所述的方法,所述方法还包括:The method according to claim 6, further comprising:获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送待下发报警信息的时间;Obtain the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the to-be-delivered alarm information to the online user terminal;所述按照所述待处理数量的大小,对所述各在线用户终端进行排序,当所述各在线用户终端中存在待处理数量相等的用户终端时,按照第一处理时间的先后,对所述待处理数量相等的用户终端进行排序,得到用户终端队列,包括:The online user terminals are sorted according to the size of the to-be-processed quantity. When there are user terminals with an equal number of to-be-processed in each of the online user terminals, according to the order of the first processing time, the The equal number of user terminals to be processed are sorted to obtain a user terminal queue, including:按照所述待处理数量的大小,对所述各在线用户终端进行排序,当所述各在线用户终端中存在待处理数量相等的用户终端时,按照第一处理时间的先后,对所述待处理数量相等的用户终端进行排序,当所述各在线用户终端中存在待处理数量相等且第一处理时间相同的用户终端时,按照报警信息发送时间的先后,对所述待处理数量相等且第一处理时间相同的用户终端进行排序,得到用户终端队列。Sort the online user terminals according to the size of the number to be processed, and when there are user terminals with the same number to be processed in each of the online user terminals, according to the order of the first processing time, the Sort the equal number of user terminals. When there are user terminals with the same number of pending processing and the same first processing time in each of the online user terminals, the equal number of pending terminals and the first The user terminals with the same processing time are sorted to obtain the user terminal queue.
- 根据权利要求7所述的方法,所述方法还包括:The method according to claim 7, further comprising:当发生预设事件时,按照所述用户终端队列中各在线用户终端的待处理数量的大小,第一处理时间的先后以及报警信息发送时间的先后,对所述用户终端队列进行重新排列,其中,所述预设事件包括以下中的至少一种:存在用户终端在所述报警平台上线、存在用户终端从所述报警平台下线、所述报警平台下发报警信息和用户终端将报警信息处理完毕。When a preset event occurs, the user terminal queue is rearranged according to the size of the number of online user terminals to be processed in the user terminal queue, the order of first processing time and the time of sending alarm information, wherein , The preset event includes at least one of the following: a user terminal is online on the alarm platform, a user terminal is offline from the alarm platform, the alarm platform issues alarm information, and the user terminal processes the alarm information Finished.
- 一种信息发送装置,包括:An information sending device, including:第一获取模块,被设置于执行获取各在线用户终端的未处理报警信息的数量,作为各在线用户终端的待处理数量;The first acquisition module is set to execute the acquisition of the number of unprocessed alarm information of each online user terminal as the number of each online user terminal to be processed;第一选择模块,被设置于执行当各在线用户终端的待处理数量不完全相 等时,按照各待处理数量的大小,从所述各在线用户终端中选择第一用户终端,作为目标用户终端,所述第一用户终端的待处理数量小于各在线用户终端中除第一用户终端外的其他用户终端的待处理数量;The first selection module is configured to execute the selection of the first user terminal from each of the online user terminals as the target user terminal according to the size of the number of to-be-processed when the to-be-processed numbers of the on-line user terminals are not completely equal. The number of to-be-processed of the first user terminal is less than the number of to-be-processed of other user terminals except the first user terminal in each online user terminal;第二选择模块,被设置于执行当各在线用户终端的待处理数量完全相等时,根据预设选取规则,从所述各在线用户终端中选择第二用户终端,作为目标用户终端,所述第二用户终端的数量小于在线用户终端的数量;The second selection module is configured to execute the selection of the second user terminal from the online user terminals as the target user terminal according to a preset selection rule when the number of to-be-processed terminals of the online user terminals is completely equal. The number of second user terminals is less than the number of online user terminals;下发模块,被设置于执行将待下发报警信息发送至所述目标用户终端。The delivery module is configured to execute sending the alarm information to be delivered to the target user terminal.
- 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:接收模块,被设置于执行接收各在线用户终端发送的报警处理完成消息,并更新各在线用户终端的第一处理时间;The receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;所述第一选择模块,具体被设置于执行当所述第一用户终端的数量大于第一预设阈值时,根据各第一处理时间,从第一用户终端中选择第三用户终端,作为目标用户终端,所述第三用户终端的第一处理时间早于所述第一用户终端中除第三用户终端外的其他用户终端的第一处理时间;The first selection module is specifically configured to execute when the number of the first user terminals is greater than a first preset threshold, select a third user terminal from the first user terminals as the target according to each first processing time User terminal, the first processing time of the third user terminal is earlier than the first processing time of other user terminals except the third user terminal in the first user terminal;所述第二选择模块,具体被设置于执行:根据各第一处理时间,从各在线用户终端中选择第二用户终端,所述第二用户终端的第一处理时间早于各在线用户终端中除第二用户终端外的其他用户终端的第一处理时间。The second selection module is specifically configured to execute: select a second user terminal from each online user terminal according to each first processing time, the first processing time of the second user terminal is earlier than that of each online user terminal The first processing time of user terminals other than the second user terminal.
- 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:第二获取模块,被设置于执行获取各在线用户终端的上线时间;The second obtaining module is set to execute obtaining the online time of each online user terminal;所述第二选择模块,具体被设置于执行:根据各在线用户终端的上线时间,从所述各在线用户终端中选择第二用户终端,所述第二用户终端的上线时间早于各在线用户终端中除第二用户终端外的其他用户终端的上线时间。The second selection module is specifically configured to execute: select a second user terminal from the online user terminals according to the online time of each online user terminal, the online time of the second user terminal is earlier than each online user The online time of other user terminals except the second user terminal in the terminal.
- 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:第三获取模块,被设置于执行获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送待下发报警信息的时间;The third acquisition module is set to perform acquisition of the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;所述第一选择模块,具体用于当所述第一用户终端的数量大于第二预设阈值时,根据各报警信息发送时间,从第一用户终端中选择第四用户终端,作为目标用户终端,所述第四用户终端的报警信息发送时间早于所述第一用户终端中除第四用户终端外的其他用户终端的报警信息发送时间;The first selection module is specifically configured to select a fourth user terminal from the first user terminals as the target user terminal according to the sending time of each alarm information when the number of the first user terminals is greater than the second preset threshold , The alarm information transmission time of the fourth user terminal is earlier than the alarm information transmission time of other user terminals except the fourth user terminal in the first user terminal;所述第二选择模块,具体用于:根据各报警信息发送时间,从各在线用户终端中选择第二用户终端,所述第二用户终端的报警信息发送时间早于各在线用户终端中除第二用户终端外的其他用户终端的报警信息发送时间。The second selection module is specifically configured to select a second user terminal from each online user terminal according to the sending time of each alarm information, and the sending time of the alarm information of the second user terminal is earlier than that of each online user terminal. 2. The alarm information sending time of other user terminals other than the user terminal.
- 根据权利要求10所述的装置,所述装置还包括:The device according to claim 10, further comprising:第三获取模块,被设置于执行获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送待下发报警信息的时间;The third acquisition module is set to perform acquisition of the alarm information sending time of each online user terminal, where the alarm information sending time is the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;所述第一选择模块,具体被设置于执行当所述第三用户终端的数量大于第三预设阈值时,根据各报警信息发送时间,从第三用户终端中选择第五用户终端,作为目标用户终端,所述第五用户终端的报警信息发送时间早于所述第三用户终端中除第五用户终端外的其他用户终端的报警信息发送时间。The first selection module is specifically set to execute when the number of the third user terminals is greater than a third preset threshold, select the fifth user terminal from the third user terminals as the target according to the sending time of each alarm information User terminal, the alarm information transmission time of the fifth user terminal is earlier than the alarm information transmission time of other user terminals except the fifth user terminal in the third user terminal.
- 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:接收模块,被设置于执行接收各在线用户终端发送的报警处理完成消息,并更新各在线用户终端的第一处理时间;The receiving module is configured to execute and receive the alarm processing completion message sent by each online user terminal, and update the first processing time of each online user terminal;所述第一选择模块,具体被设置于执行按照所述待处理数量的大小,对所述各在线用户终端进行排序,当所述各在线用户终端中存在待处理数量相等的用户终端时,按照第一处理时间的先后,对待处理数量相等的用户终端进行排序,得到用户终端队列;The first selection module is specifically configured to sort the online user terminals according to the size of the to-be-processed quantity, and when there are equal number of user terminals to be processed among the online user terminals, according to The order of the first processing time is to sort the user terminals with equal number of processing to obtain the user terminal queue;按照所述用户终端队列的顺序,依次从所述用户终端队列中选择第一终端数量的用户终端,作为目标用户终端。According to the order of the user terminal queue, sequentially select the user terminals with the first number of terminals from the user terminal queue as the target user terminals.
- 根据权利要求14所述的装置,所述装置还包括:The device according to claim 14, further comprising:第二获取模块,被设置于执行获取各在线用户终端的报警信息发送时间,所述报警信息发送时间为距离当前时刻最近的报警平台向在线用户终端发送 待下发报警信息的时间;The second acquisition module is set to execute the acquisition of the alarm information sending time of each online user terminal, the alarm information sending time being the time when the alarm platform closest to the current time sends the alarm information to the online user terminal;所述第一选择模块,具体被设置于执行:The first selection module is specifically configured to execute:按照所述待处理数量的大小,对所述各在线用户终端进行排序,当所述各在线用户终端中存在待处理数量相等的用户终端时,按照第一处理时间的先后,对所述待处理数量相等的用户终端进行排序,当所述各在线用户终端中存在待处理数量相等且第一处理时间相同的用户终端时,按照报警信息发送时间的先后,对所述待处理数量相等且第一处理时间相同的用户终端进行排序,得到用户终端队列。Sort the online user terminals according to the size of the number to be processed, and when there are user terminals with the same number to be processed in each of the online user terminals, according to the order of the first processing time, the Sort the equal number of user terminals. When there are user terminals with the same number of pending processing and the same first processing time in each of the online user terminals, the equal number of pending terminals and the first The user terminals with the same processing time are sorted to obtain the user terminal queue.
- 根据权利要求15所述的装置,所述装置还包括:The device according to claim 15, further comprising:重排模块,被设置于执行当发生预设事件时,按照所述用户终端队列中各在线用户终端的待处理数量的大小,第一处理时间的先后以及报警信息发送时间的先后,对所述用户终端队列进行重新排列,其中,所述预设事件包括以下中的至少一种:存在用户终端在所述报警平台上线、存在用户终端从所述报警平台下线、所述报警平台下发报警信息和用户终端将报警信息处理完毕。The rearrangement module is set to execute when a preset event occurs, according to the size of the number of each online user terminal in the user terminal queue to be processed, the first processing time and the alarm information sending time The user terminal queue is rearranged, wherein the preset event includes at least one of the following: a user terminal is online on the alarm platform, a user terminal is offline from the alarm platform, and the alarm platform issues an alarm The information and user terminal process the alarm information.
- 一种电子设备,其中,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;存储器,用于存放计算机程序;Memory, used to store computer programs;处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。The processor, when used to execute the program stored on the memory, implements the method steps of any one of claims 1-8.
- 一种机器可读存储介质,其中,所述机器可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。A machine-readable storage medium, wherein a computer program is stored in the machine-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-8 are implemented.
- 一种包含指令的计算机程序产品,其中,当所述包含指令的计算机程序产品在计算机上运行时,使得所述计算机执行权利要求1-8任一所述的方法步骤。A computer program product containing instructions, wherein when the computer program product containing instructions runs on a computer, the computer is caused to perform the method steps of any one of claims 1-8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811245285.XA CN111092922B (en) | 2018-10-24 | 2018-10-24 | Information sending method and device |
CN201811245285.X | 2018-10-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020082911A1 true WO2020082911A1 (en) | 2020-04-30 |
Family
ID=70331241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/104687 WO2020082911A1 (en) | 2018-10-24 | 2019-09-06 | Method and apparatus for sending information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111092922B (en) |
WO (1) | WO2020082911A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112751707B (en) * | 2020-12-29 | 2023-04-18 | 北京格林威尔科技发展有限公司 | Alarm information output method and device based on SDN and NFV technologies |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060176167A1 (en) * | 2005-01-25 | 2006-08-10 | Laser Shield Systems, Inc. | Apparatus, system, and method for alarm systems |
CN105373839A (en) * | 2015-12-15 | 2016-03-02 | 国网北京市电力公司 | Intelligent worksheet dispatching method and apparatus |
CN105894094A (en) * | 2016-03-31 | 2016-08-24 | 国网北京市电力公司 | Order dispatching method and device |
CN107172204A (en) * | 2017-06-29 | 2017-09-15 | 北京众清科技有限公司 | The worksheet system and worksheet method of High Availabitity high capacity |
CN107809322A (en) * | 2016-09-06 | 2018-03-16 | 中兴通讯股份有限公司 | The distribution method and device of work order |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3393091B1 (en) * | 2011-09-09 | 2020-10-28 | Nokia Solutions and Networks Oy | A method for cdn delay optimization and control for http live streaming |
CA2939921A1 (en) * | 2014-02-19 | 2015-08-27 | Level 3 Communications, Llc | Proxy server failover and load clustering |
CN106162219B (en) * | 2015-04-21 | 2019-08-16 | 杭州海康威视***技术有限公司 | Video cloud storage method and system |
CN105162878B (en) * | 2015-09-24 | 2018-08-31 | 网宿科技股份有限公司 | Document distribution system based on distributed storage and method |
CN105933372B (en) * | 2016-01-13 | 2019-04-26 | 平安科技(深圳)有限公司 | Task distributes execution method, server and terminal |
-
2018
- 2018-10-24 CN CN201811245285.XA patent/CN111092922B/en active Active
-
2019
- 2019-09-06 WO PCT/CN2019/104687 patent/WO2020082911A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060176167A1 (en) * | 2005-01-25 | 2006-08-10 | Laser Shield Systems, Inc. | Apparatus, system, and method for alarm systems |
CN105373839A (en) * | 2015-12-15 | 2016-03-02 | 国网北京市电力公司 | Intelligent worksheet dispatching method and apparatus |
CN105894094A (en) * | 2016-03-31 | 2016-08-24 | 国网北京市电力公司 | Order dispatching method and device |
CN107809322A (en) * | 2016-09-06 | 2018-03-16 | 中兴通讯股份有限公司 | The distribution method and device of work order |
CN107172204A (en) * | 2017-06-29 | 2017-09-15 | 北京众清科技有限公司 | The worksheet system and worksheet method of High Availabitity high capacity |
Also Published As
Publication number | Publication date |
---|---|
CN111092922A (en) | 2020-05-01 |
CN111092922B (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8719280B1 (en) | Person-based information aggregation | |
CN109309712B (en) | Data transmission method based on interface asynchronous call, server and storage medium | |
WO2020119426A1 (en) | Gray scale testing method, server and computer readable storage medium | |
CN111381987A (en) | Message processing method and device, electronic equipment and medium | |
CN112035235A (en) | Task scheduling method, system, device and storage medium | |
CN105760395A (en) | Data processing method, device and system | |
WO2021098555A1 (en) | Distributed table storage processing method, apparatus and system | |
CN110555068A (en) | Data export method and device | |
CN107357885A (en) | Method for writing data and device, electronic equipment, computer-readable storage medium | |
WO2020082911A1 (en) | Method and apparatus for sending information | |
CN115757406A (en) | Data storage method and device, electronic equipment and storage medium | |
CN109167819A (en) | Data synchronous system, method, apparatus and storage medium | |
CN106201777A (en) | The method of information processing and mobile device | |
CN111355765B (en) | Network request processing and sending method and device | |
CN111625348A (en) | Task allocation method, device, server and storage medium | |
CN109885729B (en) | Method, device and system for displaying data | |
CN111125240B (en) | Distributed transaction realization method and device, electronic equipment and storage medium | |
CN112995765B (en) | Network resource display method and device | |
CN108764866B (en) | Method and equipment for allocating resources and drawing resources | |
CN112559646A (en) | Report downloading method and device | |
CN109359799B (en) | Policy maintenance bill processing method and device, computer equipment and storage medium | |
CN111124579B (en) | Special effect rendering method and device, electronic equipment and storage medium | |
CN110717109B (en) | Method, device, electronic equipment and storage medium for recommending data | |
CN108460078B (en) | Auxiliary function execution method and device, storage medium and terminal | |
CN112256820A (en) | Document positioning method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19876585 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19876585 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19876585 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 03/12/2021) |