Skip to content

Commit

Permalink
addinghelper debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 committed Jan 30, 2024
1 parent ca35b00 commit 6642c8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fmatch/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def get_agg_metric_query(self, uuids, index, metrics):
"size": self.search_size
}
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)
return data

Expand Down Expand Up @@ -421,7 +422,7 @@ def parse_agg_results(self, data: dict, metric_of_interest, agg_value, agg_type)
dat['uuid'] = stamp['key']
dat['timestamp'] = stamp['time']['value_as_string']
agg_values = next(item for item in agg_buckets if item["key"] == stamp['key'])
dat[agg_value + '_' + agg_type] = agg_values[agg_value][metric_of_interest]
dat[agg_value + '_' + agg_type] = agg_values[agg_value]["value"]
res.append(dat)
return res

Expand Down

0 comments on commit 6642c8e

Please sign in to comment.