CN105490869A - Monitoring data acquisition method, device and system - Google Patents
Monitoring data acquisition method, device and system Download PDFInfo
- Publication number
- CN105490869A CN105490869A CN201510802518.1A CN201510802518A CN105490869A CN 105490869 A CN105490869 A CN 105490869A CN 201510802518 A CN201510802518 A CN 201510802518A CN 105490869 A CN105490869 A CN 105490869A
- Authority
- CN
- China
- Prior art keywords
- monitoring data
- data
- monitoring
- storage space
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 339
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000003993 interaction Effects 0.000 claims abstract description 5
- 230000002452 interceptive effect Effects 0.000 claims description 67
- 230000011664 signaling Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 238000012806 monitoring device Methods 0.000 abstract description 5
- 238000013480 data collection Methods 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a monitoring data acquisition method, device and system. The method comprises: receiving the interaction data acquisition signal of a user by a browser, determining the monitoring data needed to be acquired, if the monitoring data is in the preset local storage space, directly acquiring from the local storage space, or sending a data acquisition instruction to a server at appointed time intervals within appointed time, receiving the monitoring data obtained from a monitoring device every time after the server receives the data acquisition instruction, storing the real time monitoring data to the preset local storage space, and obtaining the monitoring data from the preset local storage space. The problems that the data cannot be returned to the browser by the server because of database problem and a great deal of repeated data are stored in the database are solved; the data collection frequency of the server is controlled by the browser, the data are obtained through a plurality of requests, data transmission is more reliable, the monitoring data needed to be obtained are directly read from the local storage space, and the data reading speed is improved.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a system for acquiring monitoring data.
Background
With the upgrading of browsers and the development of Web Browser technology, more and more monitoring systems are turning to be developed in a B/S (Browser/Server) mode, which is also being widely used because of its irreplaceable advantages. In a monitoring system, the following processes are usually involved: data acquisition, data processing and data display.
In a modern monitoring system, data collected by a monitoring device is real-time, and the purpose of storing the monitoring data needs to be achieved. However, this method has several disadvantages: firstly, a server needs to reside tasks to collect data regularly and store the data into a database, and when the database has problems, the server cannot return the collected data to a browser; secondly, if the acquisition frequency of the monitoring equipment is higher, certain pressure is brought to a database in the server, and the requirement on the database is higher; thirdly, each time data in a specific time period is returned from the database, the amount of data transmitted by the server to the browser is large, the rate of acquiring the data by the browser is low, most of the transmitted data is probably duplicated, and in order to solve the problem of duplication of a large amount of data, the processing logic of the server needs to be modified greatly.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a system for acquiring monitoring data, so as to solve the problem that in the prior art, a server needs to reside a task and periodically acquire data and store the data in a database; if the acquisition frequency of the monitoring equipment is higher, certain pressure is brought to a database in the server, the requirement on the database is higher, and monitoring data with too long expiration period is not necessary to be stored; each time data in a specific time period is returned from the database, the data volume transmitted to the browser is large, most of the transmitted data is repeated, and in order to solve the problem of the repeated data in a large quantity, the processing logic of the server needs to be modified greatly.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a method of monitoring data acquisition, comprising:
the method comprises the steps that a browser receives an interactive data acquisition signal of a user, and monitoring data needing to be acquired are determined according to the interactive data acquisition signal;
judging whether the monitoring data exist in a preset local storage space or not;
if yes, acquiring the monitoring data from the preset local storage space;
if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from monitoring equipment by the server after receiving the data acquisition instruction every time, storing the real-time monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
Wherein the interaction data acquisition signal comprises: the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identification of the monitoring data.
Wherein, the browser further comprises, after receiving the interactive operation signal of the user:
and writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file.
Writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file, and then:
judging whether an interactive page switching signal of a user is received or not;
and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
The monitoring data acquisition method further comprises the following steps:
deleting all the monitoring data in the preset local storage space at intervals of preset time;
and/or when a browser closing instruction is received, deleting all the monitoring data in the preset local storage space.
Wherein, still include after obtaining the monitoring data from preset local storage space:
drawing a monitoring graph according to the monitoring data;
and placing the monitoring graph in a browser display interface.
Wherein the monitoring graph comprises at least one of a line graph, an area graph and a graph.
A monitoring data acquisition apparatus comprising: the device comprises a signal receiving module, a judging module, a first obtaining module and a second obtaining module; wherein,
the receiving module is used for receiving an interactive data acquisition signal of a user and determining monitoring data to be acquired according to the interactive data acquisition signal;
the judging module is used for judging whether the monitoring data exist in a preset local storage space or not;
the first obtaining module is configured to obtain the monitoring data from a preset local storage space when the judging module judges that the monitoring data exists in the preset local storage space;
the second obtaining module is configured to, when the judging module judges that the monitoring data does not exist in the preset local storage space, send a data obtaining instruction to the server at a specified time interval within the specified time of the interactive data obtaining signal, receive real-time monitoring data obtained by the server from the server after receiving the data obtaining instruction each time, store the monitoring data in the preset local storage space, and obtain the monitoring data from the preset local storage space.
Wherein, the monitoring data acquisition device still includes: a writing module and a judging and introducing module; wherein,
the writing module is used for writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file;
the judgment lead-in module is used for judging whether an interactive page switching signal of a user is received or not; and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
A monitored data acquisition system comprising: a browser, a server, and a server; wherein,
the browser is used for receiving an interactive data acquisition signal of a user and determining monitoring data to be acquired according to the interactive data acquisition signal; judging whether the monitoring data exist in a preset local storage space or not; if yes, acquiring the monitoring data from the preset local storage space; if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from the monitoring equipment by the server after receiving the data acquisition instruction every time, storing the monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
The server is used for receiving a data acquisition instruction sent by the browser, acquiring real-time monitoring data from the monitoring equipment and returning the real-time monitoring data to the browser;
the monitoring equipment is used for acquiring monitoring data in real time.
Based on the above technical solution, the monitoring data acquiring method, apparatus and system provided in the embodiments of the present invention, after receiving an interactive data acquiring signal of a user, a browser determines monitoring data to be acquired according to the interactive data acquiring signal of the user, determines whether the monitoring data to be acquired exists in a preset local storage space, if so, acquires the monitoring data from the preset local storage space, if not, sends a data acquiring instruction to a server at a specified time interval within a specified time of the interactive data acquiring signal, the server acquires real-time monitoring data from a monitoring device after receiving the data acquiring instruction sent by the browser each time, and returns the acquired real-time monitoring data to the browser, and after receiving the real-time monitoring data returned by the server, the browser stores the received real-time monitoring data in the preset local storage space, and then acquiring the monitoring data from the preset local storage space. The server acquires real-time monitoring data from the monitoring equipment after receiving a data acquisition instruction sent by the browser every time, a specific program does not need to be held in the server to acquire the real-time monitoring data, the server immediately returns the real-time monitoring data to the browser after acquiring the real-time monitoring data, a database does not need to be arranged in the server to store the acquired real-time data, the service logic of the server is reduced, the functions of the server are simplified, the processing logic is simple, and the problems that the server cannot return the real-time monitoring data to the browser due to database problems and a large amount of repeated data are stored in the database are solved; meanwhile, the server acquires real-time monitoring data from the monitoring equipment after receiving a data acquisition instruction sent by the browser each time, the frequency of acquiring the real-time monitoring data by the server is the frequency of sending the data acquisition instruction to the server by the browser, the frequency of acquiring the real-time monitoring data by the server is controlled by the browser, the user can be more freely used, the browser sends the data acquisition instruction to the server at intervals of specified time intervals, a small amount of data is acquired each time by multiple requests to acquire all required monitoring data, and the data transmission is more reliable than that of acquiring all the monitoring data by requesting a large amount of data each time by fewer requests; on the other hand, the browser stores the acquired real-time monitoring data in a preset local storage space, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, the monitoring data to be acquired is acquired from the preset local storage space, the monitoring data to be acquired is directly read from the local storage space, the data reading speed is improved, when historical monitoring data needs to be acquired, the required data can be directly read from the preset local storage space without being acquired from the server, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a monitoring data obtaining method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for ensuring that monitoring data is continuously acquired when a browser page is switched in the monitoring data acquisition method according to the embodiment of the present invention;
fig. 3 is a flowchart of a method for displaying a monitoring graph in a monitoring data obtaining method according to an embodiment of the present invention;
fig. 4 is a system block diagram of a monitoring data acquiring apparatus according to an embodiment of the present invention;
fig. 5 is another system block diagram of a monitoring data acquiring apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a monitoring data acquisition system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a monitoring data acquisition method according to an embodiment of the present invention, where a specific program does not need to be stationed in a server to acquire real-time monitoring data, and a database does not need to be set in the server to store the acquired real-time data, so that the service logic of the server is reduced, the function of the server is simplified, the processing logic is simple, and a problem that the server cannot return the real-time monitoring data to a browser due to a database problem and a problem that a large amount of repeated data is stored in the database are avoided; meanwhile, the frequency of collecting real-time monitoring data by the browser control server can provide greater freedom for users to use, and the required all monitoring data can be obtained by obtaining a small amount of data each time through multiple requests, so that the data transmission is more reliable; on the other hand, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, and the monitoring data to be acquired is directly read from the local storage space, so that the data reading rate is improved, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved; referring to fig. 1, the monitoring data acquiring method may include:
step S100: the method comprises the steps that a browser receives an interactive data acquisition signal of a user, and monitoring data needing to be acquired are determined according to the interactive data acquisition signal;
optionally, the browser may receive interactive data acquisition information sent by the user through operating the human-computer interaction interface, and after receiving an interactive data acquisition signal sent by the user through operating the human-computer interaction interface, the browser determines the monitoring data to be acquired according to the interactive data acquisition information.
Optionally, the interactive data acquiring signal of the user may include a data type of the monitoring data to be acquired, a time interval for acquiring the monitoring data to be acquired, and a time identifier of the monitoring data to be acquired, the monitoring data to be acquired may be determined according to the data type of the monitoring data to be acquired and the time identifier of the monitoring data to be acquired, and the frequency of sending the data acquiring instruction to the server by the browser may be controlled according to the time interval for acquiring the monitoring data to be acquired.
Optionally, after the browser receives the interactive operation signal of the user, the data type of the monitoring data, the time interval for acquiring the monitoring data, and the time identifier of the monitoring data, which are set in the interactive data acquisition signal received by the browser, may be written into the common js file, and the monitoring data may be used by other pages when the browser switches pages.
Optionally, after the data type of the monitoring data, the time interval for acquiring the monitoring data, and the time identifier of the monitoring data are written into the public js file, in order to avoid that the user skips the browser to another page, the previous page stops sending the data acquisition instruction to the server, and the monitoring data acquired by the previous page is lost, so that only the previous page is switched back again and the data acquisition instruction is sent to the server again, so as to send the situation of acquiring the monitoring data again. When the interactive page switching signal of the user is judged to be received, namely the user is judged to switch the page, the switched page is determined according to the interactive page switching signal, and then the switched page is controlled to be introduced into the public js file. Therefore, the page can still continuously send the data acquisition instruction to the server before the browser switches the page, so that the data acquisition has continuity, and the monitoring data of the previous page does not need to be acquired again after the browser switches the page and returns.
Step S110: judging whether the monitoring data exist in a preset local storage space or not;
whether the monitoring data which needs to be acquired is judged by judging whether the monitoring data which needs to be acquired exists in the preset local storage space, namely whether the monitoring data which needs to be acquired is historical monitoring data is judged.
Optionally, the preset local storage space may be a browser cache.
Step S120: if yes, acquiring the monitoring data from the preset local storage space;
if the monitoring data needing to be acquired exists in the preset local storage space, namely the monitoring data needing to be acquired is acquired from the server once and is historical monitoring data, the server can directly acquire the monitoring data from the preset local storage space without acquiring from the server, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
Step S130: if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from monitoring equipment by the server after receiving the data acquisition instruction every time, storing the real-time monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
If it is determined that the monitoring data to be acquired does not exist in the preset local storage space, that is, the monitoring data to be acquired is not acquired by the server and is real-time monitoring data, the server sends a data acquisition instruction to the server at intervals of a specified time within a specified time of an interactive data acquisition signal, receives the real-time monitoring data acquired by the server from the monitoring equipment after receiving the data acquisition instruction every time, stores the real-time monitoring data into the preset local storage space, acquires the monitoring data from the preset local storage space, and improves the reading rate of the real-time detection data.
Optionally, the monitoring data stored in the preset local storage space may be completely deleted at preset time intervals, or the monitoring data stored in the preset local storage space may be completely deleted when the browser closing instruction is received, so as to avoid storing repeated data and generating excessive garbage data.
Optionally, after the monitoring data is acquired from the preset local storage space, the monitoring graph can be drawn according to the acquired monitoring data, and then the drawn monitoring graph is placed in a browser display interface for a user to view. Correspondingly, the monitoring data to be acquired is directly read from the local storage space, so that the data reading rate is improved, and the drawing rate of the monitoring graph is provided.
Alternatively, the plotted monitoring graph may be at least one of a line graph, an area graph, and a graph.
Optionally, whether the monitoring data to be acquired is directly acquired from the preset local storage space or the monitoring data to be acquired is acquired from the storage space after the real-time monitoring data is acquired by the server, the monitoring data to be acquired may be acquired from the preset local storage space at preset time intervals.
Based on the above technical solution, an embodiment of the present invention provides a monitoring data acquiring method, where after receiving an interactive data acquiring signal of a user, a browser determines monitoring data to be acquired according to the interactive data acquiring signal of the user, determines whether the monitoring data to be acquired exists in a preset local storage space, if the monitoring data exists, acquires the monitoring data from the preset local storage space, if the monitoring data does not exist, sends a data acquiring instruction to a server at a specified time interval within a specified time of the interactive data acquiring signal, the server acquires real-time monitoring data from a monitoring device after receiving the data acquiring instruction sent by the browser each time, and returns the acquired real-time monitoring data to the browser, and after receiving the real-time monitoring data returned by the server, the browser stores the received real-time monitoring data in the preset local storage space, and then acquiring the monitoring data from the preset local storage space. The server acquires real-time monitoring data from the monitoring equipment after receiving a data acquisition instruction sent by the browser every time, a specific program does not need to be held in the server to acquire the real-time monitoring data, the server immediately returns the real-time monitoring data to the browser after acquiring the real-time monitoring data, a database does not need to be arranged in the server to store the acquired real-time data, the service logic of the server is reduced, the functions of the server are simplified, the processing logic is simple, and the problems that the server cannot return the real-time monitoring data to the browser due to database problems and a large amount of repeated data are stored in the database are solved; meanwhile, the server acquires real-time monitoring data from the monitoring equipment after receiving a data acquisition instruction sent by the browser each time, the frequency of acquiring the real-time monitoring data by the server is the frequency of sending the data acquisition instruction to the server by the browser, the frequency of acquiring the real-time monitoring data by the server is controlled by the browser, the user can be more freely used, the browser sends the data acquisition instruction to the server at intervals of specified time intervals, a small amount of data is acquired each time by multiple requests to acquire all required monitoring data, and the data transmission is more reliable than that of acquiring all the monitoring data by requesting a large amount of data each time by fewer requests; on the other hand, the browser stores the acquired real-time monitoring data in a preset local storage space, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, the monitoring data to be acquired is acquired from the preset local storage space, the monitoring data to be acquired is directly read from the local storage space, the data reading speed is improved, when historical monitoring data needs to be acquired, the required data can be directly read from the preset local storage space without being acquired from the server, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
Optionally, fig. 2 shows a flowchart of a method for ensuring that monitoring data is continuously obtained when a browser page is switched in the monitoring data obtaining method provided in the embodiment of the present invention, and referring to fig. 2, the method for ensuring that monitoring data is continuously obtained when a browser page is switched may include:
step S200: writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file;
after the browser receives an interactive operation signal of a user, writing the data type of monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data, which are set in an interactive data acquisition signal received by the browser, into a public js file, so that when the browser switches pages, other pages can acquire the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data, which are written into the public js file, by reading the public js file.
Step S210: judging whether an interactive page switching signal of a user is received or not;
and judging whether the user switches the browser page or not by judging whether an interactive page switching signal of the user is received or not.
Step S220: and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
If the fact that an interactive page switching signal of a user is received is judged, the fact that the user is switching a browser page is indicated, the switched page is determined according to the interactive page switching signal, the switched page is controlled to be introduced into the public js file, a data acquisition instruction can be continuously sent to a server by a previous page after the browser switches the page, data acquisition is enabled to be continuous, the situation that the user jumps to other pages after the browser is skipped to by the user, the previous page stops sending the data acquisition instruction to the server, monitoring data acquired by the previous page is lost, and the situation that the user only switches back to the previous page and sends the data acquisition instruction to the server again to acquire the monitoring data again is avoided.
Optionally, fig. 3 shows a flowchart of a method for displaying a monitoring graph in the monitoring data obtaining method provided in the embodiment of the present invention, and referring to fig. 3, the method for displaying a monitoring graph may include:
step S300, drawing a monitoring graph according to the monitoring data;
after the monitoring data is acquired from the preset local storage space, a monitoring graph may be drawn according to the acquired monitoring data, and optionally, the drawn monitoring graph may be at least one of a line graph, an area graph and a curve graph.
And S310, placing the monitoring graph in a browser display interface.
And placing the drawn monitoring graph in a browser display interface, so that a user can view the monitoring graph placed in the browser display interface.
According to the monitoring data acquisition method provided by the embodiment of the invention, a specific program does not need to be stationed in the server to acquire real-time monitoring data, a database does not need to be arranged in the server to store the acquired real-time data, the service logic of the server is reduced, the function of the server is simplified, the processing logic is simple, and the problems that the server cannot return the real-time monitoring data to a browser due to the database problem and a large amount of repeated data is stored in the database are solved; meanwhile, the frequency of collecting real-time monitoring data by the browser control server can provide greater freedom for users to use, and the required all monitoring data can be obtained by obtaining a small amount of data each time through multiple requests, so that the data transmission is more reliable; on the other hand, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, and the monitoring data to be acquired is directly read from the local storage space, so that the data reading rate is improved, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
In the following, the monitoring data obtaining apparatus provided by the embodiment of the present invention is introduced, and the monitoring data obtaining apparatus described below and the monitoring data obtaining method described above may be referred to correspondingly.
Fig. 4 is a system block diagram of a monitoring data acquiring apparatus according to an embodiment of the present invention, and referring to fig. 4, the monitoring data acquiring apparatus may include: the device comprises a signal receiving module 100, a judging module 200, a first obtaining module 300 and a second obtaining module 400; wherein,
a receiving module 100, configured to receive an interactive data acquisition signal of a user, and determine monitoring data to be acquired according to the interactive data acquisition signal;
the judging module 200 is configured to judge whether the monitoring data exists in a preset local storage space;
a first obtaining module 300, configured to obtain the monitoring data from a preset local storage space when the determining module determines that the monitoring data exists in the preset local storage space;
a second obtaining module 400, configured to, when the determining module determines that the monitoring data does not exist in the preset local storage space, send a data obtaining instruction to the server at an interval of a specified time within a specified time of the interactive data obtaining signal, receive real-time monitoring data obtained by the server from the server after receiving the data obtaining instruction each time, store the monitoring data in the preset local storage space, and obtain the monitoring data from the preset local storage space.
Optionally, fig. 5 shows another system block diagram of the monitoring data acquiring apparatus according to the embodiment of the present invention, and referring to fig. 5, the monitoring data acquiring apparatus may further include: a write module 500 and a judge lead-in module 600; wherein,
a writing module 500, configured to write the data type of the monitoring data, the time interval for acquiring the monitoring data, and the time identifier of the monitoring data into a public js file;
a judgment lead-in module 600, configured to judge whether an interactive page switching signal of a user is received; and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
The monitoring data acquisition device provided by the embodiment of the invention has the advantages that the real-time monitoring data does not need to be acquired by a specific program in a server, a database does not need to be arranged in the server to store the acquired real-time data, the service logic of the server is reduced, the function of the server is simplified, the processing logic is simple, and the problems that the server cannot return the real-time monitoring data to a browser due to the database problem and a large amount of repeated data is stored in the database are solved; meanwhile, the frequency of collecting real-time monitoring data by the browser control server can provide greater freedom for users to use, and the required all monitoring data can be obtained by obtaining a small amount of data each time through multiple requests, so that the data transmission is more reliable; on the other hand, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, and the monitoring data to be acquired is directly read from the local storage space, so that the data reading rate is improved, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
In the following, the monitoring data acquiring system provided by the embodiment of the present invention is introduced, and the monitoring data acquiring system described below, the monitoring data acquiring method described above, and the monitoring data acquiring apparatus described above may be referred to in correspondence with each other.
Fig. 6 is a block diagram of a monitoring data acquiring system according to an embodiment of the present invention, and referring to fig. 6, the monitoring data acquiring system may include: browser 10, server 20, and server 30; wherein,
the browser 10 is configured to receive an interactive data acquisition signal of a user, and determine monitoring data to be acquired according to the interactive data acquisition signal; judging whether the monitoring data exist in a preset local storage space or not; if yes, acquiring the monitoring data from the preset local storage space; if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from the monitoring equipment by the server after receiving the data acquisition instruction every time, storing the monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
The server 20 is configured to receive a data acquisition instruction sent by the browser, acquire real-time monitoring data from the monitoring device, and return the real-time monitoring data to the browser;
and the monitoring equipment 30 is used for acquiring monitoring data in real time.
The monitoring data acquisition device provided by the embodiment of the invention has the advantages that the real-time monitoring data does not need to be acquired by a specific program in a server, a database does not need to be arranged in the server to store the acquired real-time data, the service logic of the server is reduced, the function of the server is simplified, the processing logic is simple, and the problems that the server cannot return the real-time monitoring data to a browser due to the database problem and a large amount of repeated data is stored in the database are solved; meanwhile, the frequency of collecting real-time monitoring data by the browser control server can provide greater freedom for users to use, and the required all monitoring data can be obtained by obtaining a small amount of data each time through multiple requests, so that the data transmission is more reliable; on the other hand, after the monitoring data to be acquired is acquired from the server, the monitoring data to be acquired is stored in the preset local storage space, and the monitoring data to be acquired is directly read from the local storage space, so that the data reading rate is improved, and the problem that the required monitoring data cannot be acquired due to network congestion and the like is solved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device and the system disclosed by the embodiment, the description is simple because the device and the system correspond to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A monitoring data acquisition method, comprising:
the method comprises the steps that a browser receives an interactive data acquisition signal of a user, and monitoring data needing to be acquired are determined according to the interactive data acquisition signal;
judging whether the monitoring data exist in a preset local storage space or not;
if yes, acquiring the monitoring data from the preset local storage space;
if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from monitoring equipment by the server after receiving the data acquisition instruction every time, storing the real-time monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
2. The method of claim 1, wherein the interactive data acquisition signal comprises: the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identification of the monitoring data.
3. The method for acquiring monitoring data according to claim 2, wherein the browser further comprises, after receiving the user interaction operation signal:
and writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file.
4. The method according to claim 3, wherein writing the data type of the monitoring data, the time interval for acquiring the monitoring data, and the time identifier of the monitoring data into a common js file further comprises:
judging whether an interactive page switching signal of a user is received or not;
and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
5. The monitoring data acquisition method according to claim 1, further comprising:
deleting all the monitoring data in the preset local storage space at intervals of preset time;
and/or when a browser closing instruction is received, deleting all the monitoring data in the preset local storage space.
6. The method for acquiring monitoring data according to claim 1, wherein the step of acquiring the monitoring data from the preset local storage space further comprises:
drawing a monitoring graph according to the monitoring data;
and placing the monitoring graph in a browser display interface.
7. The monitoring data acquisition method according to claim 6, wherein the monitoring map includes at least one of a line map, an area map, and a graph.
8. A monitoring data acquisition apparatus, comprising: the device comprises a signal receiving module, a judging module, a first obtaining module and a second obtaining module; wherein,
the receiving module is used for receiving an interactive data acquisition signal of a user and determining monitoring data to be acquired according to the interactive data acquisition signal;
the judging module is used for judging whether the monitoring data exist in a preset local storage space or not;
the first obtaining module is configured to obtain the monitoring data from a preset local storage space when the judging module judges that the monitoring data exists in the preset local storage space;
the second obtaining module is configured to, when the judging module judges that the monitoring data does not exist in the preset local storage space, send a data obtaining instruction to the server at a specified time interval within the specified time of the interactive data obtaining signal, receive real-time monitoring data obtained by the server from the server after receiving the data obtaining instruction each time, store the monitoring data in the preset local storage space, and obtain the monitoring data from the preset local storage space.
9. The monitoring data acquisition device according to claim 8, further comprising: a writing module and a judging and introducing module; wherein,
the writing module is used for writing the data type of the monitoring data, the time interval for acquiring the monitoring data and the time identifier of the monitoring data into a public js file;
the judgment lead-in module is used for judging whether an interactive page switching signal of a user is received or not; and if so, determining a switched page according to the interactive page switching signal, and controlling the switched page to be introduced into the public js file.
10. A monitored data acquisition system, comprising: a browser, a server, and a server; wherein,
the browser is used for receiving an interactive data acquisition signal of a user and determining monitoring data to be acquired according to the interactive data acquisition signal; judging whether the monitoring data exist in a preset local storage space or not; if yes, acquiring the monitoring data from the preset local storage space; if the interactive data acquisition signal does not exist, sending a data acquisition instruction to a server at intervals of a specified time within the specified time of the interactive data acquisition signal, receiving real-time monitoring data acquired from the monitoring equipment by the server after receiving the data acquisition instruction every time, storing the monitoring data into the preset local storage space, and acquiring the monitoring data from the preset local storage space.
The server is used for receiving a data acquisition instruction sent by the browser, acquiring real-time monitoring data from the monitoring equipment and returning the real-time monitoring data to the browser;
the monitoring equipment is used for acquiring monitoring data in real time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510802518.1A CN105490869A (en) | 2015-11-19 | 2015-11-19 | Monitoring data acquisition method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510802518.1A CN105490869A (en) | 2015-11-19 | 2015-11-19 | Monitoring data acquisition method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105490869A true CN105490869A (en) | 2016-04-13 |
Family
ID=55677610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510802518.1A Pending CN105490869A (en) | 2015-11-19 | 2015-11-19 | Monitoring data acquisition method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105490869A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302024A (en) * | 2016-08-23 | 2017-01-04 | 成都科来软件有限公司 | The method and device that a kind of chain index based on various dimensions monitors in real time |
CN106411991A (en) * | 2016-05-26 | 2017-02-15 | 苏州工业园区驿力机车科技股份有限公司 | Vehicle-mounted data real-time acquisition system |
CN106411638A (en) * | 2016-09-13 | 2017-02-15 | 郑州云海信息技术有限公司 | Method and system for processing monitoring data in cloud monitoring system |
CN106452944A (en) * | 2016-08-31 | 2017-02-22 | 成都科来软件有限公司 | Method and device for obtaining business performance analysis data based on multiple dimensions |
CN106569746A (en) * | 2016-11-01 | 2017-04-19 | 北京信安世纪科技有限公司 | Data writing method and device |
CN106874328A (en) * | 2016-07-08 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment |
CN106886372A (en) * | 2017-02-21 | 2017-06-23 | 深圳实现创新科技有限公司 | The big data management method and device of safety monitoring |
CN108334429A (en) * | 2017-01-19 | 2018-07-27 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for investigating front end page problem |
CN108632568A (en) * | 2017-03-17 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video |
CN109062764A (en) * | 2018-08-01 | 2018-12-21 | 郑州云海信息技术有限公司 | The output method and device of monitoring data |
CN110035297A (en) * | 2019-03-08 | 2019-07-19 | 视联动力信息技术股份有限公司 | Method for processing video frequency and device |
CN110704370A (en) * | 2019-09-05 | 2020-01-17 | 苏州浪潮智能科技有限公司 | File system performance monitoring method, device, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459571A (en) * | 2008-12-16 | 2009-06-17 | 北京大学 | Method, system and apparatus for website mirroring |
CN102902799A (en) * | 2012-10-12 | 2013-01-30 | 中科方德软件有限公司 | Browser page display method and device based on WebKit |
CN102930034A (en) * | 2012-11-09 | 2013-02-13 | 北京奇虎科技有限公司 | Page loading system and page loading method |
CN103326958A (en) * | 2012-03-22 | 2013-09-25 | 鸿富锦精密工业(深圳)有限公司 | Method and system for monitoring data cache |
-
2015
- 2015-11-19 CN CN201510802518.1A patent/CN105490869A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459571A (en) * | 2008-12-16 | 2009-06-17 | 北京大学 | Method, system and apparatus for website mirroring |
CN103326958A (en) * | 2012-03-22 | 2013-09-25 | 鸿富锦精密工业(深圳)有限公司 | Method and system for monitoring data cache |
CN102902799A (en) * | 2012-10-12 | 2013-01-30 | 中科方德软件有限公司 | Browser page display method and device based on WebKit |
CN102930034A (en) * | 2012-11-09 | 2013-02-13 | 北京奇虎科技有限公司 | Page loading system and page loading method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106411991A (en) * | 2016-05-26 | 2017-02-15 | 苏州工业园区驿力机车科技股份有限公司 | Vehicle-mounted data real-time acquisition system |
CN106874328B (en) * | 2016-07-08 | 2021-03-19 | 创新先进技术有限公司 | Data processing method and equipment |
CN106874328A (en) * | 2016-07-08 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment |
CN106302024A (en) * | 2016-08-23 | 2017-01-04 | 成都科来软件有限公司 | The method and device that a kind of chain index based on various dimensions monitors in real time |
CN106452944A (en) * | 2016-08-31 | 2017-02-22 | 成都科来软件有限公司 | Method and device for obtaining business performance analysis data based on multiple dimensions |
CN106411638A (en) * | 2016-09-13 | 2017-02-15 | 郑州云海信息技术有限公司 | Method and system for processing monitoring data in cloud monitoring system |
CN106569746A (en) * | 2016-11-01 | 2017-04-19 | 北京信安世纪科技有限公司 | Data writing method and device |
CN108334429A (en) * | 2017-01-19 | 2018-07-27 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for investigating front end page problem |
CN106886372A (en) * | 2017-02-21 | 2017-06-23 | 深圳实现创新科技有限公司 | The big data management method and device of safety monitoring |
CN108632568A (en) * | 2017-03-17 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video |
CN108632568B (en) * | 2017-03-17 | 2021-09-17 | 北京京东尚科信息技术有限公司 | Method and device for reviewing monitoring video, electronic equipment and readable storage medium |
CN109062764A (en) * | 2018-08-01 | 2018-12-21 | 郑州云海信息技术有限公司 | The output method and device of monitoring data |
CN110035297A (en) * | 2019-03-08 | 2019-07-19 | 视联动力信息技术股份有限公司 | Method for processing video frequency and device |
CN110035297B (en) * | 2019-03-08 | 2021-05-14 | 视联动力信息技术股份有限公司 | Video processing method and device |
CN110704370A (en) * | 2019-09-05 | 2020-01-17 | 苏州浪潮智能科技有限公司 | File system performance monitoring method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105490869A (en) | Monitoring data acquisition method, device and system | |
CN108345524B (en) | Application program monitoring method and application program monitoring device | |
EP2854372B1 (en) | Method and device for displaying pushed information | |
CN106528154B (en) | Online seat selection method, system and equipment | |
CN108334525A (en) | A kind of method for exhibiting data and device | |
CN105095107A (en) | Buffer memory data cleaning method and apparatus | |
CN110334072A (en) | A kind of distributed file system, file updating method and device | |
CN105468718A (en) | Data consistency processing method, device and system | |
CN101252462A (en) | Alarming page furbishing method as well as server and client end | |
CN104216698A (en) | Webpage registration method and relative device | |
CN108595965B (en) | Method and device for preventing attribute information of interface control from being stolen | |
CN113806651A (en) | Data caching method, device, server and storage medium | |
CN109246234A (en) | A kind of image file method for down loading, device, electronic equipment and storage medium | |
CN103677519A (en) | Method for collecting multimedia resource, terminal and server | |
CN108171079A (en) | A kind of collecting method based on terminal, device, terminal and storage medium | |
CN106685744A (en) | Fault elimination method, apparatus and system | |
CN117909197A (en) | Operation monitoring method, program updating method, terminal, server and electronic equipment | |
CN109783463A (en) | File synchronisation method, device and computer readable storage medium | |
CN106254092A (en) | A kind of method for early warning, Apparatus and system | |
CN110275785B (en) | Data processing method and device, client and server | |
CN108173898A (en) | The method, apparatus and terminal device of service are accessed for resource | |
CN110007940B (en) | Gray scale release verification method, system, server and readable storage medium | |
CN109992614B (en) | Data acquisition method, device and server | |
CN107066421B (en) | Oscilloscope and collected data reporting method thereof | |
CN112799946B (en) | Buried point and data acquisition method, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160413 |
|
RJ01 | Rejection of invention patent application after publication |