in src/cloudwatch/modules/configuration/configreader.py [0:0]
def __init__(self, config_path):
self.config_path = config_path
self.credentials_path = ""
self.region = ''
self.host = ''
self.pass_through = self._PASS_THROUGH_DEFAULT_VALUE
self.debug = self._DEBUG_DEFAULT_VALUE
self.push_asg = self._PUSH_ASG_DEFAULT_VALUE
self.push_constant = self._PUSH_CONSTANT_DEFAULT_VALUE
self.constant_dimension_value = ''
self.proxy_server_name=''
self.proxy_server_port = ''
self.enable_high_resolution_metrics = self._ENABLE_HIGH_DEFINITION_METRICS_DEFAULT_VALUE
self.flush_interval_in_seconds = ''
try:
self.reader_utils = ReaderUtils(config_path)
self._parse_config_file()
except Exception as e:
self._LOGGER.warning("Cannot read plugin configuration file at: " + config_path + ". Cause: " + str(e))
raise e