boundary/metric_export.py
def extract_dictionary(self, metrics):
        """
        Extract required fields from an array
        """
        new_metrics = {}
        for m in metrics:
            metric = self.extract_fields(m)
            new_metrics[m['name']] = metric
        return new_metrics
def extract_dictionary(self, metrics):
        new_metrics = {}
        for m in metrics:
            metric = self.extract_fields(m)
            new_metrics[m['name']] = metric
        return new_metrics
def extract_dictionary ( self , metrics ) : new_metrics = { } for m in metrics : metric = self . extract_fields ( m ) new_metrics [ m [ 'name' ] ] = metric return new_metrics
Extract required fields from an array
Extract required fields from an array