def gather_data(self, since):
        if self.period == METRIC_PERIOD_INSTANT:
            return self._gather_data_instant(since)
        elif self.period == METRIC_PERIOD_DAILY:
            return self._gather_data_periodic(since, 'day')
        elif self.period == METRIC_PERIOD_WEEKLY:
            return self._gather_data_periodic(since, 'week')
        else:
            raise ValueError("Unknown period: %s", self.period)
Read information from stdin.
dataset/ETHPy150Open django/django-dev-dashboard/dashboard/models.py/Metric.gather_data--crossover with--dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/v1/node_shell.py/_get_from_stdin