A method, device, equipment and storage medium for determining event timeout status

By obtaining the duration and update duration in the event log, the timeout status of the event is determined, which solves the problem of the timeout status that cannot be determined in the existing technology and achieves accurate judgment of the event timeout status.

CN117290179BActive Publication Date: 2024-09-13BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311244278.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2024-09-13
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

In the prior art, it is impossible to determine the timeout status of an event through the state field of the event status. Especially when the event update time is not recorded in the log, it is impossible to accurately determine whether the event is in the timeout status.

Method used

Determine the timeout status of the event by obtaining the duration between the latest recorded data and the earliest recorded data in the event log and the current time, as well as the log update duration.

Benefits of technology

It is realized that even if the event update time is not recorded, the timeout status of the event can be accurately determined, thereby solving the problem of being unable to determine in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117290179B
    Figure CN117290179B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for determining the timeout status of an event. The method includes: obtaining a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time according to an event log; obtaining a log update duration when it is determined that the event log has changed; and determining the timeout status of the event according to the first duration, the second duration and the update duration. The timeout status of the event is accurately determined by obtaining the first duration between the time when the latest data is recorded and the current time, and the second duration between the time when the earliest data is recorded and the current time, so that even when the event update time is not recorded in the log, the timeout status of the event can still be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for determining an event timeout state. Background Art

[0002] In the prior art, when determining the event status, the state field in the log is usually used to determine the offline status, alarm status, and running status, but the timeout status cannot be determined through the state field.

[0003] Currently, the start time and duration corresponding to the event status recorded in the log are usually used to determine whether the event is in a timeout state. However, when the event update time is not recorded in the log, the timeout state of the event cannot be determined. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for determining the timeout state of an event, so as to realize accurate determination of the timeout state of an event.

[0005] According to a first aspect of the present invention, a method for determining an event timeout state is provided, comprising:

[0006] Acquire, according to the event log, a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time;

[0007] When it is determined that the event log has changed, the log update duration is obtained;

[0008] A timeout state of an event is determined according to the first duration, the second duration, and the update duration.

[0009] According to another aspect of the present invention, there is provided a device for determining an event timeout state, comprising:

[0010] An interval duration determination module, used to obtain, according to the event log, a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time;

[0011] A log update duration determination module, used to obtain the log update duration when it is determined that the event log has changed;

[0012] A timeout status determination module is used to determine the timeout status of an event according to the first duration, the second duration and the update duration.

[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention accurately determines the timeout status of an event by obtaining the first time length between the latest time when data is recorded and the current time, and the second time length between the earliest time when data is recorded and the current time. Therefore, even when the event update time is not recorded in the log, the timeout status of the event can still be judged.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 This is a flow chart of a method for adjusting a project log provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a method for adjusting a project log provided according to Embodiment 2 of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of a device for adjusting a project log provided in Embodiment 3 of the present invention;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 A flow chart of a method for determining an event timeout status is provided for embodiment 1 of the present invention. This embodiment is applicable to situations where an event timeout status is to be determined. The method can be executed by a device for determining an event timeout status, which can be implemented in the form of hardware and / or software.

[0029] like Figure 1 As shown, the method includes:

[0030] Step S101, obtaining, according to the event log, a first time length between the time when the latest data is recorded and the current time, and a second time length between the time when the earliest data is recorded and the current time.

[0031] Optionally, obtaining a first time duration between the moment when the latest data is recorded and the current moment, and a second time duration between the moment when the earliest data is recorded and the current moment according to the event log, includes: obtaining a first time duration corresponding to the latest data recorded from the event log, and determining a first time duration based on the current moment and the first time duration; obtaining a second time duration corresponding to the earliest data recorded from the event log, and determining a second time duration based on the current moment and the second time duration.

[0032] Specifically, in this embodiment, an event log is obtained, and relevant information during the event execution process is recorded in the event log. Therefore, in this embodiment, the first time corresponding to the latest recorded data is obtained from the event log, for example, 10:00. When the current time is 10:05, it can be determined that the first time interval between the time corresponding to the latest recorded data and the current time is 5 minutes. In addition, the second time corresponding to the earliest recorded data can also be obtained from the event log, for example, 9:50. When the current time is 10:05, it can be determined that the second time interval between the time corresponding to the earliest recorded data and the current time is 10 minutes. Of course, this embodiment is only an example, and does not limit the specific values ​​of the first time interval and the second time interval, as well as the specific acquisition method.

[0033] Step S102: when it is determined that the event log has changed, the log update duration is obtained.

[0034] Optionally, before obtaining the log update duration when it is determined that the event log has changed, it also includes: pre-setting a first preset threshold, wherein the first preset threshold is a fixed value; pre-setting and initializing a second preset threshold, wherein the second preset threshold is a dynamic value, and the initial value of the second preset threshold is greater than the first preset threshold.

[0035] Specifically, in this embodiment, a first preset threshold value is pre-set, such as 1200s. Of course, in this embodiment, it is only an example and does not limit the specific value of the first preset threshold value, and the set first preset threshold value is a fixed value. After the initial setting, the value remains unchanged. When the subsequent timeout state is determined, it is mainly based on the first preset threshold value for comparison and determination. In addition, in this embodiment, a second preset threshold value for initialization is also pre-set, and the initialization value of the second preset threshold value can be specifically set to 1210s. Of course, in this embodiment, it is only an example and does not limit the specific value of the second preset threshold value at the time of initialization. As long as the initialization value is greater than the first preset threshold value, it is within the protection scope of this application. And the second preset threshold value is a dynamic value, which can be adjusted according to the changes in the event log during the subsequent timeout state determination process.

[0036] Optionally, when it is determined that the event log has changed, the log update duration is obtained, including: obtaining a specified log with the same similar items from the event log, wherein the similar items include a name field and a task field; when it is determined that the fields under the similar items in the specified log have changed, obtaining the duration of the change of the specified log, and using the changed duration as the log update duration.

[0037] Among them, in this embodiment, the same type will be pre-set, for example, the name field and the task job field, so the specified log with the same fields as the above will be obtained from the event log, and then when it is determined that the content of other fields in the specified log has changed, it is determined that the specified log has changed, and according to the time when the specified log starts to change and the time when the change ends, the duration of the change of the specified log is obtained, so that the duration of the change is used as the log update duration. For example, it is determined that the specified log starts to change at 9:20 and ends at 10:00, then the log update duration is determined to be 2400s. Of course, this embodiment is only an example, and does not limit the specific value of the log update duration and the specific determination method.

[0038] Step S103: determining a timeout state of the event according to the first duration, the second duration, and the update duration.

[0039] Optionally, determining the timeout status of an event based on a first duration, a second duration, and an update duration includes: determining whether the first duration is greater than a first preset threshold, and if so, directly determining the timeout status of the event as a timeout; otherwise, determining the timeout status of the event based on the second duration and the update duration.

[0040] Optionally, determining the timeout status of the event based on the second duration and the update duration includes: judging whether the second duration is greater than a first preset threshold, and if so, determining the timeout status of the event based on the update duration; otherwise, determining that the timeout status of the event is not timed out.

[0041] Optionally, the timeout status of the event is determined based on the update duration, including: when it is determined that the event log has changed, using the log update duration to update the second preset threshold; judging whether the updated second preset threshold is greater than the first preset threshold, and if so, determining that the timeout status of the event is timeout; otherwise, determining that the timeout status of the event is not timeout.

[0042] In a specific implementation, first the first duration is compared with the first preset threshold, for example, 1200s. When the first duration is greater than 1200s, it is determined that the timeout state of the event is timeout, and at this time, it is explained that the timeout is caused by a fault. When the first duration is less than 1200s, it is continued to determine whether the second duration is greater than the first preset threshold. When it is determined that the second duration is greater than 1200s, it is determined that the timeout state of the event is not timeout, and at this time, it is explained that it is currently in a just-started state. When the second duration is less than 1200s, it is necessary to determine whether the event log is changed. Since the determination method for the change of the event log has been described in the above, it is not repeated in this embodiment. When it is determined that the event log has not changed, it is determined that there is no timeout, and it is determined that the current is a normal execution process. When it is determined that the event log has changed, the above-mentioned log update duration obtained is used to dynamically update the second preset threshold, and then it is determined whether the updated second preset threshold is greater than 1200s. When it is determined that it is greater than 1200s, it is determined that it is timeout, and at this time, it is explained that it has entered an endless loop. When it is determined that the updated second preset threshold is less than 1200s, it is determined that there is no timeout. Therefore, in this embodiment, when the log update duration is not recorded, the timeout state is determined by calculating the time between the current time and the time when the event log obtains the latest recorded data and the time when the earliest recorded data is obtained.

[0043] The embodiment of the present invention accurately determines the timeout status of an event by obtaining a first time length between the latest time when data is recorded and the current time, and a second time length between the earliest time when data is recorded and the current time. Thus, even when the event update time is not recorded in the log, the timeout status of the event can still be determined.

[0044] Embodiment 2

[0045] Figure 2 The flowchart of a method for determining an event timeout state provided in the second embodiment of the present invention is based on the above embodiment and further includes detecting the timeout state after determining the timeout state. Figure 2 As shown, the method includes:

[0046] Step S201, obtaining, according to the event log, a first time length between the time when the latest data is recorded and the current time, and a second time length between the time when the earliest data is recorded and the current time.

[0047] Optionally, obtaining a first time duration between the moment when the latest data is recorded and the current moment, and a second time duration between the moment when the earliest data is recorded and the current moment according to the event log, includes: obtaining a first time duration corresponding to the latest data recorded from the event log, and determining a first time duration based on the current moment and the first time duration; obtaining a second time duration corresponding to the earliest data recorded from the event log, and determining a second time duration based on the current moment and the second time duration.

[0048] Step S202: When it is determined that the event log has changed, the log update duration is obtained.

[0049] Optionally, before obtaining the log update duration when it is determined that the event log has changed, it also includes: pre-setting a first preset threshold, wherein the first preset threshold is a fixed value; pre-setting and initializing a second preset threshold, wherein the second preset threshold is a dynamic value, and the initial value of the second preset threshold is greater than the first preset threshold.

[0050] Optionally, when it is determined that the event log has changed, the log update duration is obtained, including: obtaining a specified log with the same similar items from the event log, wherein the similar items include a name field and a task field; when it is determined that the fields under the similar items in the specified log have changed, obtaining the duration of the change of the specified log, and using the changed duration as the log update duration.

[0051] Step S203: determining a timeout state of the event according to the first duration, the second duration, and the update duration.

[0052] Optionally, determining the timeout status of an event based on a first duration, a second duration, and an update duration includes: determining whether the first duration is greater than a first preset threshold, and if so, directly determining the timeout status of the event as a timeout; otherwise, determining the timeout status of the event based on the second duration and the update duration.

[0053] Optionally, determining the timeout status of the event based on the second duration and the update duration includes: judging whether the second duration is greater than a first preset threshold, and if so, determining the timeout status of the event based on the update duration; otherwise, determining that the timeout status of the event is not timed out.

[0054] Optionally, the timeout status of the event is determined based on the update duration, including: when it is determined that the event log has changed, using the log update duration to update the second preset threshold; judging whether the updated second preset threshold is greater than the first preset threshold, and if so, determining that the timeout status of the event is timeout; otherwise, determining that the timeout status of the event is not timeout.

[0055] Step S204: Detect the acquired timeout status.

[0056] Specifically, in this embodiment, after the timeout status of the event is obtained, it will be detected whether it matches the actual situation. For example, when the obtained timeout status is not timeout, but the device has indeed experienced a fault shutdown, it is obvious that the obtained timeout status is inconsistent with the actual situation, and an alarm message will be generated and a prompt will be given. Or when the obtained timeout status is timeout, but the device is in a state of just starting up, it is obvious that the obtained timeout status is also inconsistent with the actual situation, and an alarm message will also be generated and a prompt will be given. Of course, this embodiment is only an example, and does not limit the specific detection method of the timeout status.

[0057] It should be noted that in this embodiment, according to different error situations of timeout status judgment, an alarm prompt will be given in a specified manner, such as in the form of voice or image. As long as it can serve as a prompt to the user, it is within the scope of protection of this application and is not limited in this embodiment. By using an alarm prompt, it is convenient for the user to understand the actual situation of the timeout status judgment in a timely manner, and in the case of an error, the user is notified in time to maintain the device or update the software.

[0058] The embodiment of the present invention accurately determines the timeout status of an event by obtaining a first time length between the latest time when data is recorded and the current time, and a second time length between the earliest time when data is recorded and the current time. Thus, even when the event update time is not recorded in the log, the timeout status of the event can still be determined.

[0059] Embodiment 3

[0060] Figure 3 This is a schematic diagram of a device for determining an event timeout state provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: an interval duration determination module 310, a log update duration determination module 320 and a timeout state determination module 330.

[0061] The interval duration determination module 310 is used to obtain, according to the event log, a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time;

[0062] The log update duration determination module 320 is used to obtain the log update duration when it is determined that the event log has changed;

[0063] The timeout status determination module 330 is used to determine the timeout status of the event according to the first duration, the second duration and the update duration.

[0064] Optionally, an interval duration determination module is used to obtain the first moment corresponding to the latest recorded data from the event log, and determine the first duration according to the current moment and the first moment;

[0065] The second time corresponding to the earliest recorded data is obtained from the event log, and the second duration is determined according to the current time and the second time.

[0066] Optionally, the device further comprises a threshold determination module, configured to pre-set a first preset threshold, wherein the first preset threshold is a fixed value;

[0067] A second preset threshold is preset and initialized, wherein the second preset threshold is a dynamic value, and an initial value of the second preset threshold is greater than the first preset threshold.

[0068] Optionally, a log update duration determination module is used to obtain designated logs with the same similar items from the event log, wherein the similar items include a name field and a task field;

[0069] When it is determined that the fields under the same item in the specified log have changed, the time duration of the change of the specified log is obtained, and the time duration of the change is used as the log update time duration.

[0070] Optionally, a timeout state determination module is used to determine whether the first duration is greater than a first preset threshold, and if so, directly determine that the timeout state of the event is timeout;

[0071] Otherwise, the timeout status of the event is determined according to the second duration and the updated duration.

[0072] Optionally, a timeout status determination module is used to determine whether the second duration is greater than a first preset threshold, and if so, determine the timeout status of the event according to the updated duration;

[0073] Otherwise, the timeout status of the event is determined to be not timed out.

[0074] Optionally, a timeout state determination module is used to update the second preset threshold using the log update duration when it is determined that the event log has changed;

[0075] Determine whether the updated second preset threshold is greater than the first preset threshold, and if so, determine that the timeout state of the event is timeout;

[0076] Otherwise, the timeout status of the event is determined to be not timed out.

[0077] The device for determining the event timeout status provided in the embodiment of the present invention can execute the method for determining the event timeout status provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0078] Embodiment 4

[0079] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0080] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0081] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0082] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for determining an event timeout state.

[0083] In some embodiments, the method for determining the event timeout state may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for determining the event timeout state described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for determining the event timeout state in any other appropriate manner (e.g., by means of firmware).

[0084] Various implementations of the systems and techniques described above herein 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0085] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0086] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0087] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0088] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0089] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0090] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0091] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for determining an event timeout state, characterized in that: include: Acquire, according to the event log, a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time; When it is determined that the event log has changed, the log update duration is obtained; Determine a timeout state of an event according to the first duration, the second duration, and the log update duration; The method further comprises: after obtaining the timeout status of the event, detecting whether it matches the actual situation; if the obtained timeout status does not match the actual situation, generating an alarm message and giving a prompt; Wherein, before obtaining the log update duration when determining that the event log has changed, the method further includes: Presetting a first preset threshold, wherein the first preset threshold is a fixed value; Presetting an initial value of a second preset threshold, wherein the second preset threshold is a dynamic value, and the initial value of the second preset threshold is greater than the first preset threshold; The determining of the timeout state of the event according to the first duration, the second duration, and the log update duration includes: Determine whether the first duration is greater than the first preset threshold, and if so, directly determine that the timeout state of the event is timeout; Otherwise, determining the timeout status of the event according to the second duration and the log update duration; The determining the timeout state of the event according to the second duration and the log update duration includes: Determine whether the second duration is greater than the first preset threshold, and if so, determine the timeout state of the event according to the log update duration; Otherwise, determining the timeout status of the event as not timed out; Wherein, determining the timeout state of the event according to the log update duration includes: When it is determined that the event log has changed, the second preset threshold is updated using the log update duration; Determine whether the updated second preset threshold is greater than the first preset threshold, and if so, determine that the timeout state of the event is timeout; Otherwise, the timeout status of the event is determined to be not timed out.

2. The method according to claim 1, characterized in that The first time duration between the time when the latest recorded data is obtained from the event log and the current time, and the second time duration between the time when the earliest recorded data is obtained from the event log and the current time, include: Obtaining a first time corresponding to the latest recorded data from the event log, and determining the first duration according to the current time and the first time; A second time corresponding to the earliest recorded data is obtained from the event log, and the second duration is determined according to the current time and the second time.

3. The method according to claim 1, characterized in that: When determining that the event log has changed, obtaining the log update duration includes: Acquire a designated log with the same item of the same type from the event log, wherein the item of the same type includes a name field and a task field; When it is determined that a field under a similar item in the specified log has changed, the duration of the change of the specified log is obtained, and the duration of the change is used as the log update duration.

4. A device for determining an event timeout state, characterized in that: include: An interval duration determination module, used to obtain, according to the event log, a first duration between the time when the latest data is recorded and the current time, and a second duration between the time when the earliest data is recorded and the current time; A log update duration determination module, used to obtain the log update duration when it is determined that the event log has changed; A timeout status determination module, configured to determine a timeout status of an event according to the first duration, the second duration, and the log update duration; The device further comprises: an alarm information generating module, which is used to detect whether the acquired timeout status matches the actual situation after the timeout status of the event is acquired; if the acquired timeout status does not match the actual situation, an alarm information is generated and a prompt is given; The device further comprises a threshold determination module, which is used to pre-set a first preset threshold, wherein the first preset threshold is a fixed value; Presetting an initial value of a second preset threshold, wherein the second preset threshold is a dynamic value, and the initial value of the second preset threshold is greater than the first preset threshold; The timeout state determination module is used to determine whether the first duration is greater than a first preset threshold value, and if so, directly determine that the timeout state of the event is timeout; Otherwise, determining the timeout status of the event according to the second duration and the log update duration; The step of determining the timeout state of the event according to the second duration and the log update duration includes: Determine whether the second duration is greater than the first preset threshold, and if so, determine the timeout state of the event according to the log update duration; Otherwise, the timeout status of the event is determined to be not timed out; Wherein, the timeout state determination module is further used to update the second preset threshold value using the log update duration when it is determined that the event log has changed; Determine whether the updated second preset threshold is greater than the first preset threshold, and if so, determine that the timeout state of the event is timeout; Otherwise, the timeout status of the event is determined to be not timed out.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 3 when executed.