def track_statistic(self, name, description='', max_rows=None):
        """
        Create a Statistic object in the Tracker.
        """
        if name in self._tables:
            raise TableConflictError(name)
        if max_rows is None:
            max_rows = AnonymousUsageTracker.MAX_ROWS_PER_TABLE
        self.register_table(name, self.uuid, 'Statistic', description)
        self._tables[name] = Statistic(name, self, max_rows=max_rows)
def track_statistic ( self , name , description = '' , max_rows = None ) : if name in self . _tables : raise TableConflictError ( name ) if max_rows is None : max_rows = AnonymousUsageTracker . MAX_ROWS_PER_TABLE self . register_table ( name , self . uuid , 'Statistic' , description ) self . _tables [ name ] = Statistic ( name , self , max_rows = max_rows )
Create a Statistic object in the Tracker.