(
            self, aggregator_name, aggregator_parameters,
            search_id=None, chart_type=None)
Initialize the aggregation object by running an aggregator class.

        Args:
            aggregator_name: name of the aggregator class to run.
            aggregator_parameters: a dict with the parameters of the aggregator
                class.
            search_id: an optional integer value with a primary key to a saved
                search.
            chart_type: optional string with the chart type.
Initialize the aggregation object by running an aggregator class.
Initialize the aggregation object by running an aggregator class .
def from_aggregator_run(
            self, aggregator_name, aggregator_parameters,
            search_id=None, chart_type=None):
        """Initialize the aggregation object by running an aggregator class.

        Args:
            aggregator_name: name of the aggregator class to run.
            aggregator_parameters: a dict with the parameters of the aggregator
                class.
            search_id: an optional integer value with a primary key to a saved
                search.
            chart_type: optional string with the chart type.
        """
        self.type = 'aggregator_run'
        self._parameters = aggregator_parameters
        self._username = getpass.getuser()

        date_now = datetime.datetime.now(datetime.timezone.utc)
        self._created_at = date_now.isoformat()
        self._updated_at = date_now.isoformat()

        self.resource_data = self._run_aggregator(
            aggregator_name, aggregator_parameters, search_id, chart_type)
def from_aggregator_run ( self , aggregator_name , aggregator_parameters , search_id = None , chart_type = None ) : self . type = 'aggregator_run' self . _parameters = aggregator_parameters self . _username = getpass . getuser ( ) date_now = datetime . datetime . now ( datetime . timezone . utc ) self . _created_at = date_now . isoformat ( ) self . _updated_at = date_now . isoformat ( ) self . resource_data = self . _run_aggregator ( aggregator_name , aggregator_parameters , search_id , chart_type )