Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change filestore to be indexed by unique ID #720

Merged
merged 11 commits into from
Jul 23, 2019
8 changes: 4 additions & 4 deletions esrally/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,8 +1396,8 @@ def __init__(self, es_store, es_results_store, file_store):
self.es_results_store = es_results_store
self.file_store = file_store

def find_by_timestamp(self, timestamp):
return self.es_store.find_by_timestamp(timestamp)
def find_by_trial_id(self, trial_id):
drawlerr marked this conversation as resolved.
Show resolved Hide resolved
return self.es_store.find_by_trial_id(trial_id)

def store_race(self, race):
self.file_store.store_race(race)
Expand Down Expand Up @@ -1519,15 +1519,15 @@ def list(self):
else:
return []

def find_by_timestamp(self, timestamp):
def find_by_trial_id(self, trial_id):
filters = [{
"term": {
"environment": self.environment_name
}
},
{
"term": {
"trial-timestamp": timestamp
"trial-id": trial_id
}
}]

Expand Down