CN113590276A - Information pushing method and related product - Google Patents

Information pushing method and related product Download PDF

Info

Publication number
CN113590276A
CN113590276A CN202110512523.4A CN202110512523A CN113590276A CN 113590276 A CN113590276 A CN 113590276A CN 202110512523 A CN202110512523 A CN 202110512523A CN 113590276 A CN113590276 A CN 113590276A
Authority
CN
China
Prior art keywords
early warning
task
data
warning task
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110512523.4A
Other languages
Chinese (zh)
Inventor
林宇晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shushang Times Technology Co ltd
Original Assignee
Shenzhen Shushang Times Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shushang Times Technology Co ltd filed Critical Shenzhen Shushang Times Technology Co ltd
Priority to CN202110512523.4A priority Critical patent/CN113590276A/en
Publication of CN113590276A publication Critical patent/CN113590276A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The embodiment of the application provides an information pushing method and a related product, wherein the method comprises the following steps: responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task. By adopting the embodiment of the application, the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.

Description

Information pushing method and related product
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an information push method and a related product.
Background
Along with the development of intellectualization and mobility of an electronic equipment system, more and more equipment is added into the internet, and the internet effectively connects resources such as hardware, software, data and the like scattered everywhere together to form a huge whole, so that people can effectively utilize network resources scattered everywhere to complete large-scale and complex calculation and data processing tasks.
The cloud platform technology is also applied to the electronic technology, the cloud platform technology is adopted to uniformly store and manage various user information, and the acquisition cost and the use threshold of data are greatly reduced through an intelligent data modeling tool; however, when data is analyzed through the cloud platform technology, if some data in the platform changes in real time, a user cannot acquire information in time, and thus, an analysis result for the data is inaccurate.
Disclosure of Invention
The embodiment of the application provides an information pushing method and a related product, which are beneficial to a user to acquire data change information in time, realize data analysis and help to improve the data analysis accuracy.
A first aspect of the embodiments of the present application provides an information pushing method, which is applied to a server, and includes:
responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page;
creating an early warning task according to the index data;
adding the early warning task into an execution queue;
monitoring the change condition of the index data in the data source;
if the change condition meets a first preset condition, triggering the early warning task in the execution queue;
and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task.
A second aspect of the embodiments of the present application provides an information pushing apparatus, which is applied to a server, and the apparatus includes: a determining unit, a creating unit, an adding unit, a monitoring unit, a triggering unit and a pushing unit, wherein,
the determining unit is used for responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page;
the creating unit is used for creating an early warning task according to the index data;
the adding unit is used for adding the early warning task into an execution queue;
the monitoring unit is used for monitoring the change condition of the index data in the data source;
the triggering unit is used for triggering the early warning task in the execution queue if the change condition meets a first preset condition;
the pushing unit is used for pushing the pushing information corresponding to the early warning task to the target user corresponding to the early warning task.
A third aspect of the present application provides a server comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
the information push method and the related product described in the embodiment of the application are applied to the server, and can respond to the operation instruction of the user for the task setting page and determine a plurality of index data and data sources in the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task. Therefore, a user can perform self-defined setting on index data and the like corresponding to the early warning task on the task setting page so as to realize monitoring and management on the change condition of the data source; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the corresponding target user, so that the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic system architecture diagram of an information pushing method according to an embodiment of the present application;
fig. 1B is a schematic flowchart of an embodiment of an information pushing method according to an embodiment of the present application;
fig. 1C is a page display diagram of an early warning index setting page provided in the embodiment of the present application;
fig. 1D is a page display diagram of an early warning task setting page according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an embodiment of an information pushing method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an embodiment of an information pushing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to better understand the information push method and the related product provided by the embodiment of the present application, a system architecture of the information push method applied to the embodiment of the present application is described below. Referring to fig. 1A, fig. 1A is a schematic diagram of a system architecture of an information pushing method according to an embodiment of the present application. As shown in fig. 1A, the system architecture may include one or more servers and a plurality of electronic devices, wherein:
the server may include, but is not limited to, a background server, a component server, an information push system server, an information push software server, and the like, and the server may communicate with a plurality of electronic devices through the internet. And the server sends the information pushing result to the electronic equipment.
The electronic device related to the embodiments of the present application may include various handheld devices (mobile phones, tablet computers, etc.) having wireless communication functions, desktop computers, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The server 200a may establish communication connection with a plurality of electronic devices (100a, 100b, and 100c), and may include a task setting page corresponding to the server; the method comprises the steps that a plurality of index data and data sources in a task setting page can be determined in response to an operation instruction of a user for the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to the electronic equipment corresponding to the target user corresponding to the early warning task. Therefore, index data and the like corresponding to the early warning task can be set in a task setting page in a user-defined mode, so that the change condition of the data source can be monitored and managed; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the electronic equipment end of the corresponding target user, so that the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.
Fig. 1B is a schematic flowchart illustrating an embodiment of an information pushing method according to an embodiment of the present application. The information pushing method described in this embodiment is applied to a server, and includes the following steps:
101. the method comprises the steps of responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page.
The embodiment of the application is applied to a server, a data platform can be deployed in the server, the platform can be built based on a cloud computing technology, and various types of data sources can be supported; specifically, the platform can be used for inquiring or operating and managing user data and analyzing various data sources so as to improve the processing efficiency of mass data.
Wherein, the type of the data source may include at least one of the following: report data, shopping data, face data, voice data, user behavior data, and the like, which are not limited herein.
The task setting page can be set by a user or defaulted by a system, and is not limited herein; the task setting page may include an early warning indicator setting page.
The early warning index setting page may include a plurality of index data, and the index data may include at least one of the following data: index name, index description, and warning field, etc., which are not limited herein; as shown in fig. 1C, a page display diagram of an early warning index setting page is shown, and each index data can be set by a user in a customized manner or an attachment can be selected or inserted.
The index data may be used to create an early warning index in an early warning task, for example, a plurality of index data are used to early warn a corresponding target user to notify that a certain item of data in a data source changes, and the like, and may include specific push information, where the push information may include an early warning field, an index name, and the like; if the pushing mode is mail pushing, specific mail attachment details and the like can be set in the index data; the user can preset index data so as to push corresponding push information once the push of the early warning task is triggered after the early warning task is generated subsequently.
For example, if the data source includes shopping data, the shopping data may include a stock of a certain product, the background manager may set a preset stock in a corresponding early warning indicator setting page in the system for the stock of the certain product in the data source, and when the preset stock is less than or equal to the preset stock, the background manager may send push information to the manager of the product, where the push information may be used to early warn the manager, and the push information may be set as: the inventory of a certain product is less than or equal to a preset threshold value so as to remind the manager to carry out operations such as replenishment and the like; the preset inventory, the specific content of the push information, the mail attachment and other information can be the index data; in a specific implementation, after a consumer purchases a certain number of products in a designated page, the stock quantity of the certain products changes, and when the stock quantity is less than or equal to the preset stock quantity, the system sends push information to the corresponding manager.
102. And creating an early warning task according to the index data.
The task setting page can also comprise an early warning task setting page, and a user can complete the step of establishing an early warning task according to a plurality of index data in the page.
Wherein, the early warning task may include at least one of the following: effective time, early warning name, early warning index, receiver or target user, sending frequency, and the like, which are not limited herein; wherein, the early warning index can be determined by the index data; the effective time may mean that the state of the early warning task is valid within the effective time, and if the effective time is exceeded, the early warning task is invalid; as shown in fig. 1D, the page display diagram of the early warning task setting page is a page display diagram, and a user can set an early warning task based on the early warning task page, customize parameters such as a receiver (target user), a sending frequency, and the like, and select column selection index data in an early warning index.
The early warning task can be used for indicating when to send push information and sending the push information to who and other operation information, and the push information can be determined through the index data.
After the early warning task is triggered, push information can be sent to a receiver or a target user corresponding to the early warning task so as to early warn that data in a user data source changes and the like.
In the embodiment of the present application, the index data may be added or deleted by the user at any time.
In one possible example, in step 102, the creating an early warning task according to the index data may include the following steps: determining a data type corresponding to each index data in the plurality of index data; determining a preset rule corresponding to each data type to obtain a plurality of preset rules; creating a target index according to the preset rules and the index data, wherein the target index corresponds to identification information; and creating early warning tasks corresponding to the target indexes, wherein the identification information corresponds to the early warning tasks one to one.
Wherein the data type may include at least one of: name, descriptive content, fields, etc., without limitation.
The preset rule can be set by the user or defaulted by the system, and is not limited herein; the preset rule may refer to a data rule corresponding to the index data corresponding to each data type, for example, for an index name, the corresponding preset rule may include: the allowable fields, the length of the fields, the type of the fields (numbers, letters, icons, etc.), etc., are not limited herein.
After the target indexes are generated, each target index can correspond to one data source; each target index can correspond to one piece of identification information, and the identification information can be set by a user or defaulted by a system, which is not limited herein; the identification information is used for identifying the early warning task so as to help a user mark or inquire the early warning task.
Wherein, the above-mentioned early warning task can also include: the effective time, the early warning name and the like, and the user can directly set in the corresponding early warning task setting page.
The corresponding early warning index in the early warning task can be changed at any time, and the user can add any index data in the early warning index page or delete any index data in the early warning index page, which is not limited herein.
103. And adding the early warning task into an execution queue.
The execution queue may include one or more pre-warning tasks, and each pre-warning task may correspond to one identification information.
The execution queue is used for storing the plurality of early warning tasks which need to be executed, and when a certain early warning task is not triggered, the execution queue can wait to be triggered.
104. And monitoring the change condition of the index data in the data source.
The data change condition in the data source can be monitored through the server, and the specific data type can be determined according to the data index.
105. And if the change condition meets a first preset condition, triggering the early warning task in the execution queue.
The first preset condition may be set by the user or default by the system, and is not limited herein; the first preset condition can be understood as a trigger condition of the early warning task corresponding to the index data.
For example, if the data source includes face data, the face data is the index data, and the maximum storage amount of the database for storing the face data may be set to be a, which may be understood as the first preset condition; then, when the face data amount in the database exceeds the maximum storage amount a, it may be determined that the change condition of the data source satisfies the first preset condition, and further, an early warning task corresponding to the index data corresponding to the data source in the execution queue may be triggered, so as to push the following push information to the corresponding target user.
106. And pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task.
The push information can be preset by a user on an early warning index setting interface in the task setting page, and after the early warning task is triggered, the preset push information can be pushed to the corresponding target user in different push modes.
Each target user may correspond to one or more electronic devices shown in fig. 1A, and the user may obtain the push information through the electronic devices.
In a possible example, the manner for pushing the warning task to the target user includes at least one of the following: wechat, SMS, applet, email, etc., and are not limited thereto.
The early warning task interface can comprise different pushing options, and a user can freely select a more appropriate pushing mode and can also set information such as pushing time.
Optionally, before the step 106, before pushing the push information corresponding to the early warning task to the target user corresponding to the early warning task, the method may further include the following step: determining a user type corresponding to the early warning task; if the user type is a dynamic type, determining a data set bound for the early warning task, determining a target user according to the data set, and pushing push information corresponding to the early warning task to the target user; and if the user type is a fixed user type, determining the user identity of a target user corresponding to the fixed user type, and pushing the push information corresponding to the early warning task to the target user after the user identity is confirmed.
The user type may be set by the user or default to the system, and is not limited herein. For example, the user type can be preset as a dynamic type or a fixed user type, wherein the fixed user type can be understood as: a designated user preset by the user; the dynamic type can be understood as that a target user corresponding to the dynamic type can be dynamically changed, the target user can be freely set by the user, in a specific implementation, a data set can be set and is in one-to-one correspondence with the early warning task, and the data set can include the following information: mailboxes, recipients, and the like, without limitation; when the target user corresponding to the early warning task needs to be changed, the data set can be directly changed or replaced, and therefore the target user can be changed at any time to help a manager to carry out data management.
Optionally, the determining the user identity of the target user corresponding to the fixed user type may include the following steps: acquiring the identity information of the target user; determining user authority corresponding to the identity information according to a mapping relation between preset identity information and the user authority; and when the user authority meets the preset authority, determining that the user identity is confirmed.
After the identity authority of the target user is confirmed, the push information corresponding to the early warning task can be pushed to the user, and the safety of the system can be improved.
Wherein, the identity information may be at least one of the following: face images, iris images, fingerprint images, vein images, user names, MAC addresses, IP addresses, and the like, without limitation.
The mapping relationship between the identity information of different users and the user authority can be preset, and the user authority can include at least one of the following: the information that is allowed to be pushed, the information that is not allowed to be pushed, and the like are not limited herein, and may be specifically determined according to the usage right of the data source, so as to be beneficial to ensuring the security of the usage right of the data source.
In a possible example, in the step 106, the pushing the push information corresponding to the early warning task to the target user corresponding to the early warning task may include the following steps: determining a Cron expression corresponding to the early warning task; analyzing the Cron expression to obtain a sending frequency corresponding to the early warning task; and generating an early warning instruction according to the sending frequency, and sending the push information to the target user through the early warning instruction.
The user may preset the hair style frequency and the effective time corresponding to the early warning task, which may be specifically implemented by a Cron expression, where the Cron expression is a character string, the character string is separated by 5 or 6 spaces and is divided into 6 or 7 fields, and each field represents one meaning, for example, if the Cron expression is set as: 0012? And then the corresponding sending frequency of the early warning task is as follows: the early warning task can be triggered at 12 pm every day, an early warning instruction can be generated for the early warning task, and the push information is sent to the corresponding target user at 12 pm every day through the early warning instruction.
Optionally, the method may further include the steps of: if a plurality of early warning tasks need to be sent to a plurality of target users through a plurality of early warning instructions, and each target user at least corresponds to one early warning instruction, determining current state information corresponding to each early warning instruction, wherein each early warning instruction corresponds to one early warning task; determining at least one early warning instruction of which the current state information is an activated state, wherein the activated state represents that the state corresponding to the early warning instruction is determined to be a pre-execution state; acquiring a scheduling time table, wherein the scheduling time table comprises a plurality of scheduling times; and scheduling the at least one early warning instruction according to the scheduling time table, and sending push information corresponding to an early warning task corresponding to each early warning instruction to a corresponding target user after scheduling is completed.
The steps of the method are explained based on one early warning task, and certainly, if a plurality of early warning tasks are triggered simultaneously or in the same time period in the system, the sending of the push information corresponding to each early warning task can be realized through a scheduling time table.
The state information may include an activated state, a successful sending state, a failed sending state, an inactivated state, and the like, which are not limited herein, and when the early warning instruction corresponds to the activated state, it indicates that the early warning task corresponding to the early warning instruction has been set, and the early warning task is within an effective time, that is, it may be determined that the instruction is currently in a pre-execution state, that is, it is determined that the instruction is in a wait execution state, that is, it is determined that push information corresponding to the early warning task is sent to the target user.
The scheduling schedule may include a plurality of scheduling times, and each scheduling time may be set according to a transmission frequency corresponding to each early warning task.
The scheduling of the at least one early warning instruction according to the scheduling schedule may include: when the effective time corresponding to at least one early warning instruction meets the scheduling time in the scheduling time table, namely the scheduling time is in the time period corresponding to the effective time, adding the early warning task corresponding to each early warning instruction into an execution queue; furthermore, when any one early warning task is triggered, the state information of the corresponding early warning instruction is in a sending state, and at least one early warning instruction can be scheduled according to the scheduling time, so that the push information corresponding to each early warning task is sent to the corresponding target user through each early warning instruction.
Optionally, after the push information corresponding to each early warning task is successfully sent, the state information of the corresponding early warning instruction is updated to a successful sending state; and if the transmission fails, updating the state information into a transmission failure state.
It can be seen that, in the embodiment of the present application, each early warning task may correspond to one early warning instruction, where the early warning instruction is used to send push information corresponding to the early warning task, each early warning instruction may correspond to one state information, and scheduling of at least one early warning instruction may be implemented according to effective time and scheduling time corresponding to each early warning task, where when the early warning instruction is triggered, the early warning instruction may be scheduled according to the scheduling time, and the early warning tasks in the execution queue are sent to corresponding target users through the early warning instruction; therefore, when one or more early warning tasks exist in the execution queue and are all triggered, one or more pieces of push information can be sent through the scheduling time table, network resources can be uniformly distributed, and network congestion is avoided.
Furthermore, when the user checks the early warning task, whether the early warning task is successfully sent or not can be determined through the state information of the early warning instruction corresponding to the early warning task, and the early warning task can be normally pushed to a target user when the push information needs to be pushed next time according to the sending frequency of the early warning task under the condition of failure sending, so that the user can be helped to check the sending condition of the push information, the condition that the push information fails to be sent within the effective time is avoided, and the user experience can be favorably improved.
Optionally, the method may further include the steps of: analyzing the early warning task corresponding to each early warning instruction to obtain a plurality of Cron expressions; generating the execution time of each early warning task according to each Cron expression; determining whether any one early warning task i has a dependency relationship with other early warning tasks, and if the dependency relationship exists and meets a second preset condition, scheduling the early warning task i and the other early warning tasks with the dependency relationship simultaneously according to the execution time corresponding to the early warning task i.
The sending frequency corresponding to each early warning task can be determined according to each Cron expression, and the execution time of each early warning task is determined based on the sending frequency and the effective time, wherein the execution time can be understood as the time for executing the early warning instruction.
If data association exists between any one of the plurality of early warning tasks and other early warning tasks, for example, data association exists between index data in a data source (for example, sales of a certain product in a certain month) monitored by the early warning task i and index data (for example, sales of a certain product in a certain month) monitored by other early warning tasks, it can be determined that the early warning task and other early warning tasks have a dependency relationship.
The second preset condition may be set by the user or default of the system, and is not limited herein; for example, the sending frequency corresponding to the early warning task is the same, the user type corresponding to the early warning task is the same, or the target user is the same, and the like, which are not limited herein.
If the second preset condition is met, the early warning task i and the push information corresponding to other early warning tasks with dependency relationship can be simultaneously sent to the corresponding target users according to the trigger time corresponding to the early warning task i.
Therefore, in the embodiment of the application, the relevance among the data is considered, and then the scheduling conditions corresponding to other early warning tasks with dependency relationship can be adjusted according to the early warning task, so that the scheduling times are reduced, and the scheduling efficiency is improved.
The information pushing method provided by the embodiment of the application is applied to the server, and can be used for responding to an operation instruction of a user for a task setting page and determining a plurality of index data and data sources in the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task. Therefore, a user can perform self-defined setting on index data and the like corresponding to the early warning task on the task setting page so as to realize monitoring and management on the change condition of the data source; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the corresponding target user, so that the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.
In accordance with the above, please refer to fig. 2, which is a flowchart illustrating an embodiment of an information pushing method according to an embodiment of the present application. The information pushing method described in this embodiment is applied to a server, and includes the following steps:
201. the method comprises the steps of responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page.
202. And creating an early warning task according to the index data.
203. And adding the early warning task into an execution queue.
204. And monitoring the change condition of the index data in the data source.
205. And if the change condition meets a first preset condition, triggering the early warning task in the execution queue.
206. If a plurality of early warning tasks need to be sent to a plurality of target users through a plurality of early warning instructions, and each target user at least corresponds to one early warning instruction, current state information corresponding to each early warning instruction is determined, and each early warning instruction corresponds to one early warning task.
207. And determining at least one early warning instruction of which the current state information is an activated state, wherein the activated state represents that the state corresponding to the early warning instruction is determined to be a pre-execution state.
208. And acquiring a scheduling time table, wherein the scheduling time table comprises a plurality of scheduling times.
209. And scheduling the at least one early warning instruction according to the scheduling time table, and sending push information corresponding to an early warning task corresponding to each early warning instruction to a corresponding target user after scheduling is completed.
Optionally, the detailed description of the steps 201 to 209 may refer to corresponding steps from step 101 to step 106 of the information pushing method described in fig. 1B, and is not described herein again.
The information push method provided by the embodiment of the application is applied to a server, and a plurality of index data and data sources in a task setting page are determined in response to an operation instruction of a user for the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of the index data in the data source; if the change condition meets a first preset condition, triggering the early warning task in the execution queue; if a plurality of early warning tasks need to be sent to a plurality of target users through a plurality of early warning instructions, and each target user at least corresponds to one early warning instruction, determining current state information corresponding to each early warning instruction, wherein each early warning instruction corresponds to one early warning task; determining at least one early warning instruction of which the current state information is an activated state, wherein the activated state represents that the state corresponding to the early warning instruction is determined to be a pre-execution state; acquiring a scheduling time table, wherein the scheduling time table comprises a plurality of scheduling times; and scheduling the at least one early warning instruction according to the scheduling time table, and sending push information corresponding to an early warning task corresponding to each early warning instruction to a corresponding target user after scheduling is completed. Therefore, a user can perform self-defined setting on index data and the like corresponding to the early warning task on the task setting page so as to realize monitoring and management on the change condition of the data source; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the corresponding target user, one or more push information can be sent through the scheduling time table, network resources can be uniformly distributed, and network congestion is avoided.
In accordance with the foregoing, the following is a device for implementing the information push method, and specifically includes:
please refer to fig. 3, which is a schematic structural diagram of an embodiment of an information pushing apparatus according to an embodiment of the present disclosure. The information pushing apparatus described in this embodiment is applied to a server, and includes: the determining unit 301, the creating unit 302, the adding unit 303, the monitoring unit 304, the triggering unit 305, and the pushing unit 306 are specifically as follows:
the determining unit 301 is configured to determine, in response to an operation instruction of a user for a task setting page, a plurality of index data and data sources in the task setting page;
the creating unit 302 is configured to create an early warning task according to the index data;
the adding unit 303 is configured to add the early warning task to an execution queue;
the monitoring unit 304 is configured to monitor a change condition of the plurality of index data in the data source;
the triggering unit 305 is configured to trigger the early warning task in the execution queue if the change condition meets a first preset condition;
the pushing unit 306 is configured to push the pushing information corresponding to the early warning task to a target user corresponding to the early warning task.
The determining unit 301 may be configured to implement the method described in the step 101, the creating unit 302 may be configured to implement the method described in the step 102, the adding unit 303 may be configured to implement the method described in the step 103, the monitoring unit 304 may be configured to implement the method described in the step 104, the triggering unit 305 may be configured to implement the method described in the step 105, the pushing unit 306 may be configured to implement the method described in the step 106, and so on.
It can be seen that, by the information pushing device described in the embodiment of the present application, a plurality of index data and data sources in a task setting page can be determined in response to an operation instruction of a user for the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task. Therefore, a user can perform self-defined setting on index data and the like corresponding to the early warning task on the task setting page so as to realize monitoring and management on the change condition of the data source; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the corresponding target user, so that the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.
In a possible example, in the aspect of creating an early warning task according to the multiple index data, the creating unit 302 is specifically configured to:
determining a data type corresponding to each index data in the plurality of index data;
determining a preset rule corresponding to each data type to obtain a plurality of preset rules;
creating a target index according to the preset rules and the index data, wherein the target index corresponds to identification information;
and creating early warning tasks corresponding to the target indexes, wherein the identification information corresponds to the early warning tasks one to one.
In a possible example, in the aspect of pushing the push information corresponding to the early warning task to the target user corresponding to the early warning task, the pushing unit 306 is specifically configured to:
determining a Cron expression corresponding to the early warning task;
analyzing the Cron expression to obtain a sending frequency corresponding to the early warning task;
and generating an early warning instruction according to the sending frequency, and sending the push information to the target user through the early warning instruction.
It can be understood that the functions of each program module of the information pushing apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In accordance with the above, please refer to fig. 4, which is a schematic structural diagram of an embodiment of a server according to an embodiment of the present disclosure. As shown in the figure, the server described in this embodiment includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in this embodiment, the programs include instructions for performing the following steps:
responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page;
creating an early warning task according to the index data;
adding the early warning task into an execution queue;
monitoring the change condition of the index data in the data source;
if the change condition meets a first preset condition, triggering the early warning task in the execution queue;
and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task.
It can be seen that, with the server described in the embodiment of the present application, a plurality of index data and data sources in a task setting page can be determined in response to an operation instruction of a user for the task setting page; creating an early warning task according to the index data; adding the early warning task into an execution queue; monitoring the change condition of a plurality of index data in a data source; if the change condition meets a first preset condition, triggering and executing the early warning task in the queue; and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task. Therefore, a user can perform self-defined setting on index data and the like corresponding to the early warning task on the task setting page so as to realize monitoring and management on the change condition of the data source; when the data source changes in real time, the early warning task can be automatically triggered to send the push information corresponding to the early warning task to the corresponding target user, so that the user can acquire the data change information in time, the data can be analyzed, and the data analysis accuracy can be improved.
In one possible example, in the creating an early warning task based on the plurality of metric data, the program includes instructions for:
determining a data type corresponding to each index data in the plurality of index data;
determining a preset rule corresponding to each data type to obtain a plurality of preset rules;
creating a target index according to the preset rules and the index data, wherein the target index corresponds to identification information;
and creating early warning tasks corresponding to the target indexes, wherein the identification information corresponds to the early warning tasks one to one.
In one possible example, before pushing the push information corresponding to the pre-warning task to the target user corresponding to the pre-warning task, the program includes instructions for performing the following steps:
determining a user type corresponding to the early warning task;
if the user type is a dynamic type, determining a data set bound for the early warning task, determining a target user according to the data set, and pushing push information corresponding to the early warning task to the target user;
and if the user type is a fixed user type, determining the user identity of a target user corresponding to the fixed user type, and pushing the push information corresponding to the early warning task to the target user after the user identity is confirmed.
In one possible example, in the aspect of pushing the push information corresponding to the early warning task to the target user corresponding to the early warning task, the program includes instructions for performing the following steps:
determining a Cron expression corresponding to the early warning task;
analyzing the Cron expression to obtain a sending frequency corresponding to the early warning task;
and generating an early warning instruction according to the sending frequency, and sending the push information to the target user through the early warning instruction.
In one possible example, the program further includes instructions for performing the steps of:
if a plurality of early warning tasks need to be sent to a plurality of target users through a plurality of early warning instructions, and each target user at least corresponds to one early warning instruction, determining current state information corresponding to each early warning instruction, wherein each early warning instruction corresponds to one early warning task;
determining at least one early warning instruction of which the current state information is an activated state, wherein the activated state represents that the state corresponding to the early warning instruction is determined to be a pre-execution state;
acquiring a scheduling time table, wherein the scheduling time table comprises a plurality of scheduling times;
and scheduling the at least one early warning instruction according to the scheduling time table, and sending push information corresponding to an early warning task corresponding to each early warning instruction to a corresponding target user after scheduling is completed.
In one possible example, the program further includes instructions for performing the steps of:
analyzing the early warning task corresponding to each early warning instruction to obtain a plurality of Cron expressions;
generating the execution time of each early warning task according to each Cron expression;
determining whether any one early warning task i has a dependency relationship with other early warning tasks, and if the dependency relationship exists and meets a second preset condition, scheduling the early warning task i and the other early warning tasks with the dependency relationship simultaneously according to the execution time corresponding to the early warning task i.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the information pushing methods described in the above method embodiments.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable information delivery device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information delivery device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information delivery apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable information pushing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. An information pushing method is applied to a server, wherein,
responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page;
creating an early warning task according to the index data;
adding the early warning task into an execution queue;
monitoring the change condition of the index data in the data source;
if the change condition meets a first preset condition, triggering the early warning task in the execution queue;
and pushing the push information corresponding to the early warning task to a target user corresponding to the early warning task.
2. The method of claim 1, wherein creating an early warning task based on the plurality of metric data comprises:
determining a data type corresponding to each index data in the plurality of index data;
determining a preset rule corresponding to each data type to obtain a plurality of preset rules;
creating a target index according to the preset rules and the index data, wherein the target index corresponds to identification information;
and creating early warning tasks corresponding to the target indexes, wherein the identification information corresponds to the early warning tasks one to one.
3. The method of claim 1, wherein before pushing the push information corresponding to the pre-warning task to the target user corresponding to the pre-warning task, the method further comprises:
determining a user type corresponding to the early warning task;
if the user type is a dynamic type, determining a data set bound for the early warning task, determining a target user according to the data set, and pushing push information corresponding to the early warning task to the target user;
and if the user type is a fixed user type, determining the user identity of a target user corresponding to the fixed user type, and pushing the push information corresponding to the early warning task to the target user after the user identity is confirmed.
4. The method according to claim 1 or 3, wherein the pushing the push information corresponding to the early warning task to the target user corresponding to the early warning task comprises:
determining a Cron expression corresponding to the early warning task;
analyzing the Cron expression to obtain a sending frequency corresponding to the early warning task;
and generating an early warning instruction according to the sending frequency, and sending the push information to the target user through the early warning instruction.
5. The method of claim 1 or 2, wherein the manner of pushing the pre-warning task to the target user comprises at least one of: wechat, SMS, applet, email.
6. The method of claim 4, further comprising:
if a plurality of early warning tasks need to be sent to a plurality of target users through a plurality of early warning instructions, and each target user at least corresponds to one early warning instruction, determining current state information corresponding to each early warning instruction, wherein each early warning instruction corresponds to one early warning task;
determining at least one early warning instruction of which the current state information is an activated state, wherein the activated state represents that the state corresponding to the early warning instruction is determined to be a pre-execution state;
acquiring a scheduling time table, wherein the scheduling time table comprises a plurality of scheduling times;
and scheduling the at least one early warning instruction according to the scheduling time table, and sending push information corresponding to an early warning task corresponding to each early warning instruction to a corresponding target user after scheduling is completed.
7. The method of claim 6, further comprising:
analyzing the early warning task corresponding to each early warning instruction to obtain a plurality of Cron expressions;
generating the execution time of each early warning task according to each Cron expression;
determining whether any one early warning task i has a dependency relationship with other early warning tasks, and if the dependency relationship exists and meets a second preset condition, scheduling the early warning task i and the other early warning tasks with the dependency relationship simultaneously according to the execution time corresponding to the early warning task i.
8. An information pushing apparatus applied to a server, the apparatus comprising: a determining unit, a creating unit, an adding unit, a monitoring unit, a triggering unit and a pushing unit, wherein,
the determining unit is used for responding to an operation instruction of a user for a task setting page, and determining a plurality of index data and data sources in the task setting page;
the creating unit is used for creating an early warning task according to the index data;
the adding unit is used for adding the early warning task into an execution queue;
the monitoring unit is used for monitoring the change condition of the index data in the data source;
the triggering unit is used for triggering the early warning task in the execution queue if the change condition meets a first preset condition;
the pushing unit is used for pushing the pushing information corresponding to the early warning task to the target user corresponding to the early warning task.
9. A server, comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202110512523.4A 2021-05-11 2021-05-11 Information pushing method and related product Pending CN113590276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110512523.4A CN113590276A (en) 2021-05-11 2021-05-11 Information pushing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110512523.4A CN113590276A (en) 2021-05-11 2021-05-11 Information pushing method and related product

Publications (1)

Publication Number Publication Date
CN113590276A true CN113590276A (en) 2021-11-02

Family

ID=78243243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110512523.4A Pending CN113590276A (en) 2021-05-11 2021-05-11 Information pushing method and related product

Country Status (1)

Country Link
CN (1) CN113590276A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525680A (en) * 2022-09-21 2022-12-27 京信数据科技有限公司 Data processing job scheduling method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525680A (en) * 2022-09-21 2022-12-27 京信数据科技有限公司 Data processing job scheduling method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109376155B (en) ID generation method and device, storage medium and electronic device
EP2989543B1 (en) Method and device for updating client
US11010215B2 (en) Recommending applications based on call requests between applications
CN110515912A (en) Log processing method, device, computer installation and computer readable storage medium
US20170220663A1 (en) Log Event Summarization for Distributed Server System
CN109669835B (en) MySQL database monitoring method, device, equipment and readable storage medium
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN108694324B (en) Information leakage monitoring method and device
TW201814609A (en) Information pushing
CN113285886B (en) Bandwidth allocation method and device, electronic equipment and readable storage medium
CN111711529B (en) Group operation processing method, device, system, equipment and storage medium
CN113268336A (en) Service acquisition method, device, equipment and readable medium
CN110516471A (en) Product promotion method and relevant device based on information security
CN112446736A (en) Click through rate CTR prediction method and device
CN113590276A (en) Information pushing method and related product
CN107633080B (en) User task processing method and device
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN104781788A (en) Resource management system, resource management method and program
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN113256240A (en) Message processing method and device and server
CN114327693A (en) AB experiment method and system, terminal device and storage medium
CN114281549A (en) Data processing method and device
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
WO2016115817A1 (en) Search method, apparatus and device, and nonvolatile computer storage medium

Legal Events

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