CN105071946A - A system monitoring method and device - Google Patents

A system monitoring method and device Download PDF

Info

Publication number
CN105071946A
CN105071946A CN201510388880.9A CN201510388880A CN105071946A CN 105071946 A CN105071946 A CN 105071946A CN 201510388880 A CN201510388880 A CN 201510388880A CN 105071946 A CN105071946 A CN 105071946A
Authority
CN
China
Prior art keywords
data
running state
running
file
running status
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
Application number
CN201510388880.9A
Other languages
Chinese (zh)
Inventor
陈佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510388880.9A priority Critical patent/CN105071946A/en
Publication of CN105071946A publication Critical patent/CN105071946A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种系统监控方法,所述系统内运行有多个设备,接收设定的系统运行中待记录的运行状态数据的数据种类,提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件,按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。依据本发明的方法用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。统一了不同的终端、服务器和系统记录的运行状态数据的结构,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据。

The invention discloses a system monitoring method. There are a plurality of devices running in the system, and the data type of the running state data to be recorded during the system running is received, and the first device and the second device are extracted during the running of the system. When data transmission occurs between devices, according to the first running state file recorded according to the set data type, the file is parsed according to the preset data structure of the running state file to obtain the running state data, and based on the running state data Analyze the operating status of the system. According to the method of the present invention, the user can set the type of information recorded in the running state file according to the needs, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. The structure of the running status data recorded by different terminals, servers and systems is unified, and the operator can accurately and quickly extract the required data by viewing the data tags set in the running status file.

Description

一种系统监控方法和装置A system monitoring method and device

技术领域technical field

本发明涉及软件技术领域,具体涉及一种系统监控方法,以及一种系统监控装置。The invention relates to the technical field of software, in particular to a system monitoring method and a system monitoring device.

背景技术Background technique

目前,对终端或服务器的行为进行监控时,一般提取并分析在终端或服务器记录的日志,日志中记录了一段时间内发生的多个事件,包括事件相关的信息以及传输端相关的信息等。At present, when monitoring the behavior of a terminal or server, the log recorded on the terminal or server is generally extracted and analyzed. The log records multiple events that occurred within a period of time, including event-related information and transmission-side related information.

由于不同的终端、服务器和系统所采用的日志的格式不同,无法通过统一的方式对所有格式的日志进行解析,操作人员需要使用不同的解析方式对不同格式的日志进行解析,从而增加了操作人员解析日志的工作量。同时,日志记录的数据种类是在编程时预先设定的,其中可能并不包括用户所需的数据。并且,由于日志记录了一段时间内发生的多个事件中包含的大量信息,需要占用终端或服务器很大的储存空间。Due to the different formats of logs used by different terminals, servers and systems, it is impossible to analyze logs in all formats in a unified way. Operators need to use different analysis methods to analyze logs in different formats, thus increasing the number of operators. The workload of parsing logs. At the same time, the type of data recorded in the log is preset during programming, which may not include the data required by the user. Moreover, since the log records a large amount of information contained in multiple events occurring within a period of time, it needs to occupy a large storage space of the terminal or server.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的系统监控方法,以及一种系统监控装置。In view of the above problems, the present invention is proposed to provide a system monitoring method that overcomes the above problems or at least partially solves the above problems, and a system monitoring device.

依据本发明的一个方面,提供了一种系统监控方法,所述系统内运行有多个设备,所述方法包括:According to one aspect of the present invention, a system monitoring method is provided, in which multiple devices run in the system, the method includes:

接收设定的系统运行中待记录的运行状态数据的数据种类;Receive the data type of the running status data to be recorded during the set system running;

提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件;Extracting the first running state file recorded according to the set data type when the first device is in operation of the system and when data transmission occurs between the second device;

按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The file is parsed according to the preset data structure of the running state file, the running state data is obtained, and the running state of the system is analyzed based on the running state data.

可选地,所述提取第一设备在所述系统运行时与第二设备之间发生数据传输时按照设定的信息种类记录的运行状态文件包括:Optionally, the extracting the running state file recorded by the first device according to the set information type when data transmission occurs between the system running and the second device includes:

提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Extracting the running state file generated by the first device from the data transmission request sent between the first device and the second device and the returned data for the data transmission request according to the data extracted according to the data type.

可选地,在所述接收设定的系统运行中待记录的运行状态数据的数据种类之后,所述方法还包括:Optionally, after receiving the set data type of the running status data to be recorded during system running, the method further includes:

接收设定的系统运行中待记录的第一运行状态文件中的数据结构。The data structure in the first running status file to be recorded during the set system running is received.

可选地,所述方法还包括:Optionally, the method also includes:

对获取的所述运行状态数据进行展示。Display the acquired running status data.

可选地,所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数。Optionally, the running status data includes at least one input parameter parsed from a data transmission request between the first device and the second device, and the data returned from the data transmission request Parse at least one return parameter.

可选地,所述方法还包括:Optionally, the method also includes:

检测至少一种输入参数修改时所述系统运行状态的改变。A change in the operating state of the system upon modification of at least one input parameter is detected.

可选地,所述检测至少一种输入参数的修改时所述系统运行状态的改变包括:Optionally, the change of the operating state of the system when detecting the modification of at least one input parameter includes:

接收对至少一种输入参数的修改操作;receiving a modification operation on at least one input parameter;

提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据;Extracting a second running status file recorded by the first device for the re-executed data transmission process, and parsing the running status data from the second running status file;

比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。comparing the differences between the respectively parsed running status data in the first running status file and the second running status file.

可选地,所述提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件包括:Optionally, the extracting the second running status file recorded by the first device for the re-executed data transmission process includes:

将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备;sending the corrected input parameters to the first device or the second device that issued the data transfer request;

提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。Extracting the second running status file recorded by the first device re-executing the data transmission process according to the corrected input parameters for the first device or the second device.

可选地,所述运行状态数据以Json格式存储在所述运行状态文件中。Optionally, the running state data is stored in the running state file in Json format.

依据本发明的另一个方面,本发明还提供了一种系统监控装置,所述系统内运行有多个设备,所述装置包括:According to another aspect of the present invention, the present invention also provides a system monitoring device. There are multiple devices running in the system, and the device includes:

数据种类接收模块,用于接收设定的系统运行中待记录的运行状态数据的数据种类;The data type receiving module is used to receive the data type of the running status data to be recorded during the set system operation;

第一运行状态文件提取模块,用于提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件;The first running state file extraction module is used to extract the first running state file recorded according to the set data type when the first device transmits data between the second device and the system in operation;

运行状态数据获得模块,用于按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The running state data acquisition module is configured to parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

可选地,所述第一运行状态文件提取模块具体包括:Optionally, the first running state file extraction module specifically includes:

提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Extracting the running state file generated by the first device from the data transmission request sent between the first device and the second device and the returned data for the data transmission request according to the data extracted according to the data type.

可选地,在所述数据种类接收模块之后,所述装置还包括:Optionally, after the data type receiving module, the device further includes:

数据结构接收模块,用于接收设定的系统运行中待记录的第一运行状态文件的数据结构。The data structure receiving module is used to receive the data structure of the first running state file to be recorded during the set system running.

可选地,在所述运行状态数据获得模块之后,所述装置还包括:Optionally, after the running state data obtaining module, the device further includes:

数据展示模块,用于对获取的所述运行状态数据进行展示。The data display module is used to display the obtained running status data.

可选地,所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数。Optionally, the running status data includes at least one input parameter parsed from a data transmission request between the first device and the second device, and the data returned from the data transmission request Parse at least one return parameter.

可选地,在所述数据展示模块之后,所述装置还包括:Optionally, after the data presentation module, the device further includes:

系统运行状态检测模块,用于检测至少一种输入参数的修改时所述系统运行状态的改变。The system operation state detection module is used to detect the change of the system operation state when at least one input parameter is modified.

可选地,所述系统运行状态检测模块包括:Optionally, the system operation state detection module includes:

修改操作接收子模块,用于接收对至少一种输入参数的修改操作;A modification operation receiving submodule, configured to receive a modification operation on at least one input parameter;

第二运行状态文件提取子模块,用于提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据;The second running state file extraction submodule is configured to extract the second running state file recorded by the first device for the re-executed data transmission process, and parse out the running state data from the second running state file;

运行状态数据比对子模块,用于比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。The running state data comparison sub-module is used to compare the difference between the running state data respectively parsed in the first running state file and the second running state file.

可选地,所述第二运行状态文件提取子模块包括:Optionally, the second running state file extraction submodule includes:

修正参数发送单元,用于将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备;a modified parameter sending unit, configured to send the modified input parameter to the first device or the second device that sends the data transmission request;

第二运行状态文件提取单元,用于提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。The second running state file extracting unit is configured to extract the second running state file recorded by the first device for re-executing the data transmission process according to the corrected input parameters for the first device or the second device.

可选地,所述运行状态数据以Json格式存储在所述运行状态文件中。Optionally, the running state data is stored in the running state file in Json format.

依据本发明的实施例,接收设定的系统运行中待记录的运行状态数据的数据种类,提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件,按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态,从而提供了一种系统监控方法。According to the embodiment of the present invention, the set data type of the running state data to be recorded during the system running is received, and the set data type is extracted when the first device transmits data between the second device and the first device during the system running. The recorded first running state file is parsed according to the preset data structure of the running state file, the running state data is obtained, and the running state of the system is analyzed based on the running state data, thereby providing a System monitoring methods.

通过上述机制,用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。采用本发明实施例还统一了不同的终端、服务器和系统记录的运行状态数据的结构,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据,大大简化了操作人员查找所需数据的工作量。同时,与传统的应用程序的日志相比,由于提取的运行状态数据仅为操作人员所需的,所以本发明实施例的第一运行状态文件占用的存储空间较小,大大减轻了终端或服务器空间存储的压力。Through the above mechanism, the user can set the type of information recorded in the running state file according to the needs, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. Adopting the embodiment of the present invention also unifies the structure of the running state data recorded by different terminals, servers and systems, and the operator can accurately and quickly extract the required data by checking the data tags set in the running state file, which greatly simplifies the operation The human effort to find the required data. At the same time, compared with the logs of traditional application programs, since the extracted running state data is only required by the operator, the storage space occupied by the first running state file in the embodiment of the present invention is small, which greatly reduces the burden on the terminal or server. Space storage pressure.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的系统监控方法的流程图;Fig. 1 shows the flowchart of the system monitoring method according to one embodiment of the present invention;

图2示出了本发明另一个实施例的系统监控方法的流程图;Fig. 2 shows the flowchart of the system monitoring method of another embodiment of the present invention;

图3示出了根据本发明一个实施例的系统监控的装置的结构框图;FIG. 3 shows a structural block diagram of a device for system monitoring according to an embodiment of the present invention;

图4示出了根据本发明另一个实施例的系统监控的装置的结构框图。Fig. 4 shows a structural block diagram of an apparatus for system monitoring according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

参考图1,示出了根据本发明一个实施例的系统监控方法的流程图,所述系统内运行有多个设备,该方法具体可以包括以下步骤:Referring to FIG. 1 , it shows a flow chart of a system monitoring method according to an embodiment of the present invention. There are multiple devices running in the system. The method may specifically include the following steps:

步骤101、接收设定的系统运行中待记录的运行状态数据的数据种类。Step 101, receiving the set data type of the running state data to be recorded during system running.

管理人员对系统进行监控时,需要获取系统的运行状态数据用于进一步分析,针对不同的系统,可以在相应的配置界面上设置待记录的运行状态数据的类型。通过对所述运行状态数据的类型的设置,使得提取的运行状态数据更加符合操作人员对数据的需求,提高了得到的运行状态数据的准确性。When the management personnel monitor the system, they need to obtain the operating status data of the system for further analysis. For different systems, the type of operating status data to be recorded can be set on the corresponding configuration interface. By setting the type of the operation state data, the extracted operation state data is more in line with the operator's demand for data, and the accuracy of the obtained operation state data is improved.

步骤102、提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件。Step 102, extracting the first running state file recorded according to the set data type when the first device transmits data between the second device and the system running.

第一设备和第二设备可以分别是终端、服务器或是独立于所述终端或服务器的其它终端或服务器。在第一设备和第二设备间发生数据传输时记录运行状态数据。The first device and the second device may be terminals, servers, or other terminals or servers independent of the terminals or servers, respectively. Operating state data is recorded as data transfer occurs between the first device and the second device.

发生数据传输请求时,发送请求的一端发送数据传输请求,接收请求的一端根据数据传输请求提取并反馈相应的数据。When a data transmission request occurs, the end that sends the request sends the data transmission request, and the end that receives the request extracts and feeds back the corresponding data according to the data transmission request.

本发明实施例中,第一设备与第二设备间发生数据传输,由第一设备根据发送的数据请求和按照设定的数据种类提取的反馈数据记录第一运行状态文件。In the embodiment of the present invention, data transmission occurs between the first device and the second device, and the first device records the first running status file according to the sent data request and the feedback data extracted according to the set data type.

本发明实施例中,第一运行状态文件可以由发送数据传输请求的一端记录,也可以由接收数据传输请求的一端记录,即,发生数据传输时,数据传输请求的发送方和接收方都可以产生相应的第一运行状态文件。In the embodiment of the present invention, the first running status file can be recorded by the end sending the data transmission request, or by the end receiving the data transmission request, that is, when data transmission occurs, both the sender and the receiver of the data transmission request can A corresponding first running state file is generated.

具体而言,当第一设备是发送数据传输请求的一端时,从发送的请求和接收的数据提取运行状态数据;当第一设备是接收数据传输请求的一端时,从搜索得到的搜索数据和接受的请求中提取运行状态数据并生成相应的运行状态文件。接收请求的设备根据请求的内容通过搜索互联网得到与所述请求相匹配的大量数据,并根据步骤101中操作人员预设的运行状态数据的数据种类从得到的大量数据中提取状态运行数据,根据所述状态运行数据和该请求生成运行状态文件。Specifically, when the first device is the end that sends the data transmission request, the running status data is extracted from the sent request and the received data; when the first device is the end that receives the data transmission request, the search data obtained from the search and Extract the running status data from the accepted request and generate the corresponding running status file. The device receiving the request obtains a large amount of data matching the request by searching the Internet according to the content of the request, and extracts the state operation data from the obtained large amount of data according to the data type of the operation state data preset by the operator in step 101, according to The state operation data and the request generate an operation state file.

同时请求接收设备将所述数据传输请求所需的数据返回给发出请求的设备。发出请求的设备同样根据预设的运行状态数据的数据种类,从接收的大量的运行状态数据中提取所需的运行状态数据,将提取的运行状态数据和数据传输请求的数据记录为运行状态文件。At the same time, the receiving device is requested to return the data required by the data transmission request to the requesting device. The requesting device also extracts the required running status data from a large amount of received running status data according to the preset data type of running status data, and records the extracted running status data and data transmission request data as a running status file .

所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数。例如,请求获取的至少一类输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数,即反馈的数据中至少一类数据。其中,输入参数和返回参数可以是文字、图片或视频等多种形式,文字可以是关键字、语句或段落等,本发明再次不做限制,凡是适用于本发明的可实现方式均可行。The operating status data includes at least one input parameter parsed from a data transfer request between the first device and the second device. For example, at least one type of input parameter acquired by the request, and at least one type of return parameter parsed from the returned data for the data transmission request, that is, at least one type of data in the fed back data. Among them, the input parameter and the return parameter can be in various forms such as text, picture or video, and the text can be keywords, sentences or paragraphs, etc., and the present invention is not limited again, and any implementable mode applicable to the present invention is feasible.

实现本发明实施例的一端可以是生成所述第一运行状态文件的第一设备,也可以是与第一设备发生数据传输的第二设备,也可以是系统内其他任意设备,还可以预置独立于该系统的其他任意设备,用于实施本发明实施例的方案,操作人员可以在该终端或服务器上提取其他任一设备记录并存储的第一运行状态文件。The end implementing the embodiment of the present invention may be the first device that generates the first running state file, or the second device that transmits data with the first device, or any other device in the system, or a preset Any other device independent of the system is used to implement the solution of the embodiment of the present invention, and the operator can extract the first running state file recorded and stored by any other device on the terminal or server.

以接收数据传输请求的一端记录运行状态文件为例,例如,某系统由一台终端和服务器A、服务器B构成,当其中一台终端与服务器发生数据传输时,该终端发送第一数据获取请求至服务器A,服务器A进一步向服务器B发送第二数据获取请求,并将服务器B返回的数据反馈至终端。在此过程中,服务器A从第一数据获取请求以及反馈给终端的数据中提取运行状态数据记录为运行状态文件,服务器B从第二数据获取请求以及反馈给服务器A的数据中提取运行状态数据记录为另一个运行状态文件。最终可以由服务器A从本地和服务器B提取记录的所有运行状态文件并进行用于分析,可以由服务器B从本地和服务器A提取记录的所有运行状态文件并进行用于分析,也可以由独立于该系统的另一个终端或服务器C从服务器A和服务器B提取记录的所有运行状态文件并进行用于分析。Take the end that receives the data transmission request to record the running status file as an example. For example, a system consists of a terminal, server A, and server B. When data transmission occurs between one terminal and the server, the terminal sends the first data acquisition request. To server A, server A further sends a second data acquisition request to server B, and feeds back the data returned by server B to the terminal. In this process, server A extracts the running status data from the first data acquisition request and the data fed back to the terminal and records it as a running status file, and server B extracts the running status data from the second data acquisition request and the data fed back to server A Recorded as another running status file. In the end, server A can extract all recorded running status files from local and server B for analysis, and server B can extract all recorded running status files from local and server A for analysis, or it can be independently Another terminal or server C of the system extracts all recorded running status files from server A and server B and conducts them for analysis.

在步骤101中还可以在配置页面设置运行状态文件内的数据结构,在运行状态文件中,对于提取的运行状态数据根据预设的数据结构进行存储。In step 101, the data structure in the running status file can also be set on the configuration page, and the extracted running status data is stored in the running status file according to the preset data structure.

例如,可以通过标签的设置对所述运行状态文件内的运行状态数据进行存储,用户可以快速地在展示页面的指定位置找到所需数据。For example, the running state data in the running state file can be stored through the label setting, and the user can quickly find the required data at a specified position on the display page.

步骤103、按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。Step 103: Parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

可以在设置运行状态文件的数据种类的配置页面设置所述运行状态文件的文件格式和数据结构,通过不同的预设标签将不同属性的数据分隔开,进一步可以通过查找标签快速找到所需的运行状态数据。You can set the file format and data structure of the running status file on the configuration page of setting the data type of the running status file, separate the data of different attributes through different preset tags, and further quickly find the desired Operating status data.

通过分析所述运行状态数据了解所述系统在记录文件时的数据传输行为。如果是当前的数据传输行为,可以将当前获得的运行状态数据与之前获得的运行状态数据进行对比,通过数据比对分析系统运行情况。The data transmission behavior of the system when recording files is understood by analyzing the running status data. If it is the current data transmission behavior, the currently obtained operating status data can be compared with the previously obtained operating status data, and the system operating status can be analyzed through data comparison.

依据本发明实施例,用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。本发明实施例还统一了不同的终端、服务器和系统记录的运行状态数据的格式,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据,大大简化了操作人员查找所需数据的工作量。同时,与传统的应用程序的日志相比,由于提取的运行状态数据仅为操作人员所需的,所以本发明实施例的第一运行状态文件占用的存储空间较小,大大减轻了终端或服务器空间存储的压力。According to the embodiment of the present invention, the user can set the type of information recorded in the running state file according to the needs, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. The embodiment of the present invention also unifies the format of the running status data recorded by different terminals, servers and systems, and the operator can accurately and quickly extract the required data by checking the data tags set in the running status file, which greatly simplifies the operation of the operator. The effort to find the data you need. At the same time, compared with the logs of traditional application programs, since the extracted running state data is only required by the operator, the storage space occupied by the first running state file in the embodiment of the present invention is small, which greatly reduces the burden on the terminal or server. Space storage pressure.

参考图2,示出了根据本发明另一个实施例的灭屏状态下启动应用程序的方法的流程图,该方法具体可以包括以下步骤:Referring to FIG. 2 , it shows a flow chart of a method for starting an application in the off-screen state according to another embodiment of the present invention. The method may specifically include the following steps:

步骤201、接收设定的系统运行中待记录的运行状态数据的数据种类。Step 201, receiving the set data type of the running state data to be recorded during system running.

步骤202、接收设定的系统运行中待记录的第一运行状态文件的数据结构。Step 202, receiving the data structure of the first running state file to be recorded during the set system running.

用户可以在配置页面设置第一运行状态文件的数据格式,通过标签的设置,用户可以在指定位置查找相关的搜索数据,提高了用户数据查找的效率。所述运行状态数据可以以Json格式存储在所述运行状态文件中。The user can set the data format of the first running status file on the configuration page. Through the label setting, the user can find the relevant search data in the specified location, which improves the efficiency of user data search. The running state data may be stored in the running state file in Json format.

步骤203、提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Step 203, extract the running state file generated according to the data extracted according to the data type from the data transmission request sent between the first device and the second device and the returned data for the data transmission request.

本步骤具体包括:提取从向所述第二设备发送第一数据传输请求以及接收到针对所述第一数据传输请求的第一返回数据中提取预设数据种类的并生成的运行状态文件。提取所述第一设备从接收到的所述第二设备发送的第二数据传输请求以及针对所述第二数据传输请求的第二返回数据中按照设定的数据种类提取并生成的运行状态文件。This step specifically includes: extracting a running state file generated by extracting preset data types from the first data transmission request sent to the second device and the first return data received for the first data transmission request. Extracting the running state file extracted and generated by the first device according to the set data type from the received second data transmission request sent by the second device and the second return data for the second data transmission request .

其中,数据传输请求可以是HTTP数据请求。HTTP(HyperTextTransferProtocol)是一套计算机通过网络进行通信的规则,web浏览器向web服务器发送请求,web服务器处理请求并返回相应的应答。所述HTTP请求中携带位于消息首行的对资源的请求方法、资源的标识符及使用的协议。Wherein, the data transmission request may be an HTTP data request. HTTP (HyperTextTransferProtocol) is a set of rules for computers to communicate through the network. The web browser sends a request to the web server, and the web server processes the request and returns a corresponding response. The HTTP request carries the resource request method, resource identifier and protocol used in the first line of the message.

当所述系统内的某两个或多个设备之间发生数据传输时,某一设备会向其它设备发送HTTP请求,接收请求的设备根据接收的HTTP请求搜索互联网得到相应的返回数据,并将搜索的返回数据传送给发出HTTP请求的设备。背景技术中,操作人员通过查找日志记载的所有内容找出所需数据。但是,返回数据中可能仅仅一部分数据是操作人员需要的,其它的数据都为无用数据,甚至在大量的返回数据中不含操作人员所需的数据,因此这给操作人员在日志中查找所需数据带来了极大的麻烦。When data transmission occurs between two or more devices in the system, a certain device will send an HTTP request to other devices, and the device receiving the request will search the Internet according to the received HTTP request to obtain the corresponding return data, and send The returned data from the search is sent to the device that made the HTTP request. In the background technology, the operator finds the required data by searching all the contents recorded in the log. However, only a part of the returned data may be needed by the operator, and the rest of the data is useless data, and even a large amount of returned data does not contain the data required by the operator, so this gives the operator the ability to find the required data in the log. Data is a big mess.

在本发明实施例中,操作人员可以根据需要在信息种类配置页面预先设定待记录的运行状态数据的数据种类,根据预设的数据种类对返回数据进行提取得到运行状态数据,因为日志中存储的传输数据的数量减少,从而减少了日志占用设备的空间。通过上述方法得到的运行状态文件仅包含所需数据,操作人员可以在日志中快速地找到所需数据。In the embodiment of the present invention, the operator can pre-set the data type of the running status data to be recorded on the information type configuration page according to the needs, and extract the returned data according to the preset data type to obtain the running status data, because the log stores The amount of transmitted data is reduced, thereby reducing the space occupied by the log on the device. The running state file obtained by the above method only contains the required data, and the operator can quickly find the required data in the log.

步骤204、按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。Step 204: Parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

根据步骤202预设的第一运行状态文件的格式对提取的所述第一运行状态文件进行解析,通过查找相应标签的位置快速准确地找到所需的运行状态数据。基于得到的所述运行状态数据,对系统针对于第一运行状态文件记录的时间时的运行状况进行分析。The extracted first running state file is analyzed according to the format of the first running state file preset in step 202, and the required running state data is quickly and accurately found by searching the position of the corresponding label. Based on the obtained running status data, the running status of the system at the time recorded in the first running status file is analyzed.

步骤205、对获取的所述运行状态数据进行展示。Step 205, displaying the acquired running status data.

将获得的所述运行状态数据在数据种类配置的页面或新的数据展示页面进行展示。The obtained running status data is displayed on the data type configuration page or the new data display page.

步骤206、检测至少一种输入参数修改时所述系统运行状态的改变。Step 206. Detect changes in the operating state of the system when at least one input parameter is modified.

本步骤具体包括:接收对至少一种输入参数的修改操作,提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据,比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。This step specifically includes: receiving a modification operation on at least one input parameter, extracting the second running status file recorded by the first device for the re-executed data transmission process, and parsing the running status file from the second running status file. State data, comparing the difference between the running state data respectively parsed in the first running state file and the second running state file.

其中,将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备,提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。Wherein, the corrected input parameter is sent to the first device or the second device that sends the data transmission request, and the first device is extracted to re-execute the first device or the second device according to the corrected input parameter. The second running status file recorded in the data transmission process.

在具体实现中,在程序测试人员对某个程序进行测试时,若需了解某一参数或某一参数的参数值大小对整个程序的影响情况,可以增减某一参数或修改某一参数的参数值,并进一步通知第一设备和第二设备重新执行该数据传输过程,并产生重新执行的数据传输过程的第二运行状态文件,通过提取所述第二状态文件,解析得到的新的运行状态数据,对新的运行数据进行分析获得该参数或该参数的参数值的大小对整个程序的影响情况。In the specific implementation, when a program tester tests a certain program, if he needs to understand the influence of a certain parameter or the parameter value of a certain parameter on the whole program, he can increase or decrease a certain parameter or modify the value of a certain parameter. parameter value, and further notify the first device and the second device to re-execute the data transmission process, and generate a second running state file of the re-executed data transmission process, and analyze the obtained new running state file by extracting the second state file State data, analyze the new operating data to obtain the influence of the parameter or the parameter value of the parameter on the whole program.

例如,某一参数预设的参数值为0和1,通过修改操作将该参数的参数值修改为3,得到第二运行状态文件,对所述第二状态文件进行提取解析得到新的运行状态数据,在运行状态数据展示页面中显示了参数值3对应的测试结果为“fault”,表明当该参数的参数值为3时程序不能正常运行。For example, the preset parameter values of a certain parameter are 0 and 1, and the parameter value of this parameter is changed to 3 through a modification operation to obtain a second running state file, and the second running state file is extracted and analyzed to obtain a new running state The data shows that the test result corresponding to the parameter value 3 is "fault" in the running status data display page, indicating that the program cannot run normally when the parameter value of the parameter is 3.

需要说明的是,由于预先设置了第一运行状态文件的格式,在所述第一运行状态文件中通过标签将运行状态数据分为若干个独立的区域数据。在对程序进行测试时,为了获悉某一参数的参数值大小对该程序运行情况的影响,程序测试人员可以仅仅通过对修改的参数进行区域信息搜索得到修改的参数对应的新的运行状态数据,而保持其它参数及对应的第一运行状态文件的运行状态数据不变。因此,本发明实施例的方法简化了参数测试时数据的处理过程,提高了测试的效率。It should be noted that since the format of the first running state file is preset, the running state data is divided into several independent area data by tags in the first running state file. When testing the program, in order to know the impact of the parameter value of a certain parameter on the program’s operation, the program tester can obtain the new operating status data corresponding to the modified parameter only by searching the area information of the modified parameter. While keeping other parameters and corresponding running state data of the first running state file unchanged. Therefore, the method of the embodiment of the present invention simplifies the data processing process during the parameter test and improves the test efficiency.

依据本发明实施例,用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。本发明实施例还统一了不同的终端、服务器和系统记录的运行状态数据的格式,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据,大大简化了操作人员查找所需数据的工作量。同时,与传统的应用程序的日志相比,由于提取的运行状态数据仅为操作人员所需的,所以本发明实施例的第一运行状态文件占用的存储空间较小,大大减轻了终端或服务器空间存储的压力。According to the embodiment of the present invention, the user can set the type of information recorded in the running state file according to the needs, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. The embodiment of the present invention also unifies the format of the running status data recorded by different terminals, servers and systems, and the operator can accurately and quickly extract the required data by checking the data tags set in the running status file, which greatly simplifies the operation of the operator. The effort to find the data you need. At the same time, compared with the logs of traditional application programs, since the extracted running state data is only required by the operator, the storage space occupied by the first running state file in the embodiment of the present invention is small, which greatly reduces the burden on the terminal or server. Space storage pressure.

参考图3,图3示出了根据本发明一个实施例的系统监控的装置的结构框图,具体可以包括:Referring to FIG. 3, FIG. 3 shows a structural block diagram of a system monitoring device according to an embodiment of the present invention, which may specifically include:

数据种类接收模块301,用于接收设定的系统运行中待记录的运行状态数据的数据种类。The data type receiving module 301 is configured to receive the set data type of the running status data to be recorded during system operation.

第一运行状态文件提取模块302,用于提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件。The first running state file extracting module 302 is configured to extract the first running state file recorded according to the set data type when the first device transmits data between the second device and the system running.

运行状态数据获得模块303,用于按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The running state data obtaining module 303 is configured to parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

依据本发明实施例,依据本发明实施例,用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。本发明实施例还统一了不同的终端、服务器和系统记录的运行状态数据的格式,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据,大大简化了操作人员查找所需数据的工作量。同时,与传统的应用程序的日志相比,由于提取的运行状态数据仅为操作人员所需的,所以本发明实施例的第一运行状态文件占用的存储空间较小,大大减轻了终端或服务器空间存储的压力。According to the embodiment of the present invention, according to the embodiment of the present invention, the user can set the type of information recorded in the running state file according to the need, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. The embodiment of the present invention also unifies the format of the running status data recorded by different terminals, servers and systems, and the operator can accurately and quickly extract the required data by checking the data tags set in the running status file, which greatly simplifies the operation of the operator. The effort to find the data you need. At the same time, compared with the logs of traditional application programs, since the extracted running state data is only required by the operator, the storage space occupied by the first running state file in the embodiment of the present invention is small, which greatly reduces the burden on the terminal or server. Space storage pressure.

参考图4,图4示出了根据本发明另一个实施例的系统监控的装置的结构框图,具体可以包括:Referring to FIG. 4, FIG. 4 shows a structural block diagram of a system monitoring device according to another embodiment of the present invention, which may specifically include:

数据种类接收模块401,用于接收设定的系统运行中待记录的运行状态数据的数据种类。The data type receiving module 401 is configured to receive the set data type of the running state data to be recorded during system operation.

数据结构接收模块402,用于接收设定的系统运行中待记录的第一运行状态文件的数据结构。The data structure receiving module 402 is configured to receive the set data structure of the first running state file to be recorded during system running.

第一运行状态文件提取模块403,用于提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件。The first running state file extracting module 403 is configured to extract the first running state file recorded according to the set data type when the first device transmits data between the second device and the system running.

运行状态数据获得模块404,用于按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The running state data obtaining module 404 is configured to parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

数据展示模块405,用于对获取的所述运行状态数据进行展示。The data display module 405 is configured to display the obtained running status data.

系统运行状态检测模块406,用于检测至少一种输入参数的修改时所述系统运行状态的改变。A system running state detection module 406, configured to detect changes in the system running state when at least one input parameter is modified.

所述系统运行状态检测模块406包括:The system running state detection module 406 includes:

修改操作接收子模块4061,用于接收对至少一种输入参数的修改操作。The modification operation receiving submodule 4061 is configured to receive a modification operation on at least one input parameter.

第二运行状态文件提取子模块4062,用于提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据。The second running state file extraction submodule 4062 is configured to extract the second running state file recorded by the first device for the re-executed data transmission process, and parse out the running state data from the second running state file.

运行状态数据比对子模块4063,用于比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。The running state data comparison sub-module 4063 is configured to compare the difference between the running state data parsed in the first running state file and the second running state file.

所述第二运行状态文件提取子模块4062包括:The second running state file extraction submodule 4062 includes:

修正参数发送单元40621,用于将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备;A modified parameter sending unit 40621, configured to send the modified input parameter to the first device or the second device that sends the data transmission request;

第二运行状态文件提取单元40622,用于提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。The second running state file extracting unit 40622 is configured to extract the second running state file recorded by the first device for re-executing the data transmission process according to the corrected input parameters for the first device or the second device.

本发明实施例中,优选地,所述第一运行状态文件提取模块403具体用于:In the embodiment of the present invention, preferably, the first running state file extraction module 403 is specifically used for:

提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Extracting the running state file generated by the first device from the data transmission request sent between the first device and the second device and the returned data for the data transmission request according to the data extracted according to the data type.

本发明实施例中,优选地,所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数。In the embodiment of the present invention, preferably, the running status data includes at least one input parameter parsed from the data transmission request between the first device and the second device, and from the data transmission request for the data transmission At least one return parameter parsed in the returned data of the request.

本发明实施例中,优选地,所述运行状态数据以Json格式存储在所述运行状态文件中。In the embodiment of the present invention, preferably, the running status data is stored in the running status file in Json format.

依据本发明实施例,用户可以根据需要自行设置运行状态文件中记录的信息的种类,克服了传统应用程序的日志记录的信息种类不可更改的缺点。本发明实施例还统一了不同的终端、服务器和系统记录的运行状态数据的格式,操作人员可以通过查看运行状态文件内设置的数据标签准确地、快速地提取所需数据,大大简化了操作人员查找所需数据的工作量。同时,与传统的应用程序的日志相比,由于提取的运行状态数据仅为操作人员所需的,所以本发明实施例的第一运行状态文件占用的存储空间较小,大大减轻了终端或服务器空间存储的压力。According to the embodiment of the present invention, the user can set the type of information recorded in the running state file according to the needs, which overcomes the disadvantage that the type of information recorded in the log of the traditional application program cannot be changed. The embodiment of the present invention also unifies the format of the running status data recorded by different terminals, servers and systems, and the operator can accurately and quickly extract the required data by checking the data tags set in the running status file, which greatly simplifies the operation of the operator. The effort to find the data you need. At the same time, compared with the logs of traditional application programs, since the extracted running state data is only required by the operator, the storage space occupied by the first running state file in the embodiment of the present invention is small, which greatly reduces the burden on the terminal or server. Space storage pressure.

由于所述装置实施例基本相应于前述图1和图2所示的方法实施例,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此就不赘述了。Since the device embodiment basically corresponds to the method embodiment shown in Figure 1 and Figure 2 above, for details not described in this embodiment, you can refer to the relevant description in the previous embodiment, and will not go into details here .

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的系统监控的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the system monitoring device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种系统监控方法,其中,所述系统内运行有多个设备,所述方法包括:The present invention discloses A1. A system monitoring method, wherein there are multiple devices running in the system, and the method includes:

接收设定的系统运行中待记录的运行状态数据的数据种类;Receive the data type of the running status data to be recorded during the set system running;

提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件;Extracting the first running state file recorded according to the set data type when the first device is in operation of the system and when data transmission occurs between the second device;

按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The file is parsed according to the preset data structure of the running state file, the running state data is obtained, and the running state of the system is analyzed based on the running state data.

A2、根据A1所述的方法,其中,所述提取第一设备在所述系统运行时与第二设备之间发生数据传输时按照设定的信息种类记录的运行状态文件包括:A2. The method according to A1, wherein said extracting the running status file recorded by the first device according to the set information type when data transmission occurs between the system running and the second device includes:

提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Extracting the running state file generated by the first device from the data transmission request sent between the first device and the second device and the returned data for the data transmission request according to the data extracted according to the data type.

A3、根据A2所述的方法,其中,在所述接收设定的系统运行中待记录的运行状态数据的数据种类之后,所述方法还包括:A3. The method according to A2, wherein, after receiving the set data type of the running state data to be recorded during system operation, the method further includes:

接收设定的系统运行中待记录的第一运行状态文件中的数据结构。The data structure in the first running status file to be recorded during the set system running is received.

A4、根据A1所述的方法,其中,所述方法还包括:A4. The method according to A1, wherein the method also includes:

对获取的所述运行状态数据进行展示。Display the acquired running status data.

A5、根据A4所述的方法,其中,所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数。A5. The method according to A4, wherein the operating status data includes at least one input parameter parsed from the data transmission request between the first device and the second device, and from the At least one return parameter parsed in the return data of the data transfer request.

A6、根据A5所述的方法,其中,所述方法还包括:A6. The method according to A5, wherein the method also includes:

检测至少一种输入参数修改时所述系统运行状态的改变。A change in the operating state of the system upon modification of at least one input parameter is detected.

A7、根据A6所述的方法,其中,所述检测至少一种输入参数的修改时所述系统运行状态的改变包括:A7. The method according to A6, wherein the detection of a change in the operating state of the system when at least one input parameter is modified includes:

接收对至少一种输入参数的修改操作;receiving a modification operation on at least one input parameter;

提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据;Extracting a second running status file recorded by the first device for the re-executed data transmission process, and parsing the running status data from the second running status file;

比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。comparing the differences between the respectively parsed running status data in the first running status file and the second running status file.

A8、根据A7所述的方法,其中,所述提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件包括:A8. The method according to A7, wherein said extracting the second running state file recorded by the first device for the re-executed data transmission process includes:

将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备;sending the corrected input parameters to the first device or the second device that issued the data transfer request;

提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。Extracting the second running status file recorded by the first device re-executing the data transmission process according to the corrected input parameters for the first device or the second device.

A9、根据A1所述的方法,其中,所述运行状态数据以Json格式存储在所述运行状态文件中。A9. The method according to A1, wherein the running status data is stored in the running status file in Json format.

本发明还公开了B10、一种系统监控装置,其中,所述系统内运行有多个设备,所述装置包括:The present invention also discloses B10, a system monitoring device, wherein there are multiple devices running in the system, and the device includes:

数据种类接收模块,用于接收设定的系统运行中待记录的运行状态数据的数据种类;The data type receiving module is used to receive the data type of the running status data to be recorded during the set system operation;

第一运行状态文件提取模块,用于提取第一设备在所述系统运行中与第二设备之间发生数据传输时按照设定的数据种类记录的第一运行状态文件;The first running state file extraction module is used to extract the first running state file recorded according to the set data type when the first device transmits data between the second device and the system in operation;

运行状态数据获得模块,用于按照预置的所述运行状态文件的数据结构解析文件,获得所述运行状态数据,并基于所述运行状态数据分析所述系统的运行状态。The running state data acquisition module is configured to parse the file according to the preset data structure of the running state file, obtain the running state data, and analyze the running state of the system based on the running state data.

B11、根据B10所述的装置,其中,所述第一运行状态文件提取模块具体包括:B11. The device according to B10, wherein the first running state file extraction module specifically includes:

提取所述第一设备从与所述第二设备之间发送的数据传输请求以及针对所述数据传输请求的返回数据中,根据按照所述数据种类提取的数据生成的运行状态文件。Extracting the running state file generated by the first device from the data transmission request sent between the first device and the second device and the returned data for the data transmission request according to the data extracted according to the data type.

B12、根据B11所述的装置,其中,在所述数据种类接收模块之后,所述装置还包括:B12. The device according to B11, wherein, after the data type receiving module, the device also includes:

数据结构接收模块,用于接收设定的系统运行中待记录的第一运行状态文件的数据结构。The data structure receiving module is used to receive the data structure of the first running state file to be recorded during the set system running.

B13、根据B10所述的装置,其中,在所述运行状态数据获得模块之后,所述装置还包括:B13. The device according to B10, wherein, after the running state data obtaining module, the device further includes:

数据展示模块,用于对获取的所述运行状态数据进行展示。The data display module is used to display the obtained running status data.

B14、根据B13所述的装置,其中,所述运行状态数据包括从所述第一设备与所述第二设备之间的数据传输请求中解析的至少一种输入参数,以及,从针对所述数据传输请求的返回数据中解析的至少一种返回参数。B14. The apparatus according to B13, wherein the operating status data includes at least one input parameter parsed from the data transmission request between the first device and the second device, and from the At least one return parameter parsed in the return data of the data transfer request.

B15、根据B14所述的装置,其中,在所述数据展示模块之后,所述装置还包括:B15. The device according to B14, wherein, after the data presentation module, the device also includes:

系统运行状态检测模块,用于检测至少一种输入参数的修改时所述系统运行状态的改变。The system operation state detection module is used to detect the change of the system operation state when at least one input parameter is modified.

B16、根据B15所述的装置,其中,所述系统运行状态检测模块包括:B16. The device according to B15, wherein the system operation status detection module includes:

修改操作接收子模块,用于接收对至少一种输入参数的修改操作;A modification operation receiving submodule, configured to receive a modification operation on at least one input parameter;

第二运行状态文件提取子模块,用于提取所述第一设备针对重新执行的数据传输过程记录的第二运行状态文件,并从所述第二运行状态文件中解析出运行状态数据;The second running state file extraction submodule is configured to extract the second running state file recorded by the first device for the re-executed data transmission process, and parse out the running state data from the second running state file;

运行状态数据比对子模块,用于比对所述第一运行状态文件和所述第二运行状态文件中分别解析的运行状态数据的区别。The running state data comparison sub-module is used to compare the difference between the running state data respectively parsed in the first running state file and the second running state file.

B17、根据B16所述的装置,其中,所述第二运行状态文件提取子模块包括:B17. The device according to B16, wherein the second running state file extraction submodule includes:

修正参数发送单元,用于将修正后的输入参数发送至发出所述数据传输请求的第一设备或第二设备;a modified parameter sending unit, configured to send the modified input parameter to the first device or the second device that sends the data transmission request;

第二运行状态文件提取单元,用于提取所述第一设备针对所述第一设备或第二设备按照修正后的输入参数重新执行所述数据传输过程记录的第二运行状态文件。The second running state file extracting unit is configured to extract the second running state file recorded by the first device for re-executing the data transmission process according to the corrected input parameters for the first device or the second device.

B18、根据B10所述的装置,其中,所述运行状态数据以Json格式存储在所述运行状态文件中。B18. The device according to B10, wherein the running status data is stored in the running status file in Json format.

Claims (10)

1. a system monitoring method, wherein, run in described system and have multiple equipment, described method comprises:
Receive the data class of running state data to be recorded in the system cloud gray model of setting;
According to the first running status file of the data class record set when there is transfer of data in described system cloud gray model and between the second equipment in first equipment that extracts;
According to the data structure resolution file of preset described running status file, obtain described running state data, and analyze the running status of described system based on described running state data.
2. method according to claim 1, wherein, comprises according to the running status file of the information category record set when transfer of data occurs when described system cloud gray model and between the second equipment described extraction first equipment:
Extract described first equipment from the data transfer request sent between described second equipment and the return data for described data transfer request, according to the running status file of the data genaration extracted according to described data class.
3. method according to claim 2, wherein, after the data class of running state data to be recorded in the system cloud gray model of described reception setting, described method also comprises:
Receive the data structure in the first running status file to be recorded in the system cloud gray model of setting.
4. method according to claim 1, wherein, described method also comprises:
The described running state data obtained is shown.
5. method according to claim 4, wherein, described running state data comprises at least one input parameter of resolving from the data transfer request between described first equipment and described second equipment, and, at least one return parameters of resolving from the return data for described data transfer request.
6. method according to claim 5, wherein, described method also comprises:
Detect the change of described system running state during the amendment of at least one input parameter.
7. method according to claim 6, wherein, during the amendment of described detection at least one input parameter, the change of described system running state comprises:
Receive the retouching operation at least one input parameter;
Extract the second running status file of described first equipment for the data transmission procedure record re-executed, and parse running state data from described second running status file;
The difference of the running state data of resolving respectively in the first running status file described in comparison and described second running status file.
8. method according to claim 7, wherein, described first equipment of described extraction comprises for the second running status file of the data transmission procedure record re-executed:
Revised input parameter is sent to the first equipment sending described data transfer request or the second equipment;
Extract described first equipment and re-execute the second running status file of described data transmission procedure record for described first equipment or the second equipment according to revised input parameter.
9. method according to claim 1, wherein, described running state data is stored in described running status file with Json form.
10. a system monitoring device, wherein, run in described system and have multiple equipment, described device comprises:
Data class receiver module, for receiving the data class of running state data to be recorded in the system cloud gray model of setting;
First running status file extraction module, for extracting the first running status file according to the data class record set when transfer of data occurs in described system cloud gray model and between the second equipment the first equipment;
Running state data obtains module, for the data structure resolution file according to preset described running status file, obtains described running state data, and analyzes the running status of described system based on described running state data.
CN201510388880.9A 2015-07-03 2015-07-03 A system monitoring method and device Pending CN105071946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510388880.9A CN105071946A (en) 2015-07-03 2015-07-03 A system monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510388880.9A CN105071946A (en) 2015-07-03 2015-07-03 A system monitoring method and device

Publications (1)

Publication Number Publication Date
CN105071946A true CN105071946A (en) 2015-11-18

Family

ID=54501233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510388880.9A Pending CN105071946A (en) 2015-07-03 2015-07-03 A system monitoring method and device

Country Status (1)

Country Link
CN (1) CN105071946A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412119A (en) * 2016-11-17 2017-02-15 交控科技股份有限公司 Data distribution method and device
CN112612679A (en) * 2020-12-29 2021-04-06 太平金融科技服务(上海)有限公司 System running state monitoring method and device, computer equipment and storage medium
CN115329747A (en) * 2022-08-31 2022-11-11 芯原微电子(上海)股份有限公司 Data file analysis method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988482A (en) * 2006-12-22 2007-06-27 华为技术有限公司 Method and system for realizing automatic detection for simple network managing protocol agent
CN101998687A (en) * 2009-08-18 2011-03-30 中国移动通信集团广东有限公司 Method and device for collecting network parameters of WLAN (Wireless Local Area Network)
US20110173199A1 (en) * 2010-01-11 2011-07-14 International Business Machines Corporation Computer system performance analysis
CN102148827A (en) * 2011-02-11 2011-08-10 成都市华为赛门铁克科技有限公司 Security event management method, device and security management platform
CN103200046A (en) * 2013-03-28 2013-07-10 青岛海信传媒网络技术有限公司 Method and system for monitoring network cell device performance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988482A (en) * 2006-12-22 2007-06-27 华为技术有限公司 Method and system for realizing automatic detection for simple network managing protocol agent
CN101998687A (en) * 2009-08-18 2011-03-30 中国移动通信集团广东有限公司 Method and device for collecting network parameters of WLAN (Wireless Local Area Network)
US20110173199A1 (en) * 2010-01-11 2011-07-14 International Business Machines Corporation Computer system performance analysis
CN102148827A (en) * 2011-02-11 2011-08-10 成都市华为赛门铁克科技有限公司 Security event management method, device and security management platform
CN103200046A (en) * 2013-03-28 2013-07-10 青岛海信传媒网络技术有限公司 Method and system for monitoring network cell device performance

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412119A (en) * 2016-11-17 2017-02-15 交控科技股份有限公司 Data distribution method and device
CN112612679A (en) * 2020-12-29 2021-04-06 太平金融科技服务(上海)有限公司 System running state monitoring method and device, computer equipment and storage medium
CN115329747A (en) * 2022-08-31 2022-11-11 芯原微电子(上海)股份有限公司 Data file analysis method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10733079B2 (en) Systems and methods for end-to-end testing of applications using dynamically simulated data
US9203720B2 (en) Monitoring the health of web page analytics code
CN107729475B (en) Web page element collection method, device, terminal and computer-readable storage medium
US10362086B2 (en) Method and system for automating submission of issue reports
CN106815141A (en) A kind of method for testing software and device
CN107861981B (en) Data processing method and device
CN106815142A (en) A kind of method for testing software and system
JP5377534B2 (en) Method, apparatus and system for identifying GUI elements
CN104067274A (en) System and method for improving access to search results
CN107918575B (en) Page state monitoring method and device
US20100095157A1 (en) Problem analysis via matching contiguous stack trace lines to symptom rules
CN103177115B (en) A kind of method and apparatus extracting Webpage link
CN105939393A (en) Task operating state monitoring method and system
CN111400189A (en) Code coverage monitoring method, device, electronic device and storage medium
CN106909486A (en) Processing business abnormal method, apparatus and system
CN114303134B (en) Method, apparatus, and computer-readable medium for maintaining visual consistency
CN111831542B (en) API application debugging method and device, storage medium
CN105071946A (en) A system monitoring method and device
US8306805B2 (en) Scenario generation method and scenario generation apparatus
US10171443B2 (en) Displaying the accessibility of hyperlinked files
US20150121192A1 (en) Debugging errors in display of web pages with partial page refresh
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN107451056B (en) Method and device for monitoring interface test result
CN107317722B (en) data source extensible system and method
CN114780262A (en) Page service processing method, device, 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: 20151118

RJ01 Rejection of invention patent application after publication