(
            self, analyzer_name, analyzer_kwargs=None, ignore_previous=False)
return self.run_analyzers(
            analyzer_names=[analyzer_name], analyzer_kwargs=analyzer_kwargs,
            ignore_previous=ignore_previous)
Run an analyzer on a timeline.

        Args:
            analyzer_name: a name of an analyzer class to run against the
                timeline.
            analyzer_kwargs: optional dict with parameters for the analyzer.
                This is optional and just for those analyzers that can accept
                further parameters.
            ignore_previous (bool): an optional bool, if set to True then
                analyzer is run irrelevant on whether it has been previously
                been run.

        Raises:
            error.UnableToRunAnalyzer: if not able to run the analyzer.

        Returns:
            A list of AnalyzerResult objects.
Run an analyzer on a timeline.
Run an analyzer on a timeline .
def run_analyzer(
            self, analyzer_name, analyzer_kwargs=None, ignore_previous=False):
        """Run an analyzer on a timeline.

        Args:
            analyzer_name: a name of an analyzer class to run against the
                timeline.
            analyzer_kwargs: optional dict with parameters for the analyzer.
                This is optional and just for those analyzers that can accept
                further parameters.
            ignore_previous (bool): an optional bool, if set to True then
                analyzer is run irrelevant on whether it has been previously
                been run.

        Raises:
            error.UnableToRunAnalyzer: if not able to run the analyzer.

        Returns:
            A list of AnalyzerResult objects.
        """
        if self.is_archived():
            raise error.UnableToRunAnalyzer(
                'Unable to run an analyzer on an archived timeline.')

        if analyzer_kwargs:
            if not isinstance(analyzer_kwargs, dict):
                raise error.UnableToRunAnalyzer(
                    'Unable to run analyzer, analyzer kwargs needs to be a '
                    'dict')

            if analyzer_name not in analyzer_kwargs:
                analyzer_kwargs = {analyzer_name: analyzer_kwargs}
            elif not isinstance(analyzer_kwargs[analyzer_name], dict):
                raise error.UnableToRunAnalyzer(
                    'Unable to run analyzer, analyzer kwargs needs to be a '
                    'dict where the value for the analyzer is also a dict.')

        return self.run_analyzers(
            analyzer_names=[analyzer_name], analyzer_kwargs=analyzer_kwargs,
            ignore_previous=ignore_previous)
def run_analyzer ( self , analyzer_name , analyzer_kwargs = None , ignore_previous = False ) : if self . is_archived ( ) : raise error . UnableToRunAnalyzer ( 'Unable to run an analyzer on an archived timeline.' ) if analyzer_kwargs : if not isinstance ( analyzer_kwargs , dict ) : raise error . UnableToRunAnalyzer ( 'Unable to run analyzer, analyzer kwargs needs to be a ' 'dict' ) if analyzer_name not in analyzer_kwargs : analyzer_kwargs = { analyzer_name : analyzer_kwargs } elif not isinstance ( analyzer_kwargs [ analyzer_name ] , dict ) : raise error . UnableToRunAnalyzer ( 'Unable to run analyzer, analyzer kwargs needs to be a ' 'dict where the value for the analyzer is also a dict.' ) return self . run_analyzers ( analyzer_names = [ analyzer_name ] , analyzer_kwargs = analyzer_kwargs , ignore_previous = ignore_previous )