@staticmethod
def _build_events_query(events):
    'Build Elasticsearch query for one or more document ids.\n\n        Args:\n            events: List of Elasticsearch document IDs.\n\n        Returns:\n            Elasticsearch query as a dictionary.\n        '
    events_list = [event['event_id'] for event in events]
    query_dict = {'query': {'ids': {'values': events_list}}}
    return query_dict
Build Elasticsearch query for one or more document ids.

Args:
    events: List of Elasticsearch document IDs.

Returns:
    Elasticsearch query as a dictionary.
@staticmethod
def _build_events_query(events):
    'Build Elasticsearch query for one or more document ids.\n\n        Args:\n            events: List of Elasticsearch document IDs.\n\n        Returns:\n            Elasticsearch query as a dictionary.\n        '
    events_list = [event['event_id'] for event in events]
    query_dict = {'query': {'ids': {'values': events_list}}}
    return query_dict