Skip to content

Commit

Permalink
added ES_URL arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-boyapally committed Jan 24, 2024
1 parent 9c5ce70 commit 2276c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fmatch/matcher.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" metadata matcher
"""
#pylint: disable = invalid-name
import os
import sys
import logging
Expand All @@ -19,8 +20,7 @@ class Matcher:
"""


def __init__(self, index="perf_scale_ci", level=logging.INFO):
ES_URL = os.getenv("ES_SERVER") #pylint: disable = invalid-name
def __init__(self, index="perf_scale_ci", level=logging.INFO, ES_URL=os.getenv("ES_SERVER")):
self.index = index
self.es_url = ES_URL
self.search_size = 10000
Expand Down Expand Up @@ -198,7 +198,7 @@ def burner_results(self, uuid, uuids, index):
runs = [item['_source'] for item in result["hits"]["hits"]]
return runs

def burner_metric_query(self, uuids, namespace, index, metric_name):
def burner_metric_query(self, uuids, namespace, index, metricName):
""" burner_metric_query will query for specific metricName data.
Args:
Expand Down Expand Up @@ -242,7 +242,7 @@ def burner_metric_query(self, uuids, namespace, index, metric_name):
"query_string": {
"query": (
f'( uuid: \"{ids}\" )'
f' AND metricName: {metric_name}'
f' AND metricName: {metricName}'
f' AND labels.namespace.keyword: {namespace}'
)
}
Expand Down

0 comments on commit 2276c88

Please sign in to comment.