def filter(self):
        if self.filter_expression != 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.extractDictionary(new_metrics)
Initialize the Endpoint.
dataset/ETHPy150Open boundary/pulse-api-cli/boundary/metric_export.py/MetricExport.filter--crossover with--dataset/ETHPy150Open rapyuta/rce/rce-core/rce/core/network.py/Endpoint.__init__