CN117290179A - Method, device, equipment and storage medium for determining event timeout state - Google Patents
Method, device, equipment and storage medium for determining event timeout state Download PDFInfo
- Publication number
- CN117290179A CN117290179A CN202311244278.9A CN202311244278A CN117290179A CN 117290179 A CN117290179 A CN 117290179A CN 202311244278 A CN202311244278 A CN 202311244278A CN 117290179 A CN117290179 A CN 117290179A
- Authority
- CN
- China
- Prior art keywords
- event
- log
- determining
- time
- time length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000008859 change Effects 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for determining an event timeout state. Comprising the following steps: acquiring a first time length between the latest recorded data moment and the current moment and a second time length between the earliest recorded data moment and the current moment according to an event log; acquiring log updating time length when the event log is determined to change; and determining the overtime state of the event according to the first time length, the second time length and the updating time length. The overtime state of the event is accurately determined by acquiring the first time length between the latest recorded data moment and the current moment and the second time length between the earliest recorded data moment and the current moment, so that the overtime state of the event can be judged even if the event updating time is not recorded in the log.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining an event timeout state.
Background
In the prior art, when judging an event state, a field state in a log is generally adopted to determine an offline state, an alarm state and an operation state, but for a timeout state, judgment cannot be performed through a state field.
At present, whether an event is in a timeout state is generally determined by adopting a starting time and a duration corresponding to the event state recorded in a log, but when the event update time is not recorded in the log, the timeout state of the event cannot be determined.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for determining an event timeout state, which are used for accurately judging the event timeout state.
According to a first aspect of the present invention, there is provided a method for determining an event timeout state, comprising:
acquiring a first time length between the latest recorded data moment and the current moment and a second time length between the earliest recorded data moment and the current moment according to an event log;
acquiring log updating time length when the event log is determined to change;
and determining the overtime state of the event according to the first time length, the second time length and the updating time length.
According to another aspect of the present invention, there is provided an event timeout state determining apparatus, including:
the interval duration determining module is used for obtaining a first duration between the time of the latest recorded data and the current time and a second duration between the time of the earliest recorded data and the current time according to the event log;
the log update duration determining module is used for obtaining log update duration when determining that the event log changes;
and the timeout state determining module is used for determining the timeout state of the event according to the first time length, the second time length and the updating time length.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present invention.
According to another aspect of the invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform the method according to any of the embodiments of the invention.
According to the technical scheme, the overtime state of the event is accurately determined by acquiring the first time length between the latest recorded data moment and the current moment and the second time length between the earliest recorded data moment and the current moment, so that the overtime state of the event can be judged even if the event updating time is not recorded in the log.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for adjusting project logs according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for adjusting an item log according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a device for adjusting project logs according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for determining an event timeout state according to an embodiment of the present invention, where the method may be performed by a device for determining an event timeout state, and the device may be implemented in hardware and/or software.
As shown in fig. 1, the method includes:
step S101, obtaining a first time length between the latest recorded data and the current time and a second time length between the earliest recorded data and the current time according to the event log.
Optionally, acquiring, according to the event log, a first duration between a time of the latest recorded data and a current time, and a second duration between a time of the earliest recorded data and the current time, including: acquiring a first time corresponding to latest recorded data from an event log, and determining a first duration according to the current time and the first time; and acquiring a second time corresponding to the earliest recorded data from the event log, and determining a second time length according to the current time and the second time.
Specifically, in this embodiment, the event log is obtained, and the related information during the execution of the event is recorded in the event log, so in this embodiment, the first time corresponding to the latest recorded data is obtained from the event log, for example, 10:00, and at the current time of 10:05, it can be determined that the first time length of the interval between the time corresponding to the latest recorded data and the current time is 5min. In addition, a second time corresponding to the earliest recorded data may be obtained from the event log, for example, 9:50, and if the current time is 10:05, it may be determined that the second time interval between the time corresponding to the earliest recorded data and the current time is 10min. Of course, this embodiment is merely illustrative, and specific values of the first duration and the second duration, and specific acquisition manners are not limited.
Step S102, acquiring a log updating time length when determining that the event log changes.
Optionally, before acquiring the log update duration when determining that the event log changes, the method further includes: presetting a first preset threshold, wherein the first preset threshold is a fixed value; presetting 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 larger than the first preset threshold.
Specifically, in this embodiment, a first preset threshold is preset, for example, 1200s, which is only illustrated and not limited in this embodiment, and the preset threshold is a fixed value, and the value is kept unchanged after the initial setting, and the comparison and the determination are mainly based on the first preset threshold in the subsequent timeout state determination. In addition, in this embodiment, a second preset threshold value is also preset for initialization, and the initialization value of the second preset threshold value may specifically be set to 1210s, which is, of course, only illustrative in this embodiment, but not limited to a specific value during initialization of the second preset threshold value, and if the initialization value is greater than the first preset threshold value, the initialization value is within the protection scope of the present application. The second preset threshold is a dynamic value, and can be adjusted according to the change condition of the event log in the subsequent judging process of the overtime state.
Optionally, when determining that the event log changes, acquiring the log update duration includes: acquiring a specified log with the same similar items from the event log, wherein the similar items comprise a name field and a task field; when the field under the similar item in the appointed log is determined to change, acquiring the time length of the change of the appointed log, and taking the time length of the change as the log updating time length.
In this embodiment, the same type is preset, for example, a name field and a task job field, so that the same specified log of the fields is obtained from the event log, then when it is determined that the contents of other fields in the specified log change, it is determined that the specified log changes, and according to the time when the specified log starts to change and the time when the specified log ends to change, the time when the specified log changes is obtained, so that the time when the specified log changes is taken as the log update time, for example, it is determined that the specified log starts to change at 9:20, and when the specified log ends to change at 10:00, it is determined that the log update time is 2400s. Of course, this embodiment is merely illustrative, and the specific numerical value and specific determination manner of the log update time period are not limited.
Step S103, determining the overtime state of the event according to the first time length, the second time length and the updating time length.
Optionally, determining the timeout state of the event according to the first duration, the second duration, and the update duration includes: judging whether the first time length is larger than a first preset threshold value, if so, directly determining that the overtime state of the event is overtime; otherwise, determining the overtime state of the event according to the second time length and the updating time length.
Optionally, determining the timeout state of the event according to the second duration and the update duration includes: judging whether the second time length is greater than a first preset threshold value, if so, determining the overtime state of the event according to the updated time length; otherwise, determining that the overtime state of the event is not overtime.
Optionally, determining the timeout state of the event according to the update duration includes: when the event log is determined to change, updating a second preset threshold value by adopting log updating time length; judging whether the updated second preset threshold value is larger than the first preset threshold value, if so, determining that the overtime state of the event is overtime; otherwise, determining that the overtime state of the event is not overtime.
In one embodiment, the first duration is first compared to a first predetermined threshold, e.g., 1200s, and when the first duration is greater than 1200s, the timeout state of the event is determined to be timeout, which indicates that the timeout occurred due to the occurrence of the fault. And when the first time length is less than 1200s, continuously judging whether the second time length is greater than a first preset threshold value, and when the second time length is greater than 1200s, determining that the overtime state of the event is not overtime, and indicating that the current power-on state is right. When the second duration is less than 1200s, it is necessary to determine whether the event log is transformed, and since the determination manner about the change of the event log has been described above, a detailed description is omitted in this embodiment. When it is determined that no change has occurred in the event log, it is determined that there is no timeout and it is determined that the process is currently being executed normally. When the event log is determined to change, the obtained log updating time length is adopted to dynamically update the second preset threshold value, then whether the updated second preset threshold value is larger than 1200s is judged, when the event log is determined to be larger than 1200s, the time-out is determined, and at the moment, the dead cycle is indicated to be entered. And when the updated second preset threshold value is determined to be smaller than 1200s, determining not to timeout. Therefore, in the present embodiment, when the log update time period is not recorded, the time-out state is determined by calculating the time period between the current time and the time when the event log acquires the latest recorded data and the time when the event log acquires the earliest recorded data.
According to the embodiment of the invention, the overtime state of the event is accurately determined by acquiring the first time length between the latest recorded data moment and the current moment and the second time length between the earliest recorded data moment and the current moment, so that the overtime state of the event can be judged even if the event updating time is not recorded in the log.
Example two
Fig. 2 is a flowchart of a method for determining an event timeout condition according to a second embodiment of the present invention, where the method further includes detecting the timeout condition after determining the timeout condition based on the foregoing embodiment. As shown in fig. 2, the method includes:
step S201, obtaining a first duration between the latest recorded data time and the current time and a second duration between the earliest recorded data time and the current time according to the event log.
Optionally, acquiring, according to the event log, a first duration between a time of the latest recorded data and a current time, and a second duration between a time of the earliest recorded data and the current time, including: acquiring a first time corresponding to latest recorded data from an event log, and determining a first duration according to the current time and the first time; and acquiring a second time corresponding to the earliest recorded data from the event log, and determining a second time length according to the current time and the second time.
Step S202, acquiring a log updating time length when determining that the event log changes.
Optionally, before acquiring the log update duration when determining that the event log changes, the method further includes: presetting a first preset threshold, wherein the first preset threshold is a fixed value; presetting 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 larger than the first preset threshold.
Optionally, when determining that the event log changes, acquiring the log update duration includes: acquiring a specified log with the same similar items from the event log, wherein the similar items comprise a name field and a task field; when the field under the similar item in the appointed log is determined to change, acquiring the time length of the change of the appointed log, and taking the time length of the change as the log updating time length.
Step S203, determining the overtime state of the event according to the first time length, the second time length and the update time length.
Optionally, determining the timeout state of the event according to the first duration, the second duration, and the update duration includes: judging whether the first time length is larger than a first preset threshold value, if so, directly determining that the overtime state of the event is overtime; otherwise, determining the overtime state of the event according to the second time length and the updating time length.
Optionally, determining the timeout state of the event according to the second duration and the update duration includes: judging whether the second time length is greater than a first preset threshold value, if so, determining the overtime state of the event according to the updated time length; otherwise, determining that the overtime state of the event is not overtime.
Optionally, determining the timeout state of the event according to the update duration includes: when the event log is determined to change, updating a second preset threshold value by adopting log updating time length; judging whether the updated second preset threshold value is larger than the first preset threshold value, if so, determining that the overtime state of the event is overtime; otherwise, determining that the overtime state of the event is not overtime.
Step S204, detecting the obtained timeout state.
Specifically, in this embodiment, after the timeout state of the event is obtained, it is detected whether the event matches the actual situation. For example, when the obtained timeout state is not timeout, but the equipment does have a fault shutdown condition, it is obvious that the obtained timeout state is inconsistent with the actual condition, and at this time, alarm information is generated and prompted. Or when the obtained timeout state is timeout, but the equipment is in the just-started state, the obtained timeout state is obviously not in accordance with the actual situation, and at the moment, alarm information is also generated and prompted. Of course, this embodiment is merely illustrative, and the specific detection mode of the timeout condition is not limited.
In the present embodiment, the alarm is presented in a specific manner according to the error condition determined by the different timeout conditions, for example, in the form of voice or in the form of an image, and the present embodiment is not limited as long as the user can be presented. By adopting the alarm prompt, the user can know the actual condition of overtime state judgment in time, and can be informed of the maintenance of the equipment or the update of the software in time under the condition of error judgment.
According to the embodiment of the invention, the overtime state of the event is accurately determined by acquiring the first time length between the latest recorded data moment and the current moment and the second time length between the earliest recorded data moment and the current moment, so that the overtime state of the event can be judged even if the event updating time is not recorded in the log.
Example III
Fig. 3 is a schematic structural diagram of an apparatus for determining an event timeout status according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: an interval duration determination module 310, a log update duration determination module 320, and a timeout state determination module 330.
An interval duration determining module 310, configured to obtain, according to the event log, a first duration between a time of the latest record data and a current time, and a second duration between a time of the earliest record data and the current time;
the log update duration determining module 320 is configured to obtain a log update duration when it is determined that the event log changes;
the timeout state determining module 330 is configured to determine a timeout state of the event according to the first duration, the second duration, and the update duration.
Optionally, the interval duration determining module is configured to obtain a first time corresponding to the latest record data from the event log, and determine a first duration according to the current time and the first time;
and acquiring a second time corresponding to the earliest recorded data from the event log, and determining a second time length according to the current time and the second time.
Optionally, the device further includes a threshold determining module, configured to preset a first preset threshold, where the first preset threshold is a fixed value;
presetting 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 larger than the first preset threshold.
Optionally, the log updating duration determining module is configured to obtain, from the event log, a specified log with the same similar items, where the similar items include a name field and a task field;
when the field under the similar item in the appointed log is determined to change, acquiring the time length of the change of the appointed log, and taking the time length of the change as the log updating time length.
Optionally, the timeout state determining module is configured to determine whether the first time length is greater than a first preset threshold, and if yes, directly determine that the timeout state of the event is timeout;
otherwise, determining the overtime state of the event according to the second time length and the updating time length.
Optionally, the timeout state determining module is configured to determine whether the second duration is greater than a first preset threshold, and if yes, determine a timeout state of the event according to the update duration;
otherwise, determining that the overtime state of the event is not overtime.
Optionally, the timeout state determining module is configured to update the second preset threshold value by using a log update duration when determining that the event log changes;
judging whether the updated second preset threshold value is larger than the first preset threshold value, if so, determining that the overtime state of the event is overtime;
otherwise, determining that the overtime state of the event is not overtime.
The device for determining the event overtime state provided by the embodiment of the invention can execute the method for determining the event overtime state provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may 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 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various 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, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the determination of event timeout status.
In some embodiments, the method of determining the event timeout status may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above-described method of determining an event timeout condition may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of determining the event timeout state in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for determining an event timeout condition, comprising:
acquiring a first time length between the latest recorded data moment and the current moment and a second time length between the earliest recorded data moment and the current moment according to an event log;
acquiring log updating time length when the event log is determined to change;
and determining the overtime state of the event according to the first time length, the second time length and the updating time length.
2. The method of claim 1, wherein the obtaining a first time period between a time of the latest recorded data and a current time and a second time period between a time of the earliest recorded data and the current time according to the event log comprises:
acquiring a first time corresponding to latest recorded data from the event log, and determining the first duration according to the current time and the first time;
and acquiring a second time corresponding to the earliest recorded data from the event log, and determining the second time according to the current time and the second time.
3. The method of claim 1, wherein prior to obtaining a log update duration when the event log is determined to change, further comprising:
presetting a first preset threshold, wherein the first preset threshold is a fixed value;
presetting 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 larger than the first preset threshold.
4. The method of claim 3, wherein the obtaining a log update duration when it is determined that the event log has changed comprises:
obtaining the same appointed log of the same kind of items from the event log, wherein the same kind of items comprise a name field and a task field;
when the field under the similar item in the appointed log is determined to change, acquiring the time length of the change of the appointed log, and taking the time length of the change as the log updating time length.
5. The method of claim 4, wherein the determining a timeout state for an event based on the first duration, the second duration, and the update duration comprises:
judging whether the first time length is larger than the first preset threshold value, if so, directly determining that the overtime state of the event is overtime;
otherwise, determining the overtime state of the event according to the second duration and the updating duration.
6. The method of claim 5, wherein said determining a timeout state for an event based on said second time period and said update time period comprises:
judging whether the second time length is greater than the first preset threshold value, if so, determining the overtime state of the event according to the updating time length;
otherwise, determining the overtime state of the event as not overtime.
7. The method of claim 6, wherein determining a timeout state for an event based on the update duration comprises:
when the event log is determined to change, updating the second preset threshold value by adopting the log updating time length;
judging whether the updated second preset threshold value is larger than the first preset threshold value, if so, determining that the overtime state of the event is overtime;
otherwise, determining the overtime state of the event as not overtime.
8. An apparatus for determining an event timeout condition, comprising:
the interval duration determining module is used for obtaining a first duration between the time of the latest recorded data and the current time and a second duration between the time of the earliest recorded data and the current time according to the event log;
the log update duration determining module is used for obtaining log update duration when determining that the event log changes;
and the timeout state determining module is used for determining the timeout state of the event according to the first time length, the second time length and the updating time length.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311244278.9A CN117290179B (en) | 2023-09-25 | 2023-09-25 | Method, device, equipment and storage medium for determining event timeout state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311244278.9A CN117290179B (en) | 2023-09-25 | 2023-09-25 | Method, device, equipment and storage medium for determining event timeout state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117290179A true CN117290179A (en) | 2023-12-26 |
CN117290179B CN117290179B (en) | 2024-09-13 |
Family
ID=89243903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311244278.9A Active CN117290179B (en) | 2023-09-25 | 2023-09-25 | Method, device, equipment and storage medium for determining event timeout state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117290179B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933843A (en) * | 2015-12-29 | 2017-07-07 | 阿里巴巴集团控股有限公司 | database heartbeat detecting method and device |
JP2020137098A (en) * | 2019-02-26 | 2020-08-31 | 富士通株式会社 | Abnormality detection program, abnormality detection method, and abnormality detection device |
CN111722973A (en) * | 2019-03-20 | 2020-09-29 | 顺丰科技有限公司 | Event timeout monitoring method, system and storage medium |
CN115190157A (en) * | 2022-07-08 | 2022-10-14 | 济南浪潮数据技术有限公司 | RPC timeout mechanism setting method, device, equipment and medium |
CN115880110A (en) * | 2022-12-19 | 2023-03-31 | 北京世纪好未来教育科技有限公司 | Job task monitoring method and device, electronic equipment and storage medium |
CN116342087A (en) * | 2021-12-20 | 2023-06-27 | 航天信息股份有限公司 | Event processing method and device and electronic equipment |
-
2023
- 2023-09-25 CN CN202311244278.9A patent/CN117290179B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933843A (en) * | 2015-12-29 | 2017-07-07 | 阿里巴巴集团控股有限公司 | database heartbeat detecting method and device |
JP2020137098A (en) * | 2019-02-26 | 2020-08-31 | 富士通株式会社 | Abnormality detection program, abnormality detection method, and abnormality detection device |
CN111722973A (en) * | 2019-03-20 | 2020-09-29 | 顺丰科技有限公司 | Event timeout monitoring method, system and storage medium |
CN116342087A (en) * | 2021-12-20 | 2023-06-27 | 航天信息股份有限公司 | Event processing method and device and electronic equipment |
CN115190157A (en) * | 2022-07-08 | 2022-10-14 | 济南浪潮数据技术有限公司 | RPC timeout mechanism setting method, device, equipment and medium |
CN115880110A (en) * | 2022-12-19 | 2023-03-31 | 北京世纪好未来教育科技有限公司 | Job task monitoring method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117290179B (en) | 2024-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113468021B (en) | Method, device, equipment and storage medium for monitoring performance data | |
CN116545905A (en) | Service health detection method and device, electronic equipment and storage medium | |
CN117290179B (en) | Method, device, equipment and storage medium for determining event timeout state | |
CN115426287B (en) | System monitoring and optimizing method and device, electronic equipment and medium | |
CN115168154B (en) | Abnormal log detection method, device and equipment based on dynamic baseline | |
CN116450176A (en) | Version updating method and device, electronic equipment and storage medium | |
CN113590287B (en) | Task processing method, device, equipment, storage medium and scheduling system | |
CN115309730A (en) | Data auditing method and device, electronic equipment and storage medium | |
CN113139891A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN116719621B (en) | Data write-back method, device, equipment and medium for mass tasks | |
CN115563015B (en) | Code heat statistics method, device, equipment and storage medium | |
CN116302796A (en) | Process monitoring method and device, electronic equipment and storage medium | |
CN117540240A (en) | Water use abnormality detection method and device, electronic equipment and storage medium | |
CN116302370A (en) | Method, device, equipment and medium for generating return code abnormality alarm | |
CN118261664A (en) | Order state processing method, device, equipment and storage medium | |
CN117271289A (en) | Webpage monitoring method, device, equipment and storage medium | |
CN117632027A (en) | Disk space processing method, device, equipment and storage medium | |
CN115794475A (en) | Container abnormity detection method, device, equipment and storage medium | |
CN118018405A (en) | Upgrading method and device of Internet of things equipment, server and storage medium | |
CN117609801A (en) | Data comparison method, device, equipment and medium | |
CN118502797A (en) | Alarm method, device, equipment and medium of application program package | |
CN118377677A (en) | Multi-server process monitoring method and device, electronic equipment and storage medium | |
CN115955189A (en) | Method, device, equipment and medium for detecting power generation abnormity | |
CN116975653A (en) | Sample information determining method and device, electronic equipment and storage medium | |
CN116795260A (en) | Full selection method, device, equipment and medium based on elementUI |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |