diff --git a/fmatch/matcher.py b/fmatch/matcher.py index e3851c6..0c5f77a 100644 --- a/fmatch/matcher.py +++ b/fmatch/matcher.py @@ -306,7 +306,7 @@ def get_agg_metric_query(self, uuids, index, metrics): } runs = self.query_index(index, query) self.logger.debug("Run details %s", str(runs)) - data = self.parse_agg_results(runs, metric_of_interest, agg_value, agg_type) + data = self.parse_agg_results(runs, agg_value, agg_type) return data def burner_metric_query(self, uuids, namespace, index, metricName): @@ -407,7 +407,7 @@ def parse_burner_cpu_results(self, data: dict): res.append(dat) return res - def parse_agg_results(self, data: dict, metric_of_interest, agg_value, agg_type): + def parse_agg_results(self, data: dict, agg_value, agg_type): """ parse out CPU data from kube-burner query Args: data (dict): _description_ diff --git a/fmatch/tests/test_matcher.py b/fmatch/tests/test_matcher.py index 99537ef..0722a47 100644 --- a/fmatch/tests/test_matcher.py +++ b/fmatch/tests/test_matcher.py @@ -241,7 +241,7 @@ def test_parse_agg_results(matcher_instance): "cpu_avg": 10.818089329872935, } ] - result = matcher_instance.parse_agg_results(mock_data, "value", "cpu", "avg") + result = matcher_instance.parse_agg_results(mock_data, "cpu", "avg") assert result == expected