(self, index_name, sketch_id, timeline_id=None)
Initialize The Sketch Analyzer.

        Args:
            index_name: OpenSearch index name
            sketch_id: Sketch ID
            timeline_id: The ID of the timeline.
Initialize The Sketch Analyzer.
Initialize The Sketch Analyzer .
def __init__(self, index_name, sketch_id, timeline_id=None):
        """Initialize The Sketch Analyzer.

        Args:
            index_name: OpenSearch index name
            sketch_id: Sketch ID
            timeline_id: The ID of the timeline.
        """
        super().__init__(index_name, sketch_id, timeline_id=timeline_id)

        self._safebrowsing_api_key = current_app.config.get(
            'SAFEBROWSING_API_KEY')

        self._google_client_id = current_app.config.get(
            'SAFEBROWSING_CLIENT_ID',
            'Timesketch',
        )

        self._google_client_version = current_app.config.get(
            'SAFEBROWSING_CLIENT_VERSION',
            pkg_resources.get_distribution('timesketch').version,
        )
def __init__ ( self , index_name , sketch_id , timeline_id = None ) : super ( ) . __init__ ( index_name , sketch_id , timeline_id = timeline_id ) self . _safebrowsing_api_key = current_app . config . get ( 'SAFEBROWSING_API_KEY' ) self . _google_client_id = current_app . config . get ( 'SAFEBROWSING_CLIENT_ID' , 'Timesketch' , ) self . _google_client_version = current_app . config . get ( 'SAFEBROWSING_CLIENT_VERSION' , pkg_resources . get_distribution ( 'timesketch' ) . version , )