(self, searchindex_id, event_id)
Get one event from the datastore.

        Args:
            searchindex_id: String of OpenSearch index id
            event_id: String of OpenSearch event id

        Returns:
            Event document in JSON format
Get one event from the datastore.
Get one event from the datastore .
def get_event(self, searchindex_id, event_id):
        """Get one event from the datastore.

        Args:
            searchindex_id: String of OpenSearch index id
            event_id: String of OpenSearch event id

        Returns:
            Event document in JSON format
        """
        METRICS['search_get_event'].inc()
        try:
            # Suppress the lint error because opensearchpy adds parameters
            # to the function with a decorator and this makes pylint sad.
            # pylint: disable=unexpected-keyword-arg
            if self.version.startswith('6'):
                event = self.client.get(
                    index=searchindex_id,
                    id=event_id,
                    doc_type='_all',
                    _source_exclude=['timesketch_label'])
            else:
                event = self.client.get(
                    index=searchindex_id,
                    id=event_id,
                    doc_type='_all',
                    _source_excludes=['timesketch_label'])

            return event

        except NotFoundError:
            abort(HTTP_STATUS_CODE_NOT_FOUND)
def get_event ( self , searchindex_id , event_id ) : METRICS [ 'search_get_event' ] . inc ( ) try : # Suppress the lint error because opensearchpy adds parameters # to the function with a decorator and this makes pylint sad. # pylint: disable=unexpected-keyword-arg if self . version . startswith ( '6' ) : event = self . client . get ( index = searchindex_id , id = event_id , doc_type = '_all' , _source_exclude = [ 'timesketch_label' ] ) else : event = self . client . get ( index = searchindex_id , id = event_id , doc_type = '_all' , _source_excludes = [ 'timesketch_label' ] ) return event except NotFoundError : abort ( HTTP_STATUS_CODE_NOT_FOUND )