def __init__(self): options = self.parser.parse_options() logging_support.LoggingSupport.initLogging( loggingLevel=options.loggingLevel) if not options.monitorConfPath: self.parser.error("You must specify a --monitorConfPath argument.") if not options.metricDataTable: self.parser.error("You must specify a --metricDataTable argument.") self.config = loadConfig(options) self.emailParams = loadEmailParamsFromConfig(self.config) self.apiKey = self.config.get("S1", "MODELS_MONITOR_TAURUS_API_KEY") self.modelsUrl = self.config.get("S1", "MODELS_MONITOR_TAURUS_MODELS_URL") self.awsDynamoDBRegion = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_REGION") self.awsAccessKeyId = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_ACCESS_KEY_ID") self.awsSecretAccessKey = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_SECRET_ACCESS_KEY") self.threshold = options.threshold self.sigmaMultiplier = options.sigmaMultiplier self.metricDataTable = options.metricDataTable self.days = options.days self.options = options g_logger.info("Initialized %r", repr(self))
def __init__(self): options = self.parser.parse_options() logging_support.LoggingSupport.initLogging(loggingLevel=options.loggingLevel) if not options.monitorConfPath: self.parser.error("You must specify a --monitorConfPath argument.") if not options.metricDataTable: self.parser.error("You must specify a --metricDataTable argument.") self.config = loadConfig(options) self.emailParams = loadEmailParamsFromConfig(self.config) self.apiKey = self.config.get("S1", "MODELS_MONITOR_TAURUS_API_KEY") self.modelsUrl = self.config.get("S1", "MODELS_MONITOR_TAURUS_MODELS_URL") self.awsDynamoDBRegion = self.config.get("S1", "MODELS_MONITOR_TAURUS_DYNAMODB_REGION") self.awsAccessKeyId = self.config.get("S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_ACCESS_KEY_ID") self.awsSecretAccessKey = self.config.get("S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_SECRET_ACCESS_KEY") self.threshold = options.threshold self.sigmaMultiplier = options.sigmaMultiplier self.metricDataTable = options.metricDataTable self.days = options.days self.options = options g_logger.info("Initialized %r", repr(self))
def __init__(self): options = self.parser.parse_options() self.server = SupervisorClient(options.serverUrl) self.subjectPrefix = options.subjectPrefix self.config = loadConfig(options) self.emailParams = loadEmailParamsFromConfig(self.config)
def __init__(self): options = self.parser.parse_options() if not options.serverUrl: self.parser.error("You must specify a --serverUrl argument.") logging_support.LoggingSupport.initLogging( loggingLevel=options.loggingLevel) self.server = SupervisorClient(options.serverUrl) self.subjectPrefix = options.subjectPrefix self.config = loadConfig(options) self.emailParams = loadEmailParamsFromConfig(self.config) self.options = options g_logger.info("Initialized {}".format(repr(self)))
def __init__(self): options = self.parser.parse_options() self.config = loadConfig(options) self.emailParams = loadEmailParamsFromConfig(self.config) self.apiKey = self.config.get("S1", "MODELS_MONITOR_TAURUS_API_KEY") self.modelsUrl = self.config.get("S1", "MODELS_MONITOR_TAURUS_MODELS_URL") self.awsDynamoDBRegion = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_REGION") self.awsAccessKeyId = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_ACCESS_KEY_ID") self.awsSecretAccessKey = self.config.get( "S1", "MODELS_MONITOR_TAURUS_DYNAMODB_AWS_SECRET_ACCESS_KEY") self.threshold = options.threshold self.sigmaMultiplier = options.sigmaMultiplier if not options.metricDataTable: self.parser.error("You must specify a --metricDataTable argument.") self.metricDataTable = options.metricDataTable self.days = options.days