CN114826878A - Alarm method and device based on data visualization platform - Google Patents
Alarm method and device based on data visualization platform Download PDFInfo
- Publication number
- CN114826878A CN114826878A CN202210209660.5A CN202210209660A CN114826878A CN 114826878 A CN114826878 A CN 114826878A CN 202210209660 A CN202210209660 A CN 202210209660A CN 114826878 A CN114826878 A CN 114826878A
- Authority
- CN
- China
- Prior art keywords
- task
- alarm
- target
- polling queue
- alert
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
- H04L41/064—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure provides an alarm method and device based on a data visualization platform. The method comprises the following steps: acquiring a target alarm task from the alarm task polling queue; when the execution time of the target alarm task is reached, executing the target alarm task; and when the data corresponding to the target alarm task meets the alarm condition according to the execution result, outputting first alarm information in a first alarm mode, wherein the first alarm information is used for prompting the user that the data fluctuation is abnormal. In the disclosure, the data visualization platform can also give an alarm in time for data fluctuation abnormity on the basis of providing data fluctuation analysis for a user.
Description
Technical Field
The present disclosure relates to the field of data processing, and in particular, to an alarm method and apparatus based on a data visualization platform.
Background
Business Intelligence (BI) refers to the analysis of data using modern data warehouse technology, online analytical processing technology, data mining and data presentation technology to achieve business value. With the widespread use of BI tools, decision makers will more easily query and analyze data.
At present, in a BI tool such as a data visualization platform, how to alarm data fluctuation in time is a problem to be solved urgently.
Disclosure of Invention
The disclosure provides an alarming method and device based on a data visualization platform, so as to realize timely alarming on data fluctuation on the data visualization platform.
In a first aspect, the present disclosure provides an alarm method based on a data visualization platform, including: acquiring a target alarm task from the alarm task polling queue; when the execution time of the target alarm task is reached, executing the target alarm task; and when the data corresponding to the target alarm task meets the alarm condition according to the execution result, outputting first alarm information in a first alarm mode, wherein the first alarm information is used for prompting the user of data fluctuation abnormity.
In some possible embodiments, before obtaining the target alert task from the alert task polling queue, the method further includes: acquiring alarm task configuration parameters input by a user in a data report configuration interface; creating a target alarm task according to the alarm task configuration parameters; and adding the target alarm task to an alarm task polling queue.
In some possible embodiments, obtaining the alarm task configuration parameters input by the user in the data report configuration interface includes: obtaining a display instruction; executing a display instruction, and displaying a data report configuration interface, wherein the data report configuration interface comprises an alarm configuration interface; and acquiring alarm task configuration parameters input by a user in an alarm configuration interface.
In some possible embodiments, after outputting the first warning information, the method further includes: when the next execution time of the target alarm task is reached, whether the first alarm information is processed is confirmed; if yes, returning to the step of obtaining the target alarm task from the alarm task polling queue; if not, outputting second alarm information through a second alarm mode, and moving the target alarm task out of the alarm task polling queue, wherein the alarm grade of the second alarm mode is higher than that of the first alarm mode.
In some possible embodiments, after moving the target alert task out of the alert task polling queue, the method further comprises: obtaining a first recovery operation of a user on a target alarm task, wherein the first recovery operation is used for indicating that an event causing the fluctuation exception of data is eliminated; and responding to the first recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
In some possible embodiments, obtaining the target alert task from the alert task polling queue includes: traversing the alarm task polling queue and checking the configuration state of each alarm task; and determining the alarm task in the opening state as a target alarm task.
In some possible embodiments, after detecting the configuration status of each alert task, the method further includes: and moving the alarm tasks in the unopened state out of the alarm task polling queue.
In some possible embodiments, after performing the target alert task, the method further comprises: and when the target warning task fails to be executed, the target warning task is moved out of the warning task polling queue, and failure information is output, wherein the failure information is used for prompting an event causing the target warning task to be failed to be executed to a user.
In some possible embodiments, after moving the target alert task out of the alert task polling queue, the method further comprises: obtaining a second recovery operation of the user on the target alarm task, wherein the second recovery operation is used for indicating that an event causing the failure of the target alarm task is eliminated; and responding to the second recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
In a second aspect, the present disclosure provides an alarm device based on a data visualization platform, including: the task execution module is used for acquiring a target alarm task from the alarm task polling queue; when the execution time of the target alarm task is reached, executing the target alarm task; and the output module is used for outputting first alarm information in a first alarm mode when the data corresponding to the target alarm task meets the alarm condition according to the execution result, wherein the first alarm information is used for prompting the user of data fluctuation abnormity.
In some possible embodiments, the apparatus further comprises: a task configuration module; the task configuration module is used for acquiring alarm task configuration parameters input by a user in a data report configuration interface before the task execution module acquires a target alarm task from the alarm task polling queue; creating a target alarm task according to the alarm task configuration parameters; and adding the target alarm task to an alarm task polling queue.
In some possible embodiments, the task configuration module is further configured to obtain a display instruction; executing a display instruction, and displaying a data report configuration interface, wherein the data report configuration interface comprises an alarm configuration interface; and acquiring alarm task configuration parameters input by a user in an alarm configuration interface.
In some possible embodiments, the task execution module is configured to, after the output module outputs the first warning information, confirm whether the first warning information is processed when a next execution time of the target warning task arrives; if yes, returning to the step of obtaining the target alarm task from the alarm task polling queue; if not, triggering an output module, and moving the target alarm task out of the alarm task polling queue; and the output module is also used for outputting second alarm information through a second alarm mode, wherein the alarm grade of the second alarm mode is higher than that of the first alarm mode.
In some possible embodiments, the task execution module is further configured to obtain a first recovery operation of the target alert task by the user after the target alert task is removed from the alert task polling queue, where the first recovery operation is used to indicate that an event causing a fluctuation exception of data has been eliminated; and responding to the first recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
In some possible embodiments, the task execution module is further configured to traverse the alarm task polling queue, and check a configuration state of each alarm task; and determining the alarm task in the opening state as a target alarm task.
In some possible embodiments, the task execution module is further configured to, after detecting the configuration state of each alert task, remove the alert task in the unopened state from the alert task polling queue.
In some possible embodiments, the task execution module is further configured to, after the target alert task is executed, remove the target alert task from the alert task polling queue when the target alert task fails to be executed; and the output module is also used for outputting failure information, and the failure information is used for prompting an event causing the target warning task to be failed to execute to a user.
In some possible embodiments, the task execution module is further configured to obtain a second recovery operation of the target alert task by the user after the target alert task is removed from the alert task polling queue, where the second recovery operation is used to indicate that an event causing the target alert task to be failed to be executed has been eliminated; and responding to the second recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
In a third aspect, the present disclosure provides an electronic device comprising: a memory storing computer-executable instructions; a processor coupled to the memory for executing the computer-executable instructions to implement the method as described in any one of the above first aspect and possible embodiments thereof.
In a fourth aspect, the present disclosure provides a computer storage medium storing computer-executable instructions that, when executed by a processor, are capable of implementing a method as described in any one of the first aspect and its possible implementations above.
Compared with the prior art, the technical scheme provided by the disclosure has the following beneficial effects:
in the disclosure, the data visualization platform forms the alarm tasks into a polling queue, and sequentially obtains the alarm tasks to be executed, i.e. the target alarm tasks, from the polling queue of the alarm tasks. When the execution time of the target alarm task is reached, the target alarm task is executed, and when the data corresponding to the target alarm task meets the alarm condition according to the execution result, first alarm information is output in a first alarm mode to prompt a user that the data fluctuation is abnormal. Therefore, the data visualization platform can give an alarm in time for data fluctuation abnormity on the basis of providing data fluctuation analysis for a user, so that the user can check and process data in time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the scope of the disclosure.
Drawings
Fig. 1 is a schematic flow chart of a first implementation of an alarm method based on a data visualization platform in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a second implementation of the alarm method based on the data visualization platform in the embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a third implementation of the alarm method based on the data visualization platform in the embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a fourth implementation flow of the alarm method based on the data visualization platform in the embodiment of the present disclosure;
fig. 5 is a schematic flow chart of a fifth implementation of the alarm method based on the data visualization platform in the embodiment of the present disclosure;
FIG. 6 is a flowchart of an example of an alerting method based on a data visualization platform in an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of an alarm device based on a data visualization platform according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
In the following description, reference is made to the accompanying drawings which form a part hereof and which show by way of illustration specific aspects of the embodiments of the disclosure or which may be used to describe the same. It should be understood that embodiments of the present disclosure may be used in other respects, and may include structural or logical changes not depicted in the drawings. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims. For example, it should be understood that the disclosure in connection with the described methods may equally apply to the corresponding apparatus or device for performing the methods, and vice versa. For example, if one or more particular method steps are described, the corresponding apparatus may comprise one or more units, such as functional units, to perform the described one or more method steps (e.g., a unit performs one or more steps, or multiple units, each of which performs one or more of the multiple steps), even if such one or more units are not explicitly described or illustrated in the figures. On the other hand, for example, if a particular apparatus is described based on one or more units, such as functional units, the corresponding method may comprise one step to perform the functionality of the one or more units (e.g., one step performs the functionality of the one or more units, or multiple steps, each of which performs the functionality of one or more of the plurality of units), even if such one or more steps are not explicitly described or illustrated in the figures. Further, it is to be understood that features of the various exemplary embodiments and/or aspects described herein may be combined with each other, unless explicitly stated otherwise.
Business Intelligence (BI) refers to the analysis of data using modern data warehouse technology, online analytical processing technology, data mining and data presentation technology to achieve business value. The key of business intelligence is to extract useful data from many data from different enterprise operating systems and clean the data to ensure the correctness of the data, then the useful data is extracted, converted and loaded and combined into an enterprise-level data warehouse to obtain a global view of the enterprise data, on the basis, the global view of the enterprise data is analyzed and processed by using proper BI tools, such as query and analysis tools, data mining tools, online analysis and processing tools and the like, and finally, the results are presented to a manager by using data visualization means (such as charts, lines and the like) to provide support for the decision process of the manager.
In current BI tools, such as data visualization platforms, only results of data analysis and processing, such as data fluctuation, data trends, and the like, can be displayed to users for the users to observe the connections among data themselves, and to discover rules and insight knowledge therefrom, thereby obtaining valuable business insights. The observation of the user on the data is usually delayed, so that the data abnormity cannot be timely discovered and processed. For this reason, the data visualization platform needs to alarm data abnormality in time. Generally, the data alarm mode is very complex, code needs to be written on another task scheduling platform, data is checked by processing structured data (such as spark-sql) and timing tasks, and a large amount of debugging work needs to be done before tasks are online to ensure normal operation of alarms. Therefore, how to alarm data abnormity in time by the data visualization platform is an urgent problem to be solved.
In order to solve the above problem, the embodiments of the present disclosure provide an alarm method based on a data visualization platform, which may be applied to a data visualization platform (which may also be understood as a BI application). The data visualization platform may be an electronic device such as a tablet computer, a desktop computer, a notebook computer, a network server, and the like.
Fig. 1 is a schematic flow chart of a first implementation of an alarm method based on a data visualization platform in an embodiment of the present disclosure, and referring to fig. 1, the alarm method may include:
s101, obtaining a target alarm task from the alarm task polling queue.
It should be understood that for data needing to be monitored, the data visualization platform configures one or more dimensions of alarm tasks for the data, and the alarm tasks form an alarm task polling queue. Then, the alarm task may be understood as being created for the data that needs to be monitored, and one or more dimensions of the alarm task may be created for the data that needs to be monitored. For example, the data may be the number of travelers at a tourist attraction. Suppose that the number of tourists in a certain scenic spot may be abnormal in a certain time period, such as the number of tourists is suddenly decreased or the number of tourists is suddenly increased. Then, the number of travelers at the tourist attraction during this time period (i.e., one dimension) needs to be monitored. The data visualization platform can configure corresponding alarm tasks for the data and add the corresponding alarm tasks to the alarm task polling queue.
Further, in the process of data monitoring, the data visualization platform may execute S101, sequentially poll each alarm task in the alarm task polling queue, and periodically poll the alarm task (i.e., the target alarm task) to read from the alarm task polling queue.
Before data monitoring, the data visualization platform can establish an alarm task for data needing monitoring according to user settings. Specifically, prior to S101, the data visualization platform may also establish an alert task according to user settings. For example, the data visualization platform may provide a data report configuration interface to the user, and the data report configuration interface may include input controls for various alarm task configuration parameters. If the user can perform an input operation on the input control, fig. 2 is a second implementation flow diagram of the data visualization platform based alarm method in the embodiment of the present disclosure, referring to fig. 2, before S101, the method further includes: s201, the data visualization platform can obtain alarm configuration parameters input by a user in a data report configuration interface; s202, the data visualization platform creates a corresponding alarm task according to the alarm configuration parameters; and S203, adding the alarm task to the alarm task polling queue. Optionally, the data report configuration interface and the data billboard (data board) are displayed in the same window.
Optionally, the data report configuration interface may include an alarm configuration interface, that is, an area for displaying the alarm configuration interface is set in the data report configuration interface. Then, the above S201 may include: obtaining a display instruction; executing a display instruction, and displaying a data report configuration interface; and acquiring alarm task configuration parameters input by a user in an alarm configuration interface. Specifically, when the user needs to configure the alarm task, the user may perform operations such as opening a data report configuration interface, opening an alarm configuration interface, and the like, and the data visualization platform generates a display instruction in response to the operation of the user. And the data visualization platform executes the display instruction and displays a data report configuration interface. At the moment, the user can see the alarm configuration interface in the data report configuration interface and input alarm task configuration parameters in the alarm configuration interface. And the data visualization platform obtains the alarm task configuration parameters input by the user. Therefore, the data report configuration interface and the alarm configuration interface are integrally arranged, so that a user can synchronously inquire the historical data in the data billboard when configuring the alarm parameters, and set more reasonable alarm parameters according to the fluctuation condition of the historical data, thereby improving the accuracy of data monitoring and further enhancing the timeliness of alarm.
In some possible embodiments, the data visualization platform may also configure alarm tasks for data that needs to be monitored according to default settings or in combination with user settings. In particular, the data visualization platform may pre-store one or more sets of alarm configuration templates. The data visualization platform can automatically generate an alarm task according to the alarm configuration template; or the data visualization platform can provide the alarm configuration template for the user through the data report configuration interface so as to be selected by the user, and an alarm task is generated according to the alarm configuration template selected by the user. For example, the alarm configuration template may be displayed in a datagram configuration interface or an alarm configuration interface.
Optionally, the alarm configuration template may include all alarm task configuration parameters or a part of the alarm task configuration parameters. If the template of the alarm task configuration parameters comprises all alarm task configuration parameters, the data visualization platform can directly generate an alarm task according to the template; if the template of the alarm task configuration parameters includes part of the alarm task configuration parameters, the data visualization platform can generate the alarm task according to the template and the alarm task configuration parameters input by the user, if the data visualization platform also needs to obtain other alarm task configuration parameters input by the user. Therefore, the data visualization platform is provided with the alarm configuration template, so that the user can start alarm monitoring without or only filling part of alarm task configuration parameters, and the operation of the user is facilitated. Furthermore, the data visualization platform can support one-key copy of the alarm task configuration parameters, that is, for different data, the data visualization platform generates corresponding alarm tasks by copying the alarm task configuration parameters, so that the operation of a user is facilitated.
Of course, in practical application, the data visualization platform may also obtain the alarm task configuration parameters in other manners, which is not specifically limited in this disclosure.
For example, the alarm configuration parameters may include data information, alarm conditions, and the like; the data information can be understood as related information of data to be monitored, such as a data source, a monitoring time period, a monitoring dimension, and the like. An alarm condition may be understood as a condition that a single dimension triggers an alarm, and for different dimensions, multiple alarm conditions may be set, and a relationship between the alarm conditions, such as and/or, not equal to, etc.
Of course, the alarm configuration parameters may also include other parameters, which are not specifically limited in this disclosure.
In some possible embodiments, to manage the alert tasks, the data visualization platform may also provide an alert task management interface that may configure the state of each alert task, such as configuring the alert task in an on state or in an off state. For example, a user may configure the configuration state of an alert task in an alert task management interface.
Then, fig. 3 is a schematic flow chart of a third implementation of the alarm method based on the data visualization platform in the embodiment of the present disclosure, and referring to fig. 3, the above S101 may include: s301, traversing the alarm task polling queue, and checking the configuration state of each alarm task; s302, determining the alarm task in the open state as a target alarm task; otherwise, S303, the alarm task in the unopened state is moved out of the alarm task polling queue.
It can be understood that the data visualization platform maintains the alarm task polling queue according to the configuration state of each alarm task, moves out the alarm task in the unopened state, and executes S102 on the alarm task in the opened state as the target alarm task.
And S102, when the execution time of the target alarm task is reached, executing the target alarm task.
It should be understood that each alarm task is configured with an execution time, such as in time granularity of minutes, hours, days, weeks, months, years, etc. The execution time may be a one-time or a periodic time period. For example, the user may configure the execution time on a data report configuration interface or an alarm configuration interface. And the data visualization platform executes the alarm task according to the execution cycle input by the user. Or the data visualization platform sets corresponding execution time for the alarm task according to default setting when the alarm task is created.
Then, after the data visualization platform obtains the target alarm task through S101, the data visualization platform detects whether the target alarm task reaches the execution time; if the execution time is up, executing the target alarm task; otherwise, the process returns to S101.
In practical applications, the execution of the target alarm task may be understood as calculating and comparing data to obtain an execution result, i.e. a calculation result or a comparison result of the data. For example, the target alarm task may be a comparison of data over a period of time, such as a same-proportion or a ring-proportion in terms of time granularity of minutes, hours, days, weeks, months, years, and the like, and further, the comparison may include a true value, a difference value, a proportion, a percentage, and the like.
In some possible embodiments, due to the data exception, when the target alarm task is executed, a problem that the target alarm task cannot be executed correctly may occur. Therefore, fig. 4 is a schematic flowchart of a fourth implementation flow of the alarm method based on the data visualization platform in the embodiment of the present disclosure, referring to fig. 4, after S102, the method may further include: s401, when the execution of the target warning task fails, the target warning task is moved out of a warning task polling queue; s402, outputting failure information to prompt the event causing the target warning task to fail to execute to the user.
Correspondingly, after receiving the failure information, the user processes the data corresponding to the target alarm task to eliminate the event causing the failure of the target alarm task, and feeds back the event to the data visualization platform through the second recovery operation. Next, the data visualization platform obtains a second recovery operation, responds to the second recovery operation, adds the target alarm task to the alarm task polling queue again, and returns to S101. Otherwise, if the data visualization platform does not obtain the second recovery operation, the data visualization platform continues to wait. If the second recovery operation is not received after a long period of time, such as a week, a month, a half year, etc., the data visualization platform may output the failure information again.
In practical application, the data visualization platform may output failure information in a plurality of output modes with different notification timeliness, such as short messages, mails, instant messages, phone voice messages, and the like. When the data visualization platform outputs the failure information for the first time, the failure information can be output in a mode with weak timeliness such as short messages and mails, and when the failure information is output next time, the failure information can be output in a mode with strong timeliness such as instant messages and telephone voice information. Of course, the data visualization platform may also output the failure information in other manners, which is not specifically limited in this disclosure.
S103, when the data corresponding to the target alarm task meets the alarm condition according to the execution result, outputting first alarm information in a first alarm mode.
Here, the first warning information is used to prompt the user of a data fluctuation abnormality.
It should be understood that, after the execution result is obtained in S102, the data visualization platform determines whether the execution result meets an alarm condition, and if so, outputs alarm information (i.e., first alarm information) in a first alarm manner to notify the user that the data fluctuation is abnormal. Otherwise, the process returns to S101.
In some possible embodiments, after the first warning information is output, the data visualization platform waits for the user to process the first warning information. Then, fig. 5 is a schematic flowchart of a fifth implementation flow of the alarm method based on the data visualization platform in the embodiment of the present disclosure, referring to fig. 5, after S103, the method further includes: s501, when the next execution time of the target alarm task is reached, whether the first alarm information is processed is confirmed; s502, if yes, continuing to execute the next alarm task, namely returning to S102; and S503, if not, outputting the alarm information again through a second alarm mode (namely second alarm information), and moving the target alarm task out of the alarm task polling queue to wait for the user to process the alarm information.
Here, the alarm level of the second alarm manner is higher than that of the first alarm manner, and it can also be understood that the timeliness of the second alarm manner is stronger than that of the first alarm manner. In practical application, the data visualization platform may output the alarm information in a plurality of output modes with different alarm levels (or timeliness), such as short messages, mails, instant messages, phone voice messages, and the like. When the data visualization platform outputs the alarm information for the first time, the failure information can be output in a mode with weak timeliness such as short messages and mails, and when the alarm information is output next time, the failure information can be output in a mode with strong timeliness such as instant messages and telephone voice information. Of course, the data visualization platform may also output the alarm information in other manners, which is not specifically limited in this disclosure.
In practical applications, the first warning information and the second warning information may be the same or different.
In some possible embodiments, after S403, if the user has eliminated the event causing the data fluctuation anomaly, the user may feed back to the data visualization platform through the first recovery operation, for example, the user may feed back to the data visualization platform that the event causing the data fluctuation anomaly has been eliminated by reconfiguring the target alarm task (i.e., the first recovery operation), and in response to the first recovery operation, the data visualization platform obtains the first recovery operation and re-adds the target alarm task to the alarm task polling queue and returns to S101.
In practical application, in the above process, when the data visualization platform moves the target alarm task out of the alarm task polling queue, the configuration state of the target alarm task may be changed from an open state to a non-open state. Correspondingly, the first recovery operation and the second recovery operation may also be configured to change the configured state of the target alarm task from an unopened state to an opened state. Of course, other situations may exist in the first recovery operation and the second recovery operation, and this is not particularly limited in the embodiment of the present disclosure.
The following describes an alarm method based on a data visualization platform in an embodiment of the present disclosure with a specific example.
Fig. 6 is a flowchart illustrating an example of an alerting method based on a data visualization platform in an embodiment of the present disclosure, and referring to fig. 6, the alerting method may include:
s601, the data visualization platform obtains a display instruction.
And S602, the data visualization platform executes the display instruction and displays a data report configuration interface.
S603, the data visualization platform obtains the alarm task configuration parameters input by the user in the alarm configuration interface template.
S604, the data visualization platform obtains the alarm task configuration parameters input by the user in the data report configuration page.
And S605, the data visualization platform creates an alarm task according to the alarm task configuration parameters.
S606, the data visualization platform adds the alarm task to the alarm task polling queue.
S607, the data visualization platform obtains the target alarm task from the alarm task polling queue.
S608, the data visualization platform judges whether the target warning task is in an open state; if yes, jumping to S609; otherwise, jump to S610.
S609, the data visualization platform judges whether the execution time of the target alarm task is reached; if yes, jumping to S611; otherwise, jump to S608.
S610, the data visualization platform moves the alarm task in the unopened state out of the alarm task polling queue.
S611, the data visualization platform judges whether the target alarm task is successfully executed; if yes, jumping to S612; otherwise, it jumps to S613.
S612, the data visualization platform judges whether the execution result reaches a preset alarm condition; if yes, jumping to S615; otherwise, go to S608.
S613, the data visualization platform moves the target alarm task which fails to be executed out of the alarm task polling queue, outputs failure information, and skips to S614.
S614, the data visualization platform judges whether the user solves the event causing the task execution failure; if yes, jumping to S606; otherwise, it jumps to S616.
S615, the data visualization platform outputs first alarm information through a first alarm mode.
And S616, outputting failure information by the data visualization platform.
S617, the data visualization platform judges whether the first alarm information is processed before the next execution; if yes, jumping to S608; otherwise, S610 is executed, and the process jumps to S618.
S618, the data visualization platform judges whether the first alarm processing is finished; if yes, jumping to S606; otherwise, jump to S618.
In the embodiment of the present disclosure, the execution sequence of S612 and S614 is not limited.
In the disclosure, the data visualization platform forms the alarm tasks into a polling queue, and sequentially obtains the alarm tasks to be executed, i.e. the target alarm tasks, from the polling queue of the alarm tasks. When the execution time of the target alarm task is reached, the target alarm task is executed, and when the data corresponding to the target alarm task meets the alarm condition according to the execution result, first alarm information is output in a first alarm mode to prompt a user that the data fluctuation is abnormal. Therefore, the data visualization platform can give an alarm in time for data fluctuation on the basis of providing data fluctuation analysis for the user, so that the user can check and process the data in time.
Based on the same inventive concept, the embodiments of the present disclosure provide an alarm device based on a data visualization platform, where the alarm device may be a data visualization platform or a chip or a system on a chip in the data visualization platform, and may also be a functional module in the data visualization platform for implementing the method described in each of the embodiments. The warning device can realize the functions executed by the data visualization platform in the embodiments, and the functions can be realized by executing corresponding software through hardware. These hardware or software include one or more functionally corresponding modules. Fig. 7 is a schematic structural diagram of an alarm device based on a data visualization platform according to an embodiment of the present disclosure, and referring to fig. 7, the alarm device 700 may include: the task execution module 701 is used for acquiring a target alarm task from the alarm task polling queue; when the execution time of the target alarm task is reached, executing the target alarm task; and the output module 702 is configured to output first warning information in a first warning manner when it is determined, according to the execution result, that the data corresponding to the target warning task meets the warning condition, where the first warning information is used to prompt a user that the data fluctuation is abnormal.
In some possible embodiments, the apparatus 700 further includes: the task configuration module 703 is configured to obtain an alarm task configuration parameter input by a user in the data report configuration interface before the task execution module obtains the target alarm task from the alarm task polling queue; creating a target alarm task according to the alarm task configuration parameters; and adding the target alarm task to an alarm task polling queue.
In some possible embodiments, the task configuration module 703 is further configured to obtain a display instruction; executing a display instruction, and displaying a data report configuration interface, wherein the data report configuration interface comprises an alarm configuration template; and acquiring alarm task configuration parameters input by a user in an alarm configuration interface template.
In some possible embodiments, the task execution module 701 is configured to, after the output module outputs the first warning information, determine whether the first warning information is processed when a next execution time of the target warning task arrives; if yes, returning to the step of obtaining the target alarm task from the alarm task polling queue; if not, triggering an output module, and moving the target alarm task out of the alarm task polling queue; the output module 702 is further configured to output second alarm information in a second alarm manner, where an alarm level of the second alarm manner is higher than an alarm level of the first alarm manner.
In some possible embodiments, the task execution module 701 is further configured to obtain a first recovery operation of the target alert task by the user after the target alert task is moved out of the alert task polling queue, where the first recovery operation is used to indicate that an event causing a fluctuation exception of data has been eliminated; and responding to the first recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
In some possible embodiments, the task execution module 701 is further configured to traverse the alarm task polling queue, and check a configuration state of each alarm task; and determining the alarm task in the opening state as a target alarm task.
In some possible embodiments, the task execution module 701 is further configured to remove the alarm task in the unopened state from the alarm task polling queue after detecting the configuration state of each alarm task.
In some possible embodiments, the task execution module 701 is further configured to, after the target alert task is executed, remove the target alert task from the alert task polling queue when the target alert task fails to be executed; the output module 702 is further configured to output failure information, where the failure information is used to prompt a user for an event that causes the target alert task to fail to execute.
In some possible embodiments, the task execution module 701 is further configured to, after the target alert task is moved out of the alert task polling queue, obtain a second recovery operation of the target alert task by the user, where the second recovery operation is used to indicate that an event causing the target alert task to be failed to be executed has been eliminated; and responding to the second recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
It should be noted that, for the specific implementation process of the task execution module 701, the output module 702, and the task configuration module 703, reference may be made to the detailed description of the embodiments in fig. 1 to fig. 6, and for brevity of the description, no further description is given here.
The task execution module 701, the output module 702, and the task configuration module 703 mentioned in the embodiments of the present disclosure may be one or more processors.
Based on the same inventive concept, the disclosed embodiments provide an electronic device, which may be consistent with the data visualization platform described in one or more of the above embodiments. Fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure, and referring to fig. 8, an electronic device 800 may adopt general computer hardware, and includes a processor 801 and a memory 802.
Alternatively, the processor 801 and the memory 802 may communicate via a bus 803.
In some possible implementations, the at least one processor 801 may constitute any physical device having circuitry to perform logical operations on one or more inputs. For example, at least one processor may include one or more Integrated Circuits (ICs), including an Application Specific Integrated Circuit (ASIC), a microchip, a microcontroller, a microprocessor, all or part of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or other circuitry suitable for executing instructions or performing logical operations. The instructions executed by the at least one processor may be preloaded into a memory integrated with or embedded in the controller, for example, or may be stored in a separate memory. The memory may include Random Access Memory (RAM), read-only memory (ROM), hard disk, optical disk, magnetic media, flash memory, other persistent, fixed, or volatile memory, or any other mechanism capable of storing instructions. In some embodiments, the at least one processor may comprise more than one processor. Each processor may have a similar structure, or the processors may have different configurations that are electrically connected or disconnected from each other. For example, the processor may be a separate circuit or integrated in a single circuit. When more than one processor is used, the processors may be configured to operate independently or cooperatively. The processors may be coupled electrically, magnetically, optically, acoustically, mechanically or by other means allowing them to interact. The present disclosure also provides a computer readable storage medium having stored thereon computer instructions for executing the steps of the calibration method described above by a processor, according to an embodiment of the present disclosure. The memory 802 may include computer storage media in the form of volatile and/or nonvolatile memory such as read only memory and/or random access memory. Memory 802 may store an operating system, application programs, other program modules, executable code, program data, user data, and the like.
Further, the memory 802 stores computer-executable instructions for implementing the functions of the task execution module 701, the output module 702, and the task configuration module 703 in fig. 7. The functions/implementation processes of the task execution module 701, the output module 702 and the task configuration module 703 in fig. 7 may all be implemented by the processor 801 in fig. 8 calling a computer executing instruction stored in the memory 802, and the specific implementation processes and functions refer to the above related embodiments.
Based on the same inventive concept, the disclosed embodiments provide an electronic device, including: a memory storing computer-executable instructions; and the processor is connected with the memory and is used for executing the computer executable instructions and realizing the alarm method based on the data visualization platform according to one or more of the embodiments.
Based on the same inventive concept, the embodiments of the present disclosure provide a computer storage medium, where computer-executable instructions are stored, and after the computer-executable instructions are executed by a processor, the method for alarming based on a data visualization platform according to one or more embodiments can be implemented.
It should be understood by those skilled in the art that the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The above description is only an exemplary embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims (20)
1. An alarm method based on a data visualization platform is characterized by comprising the following steps:
acquiring a target alarm task from the alarm task polling queue;
when the execution time of the target alarm task is reached, executing the target alarm task;
and when the data corresponding to the target alarm task meets the alarm condition according to the execution result, outputting first alarm information in a first alarm mode, wherein the first alarm information is used for prompting the user that the data fluctuation is abnormal.
2. The method of claim 1, wherein prior to said obtaining a target alert task from an alert task polling queue, the method further comprises:
acquiring alarm task configuration parameters input by a user in a data report configuration interface;
creating the target alarm task according to the alarm task configuration parameters;
and adding the target alarm task to the alarm task polling queue.
3. The method of claim 2, wherein obtaining the alarm task configuration parameters entered by the user in the data report configuration interface comprises:
obtaining a display instruction;
executing the display instruction, and displaying the data report configuration interface, wherein the data report configuration interface comprises an alarm configuration interface;
and acquiring the alarm task configuration parameters input by the user in the alarm configuration interface.
4. The method of claim 1, wherein after said outputting the first alert information, the method further comprises:
when the next execution time of the target alarm task is reached, determining whether the first alarm information is processed;
if yes, returning to the step of obtaining the target warning task from the warning task polling queue;
and if not, outputting second alarm information in a second alarm mode, and moving the target alarm task out of the alarm task polling queue, wherein the alarm level of the second alarm mode is higher than that of the first alarm mode.
5. The method of claim 4, wherein after the moving the target alert task out of the alert task polling queue, the method further comprises:
obtaining a first recovery operation of a user on the target alarm task, wherein the first recovery operation is used for indicating that an event causing the fluctuation exception of the data is eliminated;
and responding to the first recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
6. The method of claim 1, wherein obtaining the target alert task from the alert task polling queue comprises:
traversing the alarm task polling queue, and checking the configuration state of each alarm task;
and determining the alarm task in the opening state as the target alarm task.
7. The method of claim 6, wherein after the detecting the configuration status of each alert task, the method further comprises:
and removing the alarm tasks in the unopened state out of the alarm task polling queue.
8. The method of claim 1, wherein after the performing the target alert task, the method further comprises:
and when the target warning task fails to be executed, removing the target warning task out of the warning task polling queue, and outputting failure information, wherein the failure information is used for prompting an event causing the target warning task to be failed to be executed to a user.
9. The method of claim 8, wherein after said moving the target alert task out of the alert task polling queue, the method further comprises:
obtaining a second recovery operation of the target alarm task by the user, wherein the second recovery operation is used for indicating that an event causing the failure of the target alarm task is eliminated;
and responding to the second recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
10. An alarm device based on a data visualization platform, comprising:
the task execution module is used for acquiring a target alarm task from the alarm task polling queue; when the execution time of the target alarm task is reached, executing the target alarm task;
and the output module is used for outputting first alarm information in a first alarm mode when the data corresponding to the target alarm task meets the alarm condition according to the execution result, wherein the first alarm information is used for prompting the user that the data fluctuation is abnormal.
11. The apparatus of claim 10, further comprising: a task configuration module;
the task configuration module is used for acquiring alarm task configuration parameters input by a user in a data report configuration interface before the task execution module acquires the target alarm task from the alarm task polling queue; creating the target alarm task according to the alarm task configuration parameters; and adding the target alarm task to the alarm task polling queue.
12. The apparatus of claim 11, wherein the task configuration module is further configured to obtain a display instruction; executing the display instruction, and displaying the data report configuration interface, wherein the data report configuration interface comprises an alarm configuration interface; and acquiring the alarm task configuration parameters input by the user in the alarm configuration interface.
13. The apparatus according to claim 10, wherein the task execution module is further configured to, after the output module outputs the first warning information, confirm whether the first warning information is processed when a next execution time of the target warning task arrives; if yes, returning to the step of obtaining the target alarm task from the alarm task polling queue; if not, triggering the output module, and moving the target alarm task out of the alarm task polling queue; the output module is further configured to output second alarm information in a second alarm mode, where an alarm level of the second alarm mode is higher than an alarm level of the first alarm mode.
14. The apparatus according to claim 13, wherein the task execution module is further configured to obtain a first recovery operation of the target alert task from the user after the target alert task is removed from the alert task polling queue, where the first recovery operation is used to indicate that an event causing the fluctuation exception of the data has been eliminated; and responding to the first recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
15. The apparatus according to claim 10, wherein the task execution module is further configured to traverse an alarm task polling queue, and check a configuration status of each alarm task; and determining the alarm task in the opening state as the target alarm task.
16. The apparatus of claim 15, wherein the task execution module is further configured to remove the alert task in the unopened state from the alert task polling queue after detecting the configuration status of each alert task.
17. The apparatus according to claim 10, wherein the task execution module is further configured to, after executing the target alert task, move the target alert task out of the alert task polling queue when the target alert task fails to execute; the output module is further configured to output failure information, where the failure information is used to prompt a user for an event that causes the target warning task to fail to be executed.
18. The apparatus according to claim 17, wherein the task execution module is further configured to obtain a second recovery operation of the target alert task from the user after the target alert task is removed from the alert task polling queue, where the second recovery operation is used to indicate that an event causing the failure of the target alert task is eliminated; and responding to the second recovery operation, adding the target alarm task to the alarm task polling queue, and returning to the step of obtaining the target alarm task from the alarm task polling queue.
19. An electronic device, comprising:
a memory storing computer-executable instructions;
a processor coupled to the memory for executing the computer-executable instructions to implement the method of any of claims 1 to 9.
20. A computer storage medium having computer-executable instructions stored thereon which, when executed by a processor, are capable of performing the method of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210209660.5A CN114826878B (en) | 2022-03-04 | 2022-03-04 | Alarm method and device based on data visualization platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210209660.5A CN114826878B (en) | 2022-03-04 | 2022-03-04 | Alarm method and device based on data visualization platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114826878A true CN114826878A (en) | 2022-07-29 |
CN114826878B CN114826878B (en) | 2023-10-13 |
Family
ID=82528563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210209660.5A Active CN114826878B (en) | 2022-03-04 | 2022-03-04 | Alarm method and device based on data visualization platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114826878B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110078352A1 (en) * | 2009-09-30 | 2011-03-31 | International Business Machines Corporation | Administering The Polling Of A Number Of Devices For Device Status |
CN107579854A (en) * | 2017-09-20 | 2018-01-12 | 郑州云海信息技术有限公司 | A kind of cluster alarm method, device, equipment and computer-readable recording medium |
CN110716832A (en) * | 2019-09-24 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Service operation monitoring and alarming method, system, electronic equipment and storage medium |
CN110716848A (en) * | 2019-10-18 | 2020-01-21 | 广州华多网络科技有限公司 | Data collection method and device, electronic equipment and storage medium |
-
2022
- 2022-03-04 CN CN202210209660.5A patent/CN114826878B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110078352A1 (en) * | 2009-09-30 | 2011-03-31 | International Business Machines Corporation | Administering The Polling Of A Number Of Devices For Device Status |
CN107579854A (en) * | 2017-09-20 | 2018-01-12 | 郑州云海信息技术有限公司 | A kind of cluster alarm method, device, equipment and computer-readable recording medium |
CN110716832A (en) * | 2019-09-24 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Service operation monitoring and alarming method, system, electronic equipment and storage medium |
CN110716848A (en) * | 2019-10-18 | 2020-01-21 | 广州华多网络科技有限公司 | Data collection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114826878B (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3132352B1 (en) | Integrated monitoring and control of processing environment | |
CN108427616B (en) | Background program monitoring method and monitoring device | |
JP6334733B2 (en) | Method and apparatus for recommending solutions based on user actions | |
EP2975559B1 (en) | Method and system for aggregating diagnostic analyzer related information | |
US20230152339A1 (en) | Lab instrument status monitoring | |
US11086696B2 (en) | Parallel cloned workflow execution | |
CN113227978A (en) | Automatic anomaly detection in computer processing pipelines | |
EP2634733A1 (en) | Operations task management system and method | |
CN109491646B (en) | Message entry method and device, electronic equipment and readable medium | |
CN113706022A (en) | Business process execution method and device, storage medium and electronic equipment | |
CN104216802A (en) | Memory database recovery method and device | |
CN114092275A (en) | Enterprise operation abnormity monitoring method and device, computer equipment and storage medium | |
CN114826878A (en) | Alarm method and device based on data visualization platform | |
CN113760611A (en) | System site switching method and device, electronic equipment and storage medium | |
JP7131486B2 (en) | Control system, programmable logic controller and information processing method | |
CN104077210A (en) | Positioning method and system of crashed client | |
US11914466B2 (en) | Systems and methods for pause-correct-replay workflow customization | |
JP2012146049A (en) | Batch job delay alarm automatic raising system, automatic alarm raising method and program therefor | |
KR101981910B1 (en) | Programmable indicator | |
US10902131B2 (en) | Information processing device, information processing method, and non-transitory computer readable medium for providing improved security | |
CN111066038A (en) | Alarm enabled passive application integration | |
US20180189169A1 (en) | Method,electronic apparatus, system, and storage medium for automated testing of application user interface | |
US10872019B2 (en) | Load and save recovery partition using mobile device | |
CN113392026A (en) | Interface automation test method, system, electronic equipment and storage medium | |
CN113126881A (en) | System configuration method, device, equipment, readable storage medium and distributed storage system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |