driver/driver_config_builder.py
def from_cloudwatch_metrics(self, db_instance_identifier) -> BaseDriverConfigBuilder:
        """Build config options from cloudwatch metrics configurations"""
        metric_names = []
        file_path = self._get_cloudwatch_metrics_file(db_instance_identifier)
        with open(file_path, "r", encoding="utf-8") as metrics_file:
            metrics = json.load(metrics_file)
            for metric in metrics:
                metric_names.append(metric["name"])

        self.config.update(
            {"metrics_to_retrieve_from_source": {"cloudwatch": metric_names}}
        )
        return self
Build config options from cloudwatch metrics configurations
Build config options from cloudwatch metrics configurations
Build config options from cloudwatch metrics configurations
def from_cloudwatch_metrics(self, db_instance_identifier) -> BaseDriverConfigBuilder:
        metric_names = []
        file_path = self._get_cloudwatch_metrics_file(db_instance_identifier)
        with open(file_path, "r", encoding="utf-8") as metrics_file:
            metrics = json.load(metrics_file)
            for metric in metrics:
                metric_names.append(metric["name"])
        self.config.update(
            {"metrics_to_retrieve_from_source": {"cloudwatch": metric_names}}
        )
        return self
def from_cloudwatch_metrics ( self , db_instance_identifier ) -> BaseDriverConfigBuilder : metric_names = [ ] file_path = self . _get_cloudwatch_metrics_file ( db_instance_identifier ) with open ( file_path , "r" , encoding = "utf-8" ) as metrics_file : metrics = json . load ( metrics_file ) for metric in metrics : metric_names . append ( metric [ "name" ] ) self . config . update ( { "metrics_to_retrieve_from_source" : { "cloudwatch" : metric_names } } ) return self
Build config options from cloudwatch metrics configurations
Build config options from cloudwatch metrics configurations
"""Build config options from cloudwatch metrics configurations"""
self
db_instance_identifier