import analyzer_conf import settings from logger_manager import LoggerManager import os import time import datetime from dateutil.relativedelta import relativedelta import numpy as np import pandas as pd db_manager = AnalyzerDatabaseManager(settings, analyzer_conf) logger_m = LoggerManager(settings.LOGGER_NAME, 'analyzer') logger_m.log_info('_tmp_find_anomalies_start', "Process started ...") current_time = datetime.datetime.now() # add first request timestamps for service calls that have appeared logger_m.log_info( '_tmp_find_anomalies_1', "Add first request timestamps for service calls that have appeared ...") logger_m.log_heartbeat( "Checking if completely new service calls have appeared", settings.HEARTBEAT_PATH, settings.HEARTBEAT_FILE, 'SUCCEEDED') db_manager.add_first_request_timestamps_from_clean_data() logger_m.log_info( '_tmp_find_anomalies_1', "Add first request timestamps for service calls that have appeared ... Done!" )
import settings from logger_manager import LoggerManager import os import time import datetime from dateutil.relativedelta import relativedelta import numpy as np import pandas as pd db_manager = AnalyzerDatabaseManager(settings, analyzer_conf) logger_m = LoggerManager(settings.LOGGER_NAME, 'analyzer') logger_m.log_info('_tmp_train_or_update_historic_averages_models_start', "Process started ...") # add first request timestamps for service calls that have appeared logger_m.log_info( '_tmp_train_or_update_historic_averages_models_1', "Checking if completely new service calls have appeared ...") logger_m.log_heartbeat( "Checking if completely new service calls have appeared", settings.HEARTBEAT_PATH, settings.HEARTBEAT_FILE, 'SUCCEEDED') db_manager.add_first_request_timestamps_from_clean_data() logger_m.log_info( '_tmp_train_or_update_historic_averages_models_1', "Checking if completely new service calls have appeared ... Done!") # logger_m.log_info('_tmp_train_or_update_historic_averages_models_2',