def __init__(self, prod_prop_dict, sandbox, pricedate): self.prod_prop_dict = prod_prop_dict self.sandbox = sandbox self.pricedate = pricedate self.return_code = 0 self.logger = logging.getLogger("analyse_logs") self.prin = print_class() self.acceptable_score = 40 self.backupdir = "DIRPATH/bisdbfiles/" + pricedate + "_daily_new" prevdate = "20170925" self.prevbackupdir = "DIRPATH/bisdbfiles/" + prevdate + "_daily_new" self.rsync_cmd = "rsync -azv " self.run_shellscript = extlenvexec() self.daily_dir = prod_prop_dict["prod_sunbond_dir"] self.prices_dir = prod_prop_dict["prod_prices"] self.change_dir = prod_prop_dict["prod_changes"] self.productdirectory = prod_prop_dict["productdirectory"] self.flags_dir = prod_prop_dict["prod_flags"] self.prod_back_dir = prod_prop_dict["prod_backup_dir"].replace( "YYYYMMDD", str(pricedate)) self.temp_log = "DIRPATH/tmp/automonitor.log" self.temp_log2 = "DIRPATH/tmp/automonitor2.log" self.save_changes = sandbox + "/" + self.change_dir + "/save-changes" self.tail_cnt = '100' self.unix_error = [ "file does not exist", "abort", "Variable syntax", "cannot open", "can't open" ] self.ext_note = filename_extn_err self.pattern_files = self.ext_note + [self.sandbox] self.error_search_range = 10 self.no_logs_to_analyse = 2
def __init__(self, prod_prop_dict, sandbox, pricedate): self.prod_prop_dict = prod_prop_dict self.sandbox = sandbox self.pricedate = pricedate self.return_code = 0 self.logger = logging.getLogger("reset_product class") self.prin = print_class() self.acceptable_score = 40 self.backupdir = "DIRPATH/bisdbfiles/" + pricedate + "_daily_new" prevdate = "20170925" self.prevbackupdir = "DIRPATH/bisdbfiles/" + prevdate + "_daily_new" self.rsync_cmd = "rsync -azv " self.run_shellscript = extlenvexec() self.daily_dir = prod_prop_dict["prod_sunbond_dir"] self.prices_dir = prod_prop_dict["prod_prices"] self.change_dir = prod_prop_dict["prod_changes"] self.flags_dir = prod_prop_dict["prod_flags"] self.prod_scriptname = prod_prop_dict["prod_scriptname"] self.prod_back_dir = prod_prop_dict["prod_backup_dir"].replace( "YYYYMMDD", str(pricedate)) self.logfile = "DIRPATH/tmp/automonitor.log" self.save_changes = sandbox + "/" + self.change_dir + "/save-changes"
def __init__(self,file_object): self.file_object= file_object self.print_class=print_class()
def __init__(self, productname): self.return_prop = {} self.prod_configfile = "/home/rcharanthary/bin/autotest/convert-daily.txt" self.prin = print_class() self.logger = logging.getLogger("get_product_prop")
def __init__(self): self.usermessage="" self.arg_l="" self.prin=print_class() usage="scriptname <productname sandbox>"
def __init__(self): self.file_name = "" self.print_class = print_class() self.fr = ""