WO2021218218A1 - Data processing method and apparatus and computer device - Google Patents

Data processing method and apparatus and computer device Download PDF

Info

Publication number
WO2021218218A1
WO2021218218A1 PCT/CN2020/140492 CN2020140492W WO2021218218A1 WO 2021218218 A1 WO2021218218 A1 WO 2021218218A1 CN 2020140492 W CN2020140492 W CN 2020140492W WO 2021218218 A1 WO2021218218 A1 WO 2021218218A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data set
database
query
status information
Prior art date
Application number
PCT/CN2020/140492
Other languages
French (fr)
Chinese (zh)
Inventor
董明珠
宋德超
黄俊炜
王沅召
张家琪
Original Assignee
珠海格力电器股份有限公司
珠海联云科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海格力电器股份有限公司, 珠海联云科技有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2021218218A1 publication Critical patent/WO2021218218A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a data processing method, device and computer equipment.
  • a server can be set to monitor and manage the operation of each network device; but when the network connection between the monitored network device and the server is disconnected, the information of the related network device will be changed. It will not be displayed on the server, so that the user cannot obtain the operating information of the current network equipment in time.
  • the data processing method in the related technology cannot obtain the operating information of the current network equipment in time, and cannot meet the actual needs of users.
  • the present disclosure provides a data processing method, device, and computer equipment, which solves the problem that the data processing method in the related art cannot obtain the operating information of the current network equipment in time, and meets the actual needs of users.
  • the present disclosure provides a data processing method applied to a server.
  • the method includes: obtaining the identities of all network devices; according to the identities, obtaining current state information of the network devices at a preset time, so
  • the status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database.
  • the method further includes: receiving a data query request sent by a client, the data query request including a query keyword; according to the data query request, obtaining the query keyword from the database The matched data set is sent to the client terminal, so that the client terminal displays the chart according to the data set.
  • the database is a redis database; according to the data query request, a data set that matches the query keyword is obtained from the database and sent to the client, so that the client is based on
  • the graph display of the data set includes: obtaining a data set matching the query keyword from a redis database according to the data query request and sending it to the client, so that the client can use the data set according to the data set. Chart display through echart.
  • a data set matching the query keyword is obtained from the database and sent to the client, It includes: obtaining all query data matching the query keyword according to the query keyword; generating a corresponding data set from all the query data according to the returned data format and sending it to the client.
  • the present disclosure provides a data processing method applied to a client.
  • the method includes: obtaining a query keyword of a network device; generating a data query request from the query keyword and returned data format; and converting the data
  • the query request is sent to the server, so that the server obtains a corresponding data set from the data according to the data query request, the data set includes the identity and status information of the network device, and the status information includes the online status or the offline status; Receiving the data set sent by the server; displaying the data set in a chart.
  • the returned data format includes a json data format
  • the database includes a redis database
  • displaying the data set in a chart includes: displaying the data set in a chart through echart.
  • displaying the data set in a graph includes: converting the location information in the data set into a two-dimensional array; The dimensional array shows the scattered locations of the network devices.
  • the present disclosure provides a data processing device applied to a server.
  • the device includes: an identity identification acquisition module configured to acquire the identities of all network devices; Identification, acquiring the current status information of the network device at a preset time, the status information including online status or offline status; a judgment module, which is set to judge whether the current status information is the same as the previous status information; the storage module, is It is set to store the current state information in a database if the current state information is not the same as the previous state information, so that the client terminal displays graphs based on the data in the database.
  • the present disclosure provides a data processing device, which is applied to a client, and the device includes: a keyword acquisition module configured to acquire query keywords of network equipment; and a query request generation module configured to The query keyword and the returned data format generate a data query request; the query request sending module is configured to send the data query request to the server, so that the server obtains the corresponding data set from the data according to the data query request, so
  • the data set includes the identity and status information of the network device, and the state information includes online or offline status;
  • a data set receiving module is set to receive the data set sent by the server;
  • a chart display module is set to The data set is displayed graphically.
  • the present disclosure provides a computer device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the following steps when the computer program is executed : Obtain the identities of all network devices; obtain the current status information of the network devices at a preset time according to the identities, and the status information includes online status or offline status; determine the current status information and the previous status information Whether it is the same; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
  • the data processing method, device, and computer equipment provided by the present disclosure are applied to a server, and the method includes: obtaining the identities of all network equipment; according to the identities, obtaining current state information of the network equipment at a preset time, so The status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database.
  • the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database.
  • the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time.
  • the current operating information problem of network equipment meets the actual needs of users.
  • FIG. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of another data processing method provided by an embodiment of the present disclosure.
  • FIG. 3 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure.
  • FIG. 4 is a structural block diagram of another data processing device provided by an embodiment of the present disclosure.
  • Fig. 5 is a schematic diagram of data processing provided by an embodiment of the present disclosure.
  • Fig. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure; as shown in Fig. 1, the data processing method in an embodiment of the present disclosure, applied to a server, specifically includes the following steps:
  • Step S101 Obtain the identities of all network devices.
  • the data processing method provided in the embodiments of the present disclosure is applied to a data processing system, and the monitoring system includes multiple network devices, servers, and clients.
  • Each network device has a unique identifier that identifies identity information, such as international The mobile equipment identification code (International Mobile Equipment Identity, IMEI) or MAC address can be used to input the identities of all network devices to the server in a preset manner, or the network equipment can input the identities to the server in the form of periodically sending data packets.
  • identity information such as international The mobile equipment identification code (International Mobile Equipment Identity, IMEI) or MAC address
  • Step S102 Acquire current state information of the network device at a preset time according to the identity identifier.
  • the status information includes an online status or an offline status.
  • the online status means that the network device and the server can communicate normally.
  • the offline status may be that the communication line of the network device is interrupted or the network device is in a shutdown state, which causes the network to be shut down.
  • the device cannot communicate with the server; therefore, the server obtains the current state information of all network devices at a preset time period or at a preset time, for example, obtains the state information of the network device every 5 minutes, or obtains it at a fixed time point Status information of the network device.
  • Step S103 It is judged whether the current state information is the same as the previous state information.
  • Step S104 If the current status information is different from the previous status information, store the current status information in a database, so that the client terminal displays the data in a graph according to the data in the database.
  • the database provided in the embodiment of the present disclosure is a redis database.
  • the server can query the status information in real time or regularly according to the identity of the network device, and compare it with the status information in the redis database that matches the identity, if When it is obtained that the current state information is inconsistent with the state information stored in the database, the current state information is updated to the database so that the state information stored in the database is consistent with the current state information of the network device.
  • enabling the client to perform chart display based on the data in the database specifically includes receiving a data query request sent by the client, the data query request including a query keyword; The data set that matches the query keyword is obtained in and sent to the client, so that the client can display a chart according to the data set.
  • the server extracts all matching data from the redis database according to the data request sent by the client, and sends the corresponding data set according to the returned data format to the client, so that the client generates the corresponding chart through echart Display, so the client can clearly display the status information of all network devices through the chart.
  • a data set matching the query keyword is obtained from the database and sent to the The client includes: obtaining all query data matching the query keyword according to the query keyword; generating a corresponding data set from all the query data according to the returned data format and sending it to the client .
  • the data processing method provided by the present disclosure is applied to a server, and the method includes: obtaining the identities of all network devices; according to the identities, obtaining current status information of the network devices at a preset time, and the status information includes online Status or offline status; determine whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, store the current status information in the database, so that the client terminal can be based on the database
  • the data is displayed in graphs.
  • the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database.
  • the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time.
  • the current operating information problem of network equipment meets the actual needs of users.
  • FIG. 2 is a flowchart of a data processing method provided by an embodiment of the present disclosure; as shown in FIG. 2, the data processing method in an embodiment of the present disclosure, applied to a client, specifically includes the following steps:
  • Step S201 obtaining keywords for querying network equipment
  • Step S202 Generate a data query request from the keyword and the returned data format
  • Step S203 Send the data query request to the server, so that the server obtains a corresponding data set from the data according to the data query request.
  • the data set includes the identity and status information of the network device, and the status information Including online or offline status;
  • Step S204 receiving the data set sent by the server
  • Step S205 According to the data set, the first state information of the network device is displayed in a chart.
  • the returned data format includes a json data format
  • the database includes a redis database
  • displaying the data set in a chart includes: displaying the data set in a chart through echart; therefore, the user is in the customer
  • the client can obtain the query keyword by input or selection, so that the server obtains a matching data set from the redis database according to the keyword, and the client displays the chart through echart according to the data set.
  • displaying the data set in a chart includes: converting the location information in the data set into a two-dimensional array; The two-dimensional array displays the scattered locations of the network devices.
  • Fig. 3 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure; as shown in Fig. 3, the data processing device in an embodiment of the present disclosure, when applied to a server, specifically includes:
  • the identity acquiring module 310 is set to acquire the identities of all network devices
  • the status information acquiring module 320 is configured to acquire current status information of the network device at a preset time according to the identity identifier, and the status information includes an online status or an offline status;
  • the judging module 330 is configured to judge whether the current state information is the same as the previous state information
  • the storage module 340 is configured to store the current state information in a database if the current state information is not the same as the previous state information, so that the client terminal displays graphs based on the data in the database.
  • the device further includes: a data query request receiving module configured to receive a data query request sent by the client, the data query request including query keywords; a data set acquiring module configured to According to the data query request, a data set matching the query keyword is obtained from the database and sent to the client terminal, so that the client terminal displays a chart according to the data set.
  • the data set acquisition module includes: a query data acquisition module configured to acquire all query data matching the query keyword according to the query keyword; a data set generation module configured to acquire all query data matching the query keyword according to the returned data format, The corresponding data set is generated from all the query data and sent to the client.
  • Fig. 4 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure; as shown in Fig. 4, the data processing device in an embodiment of the present disclosure, when applied to a client, specifically includes:
  • the keyword obtaining module 410 is set to obtain the query keyword of the network device
  • the query request generating module 420 is configured to generate a data query request from the query keywords and the returned data format
  • the query request sending module 430 is configured to send the data query request to the server, so that the server obtains a corresponding data set from the data according to the data query request, and the data set includes the identity and status of the network device Information, the status information includes an online status or an offline status;
  • a data set receiving module 440 configured to receive the data set sent by the server
  • the chart display module 450 is configured to display the data set in a chart.
  • the graph display module 450 includes a position information conversion module, which is configured to convert the position information in the data set into a two-dimensional array; the scattered point position display module is configured to The array shows the scattered locations of the network devices.
  • FIG. 5 is a schematic diagram of data processing provided by an embodiment of the present disclosure.
  • the data generated by the system is stored in the redis database. Redis can efficiently and persistently store the data generated by our system. At the same time, we can store the data through the echart page component.
  • the data shows the data we store in redis through chart components such as histogram, line chart, column-fold mixed chart, pie chart, and scatter chart.
  • the server when a network device communicates with a server through a communication module, the server writes the IMEI (Unique Device Identifier) of the device into redis. If the communication between the device and the server is interrupted, the server will change the IMEI of the device from Delete it in redis, and at this time, the front end can request the background to obtain the IMEI that exists in redis to display the online device.
  • IMEI Unique Device Identifier
  • the server when the device communicates with the server through the communication module, the server obtains the unique identifier IMEI (or other identification code) of the device through the background program, and the background program stores the unique identifier as a key into the redis database, and the client The echart on the end requests the server's background program to read the value of the key in the database through the http interface.
  • the data type returned by the interface can be an array and other common basic types.
  • the obtained format can be an array type [8881,8882,883,884,885] that is It can be understood that the current online devices are 5 devices with identification codes 8881, 8882, 8883, 8884, and 8885.
  • the value is 5, and the background counts the number of all devices at the same time.
  • the number of all devices returned by the interface is n.
  • This value is subtracted from 5 to set up the pie chart partition as offline devices.
  • the value is n-5. At this time, you can clearly see the online and offline devices through the pie chart. Line condition.
  • the GPS positioning information carried in the communication between the device and the server can be reported to the server.
  • the server can report the GPS coordinate information such as north latitude and east longitude.
  • the degree of information is used as a key to store the value of the IMEI (or other identification code) of the device, such as a redis database.
  • the front-end echart obtains the server's background program through http request to read all the GPS-related keys stored in the database.
  • the acquisition format can be a ⁇ "8881": 223E60N; "882": 213E70N; ⁇ json format data; at this time, the golden latitude data can be integrated into [[223,60],[231,70]]
  • a two-dimensional array of, can be stored in the scatter rendering array of the echart map plug-in, and the scatter position of the device in the current map can be displayed.
  • the present disclosure provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program, the following is achieved Step: Obtain the identities of all network devices; obtain the current status information of the network devices at a preset time according to the identities, and the status information includes online status or offline status; determine the current status information and the previous status Whether the information is the same; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
  • the present disclosure provides a computer-readable storage medium on which a computer program is stored.
  • the computer program When the computer program is executed by a processor, the following steps are implemented: obtain the identities of all network devices; The identity identifier acquires the current status information of the network device at a preset time, the status information includes the online status or the offline status; judges whether the current status information is the same as the previous status information; if the current status information is the same as the previous status information If the status information is different, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
  • the data processing method, device, and computer equipment provided by the present disclosure are applied to a server, and the method includes: obtaining the identities of all network equipment; according to the identities, obtaining current state information of the network equipment at a preset time, so The status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database.
  • the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database.
  • the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time.
  • the current operating information problem of network equipment meets the actual needs of users.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided are a data processing method and apparatus and a computer device, used for a server. The method comprises: acquiring identities of all network devices; according to the identities, acquiring current state information of the network devices at a preset moment, the state information comprising an online state or an offline state; determining whether the current state information is the same as previous state information; and if no, storing the current state information into a database so that a client performs chart display according to data of the database. The data processing method of the present disclosure solves the problem that data processing methods in the related art cannot acquire operation information of a current network device in time, thereby meeting the actual demands of a user.

Description

数据处理方法、装置和计算机设备Data processing method, device and computer equipment
本公开要求于2020年04月26日提交中国专利局、申请号为202010339027.9、发明名称为“数据处理方法、装置和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 202010339027.9, and the invention title is "data processing method, device and computer equipment" on April 26, 2020, the entire content of which is incorporated into this disclosure by reference middle.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种数据处理方法、装置和计算机设备。The present disclosure relates to the field of computer technology, and in particular to a data processing method, device and computer equipment.
背景技术Background technique
在相关技术中,对于分布在不同位置的网络设备,可以设置服务器来监控和管理各个网络设备的运行情况;但是当被监控的网络设备与服务器的网络连接断开时,相关网络设备的信息将不会显示在服务器上,进而使用户不能及时获取到当前网络设备的运行信息。In related technologies, for network devices distributed in different locations, a server can be set to monitor and manage the operation of each network device; but when the network connection between the monitored network device and the server is disconnected, the information of the related network device will be changed. It will not be displayed on the server, so that the user cannot obtain the operating information of the current network equipment in time.
可见,相关技术中的数据处理方法不能及时获取当前网络设备的运行信息,不能满足用户的实际需求。It can be seen that the data processing method in the related technology cannot obtain the operating information of the current network equipment in time, and cannot meet the actual needs of users.
发明内容Summary of the invention
本公开提供了一种数据处理方法、装置和计算机设备,解决了相关技术中的数据处理方法不能及时获取当前网络设备的运行信息的问题,满足了用户的实际需求。The present disclosure provides a data processing method, device, and computer equipment, which solves the problem that the data processing method in the related art cannot obtain the operating information of the current network equipment in time, and meets the actual needs of users.
第一方面,本公开提供一种数据处理方法,应用于服务器,所述方法包括:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。In the first aspect, the present disclosure provides a data processing method applied to a server. The method includes: obtaining the identities of all network devices; according to the identities, obtaining current state information of the network devices at a preset time, so The status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database.
在一些实施方式中,所述方法还包括:接收客户端发送的数据查询请求,所述数据查询请求包括查询关键字;根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示。In some embodiments, the method further includes: receiving a data query request sent by a client, the data query request including a query keyword; according to the data query request, obtaining the query keyword from the database The matched data set is sent to the client terminal, so that the client terminal displays the chart according to the data set.
在一些实施方式中,所述数据库为redis数据库;根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示,包括:根据所述数据查询请求,从redis数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集通过echart进行图表展示。In some embodiments, the database is a redis database; according to the data query request, a data set that matches the query keyword is obtained from the database and sent to the client, so that the client is based on The graph display of the data set includes: obtaining a data set matching the query keyword from a redis database according to the data query request and sending it to the client, so that the client can use the data set according to the data set. Chart display through echart.
在一些实施方式中,若所述数据查询请求还包括返回数据格式时,根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,包括:根据所述查询关键字,获取与所述查询关键字相匹配的所有查询数据;根据所述返回数据格式,将所述所有查询数据生成相应的数据集发送到所述客户端。In some embodiments, if the data query request further includes a returned data format, according to the data query request, a data set matching the query keyword is obtained from the database and sent to the client, It includes: obtaining all query data matching the query keyword according to the query keyword; generating a corresponding data set from all the query data according to the returned data format and sending it to the client.
第二方面,本公开提供一种数据处理方法,应用于客户端,所述方法包括:获取网络设备的查询关键字;将所述查询关键字和返回数据格式生成数据查询请求;将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;接收所述服务器发送的所述数据集;将所述数据集进行图表展示。In a second aspect, the present disclosure provides a data processing method applied to a client. The method includes: obtaining a query keyword of a network device; generating a data query request from the query keyword and returned data format; and converting the data The query request is sent to the server, so that the server obtains a corresponding data set from the data according to the data query request, the data set includes the identity and status information of the network device, and the status information includes the online status or the offline status; Receiving the data set sent by the server; displaying the data set in a chart.
在一些实施方式中,所述返回数据格式包括json数据格式;所述数据库包括redis数据库;将所述数据集进行图表展示包括:将所述数据集通过echart进行图表展示。In some embodiments, the returned data format includes a json data format; the database includes a redis database; displaying the data set in a chart includes: displaying the data set in a chart through echart.
在一些实施方式中,若所述状态信息包括所述网络设备的位置信 息时,将所述数据集进行图表展示,包括:将所述数据集中的位置信息转换成二维数组;根据所述二维数组展示所述网络设备的散点位置。In some embodiments, if the status information includes the location information of the network device, displaying the data set in a graph includes: converting the location information in the data set into a two-dimensional array; The dimensional array shows the scattered locations of the network devices.
第三方面,本公开提供一种数据处理装置,应用于服务器,所述装置包括:身份标识获取模块,被设置为获取所有网络设备的身份标识;状态信息获取模块,被设置为根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断模块,被设置为判断所述当前状态信息与上一个状态信息是否相同;存储模块,被设置为若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。In a third aspect, the present disclosure provides a data processing device applied to a server. The device includes: an identity identification acquisition module configured to acquire the identities of all network devices; Identification, acquiring the current status information of the network device at a preset time, the status information including online status or offline status; a judgment module, which is set to judge whether the current status information is the same as the previous status information; the storage module, is It is set to store the current state information in a database if the current state information is not the same as the previous state information, so that the client terminal displays graphs based on the data in the database.
第四方面,本公开提供一种数据处理装置,应用于客户端,所述装置包括:关键字获取模块,被设置为获取网络设备的查询关键字;查询请求生成模块,被设置为将所述查询关键字和返回数据格式生成数据查询请求;查询请求发送模块,被设置为将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;数据集接收模块,被设置为接收所述服务器发送的所述数据集;图表展示模块,被设置为将所述数据集进行图表展示。In a fourth aspect, the present disclosure provides a data processing device, which is applied to a client, and the device includes: a keyword acquisition module configured to acquire query keywords of network equipment; and a query request generation module configured to The query keyword and the returned data format generate a data query request; the query request sending module is configured to send the data query request to the server, so that the server obtains the corresponding data set from the data according to the data query request, so The data set includes the identity and status information of the network device, and the state information includes online or offline status; a data set receiving module is set to receive the data set sent by the server; a chart display module is set to The data set is displayed graphically.
第五方面,本公开提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时执行以下步骤:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。In a fifth aspect, the present disclosure provides a computer device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the following steps when the computer program is executed : Obtain the identities of all network devices; obtain the current status information of the network devices at a preset time according to the identities, and the status information includes online status or offline status; determine the current status information and the previous status information Whether it is the same; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
本公开提供的数据处理方法、装置和计算机设备,应用于服务器,所述方法包括:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。本公开的数据处理方法中服务器将实时获取到的网络设备状态信息存储在数据库中,使客户端根据所述数据库里的网络设备信息、状态信息和时间进行图表展示,因此本公开使数据在存储和读取速度更加高效和快捷,并且在数据的展示中可以通过图表等形式,使用户更加清楚和直观的了解所有网络设备的实时运行情况;因此解决了相关技术中的数据处理方法不能及时获取当前网络设备的运行信息的问题,满足了用户的实际需求。The data processing method, device, and computer equipment provided by the present disclosure are applied to a server, and the method includes: obtaining the identities of all network equipment; according to the identities, obtaining current state information of the network equipment at a preset time, so The status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database. In the data processing method of the present disclosure, the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database. Therefore, the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time. The current operating information problem of network equipment meets the actual needs of users.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the specification to explain the principle of the disclosure.
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present disclosure or related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, for those of ordinary skill in the art, Other drawings can be obtained based on these drawings without creative labor.
图1是本公开实施例提供的一种数据处理方法的流程图;FIG. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure;
图2是本公开实施例提供的另一种数据处理方法的流程图;Figure 2 is a flowchart of another data processing method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种数据处理装置的结构框图;FIG. 3 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure;
图4是本公开实施例提供的另一种数据处理装置的结构框图;4 is a structural block diagram of another data processing device provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种数据处理示意图。Fig. 5 is a schematic diagram of data processing provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments They are a part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
图1是本公开实施例提供的一种数据处理方法的流程图;如图1所示,本公开实施例中的数据处理方法,应用于服务器,具体包括如下步骤:Fig. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure; as shown in Fig. 1, the data processing method in an embodiment of the present disclosure, applied to a server, specifically includes the following steps:
步骤S101,获取所有网络设备的身份标识。Step S101: Obtain the identities of all network devices.
具体地,在本公开实施例提供的数据处理方法应用于数据处理系统中,所述监控系统包括多个网络设备、服务器和客户端,每个网络设备都有标识身份信息的唯一标识,例如国际移动设备识别码(International Mobile Equipment Identity,IMEI)或者MAC地址,可以通过预设的方式向服务器输入所有网络设备的身份标识,或者网络设备通过定期发送数据报文的形式向服务器输入身份标识。Specifically, the data processing method provided in the embodiments of the present disclosure is applied to a data processing system, and the monitoring system includes multiple network devices, servers, and clients. Each network device has a unique identifier that identifies identity information, such as international The mobile equipment identification code (International Mobile Equipment Identity, IMEI) or MAC address can be used to input the identities of all network devices to the server in a preset manner, or the network equipment can input the identities to the server in the form of periodically sending data packets.
步骤S102,根据所述身份标识,在预设时刻获取所述网络设备当前状态信息。Step S102: Acquire current state information of the network device at a preset time according to the identity identifier.
具体地,所述状态信息包括在线状态或离线状态,所述在线状态为所述网络设备与所述服务器可以正常通信,离线状态可以是网络设备的通讯线路中断或者是网络设备处于关机状态导致网络设备与所述服务器不能通信;因此服务器在预设的时间段或者预设时刻获取所有网络设备的当前状态信息,例如每间隔5分钟获取一次网络设备的状态信息,或者每个的固定时间点获取网络设备的状态信息。Specifically, the status information includes an online status or an offline status. The online status means that the network device and the server can communicate normally. The offline status may be that the communication line of the network device is interrupted or the network device is in a shutdown state, which causes the network to be shut down. The device cannot communicate with the server; therefore, the server obtains the current state information of all network devices at a preset time period or at a preset time, for example, obtains the state information of the network device every 5 minutes, or obtains it at a fixed time point Status information of the network device.
步骤S103,判断所述当前状态信息与上一个状态信息是否相同。Step S103: It is judged whether the current state information is the same as the previous state information.
步骤S104,若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图 表展示。Step S104: If the current status information is different from the previous status information, store the current status information in a database, so that the client terminal displays the data in a graph according to the data in the database.
在本公开实施例提供的数据库为redis数据库,服务器根据所述网络设备的身份标识可以实时或者定时查询到状态信息,并且还与redis数据库中与所述身份标识相匹配的状态信息进行比较,如果获取到当前的状态信息与所述数据库存储的状态信息不一致时,将当前状态信息更新到所述数据库中,使数据库存储的状态信息与网络设备当前的状态信息保持一致。The database provided in the embodiment of the present disclosure is a redis database. The server can query the status information in real time or regularly according to the identity of the network device, and compare it with the status information in the redis database that matches the identity, if When it is obtained that the current state information is inconsistent with the state information stored in the database, the current state information is updated to the database so that the state information stored in the database is consistent with the current state information of the network device.
在一些实施方式中,使客户端根据所述数据库的数据进行图表展示具体包括接收客户端发送的数据查询请求,所述数据查询请求包括查询关键字;根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示。In some implementation manners, enabling the client to perform chart display based on the data in the database specifically includes receiving a data query request sent by the client, the data query request including a query keyword; The data set that matches the query keyword is obtained in and sent to the client, so that the client can display a chart according to the data set.
具体地,服务器根据客户端发送的数据请求从redis数据库从提取相匹配的所有数据,并将所述数据根据返回数据格式生成相应的数据集发送到客户端,使客户端通过echart生成相应的图表进行展示,因此在客户端可以通过图表清楚明了的显示出所有网络设备的状态信息。Specifically, the server extracts all matching data from the redis database according to the data request sent by the client, and sends the corresponding data set according to the returned data format to the client, so that the client generates the corresponding chart through echart Display, so the client can clearly display the status information of all network devices through the chart.
在本公开的一个实施例中,若所述数据查询请求还包括返回数据格式时,根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,包括:根据所述查询关键字,获取与所述查询关键字相匹配的所有查询数据;根据所述返回数据格式,将所述所有查询数据生成相应的数据集发送到所述客户端。In an embodiment of the present disclosure, if the data query request further includes a return data format, according to the data query request, a data set matching the query keyword is obtained from the database and sent to the The client includes: obtaining all query data matching the query keyword according to the query keyword; generating a corresponding data set from all the query data according to the returned data format and sending it to the client .
本公开提供的数据处理方法,应用于服务器,所述方法包括:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态 信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。本公开的数据处理方法中服务器将实时获取到的网络设备状态信息存储在数据库中,使客户端根据所述数据库里的网络设备信息、状态信息和时间进行图表展示,因此本公开使数据在存储和读取速度更加高效和快捷,并且在数据的展示中可以通过图表等形式,使用户更加清楚和直观的了解所有网络设备的实时运行情况;因此解决了相关技术中的数据处理方法不能及时获取当前网络设备的运行信息的问题,满足了用户的实际需求。The data processing method provided by the present disclosure is applied to a server, and the method includes: obtaining the identities of all network devices; according to the identities, obtaining current status information of the network devices at a preset time, and the status information includes online Status or offline status; determine whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, store the current status information in the database, so that the client terminal can be based on the database The data is displayed in graphs. In the data processing method of the present disclosure, the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database. Therefore, the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time. The current operating information problem of network equipment meets the actual needs of users.
图2是本公开实施例提供的一种一种数据处理方法的流程图;如图2所示,本公开实施例中的数据处理方法,应用于客户端,具体包括如下步骤:FIG. 2 is a flowchart of a data processing method provided by an embodiment of the present disclosure; as shown in FIG. 2, the data processing method in an embodiment of the present disclosure, applied to a client, specifically includes the following steps:
步骤S201,获取查询网络设备的关键字;Step S201, obtaining keywords for querying network equipment;
步骤S202,将所述关键字和返回数据格式生成数据查询请求;Step S202: Generate a data query request from the keyword and the returned data format;
步骤S203,将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;Step S203: Send the data query request to the server, so that the server obtains a corresponding data set from the data according to the data query request. The data set includes the identity and status information of the network device, and the status information Including online or offline status;
步骤S204,接收所述服务器发送的所述数据集;Step S204, receiving the data set sent by the server;
步骤S205,根据所述数据集,将所述网络设备的所述第一状态信息通过进行图表展示。Step S205: According to the data set, the first state information of the network device is displayed in a chart.
在本公开的实施例中,所述返回数据格式包括json数据格式;所述数据库包括redis数据库;将所述数据集进行图表展示包括:将所述数据集通过echart进行图表展示;因此用户在客户端可以通过输入或者选择的方式获取到查询关键字,使服务器根据所述关键字从redis数据库中获取到相匹配的数据集,客户端根据所述数据集通过echart进行图表的展示。In an embodiment of the present disclosure, the returned data format includes a json data format; the database includes a redis database; displaying the data set in a chart includes: displaying the data set in a chart through echart; therefore, the user is in the customer The client can obtain the query keyword by input or selection, so that the server obtains a matching data set from the redis database according to the keyword, and the client displays the chart through echart according to the data set.
在本公开的一个实施例中,若所述状态信息包括所述网络设备的位置信息时,将所述数据集进行图表展示,包括:将所述数据集中的位置信息转换成二维数组;根据所述二维数组展示所述网络设备的散点位置。In an embodiment of the present disclosure, if the status information includes the location information of the network device, displaying the data set in a chart includes: converting the location information in the data set into a two-dimensional array; The two-dimensional array displays the scattered locations of the network devices.
图3是本公开实施例提供的一种数据处理装置的结构框图;如图3所示,本公开实施例中的数据处理装置,应用于服务器时具体包括:Fig. 3 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure; as shown in Fig. 3, the data processing device in an embodiment of the present disclosure, when applied to a server, specifically includes:
身份标识获取模块310,被设置为获取所有网络设备的身份标识;The identity acquiring module 310 is set to acquire the identities of all network devices;
状态信息获取模块320,被设置为根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;The status information acquiring module 320 is configured to acquire current status information of the network device at a preset time according to the identity identifier, and the status information includes an online status or an offline status;
判断模块330,被设置为判断所述当前状态信息与上一个状态信息是否相同;The judging module 330 is configured to judge whether the current state information is the same as the previous state information;
存储模块340,被设置为若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。The storage module 340 is configured to store the current state information in a database if the current state information is not the same as the previous state information, so that the client terminal displays graphs based on the data in the database.
在本公开的实施例中,所述装置还包括:数据查询请求接收模块,被设置为接收客户端发送的数据查询请求,所述数据查询请求包括查询关键字;数据集获取模块,被设置为根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示。In an embodiment of the present disclosure, the device further includes: a data query request receiving module configured to receive a data query request sent by the client, the data query request including query keywords; a data set acquiring module configured to According to the data query request, a data set matching the query keyword is obtained from the database and sent to the client terminal, so that the client terminal displays a chart according to the data set.
数据集获取模块包括:查询数据获取模块,被设置为根据所述查询关键字,获取与所述查询关键字相匹配的所有查询数据;数据集生成模块,被设置为根据所述返回数据格式,将所述所有查询数据生成相应的数据集发送到所述客户端。The data set acquisition module includes: a query data acquisition module configured to acquire all query data matching the query keyword according to the query keyword; a data set generation module configured to acquire all query data matching the query keyword according to the returned data format, The corresponding data set is generated from all the query data and sent to the client.
图4是本公开实施例提供的一种数据处理装置的结构框图;如图4所示,本公开实施例中的数据处理装置,应用于客户端时具体包括:Fig. 4 is a structural block diagram of a data processing device provided by an embodiment of the present disclosure; as shown in Fig. 4, the data processing device in an embodiment of the present disclosure, when applied to a client, specifically includes:
关键字获取模块410,被设置为获取网络设备的查询关键字;The keyword obtaining module 410 is set to obtain the query keyword of the network device;
查询请求生成模块420,被设置为将所述查询关键字和返回数据格式生成数据查询请求;The query request generating module 420 is configured to generate a data query request from the query keywords and the returned data format;
查询请求发送模块430,被设置为将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;The query request sending module 430 is configured to send the data query request to the server, so that the server obtains a corresponding data set from the data according to the data query request, and the data set includes the identity and status of the network device Information, the status information includes an online status or an offline status;
数据集接收模块440,被设置为接收所述服务器发送的所述数据集;A data set receiving module 440, configured to receive the data set sent by the server;
图表展示模块450,被设置为将所述数据集进行图表展示。The chart display module 450 is configured to display the data set in a chart.
在本公开的一个实施例中,图表展示模块450包括位置信息转换模块,被设置为将所述数据集中的位置信息转换成二维数组;散点位置展示模块,被设置为根据所述二维数组展示所述网络设备的散点位置。In an embodiment of the present disclosure, the graph display module 450 includes a position information conversion module, which is configured to convert the position information in the data set into a two-dimensional array; the scattered point position display module is configured to The array shows the scattered locations of the network devices.
图5是本公开实施例提供的一种数据处理示意图,将系统产生的数据存储到redis数据库当中通过redis可以高效且持久化的存储我们系统产生的数据,同时通过echart页面组件我们可以把存储的数据通过柱状图、折线图、柱折混合图、饼状图、散点图等图表组件展示出我们存储在redis当中的数据。Figure 5 is a schematic diagram of data processing provided by an embodiment of the present disclosure. The data generated by the system is stored in the redis database. Redis can efficiently and persistently store the data generated by our system. At the same time, we can store the data through the echart page component. The data shows the data we store in redis through chart components such as histogram, line chart, column-fold mixed chart, pie chart, and scatter chart.
在本公开的一个实施例中,网络设备通过通讯模块与服务器通讯时,服务器将该设备的IMEI(设备唯一标识)写入redis当中,若该设备与服务器通讯中断,服务器将该设备的IMEI从redis中删除,同时这时候前端可请求后台获取redis当中已存在的IMEI来展示在线的设备。In an embodiment of the present disclosure, when a network device communicates with a server through a communication module, the server writes the IMEI (Unique Device Identifier) of the device into redis. If the communication between the device and the server is interrupted, the server will change the IMEI of the device from Delete it in redis, and at this time, the front end can request the background to obtain the IMEI that exists in redis to display the online device.
在一些实施方式中,设备通过通讯模块与服务器通讯时,服务器通过后台程序获取到了设备的唯一标识IMEI(或其他标识码),后台 程序将该唯一标识作为一个key存储进入到redis数据库当中,客户端的echart通过http接口请求服务器的后台程序读取数据库中存在的key的值,接口返回的数据类型可以是数组等常用基本类型,例如获取到的格式可以为数组类型【8881,8882,883,884,885】即可理解为现在在线的设备为标识码为8881、8882、8883、8884、8885这5台设备,这时候利用echart的饼状图设立分区为在线设备的数值为5,同时请求后台统计所有设备数量接口返回的所有设备数量数值n,该数值减去5就可以设立饼状图分区为掉线设备的数值为n-5,此时即可通过该饼状图清晰的看到设备的在线与掉线状况。In some embodiments, when the device communicates with the server through the communication module, the server obtains the unique identifier IMEI (or other identification code) of the device through the background program, and the background program stores the unique identifier as a key into the redis database, and the client The echart on the end requests the server's background program to read the value of the key in the database through the http interface. The data type returned by the interface can be an array and other common basic types. For example, the obtained format can be an array type [8881,8882,883,884,885] that is It can be understood that the current online devices are 5 devices with identification codes 8881, 8882, 8883, 8884, and 8885. At this time, using echart's pie chart to set up a partition for online devices, the value is 5, and the background counts the number of all devices at the same time. The number of all devices returned by the interface is n. This value is subtracted from 5 to set up the pie chart partition as offline devices. The value is n-5. At this time, you can clearly see the online and offline devices through the pie chart. Line condition.
在本公开的另一个实施例中,若设备带有GPS定位上报的功能时,设备与服务器通讯时带有的GPS定位信息可以上报至服务器同时服务器将该GPS的坐标信息例如北纬多少度东经多少度的信息当做一个key为该设备IMEI(或其他标识码)的value存储如redis数据库当中,前端echart通过http请求获取服务器的后台程序读取数据库中存在的所有关于GPS的有关的key当中存储的value,获取格式可以为一个{“8881”:223E60N;“882”:213E70N;}json格式的数据;此时即可将该金纬度数据整合成为[[223,60],[231,70]]的一个二维数组,即可存入echart地图插件的散点渲染数组当中,即可展示设备在当前地图当中的散点位置。In another embodiment of the present disclosure, if the device has the function of GPS positioning and reporting, the GPS positioning information carried in the communication between the device and the server can be reported to the server. At the same time, the server can report the GPS coordinate information such as north latitude and east longitude. The degree of information is used as a key to store the value of the IMEI (or other identification code) of the device, such as a redis database. The front-end echart obtains the server's background program through http request to read all the GPS-related keys stored in the database. value, the acquisition format can be a {"8881": 223E60N; "882": 213E70N;} json format data; at this time, the golden latitude data can be integrated into [[223,60],[231,70]] A two-dimensional array of, can be stored in the scatter rendering array of the echart map plug-in, and the scatter position of the device in the current map can be displayed.
在本公开的一个实施例中,本公开提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。In an embodiment of the present disclosure, the present disclosure provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the following is achieved Step: Obtain the identities of all network devices; obtain the current status information of the network devices at a preset time according to the identities, and the status information includes online status or offline status; determine the current status information and the previous status Whether the information is the same; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
在本公开的一个实施例中,本公开提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。In one embodiment of the present disclosure, the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtain the identities of all network devices; The identity identifier acquires the current status information of the network device at a preset time, the status information includes the online status or the offline status; judges whether the current status information is the same as the previous status information; if the current status information is the same as the previous status information If the status information is different, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
本公开提供的数据处理方法、装置和计算机设备,应用于服务器,所述方法包括:获取所有网络设备的身份标识;根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;判断所述当前状态信息与上一个状态信息是否相同;若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。本公开的数据处理方法中服务器将实时获取到的网络设备状态信息存储在数据库中,使客户端根据所述数据库里的网络设备信息、状态信息和时间进行图表展示,因此本公开使数据在存储和读取速度更加高效和快捷,并且在数据的展示中可以通过图表等形式,使用户更加清楚和直观的了解所有网络设备的实时运行情况;因此解决了相关技术中的数据处理方法不能及时获取当前网络设备的运行信息的问题,满足了用户的实际需求。The data processing method, device, and computer equipment provided by the present disclosure are applied to a server, and the method includes: obtaining the identities of all network equipment; according to the identities, obtaining current state information of the network equipment at a preset time, so The status information includes online status or offline status; it is determined whether the current status information is the same as the previous status information; if the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client The terminal performs chart display based on the data in the database. In the data processing method of the present disclosure, the server stores the network device status information obtained in real time in a database, so that the client terminal displays the network device information, status information, and time in the database. Therefore, the present disclosure enables the data to be stored And the reading speed is more efficient and faster, and the data can be displayed in the form of charts, so that users can more clearly and intuitively understand the real-time operation of all network devices; therefore, it solves the problem that the data processing methods in related technologies cannot be obtained in time. The current operating information problem of network equipment meets the actual needs of users.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的 情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or sequence between entities or operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above are only specific implementations of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features applied for in this document.

Claims (10)

  1. 一种数据处理方法,应用于服务器,所述方法包括:A data processing method applied to a server, and the method includes:
    获取所有网络设备的身份标识;Obtain the identities of all network devices;
    根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;Acquiring current state information of the network device at a preset time according to the identity identifier, where the state information includes an online state or an offline state;
    判断所述当前状态信息与上一个状态信息是否相同;Judging whether the current state information is the same as the previous state information;
    若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。If the current status information is not the same as the previous status information, the current status information is stored in the database, so that the client terminal displays the chart according to the data in the database.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收客户端发送的数据查询请求,所述数据查询请求包括查询关键字;Receiving a data query request sent by the client, where the data query request includes a query keyword;
    根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示。According to the data query request, a data set matching the query keyword is obtained from the database and sent to the client terminal, so that the client terminal displays a chart according to the data set.
  3. 根据权利要求2所述的方法,其中,所述数据库为redis数据库;The method according to claim 2, wherein the database is a redis database;
    根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集进行图表展示,包括:According to the data query request, obtaining a data set that matches the query keyword from the database and sending it to the client, so that the client can display a chart according to the data set, including:
    根据所述数据查询请求,从redis数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,使所述客户端根据所述数据集通过echart进行图表展示。According to the data query request, a data set matching the query keyword is obtained from the redis database and sent to the client, so that the client displays the data set through echart in a chart.
  4. 根据权利要求3所述的方法,其中,若所述数据查询请求还包括返回数据格式时,根据所述数据查询请求,从所述数据库中获取与所述查询关键字相匹配的数据集发送到所述客户端,包括:The method according to claim 3, wherein, if the data query request further includes a return data format, according to the data query request, a data set matching the query keyword is obtained from the database and sent to The client includes:
    根据所述查询关键字,获取与所述查询关键字相匹配的所有查询 数据;According to the query keyword, obtain all query data that matches the query keyword;
    根据所述返回数据格式,将所述所有查询数据生成相应的数据集发送到所述客户端。According to the returned data format, a corresponding data set is generated from all the query data and sent to the client.
  5. 一种数据处理方法,应用于客户端,所述方法包括:A data processing method applied to a client, the method including:
    获取网络设备的查询关键字;Get query keywords of network equipment;
    将所述查询关键字和返回数据格式生成数据查询请求;Generating a data query request from the query keywords and the returned data format;
    将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;The data query request is sent to the server, so that the server obtains a corresponding data set from the data according to the data query request, the data set includes the identity and status information of the network device, and the status information includes the online status Or offline;
    接收所述服务器发送的所述数据集;Receiving the data set sent by the server;
    将所述数据集进行图表展示。The data set is displayed graphically.
  6. 根据权利要求5所述的方法,其中,The method of claim 5, wherein:
    所述返回数据格式包括json数据格式;The returned data format includes a json data format;
    所述数据库包括redis数据库;The database includes a redis database;
    将所述数据集进行图表展示包括:将所述数据集通过echart进行图表展示。The graphical display of the data set includes: graphically displaying the data set through echart.
  7. 根据权利要求6所述的方法,其中,若所述状态信息包括所述网络设备的位置信息时,将所述数据集进行图表展示,包括:The method according to claim 6, wherein if the status information includes the location information of the network device, displaying the data set in a chart comprises:
    将所述数据集中的位置信息转换成二维数组;Converting the position information in the data set into a two-dimensional array;
    根据所述二维数组展示所述网络设备的散点位置。Display the scattered locations of the network devices according to the two-dimensional array.
  8. 一种数据处理装置,应用于服务器,所述装置包括:A data processing device applied to a server, the device comprising:
    身份标识获取模块,被设置为获取所有网络设备的身份标识;The identity acquisition module is set to acquire the identities of all network devices;
    状态信息获取模块,被设置为根据所述身份标识,在预设时刻获取所述网络设备当前状态信息,所述状态信息包括在线状态或离线状态;The status information acquiring module is configured to acquire current status information of the network device at a preset time according to the identity identifier, and the status information includes an online status or an offline status;
    判断模块,被设置为判断所述当前状态信息与上一个状态信息是 否相同;The judging module is set to judge whether the current state information is the same as the previous state information;
    存储模块,被设置为若所述当前状态信息与上一个状态信息不相同,将所述当前状态信息存入数据库,使客户端根据所述数据库的数据进行图表展示。The storage module is configured to store the current state information in a database if the current state information is not the same as the previous state information, so that the client terminal displays graphs based on the data in the database.
  9. 一种数据处理装置,应用于客户端,所述装置包括:A data processing device applied to a client, the device comprising:
    关键字获取模块,被设置为获取网络设备的查询关键字;The keyword acquisition module is set to acquire the query keywords of the network equipment;
    查询请求生成模块,被设置为将所述查询关键字和返回数据格式生成数据查询请求;The query request generation module is set to generate a data query request from the query keywords and the returned data format;
    查询请求发送模块,被设置为将所述数据查询请求发送到服务器,使所述服务器根据所述数据查询请求从数据中获取相应的数据集,所述数据集包括网络设备的身份标识和状态信息,所述状态信息包括在线状态或离线状态;The query request sending module is configured to send the data query request to the server, so that the server obtains a corresponding data set from the data according to the data query request, and the data set includes the identity and status information of the network device , The status information includes online status or offline status;
    数据集接收模块,被设置为接收所述服务器发送的所述数据集;A data set receiving module, configured to receive the data set sent by the server;
    图表展示模块,被设置为将所述数据集进行图表展示。The chart display module is configured to display the data set in a chart.
  10. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。A computer device comprising a memory, a processor, and a computer program stored on the memory and capable of running on the processor. The processor implements the method described in any one of claims 1 to 7 when the processor executes the computer program step.
PCT/CN2020/140492 2020-04-26 2020-12-29 Data processing method and apparatus and computer device WO2021218218A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010339027.9 2020-04-26
CN202010339027.9A CN111586118A (en) 2020-04-26 2020-04-26 Data processing method and device and computer equipment

Publications (1)

Publication Number Publication Date
WO2021218218A1 true WO2021218218A1 (en) 2021-11-04

Family

ID=72113932

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140492 WO2021218218A1 (en) 2020-04-26 2020-12-29 Data processing method and apparatus and computer device

Country Status (2)

Country Link
CN (1) CN111586118A (en)
WO (1) WO2021218218A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586118A (en) * 2020-04-26 2020-08-25 珠海格力电器股份有限公司 Data processing method and device and computer equipment
WO2022099564A1 (en) * 2020-11-12 2022-05-19 京东方科技集团股份有限公司 Method and apparatus for simultaneously presenting status information of multiple devices, and storage medium
CN112666906B (en) * 2020-12-23 2022-09-30 树根互联股份有限公司 Data processing method and device, server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110195694A1 (en) * 2010-02-08 2011-08-11 Mitel Networks Corporation Desktop mobile information provider
CN104751306A (en) * 2015-04-28 2015-07-01 海南汉能薄膜太阳能有限公司 Industrial control equipment monitoring method and system
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection
CN108234396A (en) * 2016-12-14 2018-06-29 北京视联动力国际信息技术有限公司 A kind of method and device of monitoring device status information real-time synchronization
CN110673502A (en) * 2019-10-14 2020-01-10 珠海格力电器股份有限公司 Quick response method and system of intelligent device, storage medium and network side device
CN111586118A (en) * 2020-04-26 2020-08-25 珠海格力电器股份有限公司 Data processing method and device and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110195694A1 (en) * 2010-02-08 2011-08-11 Mitel Networks Corporation Desktop mobile information provider
CN104751306A (en) * 2015-04-28 2015-07-01 海南汉能薄膜太阳能有限公司 Industrial control equipment monitoring method and system
CN108234396A (en) * 2016-12-14 2018-06-29 北京视联动力国际信息技术有限公司 A kind of method and device of monitoring device status information real-time synchronization
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection
CN110673502A (en) * 2019-10-14 2020-01-10 珠海格力电器股份有限公司 Quick response method and system of intelligent device, storage medium and network side device
CN111586118A (en) * 2020-04-26 2020-08-25 珠海格力电器股份有限公司 Data processing method and device and computer equipment

Also Published As

Publication number Publication date
CN111586118A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
WO2021218218A1 (en) Data processing method and apparatus and computer device
CN105657003B (en) Information processing method and server
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
AU2011349613B2 (en) Generating maps of private spaces using mobile computing device sensors
CN107341033A (en) A kind of data statistical approach, device, electronic equipment and storage medium
CN103916626A (en) Monitoring video information providing method and device and video monitoring system
CN114124861B (en) Message mass-sending method, device, computer equipment and storage medium
CN111414139A (en) Online remote printing method and device, computer equipment and storage medium
CN110572309B (en) Information transmission method, computer device and storage medium
CN112579754A (en) Intelligent robot conversation interaction method and device, and computer equipment
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN113220684A (en) Data packet storage and query method, device, system and storage medium
US20080195715A1 (en) System and method for asynchronous exchanging electronic messages
CN113688183A (en) Multi-type data source extraction method, system, terminal equipment and storage medium
KR20140009581A (en) Method, system, and device for switching between network applications, and computer storage medium
US7747684B2 (en) Information processing technique relating to relation between users and documents
CN101227321A (en) Apparatus, system and method of complaining
CN112035413A (en) Metadata information query method and device and storage medium
CN109120740B (en) Server, system and method for generating IPv6 address
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN102256222B (en) The method and device of notification message transmission
KR20180088260A (en) Method and apparatus for generating web pages
US20230049322A1 (en) Information processing method, device, system, and computer-readable storage medium
US20230135042A1 (en) Framework for nested probabilistic data structures as a service for big data analytics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933215

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20933215

Country of ref document: EP

Kind code of ref document: A1