示例#1
0
文件: HostModel.py 项目: Lancert9/WUA
 def detectSingleParaProp(self, a_record, a_threshold):
     """
     Depending on the UrlRecord's parameter field and a given threshold, HostModel detects whether it is a anomaly.
     :param a_record: UrlRecord
     :param a_threshold: float
     :return: dict --> {str: str} -- the detection result and it's reason.
     """
     para_prop_result = CalProp.detectParaProp(a_record, self.__path_para_dict, a_threshold)
     return para_prop_result
示例#2
0
 def detectSingleParaProp(self, a_record, a_threshold):
     """
     Depending on the UrlRecord's parameter field and a given threshold, HostModel detects whether it is a anomaly.
     :param a_record: UrlRecord
     :param a_threshold: float
     :return: dict --> {str: str} -- the detection result and it's reason.
     """
     para_prop_result = CalProp.detectParaProp(a_record,
                                               self.__path_para_dict,
                                               a_threshold)
     return para_prop_result