Device status monitoring method, device, computer equipment and storage medium
By receiving and assembling the collected data from terminal equipment, it determines whether the collection time is abnormal and updates the latest collection time in the database. This solves the problem of data acquisition time in the big data system and improves system performance and processing capabilities.
Patent Information
- Application Number
- CN202111678955.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In big data systems, the data collection time of terminal devices is limited by database insertion and query performance bottlenecks, resulting in increased delays and affecting system performance.
By receiving the current collection data of the terminal device from the message component, assembling the time chain data, judging whether the collection time is abnormal according to the preset exception judgment rules, and updating the latest collection time in the database under non-abnormal circumstances to reduce the data acquisition time.
It improves the ability to process massive data, reduces database overhead, shortens the data acquisition time of terminal equipment, and improves system performance.
Smart Images

Figure CN114500315B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data equipment monitoring, and in particular to an equipment status monitoring method, device, computer equipment and storage medium. Background Art
[0002] In a big data system, the database is connected to a large number of terminal devices and acquires the collected data of the terminal devices at regular intervals. Limited by the database insertion and query performance bottleneck, there is a certain delay in the collected data of the terminal devices acquired by the database. The longer the timing interval, the lower the performance bottleneck, and the longer it takes to acquire the collected data of the terminal devices. Summary of the invention
[0003] Based on this, it is necessary to provide a device status monitoring method, device, computer equipment and storage medium to address the above technical problems, so as to reduce the time required for acquiring data collected by terminal devices.
[0004] A device status monitoring method, comprising:
[0005] Receive current collected data of the terminal device from the message component;
[0006] Acquire historical collected data of the terminal device, and assemble time chain data according to the current collected data and the historical collected data;
[0007] Determine whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule;
[0008] If the collection time of the target collection data is not in an abnormal period, the latest data collection time of the terminal device in the database is updated according to the collection time of the target collection data.
[0009] A device for monitoring equipment status, comprising:
[0010] A collection data receiving module is used to receive the current collection data of the terminal device from the message component;
[0011] A time chain data assembly module is used to obtain the historical collection data of the terminal device and assemble the time chain data according to the current collection data and the historical collection data;
[0012] An abnormality judgment module, used to judge whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule;
[0013] The updating module is used to update the latest data collection time of the terminal device in the database according to the collection time of the target collection data if the collection time of the target collection data is not in an abnormal period.
[0014] A computer device comprises a memory, a processor and computer-readable instructions stored in the memory and executable on the processor, wherein the device status monitoring method is implemented when the processor executes the computer-readable instructions.
[0015] One or more readable storage media storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the device status monitoring method as described above.
[0016] The present invention can improve the ability to process massive data through message components, and at the same time, make abnormal judgments on the current collected data before storage, saving database overhead. The present invention can reduce the acquisition time of the collected data of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 is a schematic diagram of an application environment of a device status monitoring method in one embodiment of the present invention;
[0019] Figure 2 It is a flow chart of a method for monitoring device status in one embodiment of the present invention;
[0020] Figure 3 is a structural schematic diagram of a device status monitoring device in one embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0023] The device status monitoring method provided in this embodiment can be applied in Figure 1In an application environment, a client communicates with a server. The client includes but is not limited to various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server can be implemented with an independent server or a server cluster consisting of multiple servers.
[0024] In one embodiment, if Figure 2 As shown, a device status monitoring method is provided, which is applied in Figure 1 The server in is taken as an example to illustrate, including the following steps S10-S40.
[0025] S10. Receive current collected data of the terminal device from the message component.
[0026] Understandably, the terminal device may be a surveillance camera, a car sensor device, etc. The currently collected data may be data collected by the terminal device, such as face data, vehicle location data, etc. In particular, the currently collected data includes the identifier of the terminal device and the collection time of the collected data.
[0027] The current collected data can be received through the message component. The message component is suitable for large-volume throughput and can improve the storage and reading performance of the current collected data.
[0028] Optionally, the message component is a distributed publish-subscribe message component.
[0029] Understandably, the message component can be a distributed publish-subscribe message component, such as a Kafka component. The Kafka component temporarily stores the collected data of the terminal device, which meets the high throughput requirements of multiple terminal devices and can significantly improve the storage and reading performance of the collected data.
[0030] S20: Acquire historical collected data of the terminal device, and assemble time chain data according to the current collected data and the historical collected data.
[0031] Understandably, the historical collected data of the terminal device refers to the collected data previously collected by the terminal device. In some examples, the historical collected data includes collected data at n-1 time points. Time chain data can be assembled according to the current collected data and the historical collected data. The time chain data can include n time points. In one example, the time chain data can be represented as: t1; t2; t3; ...; t n Among them, t n The collection time of the current data collection.
[0032] S30. Determine whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule.
[0033] Understandably, the preset exception judgment rules can be set according to actual needs. Different terminal devices may have the same or different preset exception judgment rules. The preset exception judgment rules can be used to determine whether the collection time of the target collection data in the time chain data is in an abnormal period. Here, the target collection data may be current collection data or historical collection data.
[0034] Optionally, step S30, i.e., judging whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule, includes:
[0035] S301, determining whether the time difference between the acquisition time of the target acquisition data and the acquisition time of the previous acquisition data in the time chain data is greater than a preset time threshold, the previous acquisition data being the previous acquisition data of the target acquisition data;
[0036] S302: If the time difference between the collection time of the target collection data and the collection time of the previous collection data is greater than a preset time threshold, it is determined that the collection time of the collection data of the target collection data is in an abnormal period;
[0037] S303: If the time difference between the collection time of the target collection data and the collection time of the previous collection data is not greater than a preset time threshold, determine that the collection time of the collection data of the target collection data is not in an abnormal period.
[0038] It is understandable that the preset time threshold can be set according to actual needs, such as 10 minutes. The preset time thresholds of different terminal devices can be the same or different. The previous collection data is the last collection data of the target collection data.
[0039] If the time difference between the collection time of the target collection data and the collection time of the previous collection data is too long and greater than the preset time threshold, it means that the terminal device has a data missing problem between the collection time of the target collection data and the collection time of the previous collection data. Therefore, this period of time can be marked as an abnormal period, and at the same time, it is determined that the collection time of the target collection data is in an abnormal period.
[0040] If the time difference between the target data collection time and the last collection time is small, less than or equal to the preset time threshold, it means that the terminal device collects data normally between the target data collection time and the last collection time. Therefore, this period can be marked as a normal period, that is, it is determined that the target data collection time is not in an abnormal period.
[0041] S40: If the collection time of the target collection data is not in an abnormal period, the latest data collection time of the terminal device in the database is updated according to the collection time of the target collection data.
[0042] Understandably, if the collection time of the target collection data is not in an abnormal period, the collection time of the target collection data can be used to update the database. That is, the latest collection time of the terminal device in the database is updated to the collection time of the target collection data. Here, since it has been determined in advance whether the collection time of the collection data is abnormal, the database does not need to be rechecked, which greatly saves the computing resources of the database.
[0043] This embodiment can improve the ability to process massive data through the message component, and at the same time, perform abnormality judgment on the collected data before storage, saving database overhead.
[0044] Optionally, after step S30, that is, judging whether the collection time of the target collection data in the time chain data is after the abnormal period according to the preset abnormality judgment rule, the method further includes:
[0045] S41, if the collection time of the target collection data is in an abnormal period, determine whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition;
[0046] S42: If the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition, update the abnormal state period of the terminal device in the database according to the collection time of the target collection data.
[0047] Understandably, if the collection time of the collected data is in an abnormal period, it is necessary to determine whether the current abnormal period and the historical abnormal period meet the merging conditions. In some examples, the historical abnormal period can be a previous abnormal period in the time chain data, or a previous abnormal period outside the time chain data. The merging conditions can be set according to actual needs. If the abnormality of the terminal device lasts for a long time, the repeated marking of the abnormal period can be reduced by merging conditions.
[0048] If the abnormal period and the historical abnormal period of the terminal device do not meet the merging conditions, the abnormal state period of the terminal device in the database is updated according to the collection time of the target collection data. That is, the latest collection time of the terminal device in the database is updated to the current collection time, and the abnormal state period of the terminal device is added. Here, the abnormal data is marked by judging whether the collection time of the collection data is abnormal, and the database does not need to be re-checked, which greatly saves the computing resources of the database.
[0049] Optionally, after step S41, that is, if the collection time of the target collection data is in an abnormal period, after determining whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition, the method further includes:
[0050] S43: if the abnormal period and the historical abnormal period of the terminal device meet the merging condition, merge the abnormal period and the historical abnormal period to generate an abnormal merged period;
[0051] S44. Update the abnormal state period of the terminal device in the database according to the abnormal merging period.
[0052] Understandably, if the abnormal period and the historical abnormal period of the terminal device meet the merging conditions, the abnormal period and the historical abnormal period are merged to generate the abnormal merged period. Then, the abnormal state period of the terminal device in the database is updated according to the abnormal merged period. That is, the latest acquisition time of the terminal device in the database is updated to the current acquisition time, and the last abnormal period of the terminal device is replaced with the abnormal merged period. Here, the latest acquisition time and abnormal period of the terminal device can be recorded to reduce the repeated marking of the abnormal period.
[0053] Optionally, step S41, that is, if the collection time of the target collection data is in an abnormal period, determining whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition, includes:
[0054] S411, determining whether the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period;
[0055] S412: If the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period, it is determined that the abnormal period and the historical abnormal period of the terminal device meet the merging condition;
[0056] S413: If the first starting time point of the abnormal period is different from the second starting time point of the historical abnormal period, it is determined that the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition.
[0057] Understandably, it is possible to determine whether the abnormal period and the historical abnormal period meet the merging condition by judging whether the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period. If the first starting time point is the same as the second starting time point, it means that the terminal device has a continuous failure since the first starting time point and cannot send the collected data normally. Therefore, it can be determined that the abnormal period and the historical abnormal period of the terminal device meet the merging condition.
[0058] If the first starting time point of the abnormal period is different from the second starting time point of the historical abnormal period, it means that the terminal device has intermittent failures since the first starting time point, but the sending time interval exceeds the preset time threshold. Therefore, it can be determined that the abnormal period and the historical abnormal period of the terminal device do not meet the merging conditions.
[0059] Optionally, also include:
[0060] S11, obtaining current collection data of all terminal devices at preset time intervals;
[0061] S12: if the current collection data of the designated terminal device is an empty set, setting the abnormal time of the terminal device according to the acquisition time of the current collection data;
[0062] S13. Update the abnormal state period of the terminal device in the database according to the abnormal time.
[0063] Understandably, for a terminal device that has not collected data, the database has no abnormal records, so it is necessary to regularly supplement these abnormal records. The collected data of all terminal devices can be obtained at a preset time interval. The preset time interval can be set according to actual needs. The longer the preset time interval, the fewer times the database is calculated, and the smaller the database overhead.
[0064] The designated terminal device can be any terminal device among all terminal devices. If the current collection data of the designated terminal device is an empty set, it means that the terminal device has a fault and cannot submit the current collection data normally. At this time, the time when the current collection data (empty set) is obtained can be set as the abnormal time of the designated terminal device. At the same time, the abnormal status period of the terminal device in the database is updated according to the abnormal time. For example, the last collection time of the designated terminal device is 1:00, the current abnormal time is 8:00, the preset time interval is 1 hour, and the last abnormal record of the designated terminal device is: it has been abnormal for 6 hours, then the abnormal record of the designated terminal device can be updated to: it has been abnormal for 7 hours.
[0065] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0066] In one embodiment, a device status monitoring apparatus is provided, which corresponds one-to-one to the device status monitoring method in the above embodiment. Figure 3 As shown, the device status monitoring device includes a receiving and collecting data module 10, an assembling time chain data module 20, an abnormality judgment module 30 and an updating module 40. The detailed description of each functional module is as follows:
[0067] The module 10 for receiving collected data is used to receive the current collected data of the terminal device from the message component;
[0068] The module 20 for assembling time chain data is used to obtain the historical collected data of the terminal device and assemble the time chain data according to the current collected data and the historical collected data;
[0069] An abnormality judgment module 30, used to judge whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule;
[0070] The updating module 40 is configured to update the latest data collection time of the terminal device in the database according to the collection time of the target collection data if the collection time of the target collection data is not in an abnormal period.
[0071] Optionally, the equipment status monitoring device further includes:
[0072] A merging judgment module, used for judging whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition if the collection time of the target collection data is in an abnormal period;
[0073] The abnormal period updating module is used to update the abnormal state period of the terminal device in the database according to the collection time of the target collection data if the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition.
[0074] Optionally, the equipment status monitoring device further includes:
[0075] A merging time period module, configured to merge the abnormal time period and the historical abnormal time period of the terminal device to generate an abnormal merged time period if the abnormal time period and the historical abnormal time period of the terminal device meet a merging condition;
[0076] The abnormal merging period updating module is used to update the abnormal state period of the terminal device in the database according to the abnormal merging period.
[0077] Optionally, the abnormality judgment module 30 includes:
[0078] A time difference judgment unit, used to judge whether the time difference between the acquisition time of the target acquisition data and the acquisition time of the previous acquisition data in the time chain data is greater than a preset time threshold, wherein the previous acquisition data is the previous acquisition data of the target acquisition data;
[0079] an abnormality determination unit, configured to determine that the collection time of the target collection data is in an abnormal period if the collection time of the target collection data and the collection time of the previous collection data are greater than a preset time threshold;
[0080] The non-abnormal determination unit is used to determine that the collection time of the target collection data is not in an abnormal period if the target collection time and the collection time of the previous collection data are not greater than a preset time threshold.
[0081] Optionally, the merge judgment module includes:
[0082] A starting time point determination unit, used to determine whether a first starting time point of the abnormal period is the same as a second starting time point of the historical abnormal period;
[0083] a determination merging unit, configured to determine that the abnormal period and the historical abnormal period of the terminal device meet a merging condition if the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period;
[0084] The non-merging determination unit is used to determine that the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition if the first starting time point of the abnormal period is different from the second starting time point of the historical abnormal period.
[0085] Optionally, the equipment status monitoring device further includes:
[0086] A timing acquisition module is used to obtain the current collection data of all terminal devices at preset time intervals;
[0087] An abnormal time setting module is used to set the abnormal time of the terminal device according to the acquisition time of the current collection data if the current collection data of the specified terminal device is an empty set;
[0088] The abnormal time updating module is used to update the abnormal state period of the terminal device in the database according to the abnormal time.
[0089] Optionally, the message component is a distributed publish-subscribe message component.
[0090] For the specific definition of the device status monitoring device, please refer to the definition of the device status monitoring method above, which will not be repeated here. Each module in the above-mentioned device status monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0091] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer-readable instructions and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the device status monitoring method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a device status monitoring method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0092] In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer-readable instructions to implement the following steps:
[0093] Receive current collected data of the terminal device from the message component;
[0094] Acquire historical collected data of the terminal device, and assemble time chain data according to the current collected data and the historical collected data;
[0095] Determine whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule;
[0096] If the collection time of the target collection data is not in an abnormal period, the latest data collection time of the terminal device in the database is updated according to the collection time of the target collection data.
[0097] In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. The readable storage media store computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the following steps are implemented:
[0098] Receive current collected data of the terminal device from the message component;
[0099] Acquire historical collected data of the terminal device, and assemble time chain data according to the current collected data and the historical collected data;
[0100] Determine whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule;
[0101] If the collection time of the target collection data is not in an abnormal period, the latest data collection time of the terminal device in the database is updated according to the collection time of the target collection data.
[0102] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0103] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0104] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A device status monitoring method, applied in a big data system, characterized in that: include: Receive current collected data from multiple terminal devices from the message component; Acquire historical collected data of the terminal device, and assemble time chain data according to the current collected data and the historical collected data, wherein the time chain data is composed of a time point of the current collected data and a time point of the historical collected data; Determine whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule; If the collection time of the target collection data is not in an abnormal period, updating the latest data collection time of the terminal device in the database according to the collection time of the target collection data; The step of judging whether the collection time of the target collection data in the time chain data is after the abnormal period according to the preset abnormality judgment rule also includes: If the collection time of the target collection data is in an abnormal period, determining whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition; If the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition, updating the abnormal state period of the terminal device in the database according to the collection time of the target collection data; If the target data collection time is in an abnormal period, after determining whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition, the method further includes: If the abnormal period and the historical abnormal period of the terminal device meet the merging condition, merge the abnormal period and the historical abnormal period to generate an abnormal merged period; The abnormal state period of the terminal device in the database is updated according to the abnormal merging period.
2. The device status monitoring method according to claim 1, characterized in that: The determining, according to a preset abnormality determination rule, whether the collection time of the target collection data in the time chain data is in an abnormal period includes: Determine whether the time difference between the acquisition time of the target acquisition data and the acquisition time of the previous acquisition data in the time chain data is greater than a preset time threshold, the previous acquisition data being the previous acquisition data of the target acquisition data; If the time difference between the collection time of the target collection data and the collection time of the previous collection data is greater than a preset time threshold, it is determined that the collection time of the target collection data is in an abnormal period; If the time difference between the collection time of the target collection data and the collection time of the previous collection data is not greater than a preset time threshold, it is determined that the collection time of the collection data is not in an abnormal period.
3. The device status monitoring method according to claim 1, characterized in that: If the collection time of the target collection data is in an abnormal period, determining whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition includes: Determine whether the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period; If the first starting time point of the abnormal period is the same as the second starting time point of the historical abnormal period, it is determined that the abnormal period and the historical abnormal period of the terminal device meet the merging condition; If the first starting time point of the abnormal period is different from the second starting time point of the historical abnormal period, it is determined that the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition.
4. The device status monitoring method according to claim 1, characterized in that: Also includes: Obtain current collection data of all terminal devices at preset time intervals; If the current collection data of the designated terminal device is an empty set, setting the abnormal time of the terminal device according to the acquisition time of the current collection data; The abnormal state period of the terminal device in the database is updated according to the abnormal time.
5. The device status monitoring method according to claim 1, characterized in that: The message component is a distributed publish-subscribe message component.
6. A device status monitoring device, applied in a big data system, characterized in that: include: A collection data receiving module is used to receive current collection data of multiple terminal devices from the message component; A time chain data assembly module is used to obtain the historical collection data of the terminal device, and assemble the time chain data according to the current collection data and the historical collection data, wherein the time chain data is composed of the time point of the current collection data and the time point of the historical collection data; An abnormality judgment module, used to judge whether the collection time of the target collection data in the time chain data is in an abnormal period according to a preset abnormality judgment rule; An updating module, configured to update the latest data collection time of the terminal device in the database according to the collection time of the target collection data if the collection time of the target collection data is not in an abnormal period; The device status monitoring device also includes: A merging judgment module, used for judging whether the abnormal period and the historical abnormal period of the terminal device meet the merging condition if the collection time of the target collection data is in an abnormal period; An abnormal period updating module, configured to update the abnormal state period of the terminal device in the database according to the collection time of the target collection data if the abnormal period and the historical abnormal period of the terminal device do not meet the merging condition; A merging time period module, configured to merge the abnormal time period and the historical abnormal time period of the terminal device to generate an abnormal merged time period if the abnormal time period and the historical abnormal time period of the terminal device meet a merging condition; The abnormal merging period updating module is used to update the abnormal state period of the terminal device in the database according to the abnormal merging period.
7. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer-readable instructions, the device status monitoring method according to any one of claims 1 to 5 is implemented.
8. One or more readable storage media storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the device status monitoring method according to any one of claims 1 to 5.
