自动化分析方法、用户设备、存储介质及装置
Automated analysis method, user equipment, storage medium and device
To
本申请要求于2019年6月19日提交中国专利局、申请号为201910539817.9、发明名称为“自动化分析方法、用户设备、存储介质及装置”的中国专利申请的优先权,其全部内容通过引用结合在申请中This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910539817.9, and the invention title is "Automated Analysis Method, User Equipment, Storage Medium and Device" on June 19, 2019, the entire content of which is incorporated by reference In application
技术领域Technical field
本申请涉及***运维领域,尤其涉及自动化分析方法、用户设备、存储介质及装置。This application relates to the field of system operation and maintenance, in particular to automated analysis methods, user equipment, storage media, and devices.
背景技术Background technique
对于金融机构自身而言,多采用电子化的业务***来处理自身业务。但是,由于金融机构的业务往往需要同时对接到较多的直销银行,这导致业务***中会涉及到关联方信息、***信息、监控信息、网络信息以及域名等各种类型的信息,信息海量且繁杂。For financial institutions themselves, electronic business systems are mostly used to process their own business. However, because the business of financial institutions often needs to be connected to more direct banks at the same time, the business system will involve related party information, system information, monitoring information, network information, domain names and other types of information. The information is massive and Complicated.
而为了采集这些信息、核对处理这些信息并处理这些信息披露的***问题将付出较多的工作量,可见,目前存在着无法高效地进行***维护的技术问题。In order to collect this information, check and process this information, and deal with the system problems of this information disclosure, a lot of work will be spent. It can be seen that there are technical problems that cannot efficiently maintain the system.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solution of this application, and does not mean that the above content is recognized as prior art.
发明内容Summary of the invention
本申请的主要目的在于提供自动化分析方法、用户设备、存储介质及装置,旨在解决无法高效地进行***维护的技术问题。The main purpose of this application is to provide automated analysis methods, user equipment, storage media, and devices, aiming to solve the technical problem of inefficient system maintenance.
为实现上述目的,本申请提供一种自动化分析方法,所述自动化分析方法包括以下步骤:In order to achieve the above objective, this application provides an automated analysis method, which includes the following steps:
在接收到自动化分析请求时,根据所述自动化分析请求确定对应的报告类型;When an automated analysis request is received, determine the corresponding report type according to the automated analysis request;
采集与所述报告类型对应的历史报告数据;Collect historical report data corresponding to the report type;
通过预设监控接口获得与所述报告类型对应的当前运维数据;Obtain current operation and maintenance data corresponding to the report type through a preset monitoring interface;
将所述历史报告数据作为基准对所述当前运维数据进行数据分析,以获得分析结果;Performing data analysis on the current operation and maintenance data using the historical report data as a reference to obtain an analysis result;
根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维。The corresponding strategy to be activated is determined according to the analysis result, and automated operation and maintenance is performed through the strategy to be activated.
此外,为实现上述目的,本申请还提出一种用户设备,所述用户设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述计算机可读指令配置为实现如上文所述的自动化分析方法的步骤。In addition, in order to achieve the above-mentioned object, this application also proposes a user equipment. The user equipment includes a memory, a processor, and computer-readable instructions stored in the memory and running on the processor. The readable instructions are configured to implement the steps of the automated analysis method as described above.
此外,为实现上述目的,本申请还提出一种存储介质,所述存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上文所述的自动化分析方法的步骤。In addition, in order to achieve the above-mentioned object, this application also proposes a storage medium having computer-readable instructions stored thereon, and when the computer-readable instructions are executed by a processor, the steps of the automated analysis method as described above are realized. .
此外,为实现上述目的,本申请还提出一种自动化分析装置,所述自动化分析装置包括: In addition, in order to achieve the above objective, this application also proposes an automated analysis device, which includes:
报告类型确定模块,用于在接收到自动化分析请求时,根据所述自动化分析请求确定对应的报告类型;The report type determining module is configured to determine the corresponding report type according to the automated analysis request when an automated analysis request is received;
历史数据采集模块,用于采集与所述报告类型对应的历史报告数据;The historical data collection module is used to collect historical report data corresponding to the report type;
运维数据采集模块,用于通过预设监控接口获得与所述报告类型对应的当前运维数据;Operation and maintenance data collection module, configured to obtain current operation and maintenance data corresponding to the report type through a preset monitoring interface;
数据分析模块,用于将所述历史报告数据作为基准对所述当前运维数据进行数据分析,以获得分析结果;A data analysis module, configured to perform data analysis on the current operation and maintenance data using the historical report data as a reference to obtain an analysis result;
自动化运维模块,用于根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维。The automated operation and maintenance module is configured to determine the corresponding strategy to be activated according to the analysis result, and perform automated operation and maintenance through the strategy to be activated.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
图1是本申请实施例方案涉及的硬件运行环境的用户设备结构示意图;FIG. 1 is a schematic diagram of a user equipment structure of a hardware operating environment involved in a solution of an embodiment of the present application;
图2为本申请自动化分析方法第一实施例的流程示意图;2 is a schematic flowchart of the first embodiment of the automated analysis method of this application;
图3为本申请自动化分析方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of the automated analysis method of this application;
图4为本申请自动化分析方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of the automated analysis method of this application;
图5为本申请自动化分析装置第一实施例的结构框图。FIG. 5 is a structural block diagram of the first embodiment of the automated analysis device of this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the application, and are not used to limit the application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的用户设备结构示意图。Referring to FIG. 1, FIG. 1 is a schematic diagram of a user equipment structure of a hardware operating environment involved in a solution of an embodiment of the application.
如图1所示,该用户设备可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display),可选用户接口1003还可以包括标准的有线接口、无线接口,对于用户接口1003的有线接口在本申请中可为USB接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the user equipment may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in this application. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile
memory), such as disk storage. Optionally, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的结构并不构成对用户设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the user equipment, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及计算机可读指令。As shown in FIG. 1, a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and computer readable instructions.
在图1所示的用户设备中,网络接口1004主要用于连接后台服务器,与所述后台服务器进行数据通信;用户接口1003主要用于连接外设;所述用户设备通过处理器1001调用存储器1005中存储的计算机可读指令,并执行本申请实施例提供的自动化分析方法。In the user equipment shown in FIG. 1, the network interface 1004 is mainly used to connect to a back-end server and perform data communication with the back-end server; the user interface 1003 is mainly used to connect peripherals; the user equipment calls the memory 1005 through the processor 1001 And execute the automated analysis method provided in the embodiments of the present application.
基于上述硬件结构,提出本申请自动化分析方法的实施例。Based on the above hardware structure, an embodiment of the automated analysis method of the present application is proposed.
参照图2,图2为本申请自动化分析方法第一实施例的流程示意图。Refer to FIG. 2, which is a schematic flowchart of the first embodiment of the automated analysis method of this application.
在第一实施例中,所述自动化分析方法包括以下步骤:In the first embodiment, the automated analysis method includes the following steps:
步骤S10:在接收到自动化分析请求时,根据所述自动化分析请求确定对应的报告类型。Step S10: When an automated analysis request is received, a corresponding report type is determined according to the automated analysis request.
可以理解的是,考虑到业务***在运行时涉及到的数据不仅体量较大且数据的类型也各不相同,为了高效地完成日常的***运维工作,以减少工作量,本实施例将自动化地进行数据采集操作以及自动化数据分析,并最终获得运维策略,通过调用该运维策略可以不断地优化该业务***,进而高效地进行***维护。It is understandable that considering that the data involved in the operation of the business system is not only large in volume but also of different types of data, in order to efficiently complete the daily system operation and maintenance work to reduce the workload, this embodiment will Automatically carry out data collection operations and automated data analysis, and finally obtain an operation and maintenance strategy. By calling the operation and maintenance strategy, the business system can be continuously optimized, and system maintenance can be performed efficiently.
在具体实现中,在接收到用户触发的或者业务***周期性自动触发的自动化分析请求时,可先确定该自动化分析请求对应的报告类型。考虑到业务***中常会生成一定数量的***维护报告,以备***分析或者提供给业务人员进行人工分析。而且,不同类型的***维护报告涉及到的数据类型将具有一定的针对性,将围绕着该***维护报告的类型展开,故而,可以某一报告类型辐射的数据类型为依据进行数据采集操作。In a specific implementation, when an automated analysis request triggered by a user or periodically and automatically triggered by a business system is received, the report type corresponding to the automated analysis request may be determined first. Considering that a certain number of system maintenance reports are often generated in business systems for system analysis or provided to business personnel for manual analysis. Moreover, the data types involved in different types of system maintenance reports will have certain pertinence and will be developed around the types of system maintenance reports. Therefore, data collection operations can be performed based on the type of data radiated by a certain report type.
步骤S20:采集与所述报告类型对应的历史报告数据。Step S20: Collect historical report data corresponding to the report type.
应当理解的是,***维护报告的报告类型包括主动预防报告、生产问题分析报告、灾备管理工作报告以及版本变更报告等。比如,若该条自动化分析请求中涉及的报告类型为主动预防报告,则将自动化地采集之前已有的主动预防报告的报告数据,此处的历史报告数据就是指曾经生成过的主动预防报告的报告数据。It should be understood that the report types of system maintenance reports include proactive prevention reports, production problem analysis reports, disaster recovery management reports, and version change reports. For example, if the report type involved in the automated analysis request is an active prevention report, the report data of the previous active prevention report will be automatically collected. The historical report data here refers to the active prevention report that has been generated. Report data.
步骤S30:通过预设监控接口获得与所述报告类型对应的当前运维数据。Step S30: Obtain current operation and maintenance data corresponding to the report type through a preset monitoring interface.
可以理解的是,主动预防报告涉及到的数据类型包括有某直销银行日活量、每日登录量、注册用户量、组件连接并发数以及接口调用响应超时统计量等。所以,将自动化地以这些数据类型为采集依据进行数据采集操作。It is understandable that the data types involved in the proactive prevention report include a direct sales bank's daily activity, daily logins, registered users, concurrent component connections, and interface call response timeout statistics. Therefore, the data collection operation will be automated based on these data types.
需要注意的是,此处的自动化采集操作获得的当前运维数据为此刻的业务***实时运行着的数据,而历史报告数据是旧的主动预防报告内的报告数据。It should be noted that the current operation and maintenance data obtained by the automated collection operation here is the data that the business system is running in real time, and the historical report data is the report data in the old active prevention report.
在具体实现中,为了自动化地采集到当前运维数据,可通过预设监控接口去获取该报告类型对应的数据类型的实时数据。其中,预设监控接口可为zabbix监控组件的监控接口。In specific implementation, in order to automatically collect current operation and maintenance data, real-time data of the data type corresponding to the report type can be obtained through the preset monitoring interface. Among them, the preset monitoring interface may be the monitoring interface of the zabbix monitoring component.
步骤S40:将所述历史报告数据作为基准对所述当前运维数据进行数据分析,以获得分析结果。Step S40: Perform data analysis on the current operation and maintenance data using the historical report data as a reference to obtain an analysis result.
应当理解的是,在获取到旧的历史报告数据与新的当前运维数据后,由于历史报告数据中同时包括与报告类型对应的各数据类型对应的数据内容以及对这些数据内容进行分析后得出的历史策略,通过调用该历史策略可以解决这些数据内容披露的运行问题。比如,若历史报告数据中组件连接并发数较高,则历史报告数据中的历史策略可为“分配更高容量的缓存进行并发处理”,以缓解该种***问题。It should be understood that after obtaining the old historical report data and the new current operation and maintenance data, the historical report data also includes the data content corresponding to each data type corresponding to the report type, and the data content is obtained after analyzing the data content. The historical strategy can be used to solve the operation problem of the data content disclosure by calling the historical strategy. For example, if the number of concurrent component connections in the historical report data is high, the historical strategy in the historical report data can be "allocate a higher capacity cache for concurrent processing" to alleviate this type of system problem.
在具体实现中,以历史报告数据为鉴,若当前运维数据也为组件连接并发数较高,则分析结果为“历史报告数据与当前运维数据中的组件连接并发数均大于或等于预设并发数阈值”,其中,预设并发数阈值用于判断是否组件连接并发数较高。In the specific implementation, based on historical report data, if the current operation and maintenance data also indicates that the component connection concurrency is high, the analysis result is "the historical report data and the current operation and maintenance data in the component connection concurrency are greater than or equal to the expected Set the concurrency threshold", where the preset concurrency threshold is used to determine whether the component connection has a high concurrency.
步骤S50:根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维。Step S50: Determine the corresponding strategy to be activated according to the analysis result, and perform automated operation and maintenance through the strategy to be activated.
可以理解的是,由于当前运维数据与历史报告数据存在着相同的问题,则可将与当前运维数据对应的待启用策略也设置为“分配更高容量的缓存进行并发处理”,则可对当前的业务***中缓存容量进行重新分配,分配更高容量。It is understandable that because the current operation and maintenance data and the historical report data have the same problems, the policy to be activated corresponding to the current operation and maintenance data can also be set to "allocate a higher capacity cache for concurrent processing". Reallocate the cache capacity in the current business system to allocate higher capacity.
应当理解的是,通过参见已有的历史报告,可以自动化地限定数据采集的范围,也可以自动化地进行优化策略的选取,同时,也将自动化地运行该优化策略,以完整地进行自动化运维的操作。It should be understood that by referring to the existing historical reports, the scope of data collection can be automatically limited, and the optimization strategy can also be selected automatically. At the same time, the optimization strategy will also be automatically run to complete automated operation and maintenance. Operation.
在具体实现中,就架构方式而言,可采用开源的Hadoop分布式***基础架构来构建执行主体用户设备所运载的业务***,然后,将各种预设报告模板预先导入该业务***中;在具体调用时,可在该前端的网页中输入报告类型的关键字以自动检索出需要的报告模板。而且,还可额外部署MapReduce编程模型以及Hadoop
Distributed File
System(HDFS),通过MapReduce编程模型与HDFS可以进行分布式存储,进而实现快速地读取以及分析数据。其中,HDFS是一种分布式文件***。In the specific implementation, as far as the architecture is concerned, the open source Hadoop distributed system infrastructure can be used to construct the business system carried by the main user equipment, and then various preset report templates are imported into the business system in advance; When making a specific call, you can enter keywords of the report type in the front-end web page to automatically retrieve the required report template. Moreover, the MapReduce programming model and Hadoop can be additionally deployed
Distributed File
System (HDFS), through the MapReduce programming model and HDFS can be distributed storage, and then achieve rapid reading and analysis of data. Among them, HDFS is a distributed file system.
本实施例中根据自动化分析请求确定作为参照的报告类型,采集与报告类型对应的历史报告数据,调用预设监控接口来获得与报告类型对应的当前运维数据;将历史报告数据作为基准对当前运维数据进行数据分析,以获得分析结果;根据分析结果确定对应的待启用策略,通过待启用策略进行自动化运维。明显地,本实施例将以确定的报告类型所辐射的数据为框架来进行自动化的数据采集行为、数据比对行为、数据分析行为以及***优化行为,如此的自动化运维操作大大地减少了工作量,可以高效地进行***维护,进而解决了无法高效地进行***维护的技术问题。In this embodiment, the report type used as a reference is determined according to the automated analysis request, the historical report data corresponding to the report type is collected, the preset monitoring interface is called to obtain the current operation and maintenance data corresponding to the report type; the historical report data is used as a benchmark for the current Perform data analysis on the operation and maintenance data to obtain analysis results; determine the corresponding strategy to be activated according to the analysis result, and perform automated operation and maintenance through the strategy to be activated. Obviously, this embodiment uses the data radiated by the determined report type as a framework for automated data collection behavior, data comparison behavior, data analysis behavior, and system optimization behavior. Such automated operation and maintenance operations greatly reduce work. System maintenance can be carried out efficiently, and the technical problem of system maintenance cannot be solved efficiently.
参照图3,图3为本申请自动化分析方法第二实施例的流程示意图,基于上述图2所示的第一实施例,提出本申请自动化分析方法的第二实施例。Referring to FIG. 3, FIG. 3 is a schematic flowchart of the second embodiment of the automated analysis method of this application. Based on the first embodiment shown in FIG. 2 above, the second embodiment of the automated analysis method of this application is proposed.
第二实施例中,所述步骤S50之后,所述自动化分析方法还包括:In the second embodiment, after the step S50, the automated analysis method further includes:
将所述当前运维数据与所述待启用策略导入与所述报告类型对应的预设报告模板中,以生成当前生产报告。Import the current operation and maintenance data and the strategy to be activated into a preset report template corresponding to the report type to generate a current production report.
将所述当前运维数据与所述待启用策略导入与所述报告类型对应的预设报告模板中,以生成当前生产报告。Import the current operation and maintenance data and the strategy to be activated into a preset report template corresponding to the report type to generate a current production report.
在具体实现中,为了便于补充历史报告数据,同时,也为了节省运维人员撰写报告的时间成本,在完成对于待启动策略的确认后,可将当前运维数据以及对应的待启用策略导入预设报告模板中,以获得一份或多份报告文件,无需运维人员再次人工撰写。In the specific implementation, in order to facilitate the supplement of historical report data, and at the same time, to save the time cost of the operation and maintenance personnel to write the report, after the confirmation of the strategy to be activated, the current operation and maintenance data and the corresponding strategy to be activated can be imported into the preview. Set up a report template to obtain one or more report documents without manual writing by operation and maintenance personnel.
此外,由于报告类型存在多种,不同的报告类型对应的待采集的数据类型不同,分析结果不同,报告模板也存在着差异。In addition, since there are multiple report types, different report types correspond to different types of data to be collected, analysis results are different, and report templates are also different.
进一步地,所述步骤S20之后,所述自动化分析方法还包括:Further, after the step S20, the automated analysis method further includes:
步骤S201:确定所述历史报告数据中记录的历史数据类型。Step S201: Determine the type of historical data recorded in the historical report data.
可以理解的是,任一种报告中将包括有多种类型的数据类型,可将历史报告中的数据类型记为历史数据类型。It is understandable that any report will include multiple types of data types, and the data types in historical reports can be recorded as historical data types.
所述步骤S30,包括:The step S30 includes:
步骤S301:通过预设监控接口获得与所述历史数据类型对应的当前运维数据。Step S301: Obtain current operation and maintenance data corresponding to the historical data type through a preset monitoring interface.
应当理解的是,比如,该历史数据类型包括有登录量信息,则也可实时调取当前业务***运行中的登录量信息。It should be understood that, for example, if the historical data type includes log-in information, the log-in information in the current business system operation can also be retrieved in real time.
所述步骤S301之后,所述自动化分析方法还包括:After the step S301, the automated analysis method further includes:
步骤S302:读取所述当前运维数据中的当前登录量信息。Step S302: Read the current login amount information in the current operation and maintenance data.
所述步骤S40,包括:The step S40 includes:
步骤S401:将所述历史报告数据中的历史登录量信息作为基准对所述当前运维数据中的当前登录量信息进行数据分析,以获得分析结果。Step S401: Use the historical login amount information in the historical report data as a reference to perform data analysis on the current login amount information in the current operation and maintenance data to obtain an analysis result.
可以理解的是,数据分析操作可具体至每一种数据类型,就登录量信息而言,若采用的数据分析方式为登录量信息之间的数量比较,则分析结果可为“历史登录量信息与当前登录量信息记录的数量均处于预设登录量范围内”,其中,预设登录量范围为一预先规定的登录量数值范围。可见,由于二者较为相似,则可直接采用历史报告数据中记录的历史策略作为当前使用的策略。It is understandable that the data analysis operation can be specific to each data type. As far as login information is concerned, if the data analysis method adopted is a quantitative comparison between login information, the analysis result can be "historical login information The number of information records with the current log-in volume is within the preset log-in volume range", where the preset log-in volume range is a predetermined log-in volume value range. It can be seen that since the two are relatively similar, the historical strategy recorded in the historical report data can be directly used as the currently used strategy.
本实施例中可自动生成生产报告,提高了运维人员的工作效率。In this embodiment, a production report can be automatically generated, which improves the work efficiency of operation and maintenance personnel.
参照图4,图4为本申请自动化分析方法第三实施例的流程示意图,基于上述图3所示的第二实施例,提出本申请自动化分析方法的第三实施例。Referring to FIG. 4, FIG. 4 is a schematic flow chart of the third embodiment of the automated analysis method of this application. Based on the second embodiment shown in FIG. 3, a third embodiment of the automated analysis method of this application is proposed.
第二实施例中,所述将所述历史报告数据中的历史登录量信息作为基准对所述当前运维数据中的当前登录量信息进行数据分析,以获得分析结果,包括:In the second embodiment, the data analysis of the current login amount information in the current operation and maintenance data using the historical login amount information in the historical report data as a reference to obtain the analysis result includes:
读取所述历史报告数据中的历史登录量信息,并确定与所述历史登录量信息对应的历史登录量区间;Read the historical login amount information in the historical report data, and determine the historical login amount interval corresponding to the historical login amount information;
将所述历史登录量区间与所述当前登录量信息进行比较,以获得比较结果;Comparing the historical login amount interval with the current login amount information to obtain a comparison result;
所述根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维,包括:The determining the corresponding strategy to be activated according to the analysis result, and performing automated operation and maintenance through the strategy to be activated, includes:
从所述历史报告数据中的各历史策略中确定与所述比较结果对应的历史策略,并将与所述比较结果对应的历史策略作为待启用策略,通过所述待启用策略进行自动化运维。The historical strategy corresponding to the comparison result is determined from each historical strategy in the historical report data, and the historical strategy corresponding to the comparison result is used as a strategy to be activated, and automated operation and maintenance is performed through the strategy to be activated.
可以理解的是,考虑到数据分析操作存在多种方式,比如,可直接将历史报告中的信息与实时产生的信息进行数值比较,并根据数值比较结果来确定当前可采用的策略。当然,数据分析操作也可使用分类器来实现。It is understandable that considering that there are multiple ways of data analysis operations, for example, you can directly compare the information in the historical report with the information generated in real time, and determine the currently available strategy based on the result of the numerical comparison. Of course, data analysis operations can also be implemented using classifiers.
在具体实现中,就数值比较方式而言,比如,某份历史报告中的历史登录量信息为10000次,所处的历史登录量区间为7000<x≤12000,x为登录量数值,而当前运维数据中记下的当前登录量信息为8000次。明显地,当前登录量信息也处于该历史登录量区间中,所以,比较结果可为“当前登录量信息处于历史登录量区间内”。In the specific implementation, as far as the numerical comparison method is concerned, for example, the historical login information in a historical report is 10,000 times, and the historical login volume interval is 7000<x≤12000, x is the login value, and the current The current login information recorded in the operation and maintenance data is 8000 times. Obviously, the current login amount information is also in the historical login amount interval, so the comparison result may be "the current login amount information is within the historical login amount interval".
应当理解的是,当前登录量信息与该份历史报告中的历史登录量信息落入相同的判定区间,则可采用与该份历史报告中同样的历史策略来进行当前的优化操作。毕竟,该份历史报告中原本已经记录有对应于该历史登录量区间的历史策略。It should be understood that if the current login amount information and the historical login amount information in the historical report fall within the same determination interval, the same historical strategy as in the historical report can be used to perform the current optimization operation. After all, the historical report has already recorded historical policies corresponding to the historical login volume interval.
进一步地,所述步骤S401,包括:Further, the step S401 includes:
步骤S402:根据所述历史报告数据中的历史登录量信息在预设分类器下构建出各待选取登陆量子集。Step S402: Construct each to-be-selected login quantum set under the preset classifier according to the historical login amount information in the historical report data.
可以理解的是,数据分析操作也可使用分类器来实现。具体而言,考虑到存在着大量不同的历史报告,自然存在着大量的历史报告数据,可先从历史报告数据中随机抽取出训练样本,该训练样本即为此处的待选取登陆量子集,其中,待选取登陆量子集之间彼此独立,而且,待选取登陆量子集中的数据可以互有重复。It is understandable that data analysis operations can also be implemented using classifiers. Specifically, considering that there are a large number of different historical reports, there is naturally a large amount of historical report data. You can first randomly extract training samples from the historical report data. The training samples are the quantum sets to be selected for landing here. Among them, the quantum sets to be selected to log in are independent of each other, and the data in the quantum sets to be selected to log in can overlap each other.
步骤S403:通过所述待选取登陆量子集分别构建对应的待选用子决策树。Step S403: Construct corresponding to-be-selected sub-decision trees through the to-be-selected landing quantum sets.
应当理解的是,比如,若抽取出m个待选取登陆量子集,m为正整数,然后,可基于每个待选取登陆量子集训练出一个对应的待选用子决策树。明显地,此处构建出的待选用子决策树均是基于历史报告获得。It should be understood that, for example, if m to-be-selected landing quantum sets are extracted, and m is a positive integer, then a corresponding to-be-selected sub-decision tree can be trained based on each to-be-selected landing quantum set. Obviously, the sub-decision trees to be selected constructed here are all obtained based on historical reports.
步骤S404:将所述当前运维数据中的当前登录量信息代入所述待选用子决策树中,以获得与所述待选用子决策树对应的各子判断结果。Step S404: Substitute the current login information in the current operation and maintenance data into the sub-decision tree to be selected to obtain each sub-judgment result corresponding to the sub-decision tree to be selected.
可以理解的是,在实际应用中,将把实时的当前登录量信息代入m个待选用子决策树中,将获得m个可能相同也可能不同的子判断结果。其中,若存在n个历史报告,n为正整数,而子判断结果若以相似程度为评价基准,则可表现为当前运维数据与n个历史报告中的某个历史报告相似程度较高。It is understandable that in practical applications, the real-time current login information will be substituted into m sub-decision trees to be selected, and m sub-judgment results that may be the same or different will be obtained. Among them, if there are n historical reports, n is a positive integer, and if the sub-judgment result uses similarity as the evaluation criterion, it can be expressed that the current operation and maintenance data is highly similar to a certain historical report among the n historical reports.
步骤S405:从所述子判断结果中选取目标子判断结果,并将所述目标子判断结果作为分析结果。Step S405: Select a target sub-judgment result from the sub-judgment results, and use the target sub-judgment result as the analysis result.
应当理解的是,若m个子判断结果中,数量最多的子判断结果为“当前运维数据与第5个历史报告数据相似程度较高”,则可将“当前运维数据与第5个历史报告数据相似程度较高”作为目标子判断结果以及分析结果。后续过程中,可将第5个历史报告数据中记录的历史策略作为待启用策略。It should be understood that if among the m subjudgment results, the most numerous subjudgment result is "the current operation and maintenance data is more similar to the fifth historical report data", then the "current operation and maintenance data and the fifth historical report The report data has a higher degree of similarity" as the target subjudgment result and analysis result. In the subsequent process, the historical strategy recorded in the fifth historical report data can be used as the strategy to be activated.
进一步地,所述通过所述待选取登陆量子集分别构建对应的待选用子决策树,包括:Further, the construction of corresponding to-be-selected sub-decision trees respectively through the to-be-selected login quantum set includes:
通过所述待选取登陆量子集对预设子决策树模型中的权重值进行调整,并将所述权重值调整后的预设子决策树模型作为与所述待选取登陆量子集对应的待选用子决策树;Adjust the weight value in the preset sub-decision tree model through the to-be-selected landing quantum set, and use the preset sub-decision tree model after the weight value adjustment as the to-be-selected corresponding to the to-be-selected landing quantum set Sub-decision tree
所述根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维之后,所述自动化分析方法还包括:After the corresponding strategy to be activated is determined according to the analysis result, and after the automated operation and maintenance is performed through the strategy to be activated, the automated analysis method further includes:
在接收到用户输入的修改指令时,根据所述修改指令确定对应的待修改策略;When receiving the modification instruction input by the user, determine the corresponding strategy to be modified according to the modification instruction;
在所述待修改策略与所述待启用策略不同时,在所述待选用子决策树中确定与所述待启用策略对应的目标子决策树;When the strategy to be modified is different from the strategy to be activated, determining a target sub-decision tree corresponding to the strategy to be activated in the sub-decision tree to be selected;
对所述目标子决策树中的权重值进行调整,以获得新的目标子决策树。The weight value in the target sub-decision tree is adjusted to obtain a new target sub-decision tree.
可以理解的是,在最终确定待启用策略后,业务人员可能会人工对该实际使用的策略进行调整,比如,若预设分类器为随机森林(Random
Forest)算法,随机森林算法最终确定的待启用策略可能为“分配更高容量的缓存进行并发处理”,但是,业务人员考虑到实际性能人工将之变更另一策略为“对服务器的主机运算性能进行优化”。明显地,随机森林算法最终确定的待启用策略可能并不适宜,所以,可设置反馈机制对随机森林算法进行调整。It is understandable that after the strategy to be activated is finally determined, business personnel may manually adjust the strategy actually used. For example, if the preset classifier is Random Forest (Random Forest)
Forest) algorithm, the strategy to be activated finally determined by the random forest algorithm may be "allocate a higher capacity cache for concurrent processing", but the business personnel manually change it to "comparing the server's host computing performance in consideration of actual performance. optimize". Obviously, the strategy to be activated finally determined by the random forest algorithm may not be suitable, so a feedback mechanism can be set to adjust the random forest algorithm.
在具体实现中,由于在构建待选用子决策树时,将以预设子决策树模型为蓝本,通过修改预设子决策树模型中的初始权重值来获得与待选取登陆量子集相协调的待选用子决策树。故而,若随机森林算法最终确定的待启用策略为第5个历史报告数据中记录的历史策略即“分配更高容量的缓存进行并发处理”,而用户输入的待修改策略为第4个历史报告数据中记录的历史策略即“对服务器的主机运算性能进行优化”,二者不同,则可选取出结果为第5个历史报告数据中记录的历史策略的子决策树。对该子决策树中的权重值进行重新调整,以获得新的目标子决策树,将使得在将该当前登录量信息再次代入新的目标子决策树中后,新的目标子决策树将获得的子判断结果不为第5个历史报告数据中记录的历史策略而为第4个历史报告数据中记录的历史策略,如此,也就修改了随机森林算法将产生的子判断结果,使之更加贴近业务人员人工选择的结果。In the specific implementation, because when constructing the sub-decision tree to be selected, the preset sub-decision tree model will be used as the blueprint, and the initial weight value in the preset sub-decision tree model is modified to obtain the coordinate with the quantum set to be selected for landing Sub-decision tree to be selected. Therefore, if the strategy to be activated finally determined by the random forest algorithm is the historical strategy recorded in the fifth historical report data, that is, "allocate a higher capacity cache for concurrent processing", and the strategy to be modified entered by the user is the fourth historical report The historical strategy recorded in the data is "optimizing the computing performance of the server's host". If the two are different, the optional result is the sub-decision tree of the historical strategy recorded in the fifth historical report data. The weight value in this sub-decision tree is re-adjusted to obtain a new target sub-decision tree, which will make the new target sub-decision tree obtain after substituting the current login information into the new target sub-decision tree. The sub-judgment result of is not the historical strategy recorded in the fifth historical report data but the historical strategy recorded in the fourth historical report data. In this way, the sub-judgment result generated by the random forest algorithm is modified to make it more Close to the result of manual selection by business personnel.
进一步地,所述通过预设监控接口获得与所述报告类型对应的当前运维数据,包括:Further, the obtaining the current operation and maintenance data corresponding to the report type through a preset monitoring interface includes:
通过调用与预设监控子***对应的预设监控接口以生成与所述预设监控子***对应的模拟登陆请求;Generating a simulated login request corresponding to the preset monitoring subsystem by calling the preset monitoring interface corresponding to the preset monitoring subsystem;
将所述报告类型对应的各历史数据类型写入所述模拟登陆请求中;Write each historical data type corresponding to the report type into the simulated login request;
将所述模拟登陆请求发送至所述预设监控子***,以使所述预设监控子***根据所述历史数据类型进行模拟登陆操作,并爬取所述预设监控子***响应于所述模拟登陆操作生成的当前运维数据。Send the simulated login request to the preset monitoring subsystem, so that the preset monitoring subsystem performs a simulated login operation according to the historical data type, and crawls the preset monitoring subsystem in response to the The current operation and maintenance data generated by the simulated login operation.
可以理解的是,为了获得实时运行的业务***产生的当前运维数据,可应用预设监控子***来监控业务***的运行,预设监控子***可为zabbix监控***或者grafana可视化***。其中,zabbix监控***可通过编写自动化脚本实现自定义监控,且可设置邮件告警,支持第三方接口;grafana可视化***作为一种开源的监控***,主要实现了对于中间件以及代码等组件的监控。It is understandable that in order to obtain the current operation and maintenance data generated by the business system running in real time, the preset monitoring subsystem can be used to monitor the operation of the business system. The preset monitoring subsystem can be the zabbix monitoring system or the grafana visualization system. Among them, the zabbix monitoring system can implement custom monitoring by writing automated scripts, and can set email alerts, and support third-party interfaces; the grafana visualization system, as an open source monitoring system, mainly realizes the monitoring of middleware and code components.
应当理解的是,可模拟登陆这些预设监控子***以爬取到实时的运行数据,具体而言,可调用这些预设监控子***的预设监控接口以向这些预设监控子***发起模拟登陆操作,从而使得这些预设监控子***对登录行为进行反馈,反馈的信息则可表征业务***的当前运行情况,可记为当前运维数据。It should be understood that these preset monitoring subsystems can be simulated and logged in to crawl real-time operating data. Specifically, the preset monitoring interfaces of these preset monitoring subsystems can be called to initiate simulation to these preset monitoring subsystems. The login operation allows these preset monitoring subsystems to feedback the login behavior, and the feedback information can characterize the current operation of the business system and can be recorded as current operation and maintenance data.
可以理解的是,为了获得预设监控子***反馈的信息,可应用网络爬虫技术以爬取到这些反馈的信息。It is understandable that in order to obtain the feedback information from the preset monitoring subsystem, web crawler technology can be applied to crawl the feedback information.
本实施例中可通过数值比较方式来获得分析结果,也可通过随机森林算法来取得分析结果。此外,还可设置人工反馈机制来调整随机森林算法,使之具备不断学习的能力。In this embodiment, the analysis result can be obtained by means of numerical comparison, and the analysis result can also be obtained by the random forest algorithm. In addition, an artificial feedback mechanism can be set up to adjust the random forest algorithm so that it has the ability to continuously learn.
此外,本申请实施例还提出一种存储介质,所述存储介质可以为非易失性可读存储介质。In addition, the embodiment of the present application also proposes a storage medium, and the storage medium may be a non-volatile readable storage medium.
本申请存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上文所述的自动化分析方法的步骤。The storage medium of the present application stores computer-readable instructions, which, when executed by a processor, realize the steps of the automated analysis method as described above.
其中,该计算机可读指令被执行时所实现的方法可参照本申请自动化分析方法的各个实施例,此处不再赘述。For the method implemented when the computer-readable instruction is executed, please refer to each embodiment of the automated analysis method of the present application, which will not be repeated here.
此外,参照图5,本申请实施例还提出一种自动化分析装置,所述自动化分析装置包括:In addition, referring to FIG. 5, an embodiment of the present application also proposes an automated analysis device, which includes:
报告类型确定模块10,用于在接收到自动化分析请求时,根据所述自动化分析请求确定对应的报告类型。The report type determining module 10 is configured to determine the corresponding report type according to the automated analysis request when an automated analysis request is received.
可以理解的是,考虑到业务***在运行时涉及到的数据不仅体量较大且数据的类型也各不相同,为了高效地完成日常的***运维工作,以减少工作量,本实施例将自动化地进行数据采集操作以及自动化数据分析,并最终获得运维策略,通过调用该运维策略可以不断地优化该业务***,进而高效地进行***维护。It is understandable that considering that the data involved in the operation of the business system is not only large in volume but also of different types of data, in order to efficiently complete the daily system operation and maintenance work to reduce the workload, this embodiment will Automatically carry out data collection operations and automated data analysis, and finally obtain an operation and maintenance strategy. By calling the operation and maintenance strategy, the business system can be continuously optimized, and system maintenance can be performed efficiently.
在具体实现中,在接收到用户触发的或者业务***周期性自动触发的自动化分析请求时,可先确定该自动化分析请求对应的报告类型。考虑到业务***中常会生成一定数量的***维护报告,以备***分析或者提供给业务人员进行人工分析。而且,不同类型的***维护报告涉及到的数据类型将具有一定的针对性,将围绕着该***维护报告的类型展开,故而,可以某一报告类型辐射的数据类型为依据进行数据采集操作。In a specific implementation, when an automated analysis request triggered by a user or periodically and automatically triggered by a business system is received, the report type corresponding to the automated analysis request may be determined first. Considering that a certain number of system maintenance reports are often generated in business systems for system analysis or provided to business personnel for manual analysis. Moreover, the data types involved in different types of system maintenance reports will have certain pertinence and will be developed around the types of system maintenance reports. Therefore, data collection operations can be performed based on the type of data radiated by a certain report type.
历史数据采集模块20,用于采集与所述报告类型对应的历史报告数据。The historical data collection module 20 is used to collect historical report data corresponding to the report type.
应当理解的是,***维护报告的报告类型包括主动预防报告、生产问题分析报告、灾备管理工作报告以及版本变更报告等。比如,若该条自动化分析请求中涉及的报告类型为主动预防报告,则将自动化地采集之前已有的主动预防报告的报告数据,此处的历史报告数据就是指曾经生成过的主动预防报告的报告数据。It should be understood that the report types of system maintenance reports include proactive prevention reports, production problem analysis reports, disaster recovery management reports, and version change reports. For example, if the report type involved in the automated analysis request is an active prevention report, the report data of the previous active prevention report will be automatically collected. The historical report data here refers to the active prevention report that has been generated. Report data.
运维数据采集模块30,用于通过预设监控接口获得与所述报告类型对应的当前运维数据。The operation and maintenance data collection module 30 is configured to obtain current operation and maintenance data corresponding to the report type through a preset monitoring interface.
可以理解的是,主动预防报告涉及到的数据类型包括有某直销银行日活量、每日登录量、注册用户量、组件连接并发数以及接口调用响应超时统计量等。所以,将自动化地以这些数据类型为采集依据进行数据采集操作。It is understandable that the data types involved in the proactive prevention report include a direct sales bank's daily activity, daily logins, registered users, concurrent component connections, and interface call response timeout statistics. Therefore, the data collection operation will be automated based on these data types.
需要注意的是,此处的自动化采集操作获得的当前运维数据为此刻的业务***实时运行着的数据,而历史报告数据是旧的主动预防报告内的报告数据。It should be noted that the current operation and maintenance data obtained by the automated collection operation here is the data that the business system is running in real time, and the historical report data is the report data in the old active prevention report.
在具体实现中,为了自动化地采集到当前运维数据,可通过预设监控接口去获取该报告类型对应的数据类型的实时数据。其中,预设监控接口可为zabbix监控组件的监控接口。In specific implementation, in order to automatically collect current operation and maintenance data, real-time data of the data type corresponding to the report type can be obtained through the preset monitoring interface. Among them, the preset monitoring interface may be the monitoring interface of the zabbix monitoring component.
数据分析模块40,用于将所述历史报告数据作为基准对所述当前运维数据进行数据分析,以获得分析结果。The data analysis module 40 is configured to perform data analysis on the current operation and maintenance data using the historical report data as a reference to obtain an analysis result.
应当理解的是,在获取到旧的历史报告数据与新的当前运维数据后,由于历史报告数据中同时包括与报告类型对应的各数据类型对应的数据内容以及对这些数据内容进行分析后得出的历史策略,通过调用该历史策略可以解决这些数据内容披露的运行问题。比如,若历史报告数据中组件连接并发数较高,则历史报告数据中的历史策略可为“分配更高容量的缓存进行并发处理”,以缓解该种***问题。It should be understood that after obtaining the old historical report data and the new current operation and maintenance data, the historical report data also includes the data content corresponding to each data type corresponding to the report type, and the data content is obtained after analyzing the data content. The historical strategy can be used to solve the operation problem of the data content disclosure by calling the historical strategy. For example, if the number of concurrent component connections in the historical report data is high, the historical strategy in the historical report data can be "allocate a higher capacity cache for concurrent processing" to alleviate this type of system problem.
在具体实现中,以历史报告数据为鉴,若当前运维数据也为组件连接并发数较高,则分析结果为“历史报告数据与当前运维数据中的组件连接并发数均大于或等于预设并发数阈值”,其中,预设并发数阈值用于判断是否组件连接并发数较高。In the specific implementation, based on historical report data, if the current operation and maintenance data also indicates that the component connection concurrency is high, the analysis result is "the historical report data and the current operation and maintenance data in the component connection concurrency are greater than or equal to the expected Set the concurrency threshold", where the preset concurrency threshold is used to determine whether the component connection has a high concurrency.
自动化运维模块50,用于根据所述分析结果确定对应的待启用策略,通过所述待启用策略进行自动化运维。The automated operation and maintenance module 50 is configured to determine a corresponding strategy to be activated according to the analysis result, and perform automated operation and maintenance through the strategy to be activated.
可以理解的是,由于当前运维数据与历史报告数据存在着相同的问题,则可将与当前运维数据对应的待启用策略也设置为“分配更高容量的缓存进行并发处理”,则可对当前的业务***中缓存容量进行重新分配,分配更高容量。It is understandable that because the current operation and maintenance data and the historical report data have the same problems, the policy to be activated corresponding to the current operation and maintenance data can also be set to "allocate a higher capacity cache for concurrent processing". Reallocate the cache capacity in the current business system to allocate higher capacity.
应当理解的是,通过参见已有的历史报告,可以自动化地限定数据采集的范围,也可以自动化地进行优化策略的选取,同时,也将自动化地运行该优化策略,以完整地进行自动化运维的操作。It should be understood that by referring to the existing historical reports, the scope of data collection can be automatically limited, and the optimization strategy can also be selected automatically. At the same time, the optimization strategy will also be automatically run to complete automated operation and maintenance. Operation.
本实施例中根据自动化分析请求确定作为参照的报告类型,采集与报告类型对应的历史报告数据,调用预设监控接口来获得与报告类型对应的当前运维数据;将历史报告数据作为基准对当前运维数据进行数据分析,以获得分析结果;根据分析结果确定对应的待启用策略,通过待启用策略进行自动化运维。明显地,本实施例将以确定的报告类型所辐射的数据为框架来进行自动化的数据采集行为、数据比对行为、数据分析行为以及***优化行为,如此的自动化运维操作大大地减少了工作量,可以高效地进行***维护,进而解决了无法高效地进行***维护的技术问题。In this embodiment, the report type used as a reference is determined according to the automated analysis request, the historical report data corresponding to the report type is collected, the preset monitoring interface is called to obtain the current operation and maintenance data corresponding to the report type; the historical report data is used as a benchmark for the current Perform data analysis on the operation and maintenance data to obtain analysis results; determine the corresponding strategy to be activated according to the analysis result, and perform automated operation and maintenance through the strategy to be activated. Obviously, this embodiment uses the data radiated by the determined report type as a framework for automated data collection behavior, data comparison behavior, data analysis behavior, and system optimization behavior. Such automated operation and maintenance operations greatly reduce work. System maintenance can be carried out efficiently, and the technical problem of system maintenance cannot be solved efficiently.
在一实施例中,所述自动化分析装置还包括:In an embodiment, the automated analysis device further includes:
报告生成模块,用于将所述当前运维数据与所述待启用策略导入与所述报告类型对应的预设报告模板中,以生成当前生产报告。The report generation module is configured to import the current operation and maintenance data and the to-be-enabled strategy into a preset report template corresponding to the report type to generate a current production report.
在一实施例中,所述自动化分析装置还包括:In an embodiment, the automated analysis device further includes:
历史类型确定模块,用于确定所述历史报告数据中记录的历史数据类型;The historical type determining module is used to determine the historical data type recorded in the historical report data;
所述运维数据采集模块30,还用于通过预设监控接口获得与所述历史数据类型对应的当前运维数据;The operation and maintenance data collection module 30 is further configured to obtain current operation and maintenance data corresponding to the historical data type through a preset monitoring interface;
登录量读取模块,用于读取所述当前运维数据中的当前登录量信息;The login amount reading module is used to read the current login amount information in the current operation and maintenance data;
所述数据分析模块40,还用于将所述历史报告数据中的历史登录量信息作为基准对所述当前运维数据中的当前登录量信息进行数据分析,以获得分析结果。The data analysis module 40 is further configured to use the historical login amount information in the historical report data as a reference to perform data analysis on the current login amount information in the current operation and maintenance data to obtain an analysis result.
在一实施例中,所述数据分析模块40,还用于读取所述历史报告数据中的历史登录量信息,并确定与所述历史登录量信息对应的历史登录量区间;将所述历史登录量区间与所述当前登录量信息进行比较,以获得比较结果;In an embodiment, the data analysis module 40 is further configured to read historical login information in the historical report data, and determine a historical login volume interval corresponding to the historical login information; Comparing the log-in volume interval with the current log-in volume information to obtain a comparison result;
所述自动化运维模块50,还用于从所述历史报告数据中的各历史策略中确定与所述比较结果对应的历史策略,并将与所述比较结果对应的历史策略作为待启用策略,通过所述待启用策略进行自动化运维。The automated operation and maintenance module 50 is further configured to determine a historical strategy corresponding to the comparison result from each historical strategy in the historical report data, and use the historical strategy corresponding to the comparison result as a strategy to be activated, Automated operation and maintenance are performed through the strategy to be activated.
在一实施例中,所述数据分析模块40,还用于根据所述历史报告数据中的历史登录量信息在预设分类器下构建出各待选取登陆量子集;通过所述待选取登陆量子集分别构建对应的待选用子决策树;将所述当前运维数据中的当前登录量信息代入所述待选用子决策树中,以获得与所述待选用子决策树对应的各子判断结果;从所述子判断结果中选取目标子判断结果,并将所述目标子判断结果作为分析结果。In one embodiment, the data analysis module 40 is further configured to construct each to-be-selected login quantum set under a preset classifier according to the historical login amount information in the historical report data; Sets respectively to construct corresponding sub-decision trees to be selected; substituting the current login information in the current operation and maintenance data into the sub-decision trees to be selected to obtain the sub-judgment results corresponding to the sub-decision trees to be selected ; Select the target sub-judgment result from the sub-judgment results, and use the target sub-judgment result as the analysis result.
在一实施例中,所述自动化分析装置还包括:In an embodiment, the automated analysis device further includes:
决策树选定模块,用于通过所述待选取登陆量子集对预设子决策树模型中的权重值进行调整,并将所述权重值调整后的预设子决策树模型作为与所述待选取登陆量子集对应的待选用子决策树;The decision tree selection module is used to adjust the weight value in the preset sub-decision tree model through the to-be-selected login quantum set, and use the preset sub-decision tree model after the weight value adjustment as the reference to the waiting Select the sub-decision tree to be selected corresponding to the landing quantum set;
决策树调整模块,用于在接收到用户输入的修改指令时,根据所述修改指令确定对应的待修改策略;在所述待修改策略与所述待启用策略不同时,在所述待选用子决策树中确定与所述待启用策略对应的目标子决策树;对所述目标子决策树中的权重值进行调整,以获得新的目标子决策树。The decision tree adjustment module is configured to determine the corresponding strategy to be modified according to the modification instruction when the modification instruction input by the user is received; when the strategy to be modified is different from the strategy to be activated, select the child The target sub-decision tree corresponding to the strategy to be activated is determined in the decision tree; the weight value in the target sub-decision tree is adjusted to obtain a new target sub-decision tree.
在一实施例中,所述运维数据采集模块30,还用于通过调用与预设监控子***对应的预设监控接口以生成与所述预设监控子***对应的模拟登陆请求;将所述报告类型对应的各历史数据类型写入所述模拟登陆请求中;将所述模拟登陆请求发送至所述预设监控子***,以使所述预设监控子***根据所述历史数据类型进行模拟登陆操作,并爬取所述预设监控子***响应于所述模拟登陆操作生成的当前运维数据。In an embodiment, the operation and maintenance data collection module 30 is further configured to generate a simulated login request corresponding to the preset monitoring subsystem by calling the preset monitoring interface corresponding to the preset monitoring subsystem; Each historical data type corresponding to the report type is written into the simulated login request; the simulated login request is sent to the preset monitoring subsystem, so that the preset monitoring subsystem performs processing according to the historical data type Simulate a login operation, and crawl current operation and maintenance data generated by the preset monitoring subsystem in response to the simulated login operation.
本申请所述自动化分析装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementations of the automated analysis device described in the present application, reference may be made to the foregoing method embodiments, and details are not described herein again.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of this application, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent protection of this application.