in esrally/metrics.py [0:0]
def _get(self, name, task, operation_type, sample_type, node_name, mapper):
return [
mapper(doc)
for doc in self.docs
if doc["name"] == name
and (task is None or doc["task"] == task)
and (operation_type is None or doc["operation-type"] == operation_type)
and (sample_type is None or doc["sample-type"] == sample_type.name.lower())
and (node_name is None or doc.get("meta", {}).get("node_name") == node_name)
]