boundary/metric_export.py
def filter(self):
        """
        Apply the criteria to filter out on the metrics required
        """
        if self.filter_expression is not None:
            new_metrics = []
            metrics = self.metrics['result']
            for m in metrics:
                if self.filter_expression.search(m['name']):
                    new_metrics.append(m)
        else:
            new_metrics = self.metrics['result']

        self.metrics = self.extract_dictionary(new_metrics)
def filter(self):
        if self.filter_expression is not None:
            new_metrics = []
            metrics = self.metrics['result']
            for m in metrics:
                if self.filter_expression.search(m['name']):
                    new_metrics.append(m)
        else:
            new_metrics = self.metrics['result']

        self.metrics = self.extract_dictionary(new_metrics)
def filter ( self ) : if self . filter_expression is not None : new_metrics = [ ] metrics = self . metrics [ 'result' ] for m in metrics : if self . filter_expression . search ( m [ 'name' ] ) : new_metrics . append ( m ) else : new_metrics = self . metrics [ 'result' ] self . metrics = self . extract_dictionary ( new_metrics )
Apply the criteria to filter out on the metrics required
Apply the criteria to filter out on the metrics required