[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114185760A - System risk assessment method and device and charging equipment operation and maintenance detection method - Google Patents

System risk assessment method and device and charging equipment operation and maintenance detection method Download PDF

Info

Publication number
CN114185760A
CN114185760A CN202111552044.1A CN202111552044A CN114185760A CN 114185760 A CN114185760 A CN 114185760A CN 202111552044 A CN202111552044 A CN 202111552044A CN 114185760 A CN114185760 A CN 114185760A
Authority
CN
China
Prior art keywords
data
target
change
time
warning information
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
CN202111552044.1A
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.)
Qingdao Telai Big Data Co ltd
Qingdao Teld New Energy Technology Co Ltd
Original Assignee
Qingdao Telai Big Data Co ltd
Qingdao Teld New Energy Technology 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 Qingdao Telai Big Data Co ltd, Qingdao Teld New Energy Technology Co Ltd filed Critical Qingdao Telai Big Data Co ltd
Publication of CN114185760A publication Critical patent/CN114185760A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3447Performance evaluation by modeling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/353Clustering; Classification into predefined classes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a system risk assessment method and device and a charging equipment operation and maintenance detection method, wherein the system risk assessment method comprises the following steps: acquiring system change data of a target system in target time; the system change data comprises system early warning information and device names corresponding to system changes; based on the system change data, determining early warning information corresponding to the target system change by using a natural language processing technology; acquiring time sequence data of a target system in target time, and obtaining the variation trend of a monitoring index corresponding to the target system by using a machine learning algorithm based on the time sequence data; and carrying out system risk assessment on the target system based on the early warning information and the change trend. According to the method and the device, the risk of the system change is evaluated through the early warning information of the system change obtained based on natural language processing and the monitoring index trend abnormity obtained based on machine learning, and the accuracy of evaluation of the risk of the system change under the micro-service architecture is improved.

Description

系统风险评估方法及装置、充电设备运维检测方法System risk assessment method and device, charging equipment operation and maintenance detection method

技术领域technical field

本发明涉及微服务系统领域,特别涉及一种系统风险评估方法及装置、充电设备运维检测方法。The invention relates to the field of micro-service systems, in particular to a system risk assessment method and device, and a charging equipment operation and maintenance detection method.

背景技术Background technique

当前,在业务模型不完善,超大规模流量的冲击情况下,许多企业纷纷抛弃了传统的单体架构,采用微服务架构,微服务架构模式具备独立开发、独立部署、可扩展性、可重用性的优点。但同时微服务系统的开发、迭代、运维的复杂性较高,服务数量变多导致其中一个服务出现故障的概率增大,并且一个服务故障可能导致整个系统挂掉,定位故障点变得非常困难,同时由于服务数量非常多,部署、管理的工作量很大,极易出现因疏忽导致的事故。通常的互联网产品事故,除了一些不可抗拒的因素,80%的事故产生的原因是由于发布程序的BUG、或者基础资源的变更造成的。所以在复杂的微服务系统下频繁的产品迭代、发布上线等过程中,保障系统原有的稳定性和核心业务十分重要。因此,如何快速从复杂的系统中分析出那些异常是由系统变更引起的,并对系统变更进行风险评估,以便及时通知管理员关注并处理,是保障微服务系统稳定性的前提。At present, under the impact of imperfect business models and ultra-large-scale traffic, many enterprises have abandoned the traditional monolithic architecture and adopted the micro-service architecture. The micro-service architecture model has independent development, independent deployment, scalability, and reusability. The advantages. However, at the same time, the development, iteration, and operation and maintenance of the microservice system are highly complex. The increase in the number of services increases the probability of one of the services failing, and one service failure may cause the entire system to hang up. It becomes very difficult to locate the fault point. At the same time, due to the large number of services, the workload of deployment and management is very large, and accidents caused by negligence are extremely prone to occur. In addition to some irresistible factors, 80% of the common Internet product accidents are caused by bugs in publishing programs or changes in basic resources. Therefore, it is very important to ensure the original stability and core business of the system in the process of frequent product iteration, release and launch under the complex microservice system. Therefore, how to quickly analyze those anomalies from complex systems that are caused by system changes, and conduct risk assessments on system changes, so as to notify administrators to pay attention and deal with them in a timely manner, is the premise to ensure the stability of the microservice system.

现有技术中,通过灰度分布方式维持系统稳定,按照流量或具体的数据内容进行灰度发布,出现问题后不会影响全网用户,通过控制服务路由的逻辑,控制流量的走向,从而降低发布故障产生的影响,但并不能完全覆盖生产环境下所有用户或流量,降低了风险排查的能力。现有技术中,还通过诸葛io的版本分析功能,通过分析改版后的新增用户、活跃用户等数据,对比不同版本的历史数据,衡量此次发版后的整体效果。但其依靠发布后一段时间内的指标趋势,对发布后的程序进行评估,无法及时的发现线上问题,降低了系统风险排查的能力。In the prior art, system stability is maintained through grayscale distribution, and grayscale distribution is performed according to traffic or specific data content, so that when a problem occurs, users on the entire network will not be affected. The impact of publishing failures does not fully cover all users or traffic in the production environment, reducing the ability to troubleshoot risks. In the prior art, the version analysis function of Zhuge io is also used to measure the overall effect after the release of this version by analyzing the data of new users and active users after the revision, and comparing the historical data of different versions. However, it relies on the trend of indicators for a period of time after the release to evaluate the program after the release, and cannot find online problems in time, which reduces the ability of system risk investigation.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明一方面提供一种系统风险评估方法,能够提高微服务架构下系统风险评估的准确性。In view of this, one aspect of the present invention provides a system risk assessment method, which can improve the accuracy of system risk assessment under a microservice architecture.

本发明另一方面还提供一种充电设备运维检测方法,能够提高充电设备运维检测的准确性与检测效率。Another aspect of the present invention also provides a method for operation and maintenance detection of charging equipment, which can improve the accuracy and detection efficiency of operation and maintenance detection of charging equipment.

本发明另一方面还提供一种系统风险评估装置,能够提高微服务架构下系统风险评估的准确性。Another aspect of the present invention also provides a system risk assessment device, which can improve the accuracy of the system risk assessment under the micro-service architecture.

根据本发明的第一方面,本申请公开了一种系统风险评估方法,应用于微服务架构下的系统风险评估,包括:According to the first aspect of the present invention, the present application discloses a system risk assessment method, which is applied to the system risk assessment under the microservice architecture, including:

获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息以及系统变更对应的装置名称;Obtain the system change data of the target system within the target time; the system change data includes the system early warning information and the device name corresponding to the system change;

基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;Based on the system change data, use natural language processing technology to determine early warning information corresponding to the target system change;

获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;Acquire the time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain the change trend of the monitoring indicators corresponding to the target system;

基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。A system risk assessment is performed on the target system based on the early warning information and the change trend.

可选的,所述基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息,包括:Optionally, based on the system change data, use natural language processing technology to determine the early warning information corresponding to the target system change, including:

对所述系统预警信息进行语料预处理,并从处理后的系统预警信息中提取出第一组关键词;Perform corpus preprocessing on the system early warning information, and extract the first group of keywords from the processed system early warning information;

对所述装置名称进行语料预处理,并从处理后的变更装置名称中提取出第二组关键词;performing corpus preprocessing on the device name, and extracting a second group of keywords from the processed device name;

计算所述第一组关键词与所述第二组关键词中关键词的相似度,基于所述相似度确定出与所述目标系统变更对应的预警信息。Calculate the similarity between the first group of keywords and the keywords in the second group of keywords, and determine early warning information corresponding to the target system change based on the similarity.

可选的,所述目标时间包括所述目标系统的系统变更时间,和变更后预设时长内的时间。Optionally, the target time includes a system change time of the target system and a time within a preset time period after the change.

可选的,所述基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势,包括:Optionally, based on the time series data, using a machine learning algorithm to obtain the change trend of the monitoring indicators corresponding to the target system, including:

根据预设分类标准对所述时间序列数据进行分类,得到相应的目标类型数据;所述目标类型数据包括易变型数据、周期型数据和稳定型数据;Classify the time series data according to a preset classification standard to obtain corresponding target type data; the target type data includes volatile data, periodic data and stable data;

利用与所述目标类型数据对应的预设检测算法,对所述目标类型数据进行异常检测,得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。Using a preset detection algorithm corresponding to the target type data, anomaly detection is performed on the target type data, and the change trend of the monitoring index corresponding to the target type data is obtained, so as to obtain the change of the monitoring index corresponding to the target system. trend.

可选的,所述利用与所述目标类型数据对应的预设检测算法,对所述目标类型数据进行异常检测,得到所述目标类型数据对应的监控指标的变化趋势,包括:Optionally, performing anomaly detection on the target type data by using a preset detection algorithm corresponding to the target type data to obtain a change trend of the monitoring index corresponding to the target type data, including:

基于Turkey检测对所述易变型数据进行异常检测,得到易变型监控指标的变化趋势;Perform anomaly detection on the volatile data based on Turkey detection, and obtain the change trend of the volatile monitoring indicators;

基于同环比算法对所述周期型数据进行异常检测,得到周期型监控指标的变化趋势;Perform anomaly detection on the periodic data based on the same chain ratio algorithm, and obtain the change trend of the periodic monitoring indicators;

基于时间序列ARIMA算法对所述稳定型数据进行异常检测,得到稳定型监控指标的变化趋势。Anomaly detection is performed on the stable data based on the time series ARIMA algorithm, and the change trend of the stable monitoring indicators is obtained.

可选的,所述根据预设分类标准对所述时间序列数据进行分类,得到相应的目标类型数据,包括:Optionally, classifying the time series data according to a preset classification standard to obtain corresponding target type data, including:

基于窗口数据相似性对所述时间序列数据进行周期性检测,并根据第一预设阈值进行分类得到所述易变型数据和非易变型数据;Periodically detect the time series data based on the similarity of window data, and classify according to a first preset threshold to obtain the volatile data and the non-volatile data;

基于STL算法对所述非易变型数据进行稳定性检测,并根据第二预设阈值进行分类得到所述周期性数据和所述稳定型数据。Stability detection is performed on the non-volatile data based on the STL algorithm, and the periodic data and the stable data are obtained by classifying according to a second preset threshold.

可选的,所述基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估,包括:Optionally, the system risk assessment on the target system based on the early warning information and the change trend includes:

基于所述预警信息、所述变化趋势和所述监控指标的指标等级对所述目标系统进行系统风险评估,得到所述目标系统的风险等级;Perform a system risk assessment on the target system based on the early warning information, the change trend and the index level of the monitoring index, to obtain the risk level of the target system;

基于所述风险等级生成相应的评估报告;generating a corresponding assessment report based on the risk level;

其中,所述指标等级包括核心业务级指标、技术级指标和系统资源级指标。Wherein, the indicator levels include core business-level indicators, technology-level indicators, and system resource-level indicators.

根据本发明的第二方面,本申请公开了一种充电设备运维检测方法,包括:According to the second aspect of the present invention, the present application discloses a method for detecting operation and maintenance of charging equipment, including:

获取目标系统在目标时间内的系统变更数据;所述目标系统包括充电设备系统;所述系统变更数据包括所述充电设备运维数据,所述充电设备运维数据包括系统预警信息以及系统变更对应的装置名称;Obtain the system change data of the target system within the target time; the target system includes the charging equipment system; the system change data includes the operation and maintenance data of the charging equipment, and the operation and maintenance data of the charging equipment includes the system warning information and the corresponding system change name of the device;

基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;Based on the system change data, use natural language processing technology to determine early warning information corresponding to the target system change;

获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;Acquire the time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain the change trend of the monitoring indicators corresponding to the target system;

基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。A system risk assessment is performed on the target system based on the early warning information and the change trend.

可选的,所述获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势,包括:Optionally, the obtaining of the time series data of the target system within the target time, and based on the time series data, using a machine learning algorithm to obtain the change trend of the monitoring indicators corresponding to the target system, including:

获取充电设备运维检测过程中所述目标时间内的时间序列数据;Obtain time series data within the target time during the operation and maintenance detection process of the charging equipment;

将所述时间序列数据通过周期性检测,确定周期性特征值;Periodically detecting the time series data to determine the periodic characteristic value;

在所述周期性特征值小于第一预设阈值的情况下,判定所述时间序列数据属于易变型数据;In the case that the periodic characteristic value is smaller than the first preset threshold, it is determined that the time series data belongs to volatile data;

在所述周期性特征值大于等于所述第一预设阈值的情况下,进一步对所述时间序列数据进行稳定性检测,确定稳定性特征值;In the case that the periodic characteristic value is greater than or equal to the first preset threshold value, further perform stability detection on the time series data to determine the stability characteristic value;

在所述稳定性特征值大于第二预设阈值的情况下,判定所述时间序列数据属于稳定型数据;In the case that the stability characteristic value is greater than the second preset threshold, it is determined that the time series data belongs to stable data;

在所述稳定性特征值小于等于所述第二预设阈值的情况下,判定所述时间序列数据属于周期型数据;In the case that the stability characteristic value is less than or equal to the second preset threshold, it is determined that the time series data belongs to periodic data;

根据所述时间序列数据所属目标类型数据,对所述时间序列数据进行异常检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势;Perform anomaly detection on the time series data according to the target type data to which the time series data belongs, so as to obtain the change trend of the monitoring index corresponding to the target type data, so as to obtain the change trend of the monitoring index corresponding to the target system;

所述目标类型数据包括易变型数据、周期型数据和稳定型数据。The target type data includes volatile data, periodic data and stable data.

可选的,所述将所述时间序列数据通过周期性检测,包括:Optionally, the periodic detection of the time series data includes:

给定所述时间序列数据的参考周期T;Given a reference period T of the time series data;

以所述参考周期T为分割点,对所述时间序列数据进行分割,将所述时间序列数据分割为n/T个子时间序列单元,其中n为所述时间序列数据的长度;Taking the reference period T as a dividing point, dividing the time series data, and dividing the time series data into n/T sub-time series units, where n is the length of the time series data;

对每一个所述子时间序列单元两两比较计算相似度系数,将所述相似度系统确定为所述周期性特征值;Comparing each of the sub-time series units to calculate a similarity coefficient, and determining the similarity system as the periodic feature value;

所述进一步对所述时间序列数据进行稳定性检测,包括:The further performing stability detection on the time series data includes:

采用移动平均线算法对所述时间序列数据进行季节性分解,分解为季节性周期分量、长期趋势分量以及随机残差分量;Seasonally decompose the time series data by using the moving average algorithm, and decompose it into a seasonal cycle component, a long-term trend component and a random residual component;

根据所述随机残差分量的方差确定所述稳定性特征值。The stability characteristic value is determined according to the variance of the random residual component.

可选的,所述根据所述时间序列数据所属目标类型数据,对所述时间序列数据进行异常检测,包括:Optionally, performing anomaly detection on the time series data according to the target type data to which the time series data belongs, including:

在判定所述时间序列数据属于易变型数据的情况下,采用Turkey,s Test或3-Sigema算法对所述时间序列数据进行动态阈值检测,以得到所述目标系统对应的监控指标的变化趋势;In the case of determining that the time series data belongs to volatile data, use Turkey,s Test or 3-Sigema algorithm to perform dynamic threshold detection on the time series data, so as to obtain the change trend of the monitoring index corresponding to the target system;

在判定所述时间序列数据属于稳定型数据的情况下,采用SARIMAX或滑动平均算法对所述时间序列数据进行基线阈值检测,以得到所述目标系统对应的监控指标的变化趋势;When it is determined that the time series data is stable data, the SARIMAX or moving average algorithm is used to perform baseline threshold detection on the time series data, so as to obtain the change trend of the monitoring index corresponding to the target system;

在判定所述时间序列数据属于周期型数据的情况下,采用机器学习分类模型与回归模型对所述时间序列进行异常检测,以得到所述目标系统对应的监控指标的变化趋势。When it is determined that the time series data belongs to periodic data, a machine learning classification model and a regression model are used to perform anomaly detection on the time series, so as to obtain the change trend of the monitoring indicators corresponding to the target system.

根据本发明的第三方面,本申请公开了一种系统风险评估装置,应用于微服务架构下的系统风险评估,包括:According to a third aspect of the present invention, the present application discloses a system risk assessment device, which is applied to system risk assessment under a micro-service architecture, including:

数据获取模块,用于获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息和变更装置名称;The data acquisition module is used to acquire the system change data of the target system within the target time; the system change data includes the system early warning information and the name of the change device;

预警信息确定模块,用于基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;an early warning information determination module, configured to determine early warning information corresponding to the target system change by using natural language processing technology based on the system change data;

变化趋势确定模块,用于获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;A change trend determination module, configured to obtain the time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain the change trend of the monitoring indicators corresponding to the target system;

风险评估模块,用于基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。A risk assessment module, configured to perform system risk assessment on the target system based on the early warning information and the change trend.

第四方面,本申请还公开了一种电子设备,包括:In a fourth aspect, the present application also discloses an electronic device, comprising:

存储器,用于保存计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现前述的系统风险评估方法。A processor for executing the computer program to implement the aforementioned system risk assessment method.

第五方面,本申请还公开了一种计算机可读存储介质,用于存储计算机程序;其中计算机程序被处理器执行时实现前述的系统风险评估方法。In a fifth aspect, the present application further discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned system risk assessment method when executed by a processor.

本申请中,通过获取目标系统在目标时间内的系统变更数据,所述系统变更数据包括系统预警信息以及系统变更对应的装置名称;然后基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;并通过获取所述目标系统在所述目标时间内的时间序列数据,然后基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;最后基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。可见,利用自然语言处理技术通过系统变更在时间范围内的系统预警信息,以及系统变更在空间范围内影响的装置的名称确定出与系统变更相对应的预警信息,再结合利用机器学习算法通过时间序列数据确定的系统对应的监控指标的变化趋势,对系统当前的风险进行评估,能够迅速准确的识别软件补丁发布、配置变更、基础资源变更等带来的风险,提高了微服务架构下对系统变更风险评估的准确性。该方法可适用于充电设备运维检测、电网的运维检测,和/或车桩网一体化,以及其他基于物联网搭建的微服务架构下检测系统的运维检测,通用性强。In this application, by acquiring the system change data of the target system within the target time, the system change data includes the system early warning information and the device name corresponding to the system change; and then based on the system change data, natural language processing technology is used to determine the The target system changes the corresponding early warning information; and obtains the time series data of the target system within the target time, and then uses the machine learning algorithm to obtain the monitoring indicators corresponding to the target system based on the time series data. change trend; finally, perform a system risk assessment on the target system based on the early warning information and the change trend. It can be seen that the natural language processing technology is used to determine the early warning information corresponding to the system change through the system early warning information within the time range of the system change and the names of the devices affected by the system change within the spatial range, and then combined with the machine learning algorithm to pass the time The change trend of the monitoring indicators corresponding to the system determined by the sequence data, the current risk of the system can be assessed, and the risks brought by software patch release, configuration change, and basic resource change can be quickly and accurately identified. Accuracy of change risk assessments. The method can be applied to the operation and maintenance detection of charging equipment, the operation and maintenance detection of power grids, and/or the integration of vehicle pile and network, as well as the operation and maintenance detection of other detection systems under the micro-service architecture built on the Internet of Things, and has strong versatility.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

图1为本申请实施例一提供的一种系统风险评估方法流程图;1 is a flowchart of a system risk assessment method provided in Embodiment 1 of the present application;

图2为本申请实施例一提供的一种具体的系统风险评估方法流程图;2 is a flowchart of a specific system risk assessment method provided in Embodiment 1 of the present application;

图3为本申请实施例二提供的一种具体的系统风险评估方法流程图;3 is a flowchart of a specific system risk assessment method provided in Embodiment 2 of the present application;

图4为本申请实施例三提供的一种具体的系统风险评估方法流程图;4 is a flowchart of a specific system risk assessment method provided in Embodiment 3 of the present application;

图5为本申请提供的一种时间序列数据分类流程图;Fig. 5 is a kind of time series data classification flowchart provided by this application;

图6为本申请实施例四提供的一种充电设备运维检测方法流程图;FIG. 6 is a flowchart of a charging equipment operation and maintenance detection method provided in Embodiment 4 of the present application;

图7为充电设备运维系统架构图;Figure 7 is a schematic diagram of the operation and maintenance system of the charging equipment;

图8为充电设备运维检测方法的步骤S43的具体流程示意图;FIG. 8 is a specific flowchart of step S43 of the charging equipment operation and maintenance detection method;

图9为本申请提供的一种系统风险评估装置结构示意图;9 is a schematic structural diagram of a system risk assessment device provided by the present application;

图10为本申请提供的一种电子设备结构图。FIG. 10 is a structural diagram of an electronic device provided by the application.

具体实施方式Detailed ways

现有技术中,通过灰度分布方式维持系统稳定,但并不能完全覆盖生产环境下所有用户或流量,降低了风险排查的能力。还通过诸葛io的版本分析功能,通过分析改版后的新增用户、活跃用户等数据,对比不同版本的历史数据,衡量此次发版后的整体效果;但其无法及时的发现线上问题,降低了系统风险排查的能力。为克服上述技术问题,本申请提供了一种基于系统风险评估方法,能够提高微服务架构下对系统变更风险评估的准确性。In the prior art, the system stability is maintained by means of grayscale distribution, but it cannot completely cover all users or traffic in the production environment, which reduces the capability of risk investigation. It also uses Zhuge io's version analysis function to analyze the data of new users and active users after the revision, compare the historical data of different versions, and measure the overall effect after the release; but it can't find online problems in time. Reduced ability to troubleshoot systemic risks. In order to overcome the above technical problems, the present application provides a system-based risk assessment method, which can improve the accuracy of system change risk assessment under the micro-service architecture.

本申请实施例一公开了一种系统风险评估方法,应用于微服务架构下的系统风险评估,参见图1所示,该方法可以包括以下步骤:Embodiment 1 of the present application discloses a system risk assessment method, which is applied to system risk assessment under a microservice architecture. Referring to FIG. 1 , the method may include the following steps:

步骤S11:获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息以及系统变更对应的装置名称。Step S11: Obtain system change data of the target system within the target time; the system change data includes system warning information and device names corresponding to the system change.

本实施例中,首先获取目标系统在目标时间内的系统变更数据,上述系统变更数据包括系统预警信息,和与系统变更对应的装置名称,即系统变更影响到的装置的名称;上述装置名称包括但不限于数据中心、业务单元、功能模块、服务组件、节点和主机。其中,上述目标时间包括上目标系统的系统变更时间,和变更后预设时长内的时间;可以理解的是,上述目标时间包括目标系统从变更开始到变更结束的一段时间,以及目标系统在变更结束后时长为预设时长的一段时间,由于系统变更的影响不会在系统变更完成后立马停止,通过获取变更后的一段时间内的系统变更数据,可以提高变更数据的完整性。其中,上述系统变更可以包括但不限于软件发布、配置变更、基础设置调整、数据库发布订阅调整、中间件运维调整,具体的,可以包括主机扩容、机器重启、网络调整。In this embodiment, the system change data of the target system within the target time is obtained first. The system change data includes system warning information, and the device name corresponding to the system change, that is, the name of the device affected by the system change; the device name includes But not limited to data centers, business units, functional modules, service components, nodes and hosts. Wherein, the above-mentioned target time includes the system change time of the target system and the time within the preset time period after the change; it can be understood that the above-mentioned target time includes the period from the start of the change to the end of the change of the target system, and the time when the target system is changed. After the end, the duration is a preset period of time. Since the impact of the system change will not stop immediately after the system change is completed, by obtaining the system change data within a period of time after the change, the integrity of the change data can be improved. The above-mentioned system changes may include, but are not limited to, software release, configuration changes, basic setting adjustments, database publishing and subscription adjustments, and middleware operation and maintenance adjustments. Specifically, it may include host expansion, machine restart, and network adjustments.

步骤S12:基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息。Step S12: Based on the system change data, use natural language processing technology to determine early warning information corresponding to the target system change.

本实施例中,在得到上述系统变更数据后,利用自然语言处理技术从上述系统变更数据中确定出与目标系统的变更对应的预警信息。In this embodiment, after the system change data is obtained, the natural language processing technology is used to determine the early warning information corresponding to the change of the target system from the system change data.

可以理解的是,微服务架构一般都具有较完整的监控预警体系,能够尽可能的发现故障并发出系统预警信息,但是由于微服务架构中组件繁多,预警信息时常发生,当系统变更引起有异常或事故时,系统预警信息爆炸式增长,很难从中寻找出真正于系统变更相关联的预警信息。因此,通过结合系统预警信息与系统变更对应的装置名称,并利用语料预处理和特征提取可以从系统变更数据中确定出与目标系统的变更相关联的预警信息。It is understandable that the microservice architecture generally has a relatively complete monitoring and early warning system, which can detect faults as much as possible and issue system early warning information. However, due to the numerous components in the microservice architecture, early warning information often occurs, and abnormality occurs when the system changes. When there is an accident or an accident, the system warning information explodes, and it is difficult to find the warning information that is really related to the system change. Therefore, by combining the system early warning information with the device name corresponding to the system change, and using corpus preprocessing and feature extraction, the early warning information associated with the target system change can be determined from the system change data.

步骤S13:获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势。Step S13: Acquire time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain a change trend of the monitoring indicators corresponding to the target system.

本实施例中,在通过系统变更数据确定与目标系统变更对应的预警信息的同时,获取目标系统在所述目标时间内的时间序列数据,然后基于所述时间序列数据利用机器学习算法得到上述目标系统对应的监控指标的变化趋势。可以理解的是,微服务架构中组件(即服务)繁多,各个组件需要监控的指标不同,但在组件发生异常时,其监控的指标的趋势会发生异常性的突变,整体性的抬升或者下降,因此可以通过对监控指标进行趋势检测判断出组件或者服务有否有异常发生。具体的,可以通过不同的算法对不同类型的监控指标进行检测,以得到相应的变化趋势。In this embodiment, while the early warning information corresponding to the target system change is determined through the system change data, the time series data of the target system within the target time is obtained, and then the above target system is obtained based on the time series data using a machine learning algorithm The change trend of the monitoring indicators corresponding to the system. It is understandable that there are many components (that is, services) in the microservice architecture, and each component needs to monitor different indicators. However, when an abnormality occurs in a component, the trend of the monitored indicators will undergo abnormal mutation, and the overall increase or decrease. , so you can determine whether there is any abnormality in the component or service by trend detection of the monitoring indicators. Specifically, different types of monitoring indicators can be detected through different algorithms to obtain corresponding change trends.

步骤S14:基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。Step S14: Perform system risk assessment on the target system based on the early warning information and the change trend.

本实施例中,在得到上述目标系统变更对应的预警信息,和目标系统的监控指标的变化趋势后,根据上述预警信息和变化趋势对上述目标系统进行系统风险评估,确定出目标系统存在的风险和风险等级。可以理解的是,例如图2所示,本实施例中,在系统变更后通过监控相关数据确定与变更关联的预警信息,以及目标系统的监控指标趋势异常检测,最终对目标系统进行系统风险的综合评估,通过预警信息可以了解系统变更相关的系统问题,通过监控指标的变化趋势可以判断组件或者服务有否有异常发生,从而可以通过全面分析准确的得到系统风险。In this embodiment, after obtaining the warning information corresponding to the change of the target system and the change trend of the monitoring indicators of the target system, the system risk assessment is performed on the target system according to the warning information and the change trend, and the risks existing in the target system are determined. and risk level. It can be understood that, for example, as shown in FIG. 2 , in this embodiment, after the system is changed, the early warning information associated with the change is determined by monitoring the relevant data, and the abnormality detection of the monitoring index trend of the target system, and finally the system risk is checked for the target system. Through comprehensive evaluation, system problems related to system changes can be understood through early warning information, and whether components or services have abnormal occurrences can be judged by monitoring the change trend of indicators, so that system risks can be accurately obtained through comprehensive analysis.

由上可见,本实施例中利用自然语言处理技术通过系统变更在时间范围内的系统预警信息,以及系统变更在空间范围内影响的装置的名称确定出与系统变更相对应的预警信息,再结合利用机器学习算法通过时间序列数据确定的系统对应的监控指标的变化趋势,对系统当前的风险进行评估,能够迅速准确的识别软件补丁发布、配置变更、基础资源变更等带来的风险,提高了微服务架构下对系统变更风险评估的准确性。It can be seen from the above that in this embodiment, the natural language processing technology is used to determine the warning information corresponding to the system change through the system early warning information within the time range of the system change and the names of the devices affected by the system change within the space range, and then combine Using the machine learning algorithm to determine the change trend of the monitoring indicators corresponding to the system through the time series data, to evaluate the current risk of the system, it can quickly and accurately identify the risks brought about by software patch releases, configuration changes, and basic resource changes. Accuracy of system change risk assessment under microservice architecture.

本申请实施例二公开了一种具体的系统风险评估方法,应用于微服务架构下的系统风险评估,参见图3所示,该方法可以包括以下步骤:The second embodiment of the present application discloses a specific system risk assessment method, which is applied to the system risk assessment under the microservice architecture. Referring to FIG. 3 , the method may include the following steps:

步骤S21:获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息以及系统变更对应的装置名称。Step S21: Obtain system change data of the target system within the target time; the system change data includes system warning information and device names corresponding to the system change.

步骤S22:对所述系统预警信息进行语料预处理,并从处理后的系统预警信息中提取出第一组关键词;对所述装置名称进行语料预处理,并从处理后的变更装置名称中提取出第二组关键词。Step S22: perform corpus preprocessing on the system early warning information, and extract the first group of keywords from the processed system early warning information; perform corpus preprocessing on the device name, and extract the first group of keywords from the processed system early warning information; Extract the second set of keywords.

本实施例中,在得到上述系统预警信息以及系统变更对应的装置名称后,分队上述系统预警信息以及和装置名称进行语料预处理,然后从处理后的数据中可以根据具体业务逻辑提取出相应的关键词,得到相应的第一组关键词和第二组关键词。其中,上述语料预处理包括但不限于分词、词性标注、命名实体识别和去除停用词;具体的,首先通过分词工具,将系统预警信息文本,分为以字词为单位的数据结构,然后采用词性标注工具,对上述分词的结果进行词性标注,标注为动词、名词或形容词等;然后采用命名实体识别工具对词性标注后的词进行专名识别,识别出专有名词,例如:数据中心、业务单元、主机、节点,最后根据中文停用词表,剔除文本中的停用词。其中,上述预料预处理的处理工具,包括但不限于jieba、Hanlp、NLTK和StandfordCoreNLP。上述中文停用词表包括但不限于哈工大停用词表、百度停用词表、四川大学机器智能实验室停用词库。In this embodiment, after obtaining the above-mentioned system warning information and the device name corresponding to the system change, the team performs corpus preprocessing on the above-mentioned system warning information and the device name, and then can extract the corresponding data from the processed data according to the specific business logic. keywords to obtain the corresponding first group of keywords and the second group of keywords. Among them, the above-mentioned corpus preprocessing includes but is not limited to word segmentation, part-of-speech tagging, named entity recognition and removal of stop words; specifically, the system warning information text is firstly divided into word-based data structures by word segmentation tools, and then The part-of-speech tagging tool is used to tag the results of the above word segmentation, and mark them as verbs, nouns or adjectives, etc.; and then use the named entity recognition tool to identify the proper names of the tagged words to identify proper nouns, such as: data center , business unit, host, node, and finally remove the stop words in the text according to the Chinese stop word list. Among them, the above-mentioned processing tools for expected preprocessing include but are not limited to jieba, Hanlp, NLTK and StandfordCoreNLP. The above Chinese stop word lists include but are not limited to Harbin Institute of Technology stop word list, Baidu stop word list, and Sichuan University Machine Intelligence Laboratory stop word database.

步骤S23:计算所述第一组关键词与所述第二组关键词中关键词的相似度,基于所述相似度确定出与所述目标系统变更对应的预警信息。Step S23: Calculate the similarity between the first group of keywords and the keywords in the second group of keywords, and determine early warning information corresponding to the target system change based on the similarity.

本实施例中,在得到上述第一组关键词和第二组关键词后,计算第一第一组关键词和第二组关键词中关键词的相似度,即计算基于预警信息得到的关键词,与基于系统变更对应的装置名称得到的关键词的相似度,然后筛选出相似度大于预设阈值的关键词作为目标系统变更对应的预警信息。上述相似度的计算算法可以包括但不限于欧式距离、麦哈顿距离、余弦相似度、皮尔逊相识度、K-means和DBSACN。In this embodiment, after obtaining the first group of keywords and the second group of keywords, the similarity of the keywords in the first group of keywords and the second group of keywords is calculated, that is, the key obtained based on the early warning information is calculated. word, the similarity with the keyword obtained based on the device name corresponding to the system change, and then filter out the keywords whose similarity is greater than the preset threshold as the early warning information corresponding to the target system change. The calculation algorithm of the above similarity may include, but is not limited to, Euclidean distance, McHatton distance, cosine similarity, Pearson acquaintance, K-means and DBSACN.

步骤S24:获取所述目标系统在所述目标时间内的时间序列数据,根据预设分类标准对所述时间序列数据进行分类,得到相应的目标类型数据。Step S24: Acquire the time series data of the target system within the target time, classify the time series data according to a preset classification standard, and obtain corresponding target type data.

本实施例中,获取目标系统在上述目标时间内的时间序列数据,然后根据预设的分类标准对上述时间序列数据进行分类,得到相应的目标类型数据;上述目标类型数据可以包括易变型数据、周期型数据和稳定型数据,即根据数据特性对时间序列数据进行分类,得到相应的易变型数据、周期型数据和稳定型数据。可以理解的是,监控指标种类繁多、关系复杂,但指标本身有周期性、规律突刺、整体抬升或下降、低峰期等特点,指标的影响因素有节假日、临时活动、天气、疫情等因素。而不同类型的指标由不同的算法进行检测可以得到更好的检测结果,因此可以将时间序列数据根据指标的特性进行自动分类。In this embodiment, the time series data of the target system within the above target time is obtained, and then the above time series data is classified according to a preset classification standard to obtain corresponding target type data; the above target type data may include volatile data, Periodic data and stable data, that is, classifying time series data according to data characteristics to obtain corresponding volatile data, periodic data and stable data. It is understandable that there are many types of monitoring indicators and their relationships are complex, but the indicators themselves have the characteristics of periodicity, regular spikes, overall rise or fall, and low peak periods. The influencing factors of indicators include holidays, temporary activities, weather, epidemics and other factors. Different types of indicators can be detected by different algorithms to obtain better detection results, so the time series data can be automatically classified according to the characteristics of the indicators.

步骤S25:利用与所述目标类型数据对应的预设检测算法,对所述目标类型数据进行异常检测,得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。Step S25: Use a preset detection algorithm corresponding to the target type data to perform anomaly detection on the target type data, and obtain the change trend of the monitoring index corresponding to the target type data, so as to obtain the monitoring corresponding to the target system. trend of the indicator.

本实施例中,在得到上述目标类型数据后,利用与目标类型数据对应的预设检测算法,对目标类型数据进行异常检测,得到目标类型数据对应的监控指标的变化趋势,以得到目标系统对应的监控指标的变化趋势。可以理解的是,对于不同类型的数据采用不同的检测算法,可以提高检测结果的准确性。In this embodiment, after the target type data is obtained, a preset detection algorithm corresponding to the target type data is used to perform anomaly detection on the target type data, and the change trend of the monitoring index corresponding to the target type data is obtained, so as to obtain the corresponding target system change trend of monitoring indicators. It can be understood that using different detection algorithms for different types of data can improve the accuracy of the detection results.

步骤S26:基于所述预警信息、所述变化趋势和所述监控指标的指标等级对所述目标系统进行系统风险评估,得到所述目标系统的风险等级。Step S26: Perform a system risk assessment on the target system based on the early warning information, the change trend and the index level of the monitoring index, and obtain the risk level of the target system.

本实施例中,在得到上述预警信息和变化趋势后,根据预警信息、变化趋势和上述监控指标的指标等级对目标系统进行系统风险评估,得到目标系统的风险等级,其中,上述指标等级可以包括核心业务级指标、技术级指标和系统资源级指标。In this embodiment, after obtaining the above-mentioned early warning information and the change trend, the system risk assessment is performed on the target system according to the early warning information, the change trend and the index level of the above-mentioned monitoring index, and the risk level of the target system is obtained, wherein the above-mentioned index level may include Core business-level indicators, technical-level indicators and system resource-level indicators.

可以理解的是,不同的监控指标反应的系统状态对系统运行的重要性不同,可以把监控指标在影响程度上为三级,即核心业务级指标、技术级指标和系统资源级指标,且影响程度依次降低。其中,核心业务级指标可以为实时的业务整体的健康状况,从核心业务级指标可以直观看到业务的受损程度、市场和影响面,当系统变更后核心业务级指标出现异常时,尤其是受损时,能够反映改系统变更风险极高,已经影响到了核心业务的稳定性。其中,技术级指标可以为实时的组件或服务的健康状况,技术级指标可以反映其上下游的调用量(TPS)、时延、成功率和线程数等,当系统变更后若出现技术指标的趋势异常时,例如时延增加、成功率降低、TPS突降、线程数突增或突降等,通过技术级指标可以判断出该组件或服务因系统变更受到了影响。系统资源级指标可以为实时的中间件、主机或系统层面的健康状况,例如,CPU使用率、内存使用率、网络流量等,系统故障发生时系统资源级指标通常会先后发生异常。It can be understood that the importance of the system status reflected by different monitoring indicators to the system operation is different. The monitoring indicators can be divided into three levels of influence, namely core business-level indicators, technical-level indicators, and system resource-level indicators. The degree decreases successively. Among them, the core business-level indicators can be the real-time overall health status of the business. From the core business-level indicators, you can intuitively see the degree of damage to the business, the market, and the impact. When the core business-level indicators are abnormal after the system is changed, especially When it is damaged, it can reflect that the risk of system changes is extremely high, which has affected the stability of the core business. Among them, the technical-level indicators can be the real-time health status of components or services, and the technical-level indicators can reflect the upstream and downstream call volume (TPS), delay, success rate, and number of threads. When the trend is abnormal, such as increased latency, decreased success rate, sudden drop in TPS, sudden increase or sudden drop in the number of threads, etc., technical-level indicators can determine that the component or service has been affected by system changes. System resource-level indicators can be real-time middleware, host or system-level health status, such as CPU usage, memory usage, network traffic, etc. When a system failure occurs, system resource-level indicators usually appear abnormal one after another.

根据预警信息、监控指标的变化趋势和监控指标的指标等级对目标系统进行系统风险评估,得到目标系统的风险等级,上述风险等级可以包括无风险、低风险、中风险和高风险。并根据监控指标的指标等级对发生变化趋势的监控指标进行加权计算,最终确定出风险等级;例如,根据结果可以将无检测到系统相关的预警信息和无监测到变化趋势异常的情况判定为无风险;将检测到系统相关的预警信息和监测到变化趋势异常的情况判定为中风险;将监测到核心业务级指标存在变化趋势异常的情况判定为高风险。The system risk assessment of the target system is carried out according to the early warning information, the change trend of the monitoring indicators and the indicator level of the monitoring indicators, and the risk level of the target system is obtained. The above risk levels can include no risk, low risk, medium risk and high risk. And according to the index level of the monitoring index, the monitoring index with the change trend is weighted and calculated, and the risk level is finally determined; for example, according to the result, no system-related early warning information and no monitoring abnormal change trend can be determined as no. Risk; the situation where the system-related early warning information and the abnormal change trend are detected is determined as medium risk; the situation where the abnormal change trend of the core business-level indicators is monitored is determined as high risk.

步骤S27:基于所述风险等级生成相应的评估报告。Step S27: Generate a corresponding assessment report based on the risk level.

本实施例中,根据确定的风险等级生成相应的评估报告。例如,无风险对应的评估报告可以为变更成功,中风险对应的评估报告可以为建议密切观察,高风险对应的评估报告可以为建议立即回滚,由此可以准确的通知管理员目标系统的当前状态,以及相应的处理方式。In this embodiment, a corresponding assessment report is generated according to the determined risk level. For example, the assessment report corresponding to no risk can be a successful change, the assessment report corresponding to medium risk can be a recommendation to observe closely, and the assessment report corresponding to a high risk can be a recommendation to roll back immediately, so that the administrator can be accurately notified of the current status of the target system. status, and how to handle it accordingly.

其中,关于上述步骤S21的具体过程可以参考前述实施例公开的相应内容,在此不再进行赘述。For the specific process of the foregoing step S21, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

由上可见,通过对系统预警信息进行语料预处理,并从处理后的系统预警信息中提取出第一组关键词;对装置名称进行语料预处理,并从处理后的变更装置名称中提取出第二组关键词,然后计算第一组关键词与第二组关键词中关键词的相似度,基于相似度确定出与目标系统变更对应的预警信息。基于语料预处理和特征提确定变更关联的预警信息,能够在发生故障时暴涨的系统预警信息中提取到与系统变更关联的关键词汇,然后与变更空间范围得到装置名称计算相识性,进而根据相关联的程度确定出目标系统变更对应的预警信息。并通过获取目标系统在目标时间内的时间序列数据,根据预设分类标准对时间序列数据进行分类,得到相应的目标类型数据,然后利用与目标类型数据对应的预设检测算法,对目标类型数据进行异常检测,得到目标类型数据对应的监控指标的变化趋势,以得到目标系统对应的监控指标的变化趋势。基于机器学习的监控指标趋势检测,能够根据指标的数据特点,智能的选择分类模型,依据历史数据特性进行异常判断,进而判断变更是否对组件、服务产生了影响,是否使核心业务受损。It can be seen from the above that the first group of keywords is extracted from the processed system early warning information by corpus preprocessing on the system early warning information; The second set of keywords, and then the similarity between the first set of keywords and the keywords in the second set of keywords is calculated, and early warning information corresponding to the target system change is determined based on the similarity. Based on corpus preprocessing and feature extraction to determine the warning information associated with the change, the key words associated with the system change can be extracted from the system warning information that has skyrocketed in the event of a failure, and then the device name can be calculated with the change space range. The degree of linkage determines the warning information corresponding to the change of the target system. And by acquiring the time series data of the target system within the target time, classifying the time series data according to the preset classification criteria, to obtain the corresponding target type data, and then using the preset detection algorithm corresponding to the target type data to classify the target type data. Anomaly detection is performed to obtain the change trend of the monitoring index corresponding to the target type data, so as to obtain the change trend of the monitoring index corresponding to the target system. The trend detection of monitoring indicators based on machine learning can intelligently select a classification model according to the data characteristics of the indicators, and make abnormal judgments based on the characteristics of historical data, and then judge whether the changes have an impact on components and services, and whether the core business is damaged.

本申请实施例三公开了一种具体的系统风险评估方法,应用于微服务架构下的系统风险评估,参见图4所示,该方法可以包括以下步骤:The third embodiment of the present application discloses a specific system risk assessment method, which is applied to the system risk assessment under the microservice architecture. Referring to FIG. 4 , the method may include the following steps:

步骤S31:获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息以及系统变更对应的装置名称。Step S31: Obtain system change data of the target system within the target time; the system change data includes system warning information and device names corresponding to the system change.

步骤S32:基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息。Step S32: Based on the system change data, use natural language processing technology to determine early warning information corresponding to the target system change.

步骤S33:获取所述目标系统在所述目标时间内的时间序列数据。Step S33: Acquire time series data of the target system within the target time.

步骤S34:基于窗口数据相似性对所述时间序列数据进行周期性检测,并根据第一预设阈值进行分类得到所述易变型数据和非易变型数据。Step S34: Periodically detect the time series data based on the similarity of the window data, and classify according to a first preset threshold to obtain the volatile data and the non-volatile data.

本实施例中,例如图5所示,首先基于窗口数据相似性对时间序列数据进行周期性检测,并根据第一预设阈值进行分类得到易变型数据和非易变型数据。具体的,通过计算时间序列窗口的相似度,相似度计算可以基于皮尔逊相关性和动态规划距离进行计算。上述第一预设阈值可以为0.8。In this embodiment, for example, as shown in FIG. 5 , firstly, periodic detection is performed on time series data based on the similarity of window data, and volatile data and non-volatile data are obtained by classification according to a first preset threshold. Specifically, by calculating the similarity of the time series windows, the similarity calculation can be calculated based on the Pearson correlation and the dynamic programming distance. The above-mentioned first preset threshold may be 0.8.

步骤S35:基于STL算法对所述非易变型数据进行稳定性检测,并根据第二预设阈值进行分类得到所述周期性数据和所述稳定型数据。Step S35: Perform stability detection on the non-volatile data based on the STL algorithm, and classify the periodic data and the stable data according to a second preset threshold.

本实施例中,例如图5所示,基于STL算法对上述非易变型数据进行稳定性检测,并根据第二预设阈值进行分类得到周期性数据和稳定型数据。具体的,通过加法模型的STL算法对非易变型时间序列数据进行分解,即时间序列=周期分量+趋势分量+余项(残差),根据余项的方差判断是否为稳定型数据。上述第二预设阈值可以为0.002。In this embodiment, as shown in FIG. 5 , the stability detection is performed on the non-volatile data based on the STL algorithm, and periodic data and stable data are obtained by classifying according to the second preset threshold. Specifically, the non-volatile time series data is decomposed by the STL algorithm of the additive model, that is, time series = periodic component + trend component + residual (residual), and whether it is stable data is determined according to the variance of the residual. The above-mentioned second preset threshold may be 0.002.

步骤S36:基于Turkey检测对所述易变型数据进行异常检测,得到易变型监控指标的变化趋势。Step S36: Perform anomaly detection on the volatile data based on Turkey detection to obtain a change trend of the volatile monitoring index.

本实施例中,基于Turkey检测对上述易变型数据进行异常检测,得到易变型监控指标的变化趋势。具体的,基于Turkey’s TEST的异常检测算法可以包括:首先计算出变化趋势数据的第一四分位数(Q1)、中位数和第三四分位数(Q3),令IQR=Q3-Q1,若IQR在Q3+k(IQR)和Q1-k(IQR)之间,则可以认为易变型数据不存在异常,否则判定相应的易变型监控指标存在异常趋势,其中,k为预设阈值,可取1.5或3。In this embodiment, anomaly detection is performed on the above-mentioned volatile data based on Turkey detection, and a change trend of the volatile monitoring index is obtained. Specifically, the anomaly detection algorithm based on Turkey's TEST may include: firstly calculating the first quartile (Q1), median and third quartile (Q3) of the change trend data, and let IQR=Q3-Q1 , if IQR is between Q3+k(IQR) and Q1-k(IQR), it can be considered that there is no abnormality in the volatile data, otherwise it is determined that the corresponding volatile monitoring index has an abnormal trend, where k is the preset threshold, 1.5 or 3 are desirable.

步骤S37:基于同环比算法对所述周期型数据进行异常检测,得到周期型监控指标的变化趋势。Step S37: Perform anomaly detection on the periodic data based on the same chain ratio algorithm to obtain a change trend of the periodic monitoring index.

本实施例中,基于同环比算法对周期型数据进行异常检测,得到周期型监控指标的变化趋势。具体的,基于同环比算法的异常检测算法可以包括:提取时刻7日环比数据,异常值剔除、缺省值补全;然后计算同比数据的均值和标准差;最后通过周期型异常判断公式:|t-m|>b×σ,判断相应的周期型监控指标是否存在异常趋势;其中,上述t为当前值,m为同比均值,b为预设阈值,σ为标准差,若|t-m|大于b×σ则判定相应的周期型监控指标存在异常趋势。In this embodiment, anomaly detection is performed on periodic data based on the same-chain ratio algorithm to obtain a change trend of periodic monitoring indicators. Specifically, the anomaly detection algorithm based on the year-on-year algorithm may include: extracting the 7-day month-on-month data at the time, removing outliers, and completing default values; then calculating the mean and standard deviation of the year-on-year data; and finally passing the periodic abnormality judgment formula:| t-m|>b×σ, to judge whether there is an abnormal trend in the corresponding periodic monitoring index; wherein, the above t is the current value, m is the year-on-year average, b is the preset threshold, and σ is the standard deviation, if |t-m| is greater than b× σ means that there is an abnormal trend in the corresponding periodic monitoring index.

步骤S38:基于时间序列ARIMA算法对所述稳定型数据进行异常检测,得到稳定型监控指标的变化趋势,以得到上述目标系统对应的监控指标的变化趋势。Step S38: Perform anomaly detection on the stable data based on the time series ARIMA algorithm to obtain a change trend of the stable monitoring index, so as to obtain a change trend of the monitoring index corresponding to the target system.

本实施例中,基于时间序列ARIMA(Autoregressive Integrated Moving Averagemodel,差分整合移动平均自回归)算法对稳定型数据进行异常检测,得到稳定型监控指标的变化趋势,最后根据得到易变型监控指标的变化趋势、周期型监控指标的变化趋势和稳定型监控指标的变化趋势,以得到上述目标系统对应的监控指标的变化趋势。具体的,基于时间序列ARIMA算法的异常检测算法可以包括:首先根据预设的稳定性阈值和白噪声阈值对时间序列1阶差分后进行稳定性、白噪音检验,得到符合条件的稳定型时间序列数据,将稳定型时间序列数据按照STL算法拆分为:趋势分量+周期分量+余项(残差),然后通过对历史数据的趋势分量进行ARIMA模型训练,采用网格搜索法自动参数寻优,得到预测趋势,最后根据稳定型异常判断公式:|r-p|>c×l,判断相应的稳定型监控指标是否存在异常趋势。其中,r为实际数据,p为预测数据,c为预设阈值,l为历史残差;其中预测数据=预测趋势+历史周期。若|r-p|大于c×l则判定相应的稳定型监控指标存在异常趋势。In this embodiment, anomaly detection is performed on the stable data based on the time series ARIMA (Autoregressive Integrated Moving Average model, differential integrated moving average autoregression) algorithm to obtain the change trend of the stable monitoring index, and finally the change trend of the variable monitoring index is obtained according to the , the change trend of the periodic monitoring index and the change trend of the stable monitoring index, so as to obtain the change trend of the monitoring index corresponding to the above target system. Specifically, the anomaly detection algorithm based on the time series ARIMA algorithm may include: first, according to the preset stability threshold and white noise threshold, the first-order difference of the time series is subjected to stability and white noise tests, and a stable time series that meets the conditions is obtained. Data, the stable time series data is divided into: trend component + period component + residual (residual) according to the STL algorithm, and then the ARIMA model is trained on the trend component of the historical data, and the grid search method is used to automatically optimize parameters. , get the predicted trend, and finally judge whether there is an abnormal trend in the corresponding stable monitoring index according to the stable abnormal judgment formula: |r-p|>c×l. Among them, r is the actual data, p is the predicted data, c is the preset threshold, and l is the historical residual; wherein the predicted data=predicted trend+historical period. If |r-p| is greater than c×l, it is determined that the corresponding stable monitoring index has an abnormal trend.

步骤S39:基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。Step S39: Perform system risk assessment on the target system based on the early warning information and the change trend.

其中,关于上述步骤S31至步骤S33、步骤S39的具体过程可以参考前述实施例公开的相应内容,在此不再进行赘述。Wherein, for the specific processes of the above-mentioned steps S31 to S33 and S39, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which will not be repeated here.

由上可见,基于Turkey检测对所述易变型数据进行异常检测,得到易变型监控指标的变化趋势;基于同环比算法对所述周期型数据进行异常检测,得到周期型监控指标的变化趋势;基于时间序列ARIMA算法对所述稳定型数据进行异常检测,得到稳定型监控指标的变化趋势,以得到上述目标系统对应的监控指标的变化趋势。通过不同类型的数据采用不同的异常检测算法,提高了指标异常检测的准确度;结合系统变更的预警信息,本实施例能够迅速准确的识别软件补丁发布、配置变更、基础资源变更等系统变更带来的风险,进而可以有效的降低系统变更对微服务系统稳定性产生的影响。It can be seen from the above that anomaly detection is performed on the volatile data based on Turkey detection, and the change trend of the volatile monitoring index is obtained; anomaly detection is performed on the periodic data based on the same chain ratio algorithm to obtain the change trend of the periodic monitoring index; The time series ARIMA algorithm performs anomaly detection on the stable data, and obtains the change trend of the stable monitoring index, so as to obtain the change trend of the monitoring index corresponding to the target system. By using different anomaly detection algorithms for different types of data, the accuracy of index anomaly detection is improved; combined with the early warning information of system changes, this embodiment can quickly and accurately identify system change zones such as software patch release, configuration change, and basic resource change. This can effectively reduce the impact of system changes on the stability of the microservice system.

充电设备的运维管理是电力系统中重要的环节,充电桩的日常巡检直接关系到充电设备的安稳性、可靠性、故障率,运维人员的工作是为了及时发现充电设施存在的缺陷及安稳隐患,并进行修复保证充电设施的安稳稳定运行。充电桩故障高发点主要在能量通路上,其中以充电模块、直流接触器、熔断器、枪线、枪头等为主。而枪线、枪头损坏以机械类损伤及机械类损伤引发电气故障为主,出现隐患时,巡视人员容易发现。而充电模块、直流接触器、熔断器的隐患则只能通过数据采集和数据分析的方法实现。通过在充电桩内部安装监控测量点,在充电桩充电时测量直流接触器两端的电压,将每次的压降数据保存在存储器中。目前,充电设施运维工作中普遍存在充电场站故障诊断及安全运维服务体系不完善,缺乏对充电过程的故障智能诊断及安全预警,无法提前发现潜在的设备缺陷和事故隐患。The operation and maintenance management of charging equipment is an important link in the power system. The daily inspection of charging piles is directly related to the stability, reliability and failure rate of charging equipment. Safety hazards, and repairs to ensure the stable and stable operation of charging facilities. The high incidence of charging pile faults is mainly in the energy path, among which charging modules, DC contactors, fuses, gun wires, gun heads, etc. are the main ones. The damage to the gun wire and gun head is mainly caused by mechanical damage and electrical faults caused by mechanical damage. When hidden dangers occur, inspectors are easy to find. The hidden dangers of charging modules, DC contactors, and fuses can only be realized through data acquisition and data analysis. By installing monitoring and measuring points inside the charging pile, the voltage across the DC contactor is measured when the charging pile is charging, and the data of each voltage drop is stored in the memory. At present, in the operation and maintenance of charging facilities, fault diagnosis and safety operation and maintenance service systems of charging stations are generally not perfect. There is a lack of intelligent fault diagnosis and safety warning for the charging process, and potential equipment defects and hidden dangers cannot be discovered in advance.

根据本公开内容实施方式,针对充电设备的智能运维,本申请实施例四提供了一种充电设备运维检测方法,参见图6所示。According to the embodiments of the present disclosure, for the intelligent operation and maintenance of charging equipment, Embodiment 4 of the present application provides a method for detecting operation and maintenance of charging equipment, as shown in FIG. 6 .

作为示例,本实施例中针对充电设备运维检测,在充电设备运维中,以电动汽车作为载体,电动汽车为车载终端、与交直流充电桩以及充电网之间的交互通信。目前,电动汽车车载终端和交直流充电桩以及充电网之间主要采用3G LTE、4G LTE、GPRS等无线通信方式,实时向云平台管理中心上传数据情况,车桩网系统架构如图7所示,该系统主要包括车载终端11、充电桩12、以及充电网13、储能设备14、电网15几部分组成,车载终端11与充电桩12之间无线通信,充电桩12与充电网13之间无线通信,充电网13、储能设备14以及电网15之间无线通信,多个车载终端11之间无线通信,多个充电桩12之间无线通信,组成充电共享网络智能运维系统。该智能运维系统通过充电桩探针、DTU、图像识别采集、便携式诊断工具对充电场站配电系统、充电系统和充电车辆进行充电全数据信息采集,经网络层的数据传输,依托车联网数据、场站探针数据支撑充电桩单体、充电场站的健康状态评估,综合考虑设备告警、场站健康状态评估,按需生成运维巡检计划。As an example, in this embodiment, for the operation and maintenance detection of charging equipment, in the operation and maintenance of charging equipment, the electric vehicle is used as the carrier, and the electric vehicle is the vehicle terminal, and the interactive communication between the AC and DC charging piles and the charging network. At present, 3G LTE, 4G LTE, GPRS and other wireless communication methods are mainly used between the electric vehicle on-board terminal, the AC and DC charging piles and the charging network, and the data is uploaded to the cloud platform management center in real time. The system architecture of the vehicle pile network is shown in Figure 7. , the system mainly includes on-board terminal 11, charging pile 12, and charging network 13, energy storage equipment 14, and power grid 15. Wireless communication, wireless communication between charging network 13, energy storage device 14 and power grid 15, wireless communication between multiple vehicle terminals 11, and wireless communication between multiple charging piles 12 constitute a charging sharing network intelligent operation and maintenance system. The intelligent operation and maintenance system collects charging full data information for the power distribution system, charging system and charging vehicle of the charging station through the charging pile probe, DTU, image recognition and collection, and portable diagnostic tools. Data and station probe data support the health status assessment of charging piles and charging stations, comprehensively consider equipment alarms and station health status assessment, and generate operation and maintenance inspection plans on demand.

参见图6所示,一种充电设备运维检测方法,包括:Referring to Figure 6, a method for detecting operation and maintenance of charging equipment includes:

步骤S41:获取目标系统在目标时间内的系统变更数据;所述目标系统包括充电设备系统;所述系统变更数据包括所述充电设备运维数据,所述充电设备运维数据包括系统预警信息以及系统变更对应的装置名称;Step S41: Obtain system change data of the target system within the target time; the target system includes a charging equipment system; the system change data includes the operation and maintenance data of the charging equipment, and the operation and maintenance data of the charging equipment includes system warning information and The device name corresponding to the system change;

本实施例中,首先获取目标充电设备系统在运维过程的目标时间内的系统变更数据,所述系统变更数据包括所述充电设备运维数据,所述充电设备运维数据包括系统预警信息以及系统变更对应的装置名称,即系统变更影响到的装置的名称。其中,上述目标时间包括上目标系统的系统变更时间,和变更后预设时长内的时间;可以理解的是,上述目标时间包括目标系统从变更开始到变更结束的一段时间,以及目标系统在变更结束后时长为预设时长的一段时间,由于系统变更的影响不会在系统变更完成后立马停止,通过获取变更后的一段时间内的系统变更数据,可以提高变更数据的完整性。In this embodiment, the system change data of the target charging equipment system within the target time of the operation and maintenance process is first obtained, the system change data includes the operation and maintenance data of the charging equipment, and the operation and maintenance data of the charging equipment includes system warning information and The name of the device corresponding to the system change, that is, the name of the device affected by the system change. Wherein, the above-mentioned target time includes the system change time of the target system and the time within the preset time period after the change; it can be understood that the above-mentioned target time includes the period from the start of the change to the end of the change of the target system, and the time when the target system is changed. After the end, the duration is a preset period of time. Since the impact of the system change will not stop immediately after the system change is completed, by obtaining the system change data within a period of time after the change, the integrity of the change data can be improved.

步骤S42:基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;Step S42: Based on the system change data, use natural language processing technology to determine early warning information corresponding to the target system change;

本实施例中,在得到上述系统变更数据后,利用自然语言处理技术从上述系统变更数据中确定出与目标系统的变更对应的预警信息。In this embodiment, after the system change data is obtained, the natural language processing technology is used to determine the early warning information corresponding to the change of the target system from the system change data.

可以理解的是,充电设备智能运维系统具有较完整的监控预警体系,能够尽可能的发现故障并发出系统预警信息,但是由于充电设备智能运维系统架构中组件繁多,预警信息时常发生,当系统变更引起有异常或事故时,系统预警信息爆炸式增长,很难从中寻找出真正于系统变更相关联的预警信息。因此,通过结合系统预警信息与系统变更对应的装置名称,并利用语料预处理和特征提取可以从系统变更数据中确定出与目标系统的变更相关联的预警信息。It is understandable that the intelligent operation and maintenance system of charging equipment has a relatively complete monitoring and early warning system, which can detect faults as much as possible and issue system early warning information. When system changes cause anomalies or accidents, system early warning information explodes, and it is difficult to find early warning information that is truly related to system changes. Therefore, by combining the system early warning information with the device name corresponding to the system change, and using corpus preprocessing and feature extraction, the early warning information associated with the target system change can be determined from the system change data.

步骤S43:获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势。Step S43: Acquire time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain a change trend of the monitoring indicators corresponding to the target system.

在具体实现中,如图8所示,该步骤具体包括:In a specific implementation, as shown in Figure 8, this step specifically includes:

S431:获取充电设备运维检测过程中所述目标时间内的时间序列数据;S431: Acquire time-series data within the target time during the operation and maintenance detection process of the charging equipment;

S432:将所述时间序列数据通过周期性检测,确定周期性特征值;S432: Periodically detect the time series data to determine a periodic feature value;

在具体实现中,所述将所述时间序列数据通过周期性检测,包括:In a specific implementation, the periodic detection of the time series data includes:

给定所述时间序列数据的参考周期T;Given a reference period T of the time series data;

以所述参考周期T为分割点,对所述时间序列数据进行分割,将所述时间序列数据分割为n/T个子时间序列单元,其中n为所述时间序列数据的长度;Taking the reference period T as a dividing point, dividing the time series data, and dividing the time series data into n/T sub-time series units, where n is the length of the time series data;

对每一个所述子时间序列单元两两比较计算相似度系数,确定所述周期性特征值。A similarity coefficient is calculated for each of the sub-time series units by a pairwise comparison, and the periodic feature value is determined.

在一些实施例中,可选的,采用Pearson相关性对每一个所述子时间序列单元两两比较计算相似度系数,确定所述周期性特征值,包括:In some embodiments, optionally, using Pearson correlation to compare each of the sub-time series units pairwise to calculate a similarity coefficient to determine the periodic feature value, including:

采用Pearson相关性对每一个所述子时间序列单元两两比较计算相似度系数,Pearson相似度系数表示为:Pearson correlation is used to calculate the similarity coefficient for each of the sub-time series units, and the Pearson similarity coefficient is expressed as:

Figure BDA0003417441970000191
Figure BDA0003417441970000191

其中,

Figure BDA0003417441970000192
XT={x1,...,xT},YT={y1,...,yT}表示两个子时间序列单元;若XT=YT,则COR(XT,YT)=1,表示两个所述子时间序列单元完全一致;若XT=-YT,则COR(XT,YT)=-1,表示两个所述子时间序列单元负相关;-1≤COR(XT,YT)≤1。in,
Figure BDA0003417441970000192
X T ={x 1 ,...,x T }, Y T ={y 1 ,...,y T } represents two sub-time series units; if X T =Y T , then COR(X T ,Y T )=1, indicating that the two sub-time series units are completely consistent; if X T =-Y T , then COR(X T , Y T )=-1, indicating that the two sub-time series units are negatively correlated; -1≤COR(X T ,Y T )≤1.

然后,将计算得到的所述相似度系数确定为所述周期性特征值。Then, the calculated similarity coefficient is determined as the periodic feature value.

S433:在所述周期性特征值小于第一预设阈值的情况下,判定所述时间序列数据属于易变型数据;S433: In the case that the periodic feature value is less than the first preset threshold, determine that the time series data belongs to volatile data;

在判定所述时间序列数据属于易变型数据的情况下,对所述时间序列数据进行异常检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。When it is determined that the time series data belongs to volatile data, anomaly detection is performed on the time series data to obtain the change trend of the monitoring indicators corresponding to the target type data, so as to obtain the monitoring indicators corresponding to the target system. changing trend.

在一些实施例中,在判定所述时间序列数据属于易变型数据的情况下,采用Turkey,s Test或3-Sigema算法对所述时间序列数据进行动态阈值检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。In some embodiments, when it is determined that the time series data belongs to volatile data, dynamic threshold detection is performed on the time series data by using Turkey,s Test or 3-Sigema algorithm, so as to obtain the corresponding data of the target type. The change trend of the monitoring index is obtained to obtain the change trend of the monitoring index corresponding to the target system.

S434:在所述周期性特征值大于等于所述第一预设阈值的情况下,进一步对所述时间序列数据进行稳定性检测,确定稳定性特征值;S434: In the case that the periodic characteristic value is greater than or equal to the first preset threshold, further perform stability detection on the time series data to determine the stability characteristic value;

在一些实施例中,可选的,所述进一步对所述时间序列数据进行稳定性检测,包括:In some embodiments, optionally, the further performing stability detection on the time series data includes:

采用移动平均线算法对所述时间序列数据进行季节性分解,分解为季节性周期分量、长期趋势分量以及随机残差分量;Seasonally decompose the time series data by using the moving average algorithm, and decompose it into a seasonal cycle component, a long-term trend component and a random residual component;

根据所述随机残差分量的方差确定所述稳定性特征值。The stability characteristic value is determined according to the variance of the random residual component.

S435:在所述稳定性特征值大于第二预设阈值的情况下,判定所述时间序列数据属于稳定型数据;S435: In the case that the stability characteristic value is greater than the second preset threshold, determine that the time series data belongs to stable data;

在判定所述时间序列数据属于稳定型数据的情况下,对所述时间序列数据进行异常检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。When it is determined that the time series data is stable data, anomaly detection is performed on the time series data to obtain the change trend of the monitoring index corresponding to the target type data, so as to obtain the monitoring index corresponding to the target system changing trend.

在一些实施例中,在判定所述时间序列数据属于稳定型数据的情况下,采用SARIMAX或滑动平均算法对所述时间序列数据进行基线阈值检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。In some embodiments, when it is determined that the time series data belongs to stable data, the SARIMAX or moving average algorithm is used to perform baseline threshold detection on the time series data, so as to obtain the monitoring indicators corresponding to the target type data. The change trend is to obtain the change trend of the monitoring index corresponding to the target system.

S436:在所述稳定性特征值小于等于所述第二预设阈值的情况下,判定所述时间序列数据属于周期型数据;S436: In the case that the stability characteristic value is less than or equal to the second preset threshold, determine that the time series data belongs to periodic data;

在判定所述时间序列数据属于周期型数据的情况下,对所述时间序列数据进行异常检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。When it is determined that the time series data belongs to periodic data, anomaly detection is performed on the time series data to obtain the change trend of the monitoring indicators corresponding to the target type data, so as to obtain the monitoring indicators corresponding to the target system. changing trend.

在一些实施例中,在判定所述时间序列数据属于周期型数据的情况下,采用用机器学习分类模型与回归模型对所述时间序列进行异常检测,以得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势。具体包括:In some embodiments, when it is determined that the time series data belongs to periodic data, a machine learning classification model and a regression model are used to perform anomaly detection on the time series to obtain monitoring indicators corresponding to the target type data. The change trend of the target system can be obtained to obtain the change trend of the monitoring index corresponding to the target system. Specifically include:

对所述时间序列数据数据进行预处理;其中,所述时间序列数据包括历史时间序列数据及当前时间序列数据;Preprocessing the time series data; wherein, the time series data includes historical time series data and current time series data;

获取与所述当前时间序列数据对应的第一异常检测结果;其中,所述第一异常检测结果为从预处理后的所述时间序列数据中提取各类特征,并将各类所述特征输入到预先构建的机器学习分类模型中得到的;Obtain a first abnormality detection result corresponding to the current time series data; wherein, the first abnormality detection result is to extract various types of features from the preprocessed time series data, and input the various types of features into into a pre-built machine learning classification model;

获取与所述当前时间序列数据对应的第二异常检测结果;其中,所述第二异常检测结果为将所述当前时间序列数据与预测基线进行比较得到的,所述预测基线为将预处理后的所述历史时间序列数据输入到预先构建的回归模型中得到的;Obtain a second abnormality detection result corresponding to the current time series data; wherein, the second abnormality detection result is obtained by comparing the current time series data with a prediction baseline, and the prediction baseline is a preprocessed The historical time series data obtained by inputting the pre-built regression model;

对所述第一异常检测结果和所述第二异常检测结果进行投票,以得到所述时间序列数据的异常检测结果,即得到所述目标类型数据对应的监控指标的变化趋势,得到所述目标系统对应的监控指标的变化趋势。Vote on the first anomaly detection result and the second anomaly detection result to obtain the anomaly detection result of the time series data, that is, obtain the change trend of the monitoring index corresponding to the target type data, and obtain the target The change trend of the monitoring indicators corresponding to the system.

本实施例在上述实施例的基础上,在判定所述时间序列数据属于易变型数据的情况下,采用Turkey,s Test或3-Sigema算法对所述时间序列数据进行动态阈值检测,以得到所述时间序列数据的异常检测结果;在判定所述时间序列数据属于稳定型数据的情况下,采用SARIMAX或滑动平均算法对所述时间序列数据进行基线阈值检测,以得到所述时间序列数据的异常检测结果;在判定所述时间序列数据属于周期型数据的情况下,基于机器学习分类模型与回归模型对所述时间序列数据进行异常检测。该方法通过对时间序列数据进行周期性检测与稳定性检测,将时间序列数据分类后,根据不同数据所属类别选择合适的异常检测方法进行异常检测,提高了时间序列数据异常检测的灵活性和准确性,操作简单。In this embodiment, on the basis of the above-mentioned embodiment, when it is determined that the time-series data belongs to volatile data, the Turkey,s Test or 3-Sigema algorithm is used to perform dynamic threshold detection on the time-series data, so as to obtain the The abnormality detection result of the time series data; when it is determined that the time series data is stable data, use SARIMAX or moving average algorithm to perform baseline threshold detection on the time series data to obtain the abnormality of the time series data. Detection result; in the case of determining that the time series data belongs to periodic data, perform anomaly detection on the time series data based on a machine learning classification model and a regression model. This method improves the flexibility and accuracy of anomaly detection of time series data by performing periodic detection and stability detection on time series data. sex, easy to operate.

步骤S44:基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。Step S44: Perform system risk assessment on the target system based on the early warning information and the change trend.

在本申请的实施例中,针对充电设施运维工作中普遍存在充电场站故障诊断及安全运维服务体系不完善,缺乏对充电过程的故障智能诊断及安全预警,无法提前发现潜在的设备缺陷和事故隐患的问题,对充电设备运维过程中的运维检测数据的异常检测进行改进,通过将充电设备运维过程中的时间序列数据通过周期性检测,确定周期性特征值,将周期性特征值与第一预设阈值比较,判断是否为易变型数据;在判定为非易变型数据后,进一步进行稳定性检测,将稳定性特征值与第二预设阈值比较,区分稳定型数据与周期型数据。根据所述时间序列数据所属类别,分别对周期型数据、易变型数据、以及稳定型数据根据不同的异常检测方法进行充电设备运维检测数据异常检测,以得到所述时间序列数据的异常检测结果。该方法通过对充电设备运维检测过程中的时间序列数据进行周期性检测与稳定性检测,将时间序列数据所属类别区分后,根据不同数据所属类别选择合适的异常检测方法进行异常检测,提高了充电设备运维检测过程中时间序列数据异常检测的灵活性和准确性,操作简单。该充电设备运维检测方法综合考虑充电设备告警、设备异常检测、设备健康状态评估,可按需生成运维巡检计划。该充电设备运维检测方法不仅适用于充电设备运维、电网运维、储能设备运维、和/或车桩网一体化的运维检测等,其他基于物联网搭建的检测系统的运维检测均可以适用于该充电设备运维检测方法,通用性强。In the embodiment of the present application, the fault diagnosis and safety operation and maintenance service system of charging station is generally not perfect in the operation and maintenance of charging facilities, and there is a lack of intelligent fault diagnosis and safety warning for the charging process, and potential equipment defects cannot be discovered in advance. To solve the problem of hidden dangers and accidents, improve the abnormal detection of the operation and maintenance detection data during the operation and maintenance of the charging equipment. The characteristic value is compared with the first preset threshold to determine whether it is volatile data; after it is determined to be non-volatile data, further stability detection is performed, the stability characteristic value is compared with the second preset threshold, and the stable data is distinguished from the second preset threshold. Periodic data. According to the category of the time series data, the abnormal detection of the operation and maintenance detection data of the charging equipment is performed on the periodic data, the volatile data, and the stable data according to different abnormal detection methods, so as to obtain the abnormal detection result of the time series data. . The method performs periodic detection and stability detection on the time series data in the operation and maintenance detection process of the charging equipment. After distinguishing the categories of the time series data, an appropriate anomaly detection method is selected according to the categories of the different data to perform anomaly detection. The flexibility and accuracy of time-series data anomaly detection in the process of charging equipment operation and maintenance detection, and the operation is simple. The charging equipment operation and maintenance detection method comprehensively considers charging equipment alarms, equipment abnormality detection, and equipment health status evaluation, and can generate an operation and maintenance inspection plan on demand. The charging equipment operation and maintenance detection method is not only suitable for the operation and maintenance of charging equipment, power grid operation and maintenance, energy storage equipment operation and maintenance, and/or the operation and maintenance of vehicle pile network integration, etc., but also the operation and maintenance of other detection systems based on the Internet of Things. The detection can be applied to the operation and maintenance detection method of the charging equipment, and the versatility is strong.

同时,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。Meanwhile, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the described action sequence, because according to the present application In some embodiments, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

相应的,本申请实施例还公开了一种系统风险评估装置,应用于微服务架构下的系统风险评估参见图9所示,该装置包括:Correspondingly, the embodiment of the present application also discloses a system risk assessment device, which is applied to the system risk assessment under the micro-service architecture as shown in FIG. 9 , and the device includes:

数据获取模块21,用于获取目标系统在目标时间内的系统变更数据;所述系统变更数据包括系统预警信息和变更装置名称;The data acquisition module 21 is used to acquire the system change data of the target system within the target time; the system change data includes the system early warning information and the name of the change device;

预警信息确定模块22,用于基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;an early warning information determination module 22, configured to determine early warning information corresponding to the target system change by using natural language processing technology based on the system change data;

变化趋势确定模块23,用于获取所述目标系统在所述目标时间内的时间序列数据,并基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;The change trend determination module 23 is used to obtain the time series data of the target system within the target time, and based on the time series data, use a machine learning algorithm to obtain the change trend of the monitoring index corresponding to the target system;

风险评估模块24,用于基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。The risk assessment module 24 is configured to perform system risk assessment on the target system based on the early warning information and the change trend.

本申请中,通过获取目标系统在目标时间内的系统变更数据,所述系统变更数据包括系统预警信息以及系统变更对应的装置名称;然后基于所述系统变更数据,利用自然语言处理技术确定出与所述目标系统变更对应的预警信息;并通过获取所述目标系统在所述目标时间内的时间序列数据,然后基于所述时间序列数据,利用机器学习算法得到所述目标系统对应的监控指标的变化趋势;最后基于所述预警信息和所述变化趋势对所述目标系统进行系统风险评估。可见,利用自然语言处理技术通过系统变更在时间范围内的系统预警信息,以及系统变更在空间范围内影响的装置的名称确定出与系统变更相对应的预警信息,再结合利用机器学习算法通过时间序列数据确定的系统对应的监控指标的变化趋势,对系统当前的风险进行评估,能够迅速准确的识别软件补丁发布、配置变更、基础资源变更等带来的风险,提高了微服务架构下对系统变更风险评估的准确性。In this application, by acquiring the system change data of the target system within the target time, the system change data includes the system early warning information and the device name corresponding to the system change; and then based on the system change data, natural language processing technology is used to determine the The target system changes the corresponding early warning information; and obtains the time series data of the target system within the target time, and then uses the machine learning algorithm to obtain the monitoring indicators corresponding to the target system based on the time series data. change trend; finally, perform a system risk assessment on the target system based on the early warning information and the change trend. It can be seen that the natural language processing technology is used to determine the early warning information corresponding to the system change through the system early warning information within the time range of the system change and the names of the devices affected by the system change within the spatial range, and then combined with the machine learning algorithm to pass the time The change trend of the monitoring indicators corresponding to the system determined by the sequence data, the current risk of the system can be assessed, and the risks brought by software patch release, configuration change, and basic resource change can be quickly and accurately identified. Accuracy of change risk assessments.

在一些具体实施例中,所述预警信息确定模块22具体可以包括:In some specific embodiments, the early warning information determination module 22 may specifically include:

第一组关键词确定单元,用于对所述系统预警信息进行语料预处理,并从处理后的系统预警信息中提取出第一组关键词;A first group of keyword determination unit, used for corpus preprocessing on the system early warning information, and extracting the first group of keywords from the processed system early warning information;

第二组关键词确定单元,用于对所述装置名称进行语料预处理,并从处理后的变更装置名称中提取出第二组关键词;The second group of keyword determination unit is used for corpus preprocessing on the device name, and extracts the second group of keywords from the processed changed device name;

相似度判定单元,用于计算所述第一组关键词与所述第二组关键词中关键词的相似度,基于所述相似度确定出与所述目标系统变更对应的预警信息。A similarity determination unit, configured to calculate the similarity between the first group of keywords and the keywords in the second group of keywords, and determine early warning information corresponding to the target system change based on the similarity.

在一些具体实施例中,所述变化趋势确定模块23具体可以包括:In some specific embodiments, the change trend determination module 23 may specifically include:

分类单元,用于根据预设分类标准对所述时间序列数据进行分类,得到相应的目标类型数据;所述目标类型数据包括易变型数据、周期型数据和稳定型数据;a classification unit, configured to classify the time series data according to a preset classification standard to obtain corresponding target type data; the target type data includes volatile data, periodic data and stable data;

趋势判定单元,用于利用与所述目标类型数据对应的预设检测算法,对所述目标类型数据进行异常检测,得到所述目标类型数据对应的监控指标的变化趋势,以得到所述目标系统对应的监控指标的变化趋势;A trend determination unit, configured to perform anomaly detection on the target type data by using a preset detection algorithm corresponding to the target type data, and obtain the change trend of the monitoring index corresponding to the target type data, so as to obtain the target system The change trend of the corresponding monitoring indicators;

第一趋势判定子单元,用于基于Turkey检测对所述易变型数据进行异常检测,得到易变型监控指标的变化趋势;The first trend determination subunit is used to perform anomaly detection on the variable data based on Turkey detection, and obtain the change trend of the variable monitoring index;

第二趋势判定子单元,用于基于同环比算法对所述周期型数据进行异常检测,得到周期型监控指标的变化趋势;The second trend determination subunit is configured to perform abnormality detection on the periodic data based on the same chain ratio algorithm, and obtain the change trend of the periodic monitoring index;

第三趋势判定子单元,用于基于时间序列ARIMA算法对所述稳定型数据进行异常检测,得到稳定型监控指标的变化趋势;A third trend determination subunit, configured to perform anomaly detection on the stable data based on the time-series ARIMA algorithm, to obtain the change trend of the stable monitoring indicators;

第一分类子单元,用于基于窗口数据相似性对所述时间序列数据进行周期性检测,并根据第一预设阈值进行分类得到所述易变型数据和非易变型数据;a first classification subunit, configured to perform periodic detection on the time series data based on the similarity of window data, and classify according to a first preset threshold to obtain the volatile data and the non-volatile data;

第二分类子单元,用于基于STL算法对所述非易变型数据进行稳定性检测,并根据第二预设阈值进行分类得到所述周期性数据和所述稳定型数据。The second classification subunit is configured to perform stability detection on the non-volatile data based on the STL algorithm, and classify the periodic data and the stable data according to a second preset threshold.

在一些具体实施例中,所述风险评估模块24具体可以包括:In some specific embodiments, the risk assessment module 24 may specifically include:

风险等级判定单元,用于基于所述预警信息、所述变化趋势和所述监控指标的指标等级对所述目标系统进行系统风险评估,得到所述目标系统的风险等级;其中,所述指标等级包括核心业务级指标、技术级指标和系统资源级指标;a risk level determination unit, configured to perform a system risk assessment on the target system based on the early warning information, the change trend and the index level of the monitoring index, and obtain the risk level of the target system; wherein, the index level Including core business-level indicators, technical-level indicators and system resource-level indicators;

评估报告生成单元,用于基于所述风险等级生成相应的评估报告。An assessment report generating unit, configured to generate a corresponding assessment report based on the risk level.

进一步的,本申请实施例还公开了一种电子设备,参见图10所示,图中的内容不能被认为是对本申请的使用范围的任何限制。Further, the embodiment of the present application also discloses an electronic device, as shown in FIG. 10 , the content in the figure should not be considered as any limitation on the scope of use of the present application.

图10为本申请实施例提供的一种电子设备30的结构示意图。该电子设备30,具体可以包括:至少一个处理器31、至少一个存储器32、电源33、通信接口34、输入输出接口35和通信总线36。其中,所述存储器32用于存储计算机程序,所述计算机程序由所述处理器31加载并执行,以实现前述任一实施例公开的系统风险评估方法中的相关步骤。FIG. 10 is a schematic structural diagram of an electronic device 30 according to an embodiment of the present application. The electronic device 30 may specifically include: at least one processor 31 , at least one memory 32 , a power supply 33 , a communication interface 34 , an input and output interface 35 and a communication bus 36 . Wherein, the memory 32 is used for storing a computer program, and the computer program is loaded and executed by the processor 31 to implement the relevant steps in the system risk assessment method disclosed in any of the foregoing embodiments.

本实施例中,电源33用于为电子设备30上的各硬件设备提供工作电压;通信接口34能够为电子设备30创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口35,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 33 is used to provide working voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the present application is not specifically limited here; the input and output interface 35 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, here No specific limitation is made.

另外,存储器32作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统321、计算机程序322及包括系统变更数据在内的数据323等,存储方式可以是短暂存储或者永久存储。In addition, the memory 32, as a carrier for resource storage, can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored on it include an operating system 321, a computer program 322, and data 323 including system change data, etc., The storage method can be short-term storage or permanent storage.

其中,操作系统321用于管理与控制电子设备30上的各硬件设备以及计算机程序322,以实现处理器31对存储器32中海量数据323的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序322除了包括能够用于完成前述任一实施例公开的由电子设备30执行的系统风险评估方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据323可以包括电子设备30获取到的系统变更数据。The operating system 321 is used to manage and control each hardware device and computer program 322 on the electronic device 30, so as to realize the operation and processing of the massive data 323 in the memory 32 by the processor 31, which can be Windows Server, Netware, Unix, Linux etc. In addition to the computer program that can be used to complete the system risk assessment method performed by the electronic device 30 disclosed in any of the foregoing embodiments, the computer program 322 may further include a computer program that can be used to complete other specific tasks. The data 323 may include system modification data acquired by the electronic device 30 .

进一步的,本申请实施例还公开了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现前述任一实施例公开的系统风险评估方法步骤。Further, an embodiment of the present application further discloses a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and when the computer-executable instructions are loaded and executed by a processor, the disclosure in any of the foregoing embodiments is realized. The systematic risk assessment method steps.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上对本发明所提供的一种系统风险评估方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A system risk assessment method, device, equipment and medium provided by the present invention have been introduced in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present invention. The descriptions of the above examples are only used to help Understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification does not It should be understood as a limitation of the present invention.

Claims (12)

1. A system risk assessment method is applied to system risk assessment under a micro-service architecture, and is characterized by comprising the following steps:
acquiring system change data of a target system in target time; the system change data comprises system early warning information and a device name corresponding to the system change;
based on the system change data, determining early warning information corresponding to the target system change by using a natural language processing technology;
acquiring time sequence data of the target system in the target time, and obtaining a variation trend of a monitoring index corresponding to the target system by using a machine learning algorithm based on the time sequence data;
and performing system risk assessment on the target system based on the early warning information and the change trend.
2. The system risk assessment method according to claim 1, wherein the determining early warning information corresponding to the target system change based on the system change data by using a natural language processing technique comprises:
performing corpus preprocessing on the system early warning information, and extracting a first group of keywords from the processed system early warning information;
performing corpus preprocessing on the device name, and extracting a second group of keywords from the processed changed device name;
and calculating the similarity of the keywords in the first group of keywords and the second group of keywords, and determining early warning information corresponding to the target system change based on the similarity.
3. The system risk assessment method according to claim 1, wherein the target time comprises a system change time of the target system and a time within a preset time period after the change.
4. The system risk assessment method according to claim 1, wherein the obtaining of the variation trend of the monitoring index corresponding to the target system by using a machine learning algorithm based on the time series data comprises:
classifying the time sequence data according to a preset classification standard to obtain corresponding target type data; the target type data comprises volatile data, periodic data and stable data;
and carrying out abnormal detection on the target type data by using a preset detection algorithm corresponding to the target type data to obtain the change trend of the monitoring index corresponding to the target type data so as to obtain the change trend of the monitoring index corresponding to the target system.
5. The system risk assessment method according to claim 4, wherein the performing anomaly detection on the target type data by using a preset detection algorithm corresponding to the target type data to obtain a variation trend of a monitoring index corresponding to the target type data comprises:
performing abnormity detection on the easy-to-deform data based on Turkey detection to obtain the variation trend of the easy-to-deform monitoring index;
performing anomaly detection on the periodic data based on a homocyclic ratio algorithm to obtain the variation trend of the periodic monitoring index;
and carrying out abnormal detection on the stable data based on a time sequence ARIMA algorithm to obtain the change trend of the stable monitoring index.
6. The system risk assessment method according to claim 4, wherein the classifying the time-series data according to a preset classification standard to obtain corresponding target type data comprises:
carrying out periodic detection on the time sequence data based on window data similarity, and classifying according to a first preset threshold value to obtain the volatile data and the non-volatile data;
and carrying out stability detection on the non-volatile data based on an STL algorithm, and classifying according to a second preset threshold value to obtain the periodic data and the stable data.
7. The system risk assessment method according to any one of claims 1 to 6, wherein the performing the system risk assessment on the target system based on the early warning information and the trend of change comprises:
performing system risk assessment on the target system based on the early warning information, the change trend and the index grade of the monitoring index to obtain the risk grade of the target system;
generating a corresponding assessment report based on the risk level;
the index grade comprises a core service grade index, a technical grade index and a system resource grade index.
8. A charging device operation and maintenance detection method is characterized by comprising the following steps:
acquiring system change data of a target system in target time; the target system comprises a charging device system; the system change data comprises the operation and maintenance data of the charging equipment, and the operation and maintenance data of the charging equipment comprises system early warning information and a device name corresponding to system change;
based on the system change data, determining early warning information corresponding to the target system change by using a natural language processing technology;
acquiring time sequence data of the target system in the target time, and obtaining a variation trend of a monitoring index corresponding to the target system by using a machine learning algorithm based on the time sequence data;
and performing system risk assessment on the target system based on the early warning information and the change trend.
9. The method according to claim 8, wherein the obtaining of time-series data of the target system in the target time and obtaining a variation trend of a corresponding monitoring index of the target system based on the time-series data by using a machine learning algorithm comprises:
acquiring time sequence data in the target time in the operation and maintenance detection process of the charging equipment;
determining a periodic characteristic value by periodically detecting the time sequence data;
under the condition that the periodic characteristic value is smaller than a first preset threshold value, judging that the time sequence data belong to the volatile data;
under the condition that the periodic characteristic value is greater than or equal to the first preset threshold value, further performing stability detection on the time series data to determine a stability characteristic value;
under the condition that the stability characteristic value is larger than a second preset threshold value, judging that the time sequence data belong to stable data;
when the stability characteristic value is less than or equal to the second preset threshold value, judging that the time series data belong to periodic data;
according to the target type data to which the time sequence data belong, carrying out abnormity detection on the time sequence data to obtain a variation trend of a monitoring index corresponding to the target type data so as to obtain a variation trend of a monitoring index corresponding to the target system;
the target type data includes volatile data, periodic data, and stable data.
10. The method of claim 9,
the passing the time-series data through a periodic detection includes:
a reference period T given to the time series data;
dividing the time series data into n/T sub-time series units by taking the reference period T as a dividing point, wherein n is the length of the time series data;
comparing every two of each sub-time sequence unit to calculate a similarity coefficient, and determining the similarity system as the periodic characteristic value;
the further performing stability detection on the time-series data comprises:
carrying out seasonal decomposition on the time sequence data by adopting a moving average algorithm to obtain a seasonal periodic component, a long-term trend component and a random residual error component;
and determining the stability characteristic value according to the variance of the random residual error component.
11. The method according to claim 9 or 10, wherein the detecting the abnormality of the time-series data according to the target type data to which the time-series data belongs comprises:
under the condition that the time sequence data belong to the volatile data, performing dynamic threshold detection on the time sequence data by adopting a Turkey, s Test or 3-Sigema algorithm to obtain the variation trend of the monitoring index corresponding to the target system;
under the condition that the time sequence data are judged to be stable data, performing baseline threshold detection on the time sequence data by adopting SARIMAX or a moving average algorithm to obtain a variation trend of a monitoring index corresponding to the target system;
and under the condition that the time sequence data belong to periodic data, performing abnormity detection on the time sequence by adopting a machine learning classification model and a regression model to obtain the variation trend of the monitoring index corresponding to the target system.
12. A system risk assessment device is applied to system risk assessment under a micro-service architecture, and is characterized by comprising:
the data acquisition module is used for acquiring system change data of the target system in target time; the system change data comprises system early warning information and a change device name;
the early warning information determining module is used for determining early warning information corresponding to the target system change by utilizing a natural language processing technology based on the system change data;
the variation trend determining module is used for acquiring time sequence data of the target system in the target time and obtaining the variation trend of the monitoring index corresponding to the target system by utilizing a machine learning algorithm based on the time sequence data;
and the risk evaluation module is used for carrying out system risk evaluation on the target system based on the early warning information and the change trend.
CN202111552044.1A 2020-12-18 2021-12-17 System risk assessment method and device and charging equipment operation and maintenance detection method Pending CN114185760A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011505896.0A CN112540905A (en) 2020-12-18 2020-12-18 System risk assessment method, device, equipment and medium under micro-service architecture
CN2020115058960 2020-12-18

Publications (1)

Publication Number Publication Date
CN114185760A true CN114185760A (en) 2022-03-15

Family

ID=75019136

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011505896.0A Pending CN112540905A (en) 2020-12-18 2020-12-18 System risk assessment method, device, equipment and medium under micro-service architecture
CN202111552044.1A Pending CN114185760A (en) 2020-12-18 2021-12-17 System risk assessment method and device and charging equipment operation and maintenance detection method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011505896.0A Pending CN112540905A (en) 2020-12-18 2020-12-18 System risk assessment method, device, equipment and medium under micro-service architecture

Country Status (1)

Country Link
CN (2) CN112540905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396341A (en) * 2022-08-16 2022-11-25 度小满科技(北京)有限公司 Evaluation method, device, storage medium and electronic device for service stability

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220551A (en) * 2021-05-12 2021-08-06 康键信息技术(深圳)有限公司 Index trend prediction and early warning method and device, electronic equipment and storage medium
CN113271224A (en) * 2021-05-17 2021-08-17 中国邮政储蓄银行股份有限公司 Node positioning method and device, storage medium and electronic device
CN113395178B (en) * 2021-06-11 2022-12-09 聚好看科技股份有限公司 Method and device for elastic expansion and contraction of container cloud
CN115102834B (en) * 2022-04-27 2024-04-16 浙江大学 A change risk assessment method, device and storage medium
CN116681402B (en) * 2023-06-19 2024-07-12 岳阳瑞德自动化设备有限公司 Project information base service management system and method based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992270A (en) * 2015-06-19 2015-10-21 国家电网公司 Power transmission and transformation equipment state maintenance aid decision making system and method
CN111582771A (en) * 2020-06-16 2020-08-25 深圳前海微众银行股份有限公司 Risk assessment method, apparatus, device, and computer-readable storage medium
CN111815132A (en) * 2020-06-28 2020-10-23 云南电网有限责任公司电力科学研究院 A method and system for publishing network security management information of a power monitoring system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992270A (en) * 2015-06-19 2015-10-21 国家电网公司 Power transmission and transformation equipment state maintenance aid decision making system and method
CN111582771A (en) * 2020-06-16 2020-08-25 深圳前海微众银行股份有限公司 Risk assessment method, apparatus, device, and computer-readable storage medium
CN111815132A (en) * 2020-06-28 2020-10-23 云南电网有限责任公司电力科学研究院 A method and system for publishing network security management information of a power monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396341A (en) * 2022-08-16 2022-11-25 度小满科技(北京)有限公司 Evaluation method, device, storage medium and electronic device for service stability
CN115396341B (en) * 2022-08-16 2023-12-05 度小满科技(北京)有限公司 Service stability evaluation method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN112540905A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN114185760A (en) System risk assessment method and device and charging equipment operation and maintenance detection method
CN110824270B (en) Electricity stealing user identification method and device combining transformer area line loss and abnormal events
CN111459700B (en) Equipment fault diagnosis method, diagnosis device, diagnosis equipment and storage medium
US8868985B2 (en) Supervised fault learning using rule-generated samples for machine condition monitoring
CN111241154A (en) Storage battery fault early warning method and system based on big data
CN116450399B (en) Microservice system fault diagnosis and root cause location method
CN107463998A (en) A kind of power equipment O&M service system and method based on cloud service platform
US8918345B2 (en) Network analysis system
CN111309539A (en) Abnormity monitoring method and device and electronic equipment
CN105184886A (en) Cloud data center intelligence inspection system and cloud data center intelligence inspection method
CN117074852A (en) Power distribution network electric energy monitoring and early warning management method and system
CN108846511A (en) A kind of defect of transformer equipment trend analysis based on regulation big data platform
Zeng et al. Traceark: Towards actionable performance anomaly alerting for online service systems
CN110348683A (en) The main genetic analysis method, apparatus equipment of electrical energy power quality disturbance event and storage medium
CN112379325A (en) Fault diagnosis method and system for intelligent electric meter
CN118690247A (en) A Transformer Fault Prediction Method
CN116523181A (en) Intelligent green energy monitoring and analyzing method and system based on big data
CN118100447A (en) Intelligent monitoring method and system for high-voltage distribution line based on Internet of things
CN111767193A (en) Server data anomaly detection method and device, storage medium and equipment
Pan et al. Condition diagnosis with complex network-time series analysis
CN113220799A (en) Big data early warning management system
CN111861141A (en) A Reliability Evaluation Method of Distribution Network Based on Fuzzy Failure Rate Prediction
CN117909970A (en) Data processing method, device, equipment and medium
CN117952318A (en) Industrial garden carbon emission data management system and method based on big data
CN117251788A (en) State evaluation method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination