Task time limit alarm method and device, equipment and storage medium
Patent Information
- Application Number
- CN202310524788.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-05-10
AI Technical Summary
[0003]但是,监控平台的预设阈值设置相对固定,一方面,实际银行系统可能因为用户的缓慢增加而导致批量耗时同步缓慢增加,若预设阈值设置低,则容易在安全区域触发报警,报警后再调整预设阈;若预设阈值设置高,则在很长一段时间内对批量耗时增长趋势无感,若因此产生性能隐患,则无法及时察觉
[0049]第五方面,本申请提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如第一方面所述的方法。
Smart Images

Figure CN116541247B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to a method, apparatus, device and storage medium for alarming the time limit of a task. Background Technology
[0002] Currently, the time-limited monitoring of the banking system mainly monitors the batch performance of the system based on the start time and end time of batch execution. By connecting to a unified monitoring platform, monitoring messages are sent to the monitoring platform, which determines whether to issue an alarm based on preset thresholds.
[0003] However, the preset thresholds of monitoring platforms are relatively fixed. On the one hand, in actual banking systems, the batch processing time may increase slowly due to a gradual increase in users. If the preset threshold is set too low, alarms are easily triggered in safe areas, requiring adjustment of the preset threshold after an alarm. If the preset threshold is set too high, the increasing trend of batch processing time may go unnoticed for a long period, and performance risks arising from this may not be detected in time. On the other hand, the business characteristics carried by banking systems vary, and setting a fixed preset threshold may result in false alarms.
[0004] Therefore, there is an urgent need for a task time limit alarm method that can make the monitoring method more flexible and in line with the actual situation, and thus avoid false alarms. Summary of the Invention
[0005] This application provides a method, device, equipment, and storage medium for alarming time limits for work tasks, which enables monitoring methods to be more flexible and in line with actual conditions, thereby avoiding false alarms.
[0006] Firstly, this application provides a method for alarming the time limit of a work task, the method comprising:
[0007] Obtain the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time;
[0008] Based on the current task node, the time limit alarm mode of the current task node is retrieved, and the time limit threshold corresponding to the time limit alarm mode is obtained; and based on the time information, the current time limit information corresponding to the time limit alarm mode is determined; wherein, the time limit alarm mode is determined based on the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or, the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node;
[0009] If the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode, an alarm message is triggered and sent to the operating system; wherein, the alarm message is used to determine the abnormal data information of the current task.
[0010] In one example, retrieving the time-limit alarm mode of the current job task node based on the current job task node includes:
[0011] The attribute configuration table is retrieved, and the attribute information of the current task node is retrieved from the attribute configuration table according to the current task node; wherein, the attribute configuration table represents the mapping relationship between task nodes and attribute information;
[0012] In the time limit configuration table, the time limit alarm mode corresponding to the attribute information of the current job task node is retrieved; wherein, the time limit configuration table represents the mapping relationship between attribute information and time limit alarm mode.
[0013] In one example, the time-limited alarm modes include: a preset time node alarm mode, a preset duration alarm mode, and a preset time change rate alarm mode;
[0014] The preset time node alarm mode indicates that an alarm should be issued when an abnormality occurs at the start or end time of the current task node; the preset duration alarm mode indicates that an alarm should be issued when the duration of the task processed by the current task node is abnormal; and the preset time change rate alarm mode indicates that an alarm should be issued when the change in the duration of the task processed by the current task node is abnormal.
[0015] In one example, if the time limit alarm mode is the preset time change rate alarm mode, then the time information includes the historical time consumption value and the current time consumption value of the current task node within the preset time range; wherein, the historical time consumption value represents the historical operation duration of the task processed by the current task node, and the current time consumption value represents the current operation duration of the task processed by the current task node.
[0016] Based on the time information, the current time limit information corresponding to the time limit alarm mode is determined, including: based on the historical time consumption value and the current time consumption value, the current time limit information corresponding to the preset time consumption change rate alarm mode is determined; wherein, the current time limit information corresponding to the preset time consumption change rate alarm mode represents the time consumption change rate of the task processed by the current task node.
[0017] In one example, sending the alarm message to the operating system includes: in response to a user's inspection command, displaying the current time limit information corresponding to the time limit alarm mode; wherein, the inspection command is used to instruct the display of the current time limit information corresponding to the time limit alarm mode;
[0018] In response to the user's first confirmation command, the alarm message is sent to the operating system; wherein, the first confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is correct.
[0019] In one example, the method further includes:
[0020] In response to the user's second confirmation command, the alarm message is cancelled; wherein, the second confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is incorrect.
[0021] In one example, the method further includes:
[0022] The system receives the analysis report results and adjusts the time limit threshold corresponding to the time limit alarm mode based on the analysis report results; wherein, the analysis report results are obtained by the operating system after receiving the alarm message and analyzing the preset field data in the automatic load information database.
[0023] In one example, the time limit type includes at least one of the following:
[0024] Daily time limit, end-of-month time limit, end-of-quarter time limit, working day time limit, non-working day time limit.
[0025] Secondly, this application provides a task time limit alarm device, the device comprising:
[0026] The acquisition unit is used to acquire the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time;
[0027] The retrieval unit is configured to retrieve the time limit alarm mode of the current task node based on the current task node, and obtain the time limit threshold corresponding to the time limit alarm mode; and determine the current time limit information corresponding to the time limit alarm mode based on the time information; wherein, the time limit alarm mode is determined based on the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or, the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node;
[0028] The sending unit is configured to trigger an alarm message and send the alarm message to the operating system if the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode; wherein, the alarm message is used to determine the abnormal data information of the current job task.
[0029] In one example, the call to the unit includes:
[0030] The first retrieval module is used to retrieve the attribute configuration table and retrieve the attribute information of the current task node from the attribute configuration table according to the current task node; wherein, the attribute configuration table represents the mapping relationship between the task node and the attribute information;
[0031] The second retrieval module is used to retrieve the time limit alarm mode corresponding to the attribute information of the current job task node from the time limit configuration table; wherein, the time limit configuration table represents the mapping relationship between attribute information and time limit alarm mode.
[0032] In one example, the time-limited alarm modes include: a preset time node alarm mode, a preset duration alarm mode, and a preset time change rate alarm mode;
[0033] The preset time node alarm mode indicates that an alarm should be issued when an abnormality occurs at the start or end time of the current task node; the preset duration alarm mode indicates that an alarm should be issued when the duration of the task processed by the current task node is abnormal; and the preset time change rate alarm mode indicates that an alarm should be issued when the change in the duration of the task processed by the current task node is abnormal.
[0034] In one example, if the time limit alarm mode is the preset time change rate alarm mode, then the time information includes the historical time consumption value and the current time consumption value of the current task node within the preset time range; wherein, the historical time consumption value represents the historical operation duration of the task processed by the current task node, and the current time consumption value represents the current operation duration of the task processed by the current task node.
[0035] The retrieval unit includes: a determination module, used to determine the current time limit information corresponding to the preset time change rate alarm mode based on the historical time consumption value and the current time consumption value; wherein, the current time limit information corresponding to the preset time change rate alarm mode represents the time change rate of the task processed by the current task node.
[0036] In one example, the sending unit includes:
[0037] The display module is used to respond to the user's inspection command and display the current time limit information corresponding to the time limit alarm mode; wherein, the inspection command is used to instruct the display of the current time limit information corresponding to the time limit alarm mode;
[0038] The sending module is used to send the alarm message to the operating system in response to the user's first confirmation command; wherein the first confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is correct.
[0039] In one example, the device further includes:
[0040] The cancellation module is used to cancel the alarm message in response to a second confirmation command from the user; wherein the second confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is incorrect.
[0041] In one example, the device further includes:
[0042] The receiving unit is used to receive the analysis report results and adjust the time limit threshold corresponding to the time limit alarm mode according to the analysis report results; wherein, the analysis report results are obtained by the running system after receiving the alarm message and analyzing the preset field data in the automatic load information database.
[0043] In one example, the time limit type includes at least one of the following:
[0044] Daily time limit, end-of-month time limit, end-of-quarter time limit, working day time limit, non-working day time limit.
[0045] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0046] The memory stores computer-executed instructions;
[0047] The processor executes computer execution instructions stored in the memory to implement the method as described in the first aspect.
[0048] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.
[0049] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.
[0050] This application provides a method, apparatus, device, and storage medium for alarming time limits for work tasks. It acquires time information of the current work task node in a monitoring system. The current work task node includes batch task nodes, session task nodes, and sub-task nodes. Multiple sub-tasks constitute a session task; multiple session tasks constitute a batch task. The time information includes a start time, an end time, and the current time. Based on the current work task node, the method retrieves the time limit alarm mode of the current work task node and obtains the time limit threshold corresponding to the time limit alarm mode. Finally, based on the time information, it determines the time limit alarm. The current time limit information corresponding to the mode; wherein, the time limit alarm mode is determined based on the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or, the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node; if the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode, an alarm message is triggered and sent to the operating system; wherein, the alarm message is used to determine the abnormal data information of the current task. This technical solution makes the monitoring method more flexible and in line with actual conditions, thereby avoiding false alarms. Attached Figure Description
[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0052] Figure 1 This is a flowchart illustrating a task time limit alarm method according to Embodiment 1 of this application;
[0053] Figure 2 This is a flowchart illustrating a task time limit alarm method according to Embodiment 2 of this application;
[0054] Figure 3 This is a schematic diagram of a task time limit alarm device according to Embodiment 3 of this application;
[0055] Figure 4 This is a schematic diagram of a task time limit alarm device according to Embodiment 4 of this application;
[0056] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0057] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0059] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0060] Figure 1 This is a flowchart illustrating a task time limit alarm method according to Embodiment 1 of this application. Embodiment 1 includes the following steps:
[0061] S101. Obtain the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes the start time, end time and current time.
[0062] In one example, the monitoring system monitors each job task in the running system in real time. In this embodiment, the batch task includes multiple session tasks, and each session task includes multiple sub-tasks. The job tasks monitored in real time by the monitoring system include the time information of the batch task nodes, the time information of the session task nodes, and the time information of the sub-task nodes. The time information includes three types: start time, end time, and current time.
[0063] S102. Based on the current task node, retrieve the time limit alarm mode of the current task node and obtain the time limit threshold corresponding to the time limit alarm mode; and determine the current time limit information corresponding to the time limit alarm mode based on the time information; wherein, the time limit alarm mode is determined based on the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node.
[0064] In this embodiment, the time limit alarm modes include: a preset time node alarm mode, a preset duration alarm mode, and a time consumption change rate alarm mode. The preset time node alarm mode indicates that an alarm should be issued when an anomaly occurs at the start or end time of the current task node; the preset duration alarm mode indicates that an alarm should be issued when the duration of the task processed by the current task node is abnormal; and the preset time consumption change rate alarm mode indicates that an alarm should be issued when the change in the duration of the task processed by the current task node is abnormal. For example, if the time limit alarm mode is a preset time node alarm mode and the start time is monitored, then the time limit threshold for the preset time node alarm mode is obtained. In one example, the time limit type includes at least one of the following: daily time limit, month-end time limit, quarter-end time limit, working day time limit, and non-working day time limit. If the task type processed by the current task node is a relatively complex task type or the time limit type is a month-end time limit, then the value of the time limit threshold corresponding to the time limit alarm mode of the current task node will be relatively large. The advantage of this setup is that more complex task types tend to take longer to process. At the end of the month, due to the large number of tasks to be processed, the month-end deadline also leads to longer processing times, resulting in a larger time limit threshold for the time limit alarm mode. In this embodiment, the time limit alarm mode can be determined by the task type processed by the current task node; it can also be determined by the time limit type to which the current task node belongs. The time limit type can be one or two. For example, a daily time limit and a month-end time limit means that month-end tasks are calculated according to the time limit threshold corresponding to the month-end time limit, while other days are calculated according to the time limit threshold corresponding to the daily time limit. Other combinations, such as daily time limit, month-end time limit, and quarter-end time limit, mean that quarter-end tasks are calculated according to the time limit threshold corresponding to the quarter-end time limit, month-end tasks are calculated according to the time limit threshold corresponding to the month-end time limit, and other days are calculated according to the time limit threshold corresponding to the daily time limit. Specifically, the time limit (month-end, quarter-end, or daily) is determined by the time information of the current task node.
[0065] S103. If the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode, an alarm message is triggered and sent to the operating system; wherein, the alarm message is used to determine the abnormal data information of the current job task.
[0066] In this embodiment, if the time-limit alarm mode is a preset duration alarm mode, the current time limit information corresponding to the time-limit alarm mode can be determined by the following formula: if the current time - start time > the time limit threshold corresponding to the preset duration alarm mode, then an alarm message is triggered and sent to the operating system so that the operating system can analyze the abnormal data information of the current task based on the alarm message. If the time-limit alarm mode is a preset time node alarm mode, and the time limit threshold of the preset time node alarm mode is A, then the current time limit information corresponding to the time-limit alarm mode is determined as the difference between the start time and the current time of the current task node. The relationship between the difference and A is compared. If it is greater than A, then an alarm message is triggered.
[0067] This application provides a method for alarming time limits for job tasks. The method involves acquiring the time information of the current job task node in the monitoring system; retrieving the time limit alarm mode for the current job task node and obtaining the corresponding time limit threshold; determining the current time limit information corresponding to the time limit alarm mode based on the time information; and triggering an alarm message if the current time limit information is greater than the corresponding time limit threshold, which is then sent to the operating system. This technical solution makes the monitoring method more flexible and aligned with actual conditions, thereby avoiding false alarms.
[0068] Figure 2 This is a flowchart illustrating a task time limit alarm method according to Embodiment 2 of this application. Embodiment 2 includes the following steps:
[0069] S201. Obtain the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time.
[0070] For example, this step can refer to step S101 above, and will not be repeated here.
[0071] S202. Retrieve the attribute configuration table and retrieve the attribute information of the current task node from the attribute configuration table according to the current task node; wherein, the attribute configuration table represents the mapping relationship between task nodes and attribute information.
[0072] In this embodiment, the task types processed in the attribute configuration table can be level A, level B, and level C, with level A being more difficult than level B. If the task type processed by the current job node is level A, the list information for level A is retrieved from the attribute configuration table. If the time limit type is daily or month-end, the list information for daily and month-end time limits is retrieved from the attribute configuration table.
[0073] S203. In the time limit configuration table, retrieve the time limit alarm mode corresponding to the attribute information of the current job task node; wherein, the time limit configuration table represents the mapping relationship between attribute information and time limit alarm mode.
[0074] In this embodiment, if the time limit type is a daily time limit or a month-end time limit, the corresponding time limit alarm mode can be retrieved from the time limit configuration table as the preset time node alarm mode; if the task type being processed is level A, the corresponding time limit alarm mode can be retrieved from the time limit configuration table as the time consumption change rate alarm mode.
[0075] In one example, if the time limit alarm mode is the preset time change rate alarm mode, the time information includes the historical time value and the current time value of the current task node within the preset time range; wherein, the historical time value represents the historical operation duration of the task processed by the current task node, and the current time value represents the current operation duration of the task processed by the current task node.
[0076] Based on time information, determine the current time limit information corresponding to the time limit alarm mode, including: determining the current time limit information corresponding to the preset time change rate alarm mode based on historical time consumption values and current time consumption values; wherein, the current time limit information corresponding to the preset time change rate alarm mode represents the time change rate of the task processed by the current task node.
[0077] In this embodiment, the preset time range can be the previous monitoring day. The current time limit information corresponding to the preset time change rate alarm mode can be calculated in the following way:
[0078]
[0079] It could also be:
[0080]
[0081] Furthermore, the time limit threshold for the preset time-consuming change rate alarm mode supports adaptive threshold adjustment. When adaptive threshold adjustment is configured, the time limit threshold for the time-consuming change rate alarm mode for the next day can be determined based on the average growth rate over a specified time range, but it cannot exceed the absolute value. The specified time range comprehensively considers the time limit type, that is, it calculates the average daily change rate according to the time limit type.
[0082] S204. Obtain the time limit threshold corresponding to the time limit alarm mode; and determine the current time limit information corresponding to the time limit alarm mode based on the time information.
[0083] For example, this step can refer to step S102 above, and will not be repeated here.
[0084] S205. If the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode, an alarm message is triggered and sent to the operating system; wherein, the alarm message is used to determine the abnormal data information of the current job task.
[0085] For example, sending an alarm message to the operating system includes: in response to a user's inspection command, displaying the current time limit information corresponding to the time limit alarm mode; wherein the inspection command is used to instruct the display of the current time limit information corresponding to the time limit alarm mode;
[0086] In response to the user's first confirmation command, an alarm message is sent to the operating system; wherein, the first confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is correct.
[0087] In this embodiment, the user's inspection instruction message can be a preset gesture operation or a preset command message. After receiving the user's inspection instruction, the current time limit information corresponding to the current time limit alarm mode is displayed. If the current time limit information is correct, the user sends a first confirmation instruction to send the alarm message to the operating system.
[0088] In one example, the alarm message is canceled in response to a second confirmation command from the user; the second confirmation command indicates that the current time limit information corresponding to the time-limited alarm mode is incorrect.
[0089] In this embodiment, if the current time limit information is incorrect, the user sends a second confirmation command to cancel the alarm message.
[0090] S206. Receive the analysis report results and adjust the time limit threshold corresponding to the time limit alarm mode according to the analysis report results; wherein, the analysis report results are obtained by the running system after receiving the alarm message and analyzing the preset field data in the automatic load information database.
[0091] In this embodiment, if an alarm message is sent to the operating system, the operating system, after the current job task ends, obtains the minimum snapshot point containing that time period based on the start and end times. The calculation process for the minimum snapshot point is: snapshot start time <= batch end time > batch end time <= snapshot end time. The system then scans and extracts data from the "Top 10 Foreground Events by Total Wait Time" and "SQL ordered by Elapsed Time" fields in the automatic load information database using a text scanning tool. This data is compared with the original data in the automatic load information database, and an analysis report is generated for the technical staff. The technical staff can then use the analysis report to locate long-running SQL statements or system events.
[0092] This application provides a method for alarming time limits for job tasks. It retrieves an attribute configuration table and, based on the current job task node, retrieves its attribute information from the attribute configuration table. Then, it retrieves the corresponding time-limit alarm mode from the time-limit configuration table. This technical solution can meet the needs of accurate detection and control in batch scenarios with uneven workloads; the adaptive threshold adjustment function can achieve automated operation and maintenance even with orderly changes in workload; and simultaneously, it captures suspicious code snippet data and system events to help technicians quickly locate and resolve problems.
[0093] Figure 3 This is a schematic diagram of a task time limit alarm device according to Embodiment 3 of this application. Specifically, the device 30 in Embodiment 3 includes:
[0094] The acquisition unit 301 is used to acquire the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time.
[0095] The retrieval unit 302 is used to retrieve the time limit alarm mode of the current task node according to the current task node, and obtain the time limit threshold corresponding to the time limit alarm mode; and determine the current time limit information corresponding to the time limit alarm mode according to the time information; wherein, the time limit alarm mode is determined according to the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node.
[0096] The sending unit 303 is used to trigger an alarm message and send the alarm message to the operating system if the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode; wherein, the alarm message is used to determine the abnormal data information of the current job task.
[0097] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0098] Figure 4 This is a schematic diagram of a task time limit alarm device according to Embodiment 4 of this application. Specifically, the device 40 in Embodiment 4 includes:
[0099] The acquisition unit 401 is used to acquire the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time;
[0100] The retrieval unit 402 is used to retrieve the time limit alarm mode of the current task node according to the current task node, and obtain the time limit threshold corresponding to the time limit alarm mode; and determine the current time limit information corresponding to the time limit alarm mode according to the time information; wherein, the time limit alarm mode is determined according to the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node, and / or, the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node;
[0101] The sending unit 403 is used to trigger an alarm message and send the alarm message to the operating system if the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode; wherein, the alarm message is used to determine the abnormal data information of the current job task.
[0102] In one example, calling unit 402 includes:
[0103] The first retrieval module 4021 is used to retrieve the attribute configuration table and retrieve the attribute information of the current task node from the attribute configuration table according to the current task node; wherein, the attribute configuration table represents the mapping relationship between the task node and the attribute information.
[0104] The second retrieval module 4022 is used to retrieve the time limit alarm mode corresponding to the attribute information of the current job task node from the time limit configuration table; wherein, the time limit configuration table represents the mapping relationship between attribute information and time limit alarm mode.
[0105] In one example, the time-limited alarm modes include: preset time node alarm mode, preset duration alarm mode, and preset time change rate alarm mode;
[0106] Among them, the preset time node alarm mode indicates that an alarm should be issued when an abnormality occurs at the start or end time of the current task node; the preset duration alarm mode indicates that an alarm should be issued when the duration of the task processed by the current task node is abnormal; and the preset time change rate alarm mode indicates that an alarm should be issued when the change in the duration of the task processed by the current task node is abnormal.
[0107] In one example, if the time limit alarm mode is the preset time change rate alarm mode, the time information includes the historical time value and the current time value of the current task node within the preset time range; wherein, the historical time value represents the historical operation duration of the task processed by the current task node, and the current time value represents the current operation duration of the task processed by the current task node.
[0108] The retrieval unit 402 includes: a determination module 4023, used to determine the current time limit information corresponding to the preset time change rate alarm mode based on historical time consumption values and current time consumption values; wherein, the current time limit information corresponding to the preset time change rate alarm mode represents the time change rate of the task processed by the current task node.
[0109] In one example, the transmitting unit 403 includes:
[0110] The display module 4031 is used to display the current time limit information corresponding to the time limit alarm mode in response to the user's inspection command; wherein, the inspection command is used to instruct the display of the current time limit information corresponding to the time limit alarm mode.
[0111] The sending module 4032 is used to send an alarm message to the operating system in response to the user's first confirmation command; wherein, the first confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is correct.
[0112] In one example, device 40 also includes:
[0113] Cancellation module 4033 is used to cancel the alarm message in response to the user's second confirmation command; wherein, the second confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is incorrect.
[0114] In one example, device 40 also includes:
[0115] The receiving unit 404 is used to receive the analysis report results and adjust the time limit threshold corresponding to the time limit alarm mode according to the analysis report results; wherein, the analysis report results are obtained by the running system after receiving the alarm message and analyzing the preset field data in the automatic load information database.
[0116] In one example, the time limit type includes at least one of the following:
[0117] Daily time limit, end-of-month time limit, end-of-quarter time limit, working day time limit, non-working day time limit.
[0118] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0119] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0120] Electronic device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.
[0121] Processing component 502 typically controls the overall operation of electronic device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0122] Memory 504 is configured to store various types of data to support the operation of electronic device 500. Examples of such data include instructions for any application or method operating on electronic device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0123] Power supply component 506 provides power to various components of electronic device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 500.
[0124] Multimedia component 508 includes a screen that provides an output interface between electronic device 500 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of a touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When electronic device 500 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0125] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when electronic device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0126] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0127] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of electronic device 500. For example, sensor assembly 514 may detect the on / off state of electronic device 500, the relative positioning of components such as the display and keypad of electronic device 500, changes in position of electronic device 500 or a component of electronic device 500, the presence or absence of user contact with electronic device 500, orientation or acceleration / deceleration of electronic device 500, and temperature changes of electronic device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0128] Communication component 516 is configured to facilitate wired or wireless communication between electronic device 500 and other devices. Electronic device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0129] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0130] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of an electronic device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0131] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform a task time limit alarm method for the electronic device.
[0132] This application also discloses a computer program product, including a computer program that, when executed by a processor, implements the method described in this embodiment.
[0133] Various embodiments of the systems and technologies described above in this application can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0134] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or electronic device.
[0135] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0136] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0137] The systems and technologies described herein can be implemented in computing systems that include back-end components (e.g., as data electronic devices), or computing systems that include middleware components (e.g., application electronic devices), or computing systems that include front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0138] Computer systems can include client and electronic devices. Clients and electronic devices are generally geographically separated and typically interact via communication networks. The client-electronic device relationship is created by computer programs running on the respective computers and having a client-electronic device relationship with each other. The electronic device can be a cloud electronic device, also known as a cloud computing electronic device or cloud host, a host product within the cloud computing service system, addressing the shortcomings of traditional physical hosts and VPS services ("Virtual Private Server," or simply "VPS") in terms of management difficulty and weak business scalability. The electronic device can also be an electronic device in a distributed system or an electronic device incorporating blockchain technology. It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application is achieved, and this is not limited herein.
[0139] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0140] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for alarming the time limit of a work task, characterized in that, The method includes: Obtain the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time; The system retrieves an attribute configuration table and its attribute information based on the current task node. The attribute configuration table represents the mapping relationship between task nodes and attribute information. In the time limit configuration table, the system retrieves the time limit alarm mode corresponding to the attribute information of the current task node. The time limit configuration table represents the mapping relationship between attribute information and time limit alarm modes, and the system obtains the time limit threshold corresponding to the time limit alarm mode. Based on the time information, the system determines the current time limit information corresponding to the time limit alarm mode. The time limit alarm mode is determined based on the attribute information of the current task node. The attribute information includes the task type corresponding to the current task node and the time limit type to which the current task node belongs. The current time limit information represents the time progress of the current task node. If the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode, an alarm message is triggered and sent to the operating system; wherein, the alarm message is used to determine the abnormal data information of the current task.
2. The method according to claim 1, characterized in that, The time-limit alarm modes include: preset time node alarm mode, preset duration alarm mode, and preset time change rate alarm mode; The preset time node alarm mode indicates that an alarm should be issued when an abnormality occurs at the start or end time of the current task node; the preset duration alarm mode indicates that an alarm should be issued when the duration of the task processed by the current task node is abnormal; and the preset time change rate alarm mode indicates that an alarm should be issued when the change in the duration of the task processed by the current task node is abnormal.
3. The method according to claim 2, characterized in that, If the time limit alarm mode is the preset time change rate alarm mode, then the time information includes the historical time consumption value and the current time consumption value of the current task node within the preset time range; wherein, the historical time consumption value represents the historical operation duration of the task processed by the current task node, and the current time consumption value represents the current operation duration of the task processed by the current task node. Based on the time information, the current time limit information corresponding to the time limit alarm mode is determined, including: based on the historical time consumption value and the current time consumption value, the current time limit information corresponding to the preset time consumption change rate alarm mode is determined; wherein, the current time limit information corresponding to the preset time consumption change rate alarm mode represents the time consumption change rate of the task processed by the current task node.
4. The method according to claim 1, characterized in that, Sending the alarm message to the operating system includes: responding to a user's inspection command and displaying the current time limit information corresponding to the time limit alarm mode; wherein, the inspection command is used to instruct the display of the current time limit information corresponding to the time limit alarm mode; In response to the user's first confirmation command, the alarm message is sent to the operating system; wherein, the first confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is correct.
5. The method according to claim 4, characterized in that, The method further includes: In response to the user's second confirmation command, the alarm message is cancelled; wherein, the second confirmation command indicates that the current time limit information corresponding to the time limit alarm mode is incorrect.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: The system receives the analysis report results and adjusts the time limit threshold corresponding to the time limit alarm mode based on the analysis report results; wherein, the analysis report results are obtained by the operating system after receiving the alarm message and analyzing the preset field data in the automatic load information database.
7. The method according to any one of claims 1-5, characterized in that, The time limit type includes at least one of the following: Daily time limit, end-of-month time limit, end-of-quarter time limit, working day time limit, non-working day time limit.
8. A task time limit alarm device, characterized in that, The device includes: The acquisition unit is used to acquire the time information of the current job task node in the monitoring system; wherein, the current job task node includes batch task node, session task node and sub-task node; multiple sub-tasks form a session task; multiple session tasks form a batch task; the time information includes start time, end time and current time; The retrieval unit is used to retrieve an attribute configuration table and, based on the current task node, retrieve the attribute information of the current task node from the attribute configuration table; wherein, the attribute configuration table represents the mapping relationship between task nodes and attribute information; in the time limit configuration table, it retrieves the time limit alarm mode corresponding to the attribute information of the current task node; wherein, the time limit configuration table represents the mapping relationship between attribute information and time limit alarm mode, and obtains the time limit threshold corresponding to the time limit alarm mode; and, based on the time information, determines the current time limit information corresponding to the time limit alarm mode; wherein, the time limit alarm mode is determined based on the attribute information of the current task node; the attribute information includes the task type corresponding to the current task node and the time limit type to which the current task node belongs; the current time limit information represents the time progress of the current task node; The sending unit is configured to trigger an alarm message and send the alarm message to the operating system if the current time limit information corresponding to the time limit alarm mode is greater than the time limit threshold corresponding to the time limit alarm mode; wherein, the alarm message is used to determine the abnormal data information of the current job task.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Batch job monitoring method and device, equipment and medium
CN114500318A
Alarm time recommendation method and device, equipment and storage medium
CN115640194A
