Online equipment monitoring method and device, electronic equipment and storage medium

By cleaning and deduplication of reported information from IoT devices, the problems of low resource utilization and low monitoring efficiency of existing monitoring equipment methods are solved, and more efficient resource utilization and monitoring effects are achieved.

CN119652781APending Publication Date: 2025-03-18GUANGDONG KETYOO INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411695969.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing monitoring equipment methods have problems of low resource utilization and low monitoring efficiency, especially during the online monitoring of IoT devices, messages may be lost or data abnormal, resulting in waste of resources and reduced monitoring efficiency.

Method used

By collecting the reported information sent by the device, the device identification is extracted, and the reported information is cleaned and deduplicated based on the identification, the equipment online information is obtained, and then the display output is performed according to the display instructions.

Benefits of technology

Through cleaning and deduplication operations of reported information, the problems of waste of resources and low monitoring efficiency are avoided, and resource utilization and monitoring efficiency are effectively improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652781A_ABST
    Figure CN119652781A_ABST
Patent Text Reader

Abstract

The invention relates to an online equipment monitoring method and device, electronic equipment and a storage medium, and the method comprises the steps: collecting report information sent by equipment, extracting an equipment identifier from the report information, cleaning the report information based on the equipment identifier, and obtaining target information, and under the condition that the information type is the preset information type, de-weighting the target information according to the preset equipment monitoring granularity information to obtain equipment online information, and then displaying and outputting the equipment online information according to the display instruction, so that the reported information is cleaned and de-weighted, and the display efficiency of the equipment online information is improved. The problems of low resource utilization rate and low monitoring efficiency of an equipment monitoring mode in the prior art are solved, and the resource utilization rate and the monitoring efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for monitoring online equipment. Background Art

[0002] With the development of society, various IoT devices have gradually entered people's lives. There are a large number of IoT devices in home scenes, such as clothes drying machines, sweeping robots, televisions and other IoT devices. In order to meet the needs of users to remotely monitor or control IoT devices, IoT devices are usually monitored online. The traditional way to monitor whether IoT devices are online is to collect statistics on the online reported data of the device, and the online reported data is transmitted to the real-time computing engine through the message queue for statistics, and the results are sent to the relational database, and then the online data of the device is displayed through the front end or the display layer; the online reported data of the collection device is all the reported data of the receiving device, but the reported data may have message loss or other data anomalies, and resources still need to be wasted to report the data. At this time, not only is there a waste of resources, but the device monitoring function cannot be played due to the abnormal reported data. That is, the existing monitoring device method has the problems of low resource utilization and low monitoring efficiency. Summary of the invention

[0003] The present application provides a method, apparatus, electronic device and storage medium for monitoring online equipment to solve the problems of low resource utilization and low monitoring efficiency in the monitoring equipment mode in the existing related technology.

[0004] In a first aspect, the present application provides a method for monitoring an online device, comprising:

[0005] Collect the reported information sent by the equipment;

[0006] Extracting a device identifier from the reported information;

[0007] Based on the device identification, the reported information is cleaned to obtain target information;

[0008] In the case where the information type is a preset information type, deduplication of the target information is performed according to preset device monitoring granularity information to obtain device online information;

[0009] According to the display instruction, the online information of the device is used for display output.

[0010] Optionally, the cleaning the reported information based on the device identifier to obtain target information includes:

[0011] Obtain preset information cleaning conditions;

[0012] Determine the equipment identification condition according to the information cleaning condition;

[0013] Determining whether the device identification meets the device identification condition;

[0014] In a case where the device identification meets the device identification condition, the reported information corresponding to the device identification is determined as the target information.

[0015] Optionally, determining whether the device identification meets the device identification condition includes:

[0016] Determine whether the device identifier is a null identifier;

[0017] When the device identifier is not the empty identifier, determining whether there is a preset identifier-bound device corresponding to the device identifier;

[0018] In the case that the device identification has a corresponding preset identification-bound device, it is determined that the device identification meets the device identification condition.

[0019] Optionally, deduplication of the target information according to preset device monitoring granularity information to obtain device online information includes:

[0020] Obtaining preset monitoring granularity information of the device;

[0021] Extracting a monitoring time period from the device monitoring granularity information;

[0022] Based on the monitoring time period, determining whether there is information to be deduplicated that meets a preset deduplication condition in the historical information corresponding to the target information;

[0023] When the information to be deduplicated exists in the historical information, the information to be deduplicated is deduplicated to obtain the device online information.

[0024] Optionally, the determining, based on the monitoring time period, whether there is information to be deduplicated that meets a preset deduplication condition in the historical information corresponding to the target information includes:

[0025] extracting a target timestamp from the target information;

[0026] Determining a target time interval based on the target timestamp and the monitoring time period;

[0027] Determining the historical information according to the target time interval and the target timestamp, wherein the timestamp of the historical information is within the target time interval and the timestamp of the historical information is less than the target timestamp;

[0028] Determining whether the historical device identification of the historical information matches the device identification of the target information;

[0029] In the case where the historical device identification matches the device identification, the historical information is used to determine the information to be deduplicated.

[0030] Optionally, extracting the device identifier from the reported information includes:

[0031] Pushing the reported information to a preset message queue;

[0032] In the message queue, the device identifier carried in the reporting information is extracted.

[0033] Optionally, the display outputting using the device online information according to the display instruction includes:

[0034] receiving the display instruction;

[0035] Extracting display requirement information from the display instruction;

[0036] Display output is performed based on the display demand information and combined with the device online information.

[0037] In a second aspect, the present application provides an apparatus for monitoring online equipment, comprising:

[0038] A collection module, used to collect reporting information sent by the equipment;

[0039] An extraction module, used to extract a device identifier from the reported information;

[0040] A cleaning module, used for cleaning the reported information based on the device identification to obtain target information;

[0041] A deduplication module, used for deduplicating the target information according to preset device monitoring granularity information to obtain device online information when the information type is a preset information type;

[0042] The display module is used to display and output the online information of the device according to the display instruction.

[0043] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0044] Memory, used to store computer programs;

[0045] The processor is used to implement the method for monitoring online equipment described in any one of the first aspects when executing the program stored in the memory.

[0046] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for monitoring an online device as described in any one of the first aspects is implemented.

[0047] The embodiment of the present application collects reported information sent by the device and extracts the device identification from the reported information, so as to clean the reported information based on the device identification to obtain target information. When the information type is a preset information type, the target information is deduplicated according to the preset device monitoring granularity information to obtain device online information. Subsequently, according to the display instruction, the device online information is used for display output, thereby solving the problems of low resource utilization and low monitoring efficiency in the monitoring device method in the existing related technology by cleaning and deduplicating the reported information, and can effectively improve resource utilization and monitoring efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of a flow chart of a method for monitoring online equipment provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of the structure of an online monitoring device provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0052] In the existing related technologies, the monitoring of IoT devices usually collects all online reported data sent by the IoT, sends all online reported data to a relational database, and then displays the online data of the device through the front end or display layer. The specific query process needs to use a standard query language to execute predefined queries and complex connection operations. That is, the existing technology needs to collect a large amount of reported data sent by IoT devices, and store all data in a relational database, and then query through a complex query method. If the reported data has message loss or other data anomalies, it is still necessary to waste resources to report and store the data. This will not only cause a waste of resources but also lead to inefficient query data. That is, the existing monitoring equipment method has the problems of low resource utilization and low monitoring efficiency.

[0053] In order to solve the problems of low resource utilization and low monitoring efficiency in the monitoring equipment mode in the existing related technology, the present application provides a method, device, electronic device and storage medium for monitoring online equipment, which collects reported information sent by the equipment and extracts the equipment identification from the reported information, so as to clean the reported information based on the equipment identification to obtain target information, and when the information type is a preset information type, the target information is deduplicated according to the preset equipment monitoring granularity information to obtain equipment online information, and then the equipment online information is used for display output according to the display instruction, so as to solve the problems of low resource utilization and low monitoring efficiency in the monitoring equipment mode in the existing related technology by cleaning and deduplicating the reported information, and can effectively improve resource utilization and monitoring efficiency.

[0054] Figure 1 A flow chart of a method for monitoring online devices provided in an embodiment of the present application. The method can be applied to one or more electronic devices such as an Internet of Things platform, a client, and a server. In addition, the execution subject of the method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute the method, or multiple electronic devices can cooperate with each other to execute the method. When the above-mentioned execution subject is software, the method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.

[0055] like Figure 1 As shown, a method for monitoring an online device provided in an embodiment of the present application may specifically include the following steps:

[0056] Step S110: collecting reporting information sent by the device.

[0057] Among them, the device can be an IoT device with networking capabilities, and when the networking function of the device is activated, it can actively send reporting information to the Internet of Things (IOT) platform. The reporting information can represent the information sent autonomously by the device based on the operating conditions, that is, the reporting information can include relevant information such as device identification, operating status, binding information, etc.

[0058] It should be noted that the reporting information sent by the device can be periodically sent according to a preset period, for example, the preset period can be 1 hour, 10 minutes, etc., or it can be sent according to the operating status, such as when connected to the Internet. Of course, it can also be sent in other scenarios, and this embodiment does not make specific limitations on this.

[0059] Step S120: extracting the device identification from the reported information.

[0060] Specifically, after the reporting information sent by the device is collected, the device identifier can be extracted from the reporting information, and the device identifier can represent an identifier used to mark the IoT device.

[0061] Step S130: Based on the device identification, the reported information is cleaned to obtain target information.

[0062] Specifically, after extracting the device identification from the reported information, the reported information can be cleaned based on the device identification to obtain the target information, wherein the cleaning method can be to filter the reported information according to pre-configured information cleaning conditions, and determine the reported information that meets the information cleaning conditions as the target information, and the specific information cleaning conditions can include one or more conditions such as device identification conditions and information type conditions.

[0063] It should be noted that in the process of cleaning the reported information, the reported information that meets the information cleaning conditions can be determined as the target information, and the reported information that does not meet the information cleaning conditions can be discarded, thereby reducing the amount of data stored in the subsequent database, and also playing a role in improving the query efficiency in the subsequent query process.

[0064] Step S140: when the information type is a preset information type, the target information is deduplicated according to the preset device monitoring granularity information to obtain the device online information.

[0065] Specifically, after obtaining the target information, the information type of the target information can be determined to determine whether the information type belongs to the preset information type, where the information type indicates the specific type of the target information, such as the online information type used to indicate whether the device is online, the status information type used to indicate the specific operating status of the device, the power information type used to indicate the remaining power of the device, etc., and the preset information type can be a pre-configured information type that meets the device's online display output requirements. If the information type is not the preset information type, it means that the current target information does not meet the pre-configured device online display output requirements. The target information can be discarded at this time; and if the information type is the preset information type , indicating that the current target information is an information type that meets the requirements of the pre-configured device online display output. At this time, the preset device monitoring granularity information can be obtained. The device monitoring granularity information can represent the pre-configured period for monitoring and updating the device, so that the target information is deduplicated according to the preset device monitoring granularity information to obtain the device online information. The device online information can represent the online status of the device in the period represented by the device monitoring granularity information. Deduplication of the target information can represent the removal of the historically repeated target information of the device within the period represented by the device monitoring granularity information, retaining the target information with the latest timestamp, and generating the device online information based on the target information with the latest timestamp.

[0066] Specifically, when the preset information type is an online information type, if it is determined that the information type of the target information is an operating information type, then it can be determined that the information type of the target information does not belong to the preset information type, and the target information can be discarded; and if it is determined that the information type of the target information is an online information type, then it can be determined that the information type of the target information is a preset information type, and the preset device monitoring granularity information is obtained and subsequent steps are executed; thereby, different preset information types can be determined according to the online display output requirements of different devices, and the target information is secondary screened according to the preset information type, so that only the target information that meets the online display output requirements of the device is screened out, making the subsequent processing of the target information more accurate and efficient, which can effectively improve resource utilization and monitoring efficiency.

[0067] In addition, after obtaining the target information, this embodiment can save the target information to the ad hoc query database, so that the control ad hoc query database table can automatically remove the target information according to the preset device monitoring granularity information to obtain the device online information. That is, in this embodiment, the ReplacingMergeTree table engine of the ad hoc query database can automatically replace the old version of data, and can also control the replacement time granularity through the device monitoring granularity information. Moreover, the query speed of the ad hoc query engine reaches the second level, and the display layer does not need to wait for the display result, which plays a role in reducing the logic development and resource usage of the real-time processing layer.

[0068] In one example, when the period represented by the device monitoring granularity information is 3 minutes, the target information within the time period of 3 minutes can be deduplicated. For example, when the time period is 11:50-11:53, the target information included in the time period includes target information A, target information B, target information C and target information D. The timestamp of target information A is 11:50, the timestamp of target information B is 11:51, the timestamp of target information C is 11:52 and the timestamp of target information D is 11:53. At this time, the device online information can be generated based on the target information D with the latest timestamp. At this time, the deduplication operation of the target information is to remove the target information A, target information B and target information C. Of course, the above is only an example to illustrate the role, and it can be adaptively adjusted according to the scene and needs during the specific implementation, and this embodiment does not make specific limitations on this.

[0069] Step S150: according to the display instruction, the device online information is used for display output.

[0070] Specifically, after obtaining the device online information, the device online information can be used for display output according to the display instruction, wherein the display instruction represents an instruction for instructing display output, and the display instruction can be generated according to user operations, such as user refresh operations, user connection operations, etc., or according to preset display trigger conditions, for example, the display trigger conditions are pre-configured to perform display output every 5 minutes, and at this time, the display instruction can be generated every 5 minutes; and the method of using the device online information for display output can be to generate display content information according to the device online information, and output the display content information in a preset display interface, of course, it can also be displayed and output through message output, image output, etc., and this embodiment does not make specific limitations on this.

[0071] In addition, when the execution subject of this embodiment is an Internet of Things platform, multiple reported information of multiple devices can be collected, and the content of the aforementioned steps S110-S150 can be executed for each reported information. It can be seen that this embodiment collects the reported information sent by the device and extracts the device identification from the reported information, so as to clean the reported information based on the device identification to obtain the target information, and deduplicate the target information according to the preset device monitoring granularity information to obtain the device online information, and then display and output the device online information according to the display instruction, so as to avoid wasting resources for reporting and storing the data in the case of message loss or other data anomalies in the reported data through the cleaning and deduplication operations of the reported information, that is, solve the problems of low resource utilization and low monitoring efficiency in the monitoring device method in the existing related technology, and can effectively improve resource utilization and monitoring efficiency.

[0072] In an optional embodiment of the present application, step S130 cleans the reported information based on the device identification to obtain the target information, which may specifically include the following sub-steps: obtaining a preset information cleaning condition; determining a device identification condition based on the information cleaning condition; determining whether the device identification meets the device identification condition; and if the device identification meets the device identification condition, determining the reported information corresponding to the device identification as the target information.

[0073] In this embodiment, after obtaining the device identification, the preset information cleaning condition can be obtained. The information cleaning condition can indicate the condition for cleaning the reported information configured in advance according to the needs. The specific information cleaning condition can include one or more conditions such as the device identification condition and the information type condition. Therefore, the device identification condition can be determined based on the information cleaning condition. The device identification condition can indicate the condition for screening the device identification configured in advance according to the needs. Then, it can be determined whether the device identification of each reported information meets the device identification condition. If the device identification does not meet the device identification condition, the reported information can be discarded. If the device identification meets the device identification condition, the reported information corresponding to the device identification is determined as the target information.

[0074] In an optional embodiment of the present application, determining whether the device identifier meets the device identifier conditions may specifically include the following sub-steps: determining whether the device identifier is an empty identifier; if the device identifier is not an empty identifier, determining whether the device identifier has a corresponding preset identifier-bound device; if the device identifier has a corresponding preset identifier-bound device, determining that the device identifier meets the device identifier conditions.

[0075] In this embodiment, in the process of determining whether the device identifier meets the device identification condition, it can be determined whether the device identifier is an empty identifier. When the device identifier is an empty identifier, the device identifier extracted in the reported information is empty, indicating that the reported information does not carry a specific device identifier. At this time, the reported information can be discarded. When the device identifier is not an empty identifier, it means that the reported information carries a specific device identifier. At this time, it can be determined whether the device identifier has a corresponding preset identifier binding device. The identifier binding device can represent a device that has a binding relationship with the device identifier. That is, when the device identifier does not have a corresponding preset identifier binding device, it means that there is no device bound to the device identifier, that is, the device identifier is abnormal, and the reported information can be discarded. When the device identifier has a corresponding preset identifier binding device, it means that the device identifier has a pre-bound device. At this time, it can be determined that the device identifier meets the device identification condition.

[0076] In an optional embodiment of the present application, the target information is deduplicated according to the preset equipment monitoring granularity information to obtain the equipment online information, which may specifically include the following sub-steps: obtaining the preset equipment monitoring granularity information; extracting the monitoring time period from the equipment monitoring granularity information; based on the monitoring time period, determining whether there is information to be deduplicated that meets the preset deduplication conditions in the historical information corresponding to the target information; when there is information to be deduplicated in the historical information, deduplicating the information to be deduplicated to obtain the equipment online information.

[0077] In this embodiment, in the process of deduplicating the target information, the preset device monitoring granularity information can be obtained, and the monitoring time period can be extracted from the device monitoring granularity information, wherein the monitoring time period can represent a time period pre-configured for detecting and updating the device online information; thereby, based on the monitoring time period, it can be determined whether there is information to be deduplicated that meets the preset deduplication conditions in the historical information corresponding to the target information, wherein the historical information represents reported information whose timestamp is earlier than the timestamp of the target information, the preset deduplication conditions can represent pre-configured conditions for determining whether the reported information needs to be deduplicated, and the information to be deduplicated can represent the reported information that needs to be deduplicated; when there is information to be deduplicated in the historical information, the information to be deduplicated can be deduplicated to obtain the device online information, and the specific deduplication method can be discarding the information to be deduplicated, retaining the target information, and generating the device online information based on the target information.

[0078] In an optional embodiment of the present application, based on a monitoring time period, it is determined whether there is information to be deduplicated that meets preset deduplication conditions in the historical information corresponding to the target information, which may specifically include the following sub-steps: extracting a target timestamp from the target information; determining a target time interval based on the target timestamp and the monitoring time period; determining the historical information based on the target time interval and the target timestamp, the timestamp of the historical information being within the target time interval, and the timestamp of the historical information being less than the target timestamp; determining whether the historical device identifier of the historical information matches the device identifier of the target information; and if the historical device identifier matches the device identifier, determining the historical information as the information to be deduplicated.

[0079] In this embodiment, in the process of determining whether there is information to be deduplicated that meets the preset deduplication conditions in the historical information corresponding to the target information based on the monitoring time period, the target timestamp can be extracted from the target information, the target timestamp represents the timestamp carried in the target information, and the target time interval can be determined based on the target timestamp and the monitoring time period, the target time interval represents the time interval corresponding to the detection time period in which the target timestamp is located; then the historical information can be determined based on the target time interval and the target timestamp, the timestamp of the historical information is within the target time interval, and the timestamp of the historical information is less than the target timestamp, that is, the historical information can contain reported information sent by multiple devices, and then it can be determined whether the historical device identifier of the historical information matches the device identifier of the target information, the historical device identifier can represent the identifier corresponding to the device sending the historical information, when the historical device identifier does not match the device identifier, it means that the historical information and the target information belong to reported information sent by different devices, and at this time, there is no need to deduplicate the historical information, and when the historical device identifier matches the device identifier, it means that the historical information and the target information belong to reported information sent by the same device, and at this time, the historical information can be determined as the information to be deduplicated.

[0080] In one example, when the detection time cycle is 1 hour and the target timestamp is 11:20, the time interval from 11:00 to 12:00 can be determined as the target time interval, and the reported information with a timestamp between 11:00 and 12:00 can be determined as historical information. Then, when the historical device identifier of the historical information matches the device identifier of the target information, the historical information is determined as the information to be deduplicated, and the information to be deduplicated is discarded and deduplicated, and only the target information is retained. That is, when the reported information sent by the same device is received within the same target time interval, only the target information with the latest timestamp will be retained. At this time, when the online information of the device is queried, the target information with the latest timestamp can be accurately queried. This can reduce the storage pressure of the database while effectively improving resource utilization and monitoring efficiency.

[0081] In an optional embodiment of the present application, step S120 extracts the device identifier from the reported information, which may specifically include the following sub-steps: pushing the reported information to a preset message queue; and extracting the device identifier carried in the reported information in the message queue.

[0082] In this embodiment, after collecting the reported information of the device, the reported information can be pushed to a preset message queue. The message queue can represent a queue for storing the reported information, so that the device identifier carried by the reported information can be extracted from the message queue to execute subsequent judgment steps S130-S150, that is, in the message queue, the information to be deduplicated can be discarded and the target information can be retained.

[0083] In an optional embodiment of the present application, step S150 uses the device online information to perform display output based on the display instruction, and may specifically include the following sub-steps: receiving the display instruction; extracting the display requirement information from the display instruction; and performing display output based on the display requirement information and the device online information.

[0084] In this embodiment, during the display output process, a display instruction can be received and display requirement information can be extracted from the display instruction. The display requirement information can indicate the relevant information of the device that needs to be displayed as indicated by the current display instruction. Therefore, based on the display requirement information and combined with the device online information, display content information corresponding to the display requirement information can be generated, and the display content information can be used for display output.

[0085] In one example, when a user inputs a display instruction for displaying the online status, the display requirement information extracted from the display instruction is the online status requirement information, so that display content information corresponding to the online status requirement information can be extracted from the device online information according to the display requirement information, and the display content information is information about whether the device is online, so as to perform display output. Of course, the above is only an example for illustration, and can be adaptively adjusted according to the scenario and requirements during specific implementation, and this embodiment does not specifically limit this.

[0086] like Figure 2 As shown, the present application also discloses an embodiment, providing an apparatus for monitoring online equipment, which is characterized in that it can specifically include:

[0087] The collection module 210 is used to collect the reporting information sent by the device;

[0088] An extraction module 220, configured to extract a device identifier from the reported information;

[0089] A cleaning module 230, configured to clean the reported information based on the device identification to obtain target information;

[0090] A deduplication module 240 is used to deduplicate the target information according to preset device monitoring granularity information when the information type is a preset information type, so as to obtain device online information;

[0091] The display module 250 is used to display and output the device online information according to the display instruction.

[0092] In an optional embodiment of the present application, the cleaning module 230 may include:

[0093] A first acquisition unit, used to acquire a preset information cleaning condition;

[0094] A first determining unit, configured to determine a device identification condition according to the information cleaning condition;

[0095] A second determining unit, used to determine whether the device identification meets the device identification condition;

[0096] A third determining unit is configured to determine, when the device identifier meets the device identifier condition, the reported information corresponding to the device identifier as the target information.

[0097] In an optional embodiment of the present application, the second determining unit may include:

[0098] A first determining subunit, used to determine whether the device identifier is a null identifier;

[0099] A second determining subunit is used to determine whether there is a preset identifier-bound device corresponding to the device identifier when the device identifier is not the empty identifier;

[0100] The third determining subunit is configured to determine that the device identification meets the device identification condition when there is a corresponding preset identification-binding device to the device identification.

[0101] In an optional embodiment of the present application, the deduplication module 240 may include:

[0102] A second acquisition unit, used to acquire preset device monitoring granularity information;

[0103] A first extraction unit, configured to extract a monitoring time period from the device monitoring granularity information;

[0104] A fourth determination unit, configured to determine whether there is information to be deduplicated that meets a preset deduplication condition in the historical information corresponding to the target information based on the monitoring time period;

[0105] The first deduplication unit is used to deduplicate the information to be deduplicated when the information to be deduplicated exists in the historical information, so as to obtain the device online information.

[0106] In an optional embodiment of the present application, the fourth determining unit may include:

[0107] An extraction subunit, configured to extract a target timestamp from the target information;

[0108] a fourth determining subunit, configured to determine a target time interval based on the target timestamp and the monitoring time period;

[0109] a fifth determining subunit, configured to determine the historical information according to the target time interval and the target timestamp, wherein the timestamp of the historical information is within the target time interval and the timestamp of the historical information is less than the target timestamp;

[0110] A sixth determining subunit, configured to determine whether the historical device identification of the historical information matches the device identification of the target information;

[0111] A seventh determining subunit is configured to determine the to-be-deduplicated information from the historical information when the historical device identification matches the device identification.

[0112] In an optional embodiment of the present application, the extraction module 220 may include:

[0113] A push unit, used to push the reported information to a preset message queue;

[0114] The second extraction unit is used to extract the device identifier carried by the reporting information from the message queue.

[0115] In an optional embodiment of the present application, the display module 250 may include:

[0116] A receiving unit, configured to receive the display instruction;

[0117] A third extraction unit, configured to extract display requirement information from the display instruction;

[0118] The output unit is used to perform display output according to the display demand information and the device online information.

[0119] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0120] like Figure 3As shown, an embodiment of the present application provides an electronic device, including a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340.

[0121] Memory 330, for storing computer programs;

[0122] In one embodiment of the present application, the processor 310 is used to execute the program stored in the memory 330 to implement the control method for monitoring online equipment provided by any of the aforementioned method embodiments, by collecting the reported information sent by the equipment and extracting the equipment identification from the reported information, so as to clean the reported information based on the equipment identification to obtain the target information, and when the information type is a preset information type, deduplicate the target information according to the preset equipment monitoring granularity information to obtain the equipment online information, and then display and output the equipment online information according to the display instruction, so as to avoid wasting resources for reporting and storing the data when the reported data has message loss or other data anomalies by cleaning and deduplicating the reported information, thereby solving the problems of low resource utilization and low monitoring efficiency in the monitoring equipment method in the existing related technology, and effectively improving resource utilization and monitoring efficiency.

[0123] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for monitoring online devices provided in any of the aforementioned method embodiments are implemented, by collecting reported information sent by the device and extracting a device identifier from the reported information, so as to clean the reported information based on the device identifier to obtain target information. When the information type is a preset information type, the target information is deduplicated according to preset device monitoring granularity information to obtain device online information. Subsequently, according to a display instruction, the device online information is used for display output. Thus, by cleaning and deduplicating the reported information, it is avoided that in the case of message loss or other data anomalies in the reported data, resources still need to be wasted to report and store the data. That is, the problems of low resource utilization and low monitoring efficiency in the monitoring device method in the existing related technology are solved, and resource utilization and monitoring efficiency can be effectively improved.

[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0126] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0127] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for monitoring online equipment, characterized in that: include: Collect the reported information sent by the equipment; Extracting a device identifier from the reported information; Based on the device identification, the reported information is cleaned to obtain target information; In the case where the information type is a preset information type, deduplication of the target information is performed according to preset device monitoring granularity information to obtain device online information; According to the display instruction, the online information of the device is used for display output.

2. The method for monitoring online equipment according to claim 1, characterized in that: The step of cleaning the reported information based on the device identifier to obtain target information includes: Obtain preset information cleaning conditions; Determine the equipment identification condition according to the information cleaning condition; Determining whether the device identification meets the device identification condition; In a case where the device identification meets the device identification condition, the reported information corresponding to the device identification is determined as the target information.

3. The method for monitoring online equipment according to claim 2, characterized in that: The determining whether the device identification meets the device identification condition includes: Determine whether the device identifier is a null identifier; When the device identifier is not the empty identifier, determining whether there is a preset identifier-bound device corresponding to the device identifier; In the case that the device identification has a corresponding preset identification-bound device, it is determined that the device identification meets the device identification condition.

4. The method for monitoring online equipment according to claim 1, characterized in that: Deduplication of the target information is performed according to the preset device monitoring granularity information to obtain device online information, including: Obtaining preset monitoring granularity information of the device; Extracting a monitoring time period from the device monitoring granularity information; Based on the monitoring time period, determining whether there is information to be deduplicated that meets a preset deduplication condition in the historical information corresponding to the target information; When the information to be deduplicated exists in the historical information, the information to be deduplicated is deduplicated to obtain the device online information.

5. The method for monitoring online equipment according to claim 4, characterized in that: The determining, based on the monitoring time period, whether there is information to be deduplicated that meets a preset deduplication condition in the historical information corresponding to the target information includes: extracting a target timestamp from the target information; Determining a target time interval based on the target timestamp and the monitoring time period; Determining the historical information according to the target time interval and the target timestamp, wherein the timestamp of the historical information is within the target time interval and the timestamp of the historical information is less than the target timestamp; Determining whether the historical device identification of the historical information matches the device identification of the target information; In the case where the historical device identification matches the device identification, the historical information is used to determine the information to be deduplicated.

6. The method for monitoring online equipment according to any one of claims 1 to 5, characterized in that: The extracting the device identification from the reported information includes: Pushing the reported information to a preset message queue; In the message queue, the device identifier carried in the reporting information is extracted.

7. The method for monitoring online equipment according to any one of claims 1 to 5, characterized in that: The display outputting using the device online information according to the display instruction includes: receiving the display instruction; Extracting display requirement information from the display instruction; Display output is performed based on the display demand information and combined with the device online information.

8. A device for monitoring online equipment, characterized in that: include: A collection module, used to collect reporting information sent by the equipment; An extraction module, used to extract a device identifier from the reported information; A cleaning module, used for cleaning the reported information based on the device identification to obtain target information; A deduplication module, used for deduplicating the target information according to preset device monitoring granularity information to obtain device online information when the information type is a preset information type; The display module is used to display and output the online information of the device according to the display instruction.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the method for monitoring online equipment described in any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for monitoring online equipment according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Equipment report information processing and displaying method and device and storage medium

    CN120909148A