(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.
        """
        self.index_name = index_name
        super().__init__(index_name, sketch_id, timeline_id=timeline_id)

        self.domain_scoring_threshold = current_app.config.get(
            'DOMAIN_ANALYZER_WATCHED_DOMAINS_SCORE_THRESHOLD', 0.75)
        self.domain_scoring_exclude_domains = current_app.config.get(
            'DOMAIN_ANALYZER_EXCLUDE_DOMAINS', [])

        # TODO: remove that after a 6 months, this following check is to ensure
        # compatibility of the config file.
        if len(self.domain_scoring_exclude_domains) == 0:
            logger.warning(
                'Warning, DOMAIN_ANALYZER_WHITELISTED_DOMAINS has been '
                'deprecated. Please update timesketch.conf.')
            self.domain_scoring_exclude_domains = current_app.config.get(
                'DOMAIN_ANALYZER_WHITELISTED_DOMAINS', [])
def __init__ ( self , index_name , sketch_id , timeline_id = None ) : self . index_name = index_name super ( ) . __init__ ( index_name , sketch_id , timeline_id = timeline_id ) self . domain_scoring_threshold = current_app . config . get ( 'DOMAIN_ANALYZER_WATCHED_DOMAINS_SCORE_THRESHOLD' , 0.75 ) self . domain_scoring_exclude_domains = current_app . config . get ( 'DOMAIN_ANALYZER_EXCLUDE_DOMAINS' , [ ] ) # TODO: remove that after a 6 months, this following check is to ensure # compatibility of the config file. if len ( self . domain_scoring_exclude_domains ) == 0 : logger . warning ( 'Warning, DOMAIN_ANALYZER_WHITELISTED_DOMAINS has been ' 'deprecated. Please update timesketch.conf.' ) self . domain_scoring_exclude_domains = current_app . config . get ( 'DOMAIN_ANALYZER_WHITELISTED_DOMAINS' , [ ] )